3 * Maintenance for the list of procedure providers.
5 * Copyright (C) 2012 Rod Roark <rod@sunsetsystems.com>
7 * LICENSE: This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>.
19 * @author Rod Roark <rod@sunsetsystems.com>
22 $sanitize_all_escapes = true;
23 $fake_register_globals = false;
25 require_once("../globals.php");
26 require_once("$srcdir/acl.inc");
27 require_once("$srcdir/formdata.inc.php");
28 require_once("$srcdir/options.inc.php");
29 require_once("$srcdir/htmlspecialchars.inc.php");
31 $popup = empty($_GET['popup']) ?
0 : 1;
33 $form_name = trim($_POST['form_name']);
35 $query = "SELECT pp.* FROM procedure_providers AS pp";
36 $query .= " ORDER BY pp.name";
37 $res = sqlStatement($query);
43 <link rel
="stylesheet" href
='<?php echo $css_header ?>' type
='text/css'>
44 <title
><?php
echo xlt('Procedure Providers'); ?
></title
>
46 <?php
if ($popup) { ?
>
47 <script type
="text/javascript" src
="../../library/topdialog.js"></script
>
49 <script type
="text/javascript" src
="../../library/dialog.js"></script
>
51 <script language
="JavaScript">
53 <?php
if ($popup) require($GLOBALS['srcdir'] . "/restoreSession.php"); ?
>
55 // Callback from popups to refresh this display.
56 function refreshme() {
58 document
.forms
[0].submit();
61 // Process click to pop up the add window.
62 function doedclick_add() {
64 dlgopen('procedure_provider_edit.php?ppid=0', '_blank', 700, 550);
67 // Process click to pop up the edit window.
68 function doedclick_edit(ppid
) {
70 dlgopen('procedure_provider_edit.php?ppid=' + ppid
, '_blank', 700, 550);
77 <body
class="body_top">
79 <div id
="addressbook_list">
80 <form method
='post' action
='procedure_provider_list.php'>
83 <tr
class='search'> <!-- bgcolor
='#ddddff' -->
85 <input type
='submit' class='button' name
='form_search' value
='<?php echo xla("Refresh")?>' />
86 <input type
='button' class='button' value
='<?php echo xla("Add New"); ?>' onclick
='doedclick_add()' />
93 <td title
='<?php echo xla('Click to view
or edit
'); ?>'><?php
echo xlt('Name'); ?
></td
>
94 <td
><?php
echo xlt('NPI'); ?
></td
>
95 <td
><?php
echo xlt('Protocol'); ?
></td
>
100 while ($row = sqlFetchArray($res)) {
102 $bgclass = (($encount & 1) ?
"evenrow" : "oddrow");
104 if (acl_check('admin', 'practice' )) {
105 $trTitle = xl('Edit') . ' ' . $row['name'];
106 echo " <tr class='detail $bgclass' style='cursor:pointer' " .
107 "onclick='doedclick_edit(" . $row['ppid'] . ")' title='" . attr($trTitle) . "'>\n";
110 $trTitle = $displayName . " (" . xl("Not Allowed to Edit") . ")";
111 echo " <tr class='detail $bgclass' title='" . attr($trTitle) . "'>\n";
113 echo " <td>" . text($row['name'] ) . "</td>\n";
114 echo " <td>" . text($row['npi'] ) . "</td>\n";
115 echo " <td>" . text($row['protocol']) . "</td>\n";