From ccbc035108f182ea8b3cc2e4ab33c79925c676c8 Mon Sep 17 00:00:00 2001 From: lemonsoftwarero Date: Wed, 16 Apr 2008 09:54:05 +0000 Subject: [PATCH] DBC Dutch System --- interface/main/calendar/add_edit_event.php | 392 +++++++++++++++++++++++------ interface/main/left_nav.php | 8 +- 2 files changed, 321 insertions(+), 79 deletions(-) diff --git a/interface/main/calendar/add_edit_event.php b/interface/main/calendar/add_edit_event.php index 00d8a1bf4..801d6db66 100644 --- a/interface/main/calendar/add_edit_event.php +++ b/interface/main/calendar/add_edit_event.php @@ -53,6 +53,51 @@ $info_msg = ""; + +// used for DBC Dutch System + $_SESSION['event_date'] = $date; + $link = '../../../library/DBC_functions.php'; // ajax stuff and db work + ?>\n\n + + + + + - function deleteEvent() { - if (confirm("Deleting this event cannot be undone. It cannot be recovered once it is gone.\nAre you sure you wish to delete this event?")) { - var f = document.getElementById('theform'); - var form_action = document.getElementById('form_action'); - form_action.value="delete"; - f.submit(); - return true; - } - return false; - } + + + + + + + + + -
- +
@@ -778,15 +926,18 @@ td { font-size:0.8em; } @@ -809,18 +961,90 @@ td { font-size:0.8em; } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -889,60 +1112,66 @@ if ($eid) { } } -// build the selection tool -echo ""; -while ($urow = sqlFetchArray($ures)) { - echo " \n"; -} + echo ">" . $urow['lname']; + if ($urow['fname']) echo ", " . $urow['fname']; + echo "\n"; + } -echo ''; + echo ''; // ======================================= // EOS multi providers case // ======================================= } else { - /*{CHEMED}*/ - if ($userid != 0) { - // userid (a.k.a. provider ID) has been set so don't let the user change it - $urow = sqlFetchArray(sqlStatement("SELECT id, username, fname, lname FROM users WHERE id = $userid")); - // print_r($urow);exit; - - echo ""; - echo ""; - } - else { - // present a list of providers to choose from - // default to the currently logged-in user - echo ""; - - } //END (CHEMED) IF -} ?> + + + '/> + + + + + + + + @@ -1007,7 +1236,10 @@ echo ''; @@ -1036,7 +1270,9 @@ echo ''; :
   - /> + /> - ' /> : - ' />  - ' + ' style='width:100%' title='' /> - ' /> - + ' />
 indirect'/>minutes
 travel'/>minutes
Current activity:
<<Add/Change>>

 
Activiteit: + + +

+
+
+ +
+ +
+ +
: - + - ' readonly /> + ' readonly /> -   - - - +  
   - /> + /> - ' onkeyup='datekeyup(this,mypcc)' onblur='dateblur(this,mypcc)' title='' /> + ' + onkeyup='datekeyup(this,mypcc)' onblur='dateblur(this,mypcc)' + title='' /> [?]'> @@ -1019,7 +1251,9 @@ echo ''; : - ' /> + ' />
- ' onkeyup='datekeyup(this,mypcc)' onblur='dateblur(this,mypcc)' /> + ' + onkeyup='datekeyup(this,mypcc)' onblur='dateblur(this,mypcc)' /> [?]'> @@ -1046,11 +1282,11 @@ echo '';

-' onclick="validate()" /> +' />   ' onclick='find_available()' />   -' onclick='deleteEvent()'/> +' />   ' onclick='window.close()' />

diff --git a/interface/main/left_nav.php b/interface/main/left_nav.php index 6f243a9a8..4e818c709 100644 --- a/interface/main/left_nav.php +++ b/interface/main/left_nav.php @@ -95,6 +95,12 @@ // * Usage: 0 = global, 1 = patient-specific, 2 = encounter-specific // * The URL relative to the interface directory // + + // larry :: dbc insert + $demovarbase = ( $GLOBALS['dutchpc'] ) ? 'demographics_dutch.php' : 'demographics.php'; + // larry :: end of dbc insert + + $primary_docs = array( 'ros' => array('Roster' , 0, 'reports/players_report.php?embed=1'), 'cal' => array('Calendar' , 0, 'main/main_info.php'), @@ -109,7 +115,7 @@ 'sup' => array('Superbill' , 0, 'patient_file/encounter/superbill_custom_full.php'), 'aun' => array('Auth/notes', 0, 'main/authorizations/authorizations.php'), 'new' => array('New Pt' , 0, 'new/new.php'), - 'dem' => array('Patient' , 1, 'patient_file/summary/demographics.php'), + 'dem' => array('Patient' , 1, $demovarbase ), 'his' => array('History' , 1, 'patient_file/history/history.php'), 'ens' => array('Encounters', 1, 'patient_file/history/encounters.php'), 'nen' => array('New Enctr' , 1, 'forms/newpatient/new.php?autoloaded=1&calenc='), -- 2.11.4.GIT