Revision: 6639 http://care2002.svn.sourceforge.net/care2002/?rev=6639&view=rev Author: robertmeggle Date: 2010-07-26 12:01:46 +0000 (Mon, 26 Jul 2010)
Log Message: ----------- fixed missing translations in admin ui on main trunk ready to test now! Modified Paths: -------------- care2x/trunk/language/en/lang_en_departments.php care2x/trunk/language/en/lang_en_edp.php Added Paths: ----------- care2x/trunk/modules/system_admin/admin_user_access_edit.php Modified: care2x/trunk/language/en/lang_en_departments.php =================================================================== --- care2x/trunk/language/en/lang_en_departments.php 2010-07-26 10:56:46 UTC (rev 6638) +++ care2x/trunk/language/en/lang_en_departments.php 2010-07-26 12:01:46 UTC (rev 6639) @@ -8,7 +8,7 @@ $LDAdmission='Admission'; $LDNursing='Nursing'; /* 2003-04-27 EL */ -$LDMedical='MEdical'; +$LDMedical='Medical'; $LDSupport='Support'; $LDNews='News'; $LDDepartment='Department'; @@ -24,4 +24,11 @@ $LDPlsNameFormal='Please write the Formal Name'; $LDPlsDeptID='Please write the Department ID'; $LDPlsSelectType='Please select the type'; -?> + +$LDIsPharmacy='Is Pharmacy ?'; +$LDPharmacy='Select the Pharmacy this department will use.'; + +$LDClose = 'Close'; +$LDBack = 'Back'; +$LDHelp = 'Help'; +?> \ No newline at end of file Modified: care2x/trunk/language/en/lang_en_edp.php =================================================================== --- care2x/trunk/language/en/lang_en_edp.php 2010-07-26 10:56:46 UTC (rev 6638) +++ care2x/trunk/language/en/lang_en_edp.php 2010-07-26 12:01:46 UTC (rev 6639) @@ -7,12 +7,12 @@ $LDEnterData='Click to enter data'; $LDClk2See='Click to see data'; -$LDFoundPatient='The search found <b>~nr~</b> patients'; +$LDFoundPatient='The search found ~nr~ patients'; $LDWildCards='What are wildcards and how to use them'; $LDNewSearch='New search'; $LDSearch='Search'; -$LDOClock='o\'clock'; +$LDOClock='o clock'; $LDContinue='Continue'; $LDBack='Go back'; @@ -24,7 +24,7 @@ $LDEdit='Edit'; $LDCreate='Create'; $LDValue='Value'; -$LDProfile='List & configure'; +$LDProfile='List and configure'; $LDNews='News'; $LDNewsTxt='Read or write news articles pertaining to sytem administration department'; @@ -41,10 +41,10 @@ -$LDNoDataFound='The search found <font color=red><b>no</b></font> data.'; +$LDNoDataFound='The search found no data.'; $LDClk2SeeInfo='Please click the right one to see the complete information'; /********************** Do not erase or replace the ~nr~ *****************************/ -$LDFoundNrData='The search found <font color=red><b>~nr~</b></font> data that corresponded to the search keyword.'; +$LDFoundNrData='The search found ~nr~ data that corresponded to the search keyword.'; $LDOpenInfo='Show complete information about '; $LDGoodMorning='Good morning'; @@ -67,10 +67,10 @@ $LDInfo='Information'; $LDInfoTxt='Search and read information pertaining to system admin'; $LDManage='Management'; -$LDUpdateOk='Update was <b>successful</b>!'; +$LDUpdateOk='Update was successful!'; $LDDataSaved='The following data was successully saved:'; -$LDDataNoUpdate='Update <b>failed</b>. Please check the entries.'; -$LDDataNoSaved='Save <b>failed</b>. Please check the entries.'; +$LDDataNoUpdate='Update failed. Please check the entries.'; +$LDDataNoSaved='Save failed. Please check the entries.'; $LDBack2Menu='Go back to databank menu'; $LDPageTop='Back to top.'; $LDPreview='Preview'; @@ -78,17 +78,17 @@ $LDRemoveFromDb='Remove from the databank'; $LDDataRemoved='The product was removed from the databank!'; -$LDConfirmDelete='Do you really want to <b>erase</b> or <b>remove</b> the following data from the databank ?'; -$LDAlertDelete='<b>ATTENTION!</b> Delete <b>CANNOT</b> be undone!'; -$LDNoDelete='Deletion of the data failed!<br>Please notify the system admin department.'; +$LDConfirmDelete='Do you really want to erase or remove the following data from the database ?'; +$LDAlertDelete='ATTENTION! Delete CANNOT be undone!'; +$LDNoDelete='Deletion of the data failed!Please notify the system admin department.'; $LDYesDelete='Yes, I am dead sure. Delete access right.'; $LDNoBack='No. Go back.'; -$LDClk2Ack='Click the arrow button to acknowledge and/or print the order list.'; +$LDClk2Ack='Click the arrow button to acknowledge and\or print the order list.'; $LDOK='OK'; $LDManageAccess='Access Permissions'; $LDManageAccessTxt='Manage, create, lock, remove, update, or change, etc.'; $LDSqlDb='SQL Databank'; -$LDSqlDbTxt='Direct SQL access. <b>ATTENTION</b> only for experts'; +$LDSqlDbTxt='Direct SQL access. ATTENTION only for experts'; $LDSysOpLogin='System Admin'; $LDSysOpLoginTxt='Login as system administrator'; $LDEDP='System admin'; @@ -108,7 +108,7 @@ $LDAccessIndex[2]='Password'; $LDAccessIndex[3]=''; $LDAccessIndex[4]='Allowedareas'; -$LDAccessIndex[5]='Date/Time'; +$LDAccessIndex[5]='Date\Time'; $LDAccessIndex[6]='Encoder'; $LDAccessIndex[7]='Option'; @@ -126,13 +126,13 @@ $LDSureLock='Are you sure you want to LOCK this access right?'; $LDSureUnlock='Are you sure you want to UNLOCK this access right?'; $LDSureDelete='Are you sure you want to DELETE this access right?'; -$LDYesSure='Yes, I\'m sure.'; +$LDYesSure='Yes, Im sure.'; $LDKeywordPrompt='Enter a search keyword'; $LDSystemAdmin='System Administrator'; $LDMySQLManage='Manage SQL databank with PHP MySQLAdmin'; $LDSpexFunctions='More configuration options'; $LDWelcome='Welcome'; -$LDForeWord='You now have the highest access privileges.<br>The following functions are available without restrictions. <br><b>Please be very careful with what you do.</b>'; +$LDForeWord='You now have the highest access privileges.The following functions are available without restrictions. Please be very careful with what you do.'; $LDSetDateFormat='Set date format'; $LDSelectDateFormat='Please select the needed date format:'; @@ -140,7 +140,7 @@ # Date formats # Add additional date formats as array element. # Do not forget to add the correspondign sample text in the $LDDateFormatsTxt array. -# Do not translate $LDDateFormats +# Do not translate $LDDateFormats $LDDateFormats[0]='dd.MM.yyyy'; $LDDateFormats[1]='yyyy-MM-dd'; $LDDateFormats[2]='MM/dd/yyyy'; @@ -167,31 +167,31 @@ * indonesian: * day = h, month = b, year = t * result => hh.bb.tttt -* +* * BEGIN */ $LD_ddpMMpyyyy='dd.mm.yyyy'; $LD_yyyyhMMhdd='yyyy-mm-dd'; -$LD_MMsddsyyyy='mm/dd/yyyy'; -$LD_ddsMMsyyyy='dd/mm/yyyy'; +$LD_MMsddsyyyy='mm\dd\yyyy'; +$LD_ddsMMsyyyy='dd\mm\yyyy'; /* END */ $LDNewDateFormatSaved='The new date format is now in effect.'; - + $LDSetCurrency='Set currency'; $LDNewCurrencySet='The new currency is now active.'; $LDPlsSelectCurrency='Please select currency.'; $LDAddCurrency='Add new type of currency'; -$LDPlsAddCurrency='Please enter the information about the currency. Then click "Save".'; +$LDPlsAddCurrency='Please enter the information about the currency. Then click Save.'; $LDAddedNewCurrency='The information about the new currency was saved.'; $LDmain='main'; $LDClk2AddCurrency='To enter new currency type, please click here.'; -$LDCurrencyShortName='Currency\'s symbolic or short :'; -$LDCurrencyLongName='Currency\'s descriptive :'; +$LDCurrencyShortName='Currencys symbolic or short :'; +$LDCurrencyLongName='Currencys descriptive :'; $LDCurrencyInfo='Additional information:'; $LDClk2SetCurrency='To set the main currency, please click here.'; $LDCurrencyUpdated='The currency information is updated.'; $LDUpdateCurrencyInfo='Edit Currency Information'; -$LDPlsEnterUpdate='Please edit the currency information. Then press "Update".'; +$LDPlsEnterUpdate='Please edit the currency information. Then press Update.'; $LDEditInfo='Edit'; $LDCurrencyAdmin='Currency'; @@ -255,13 +255,13 @@ $LDConsultationHrs='Consultation Hours'; $LDSigLine='Signature Line'; $LDSigStampTxt='Signature Stamp Text'; -$LDDeptLogo='Department\'s Logo'; +$LDDeptLogo='Departments Logo'; $LDHidden='Hidden'; $LDNormal='Normal'; $LDInactive='Inactive'; $LDActive='Active'; -$LDDeptStatus='Department\'s status'; -$LDRecordStatus='Record\'s status'; +$LDDeptStatus='Departments status'; +$LDRecordStatus='Records status'; /* 2003-03-30 EL*/ $LDConfigOptions='Configuration Options'; $LDDoesSurgeryOp='Does operative surgery?'; @@ -271,7 +271,7 @@ $LDFindEmployee='Find an employee'; #2003-10-27 EL $LDMainMenu='Main menu'; -$LDHideShow='Hide/show'; +$LDHideShow='Hide-show'; $LDSortOrder='sort order'; $LDAdminIndex='Admin index'; $LDUsers='Users'; @@ -280,7 +280,7 @@ $LDPhpMyAdmin='PhpMyAdmin'; $LDGeneral='General'; $LDQuickInformer='Quick informer'; -$LDEnterInfo='Please edit or enter the information. Then click "Save".'; +$LDEnterInfo='Please edit or enter the information. Then click Save.'; $LDPaginatorMaxRows='Paginator max rows'; #2003-10-28 EL @@ -292,16 +292,16 @@ $LDInsuranceListTxt='When the insurance companies list is displayed in the insurance company module.'; $LDInsuranceSearch='Insurance search'; $LDInsuranceSearchTxt='When the search for insurance company returns a list.'; -$LDPersonnelSearch='Employee search'; -$LDPersonnelSearchTxt='When the search for an employee returns a list.'; -$LDPersonnelList='Employee list'; -$LDPersonnelListTxt='When the employees list is displayed in the personnel manager module.'; +$LDstaffSearch='Employee search'; +$LDstaffSearchTxt='When the search for an employee returns a list.'; +$LDstaffList='Employee list'; +$LDstaffListTxt='When the employees list is displayed in the staff manager module.'; $LDPersonSearch='Person search'; $LDPersonSearchTxt='When the search for a person returns a list.'; $LDPatientSearch='Patient search'; $LDPatientSearchTxt='When the search for a patient returns a list.'; $LDORPatientSearch='Patient for operation search'; -$LDORPatientSearchTxt='When the search for patient for operation returns a list. +$LDORPatientSearchTxt='When the search for patient for operation returns a list. This value is usually less than 10 due to a narrow display space in the OR logbook module'; $LDEnterMaxRows='Please enter the maximum number rows displayed per page after a successful search.'; #2003-11-01 EL @@ -309,7 +309,7 @@ $LDTimeOutActive='Time out active'; $LDTimeOutTxt='Should the password protected modules time out (lock itselt) after a set time of inactivity?'; $LDTimeOutTime='Elapsed time'; -$LDTimeOutTimeTxt='Elapsed idle time (inactivity) that triggers the time out and locks the module. Note: +$LDTimeOutTimeTxt='Elapsed idle time (inactivity) that triggers the time out and locks the module. Note: If your entry is invalid, the system will use the default maximum values.'; #2003-11-09 EL $LDGUI='GUI'; @@ -333,7 +333,7 @@ $LDClkPickColor='Click here to pick up the color'; #2003-11-11 EL $LDORAdmin='OR administration'; -$LDListConfig='List & configure'; +$LDListConfig='List and configure'; $LDOR='OR'; $LDORNr='OR number'; $LDTempClosed='Is temporary closed?'; @@ -357,4 +357,10 @@ $LDCreateEditRoles='Create Role'; $LDWelcome='Wellcome'; $LDNursingManage='Wards administration'; -?> +$LDRole = 'Role'; +$LDNewRole='New Role'; + +$LDClose = 'Close'; +$LDBack = 'Back'; +$LDHelp = 'Help'; +?> \ No newline at end of file Added: care2x/trunk/modules/system_admin/admin_user_access_edit.php =================================================================== --- care2x/trunk/modules/system_admin/admin_user_access_edit.php (rev 0) +++ care2x/trunk/modules/system_admin/admin_user_access_edit.php 2010-07-26 12:01:46 UTC (rev 6639) @@ -0,0 +1,447 @@ +<?php +error_reporting ( E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR ) ; +require ('./roots.php') ; +require ($root_path . 'include/helpers/inc_environment_global.php') ; +/** + * CARE2X Integrated Hospital Information System Deployment 2.2 - 2006-07-10 + * GNU General Public License + * Copyright 2002,2003,2004,2005,2006 Elpidio Latorilla + * elpi...@care2x.org, + * + * See the file "copy_notice.txt" for the licence notice + */ +$lang_tables [] = 'access.php' ; +define ( 'LANG_FILE', 'edp.php' ) ; +$local_user = 'ck_admin_user' ; +require_once ($root_path . 'include/helpers/inc_front_chain_lang.php') ; +///$db->debug=true; +/** + * The following require loads the access areas that can be assigned for + * user permissions. + */ +require ($root_path . 'include/helpers/inc_accessplan_areas_functions.php') ; + +$breakfile = 'admin_system-admi-welcome.php' . URL_APPEND ; +$returnfile = $_SESSION [ 'sess_file_return' ] . URL_APPEND ; +$_SESSION [ 'sess_file_return' ] = basename ( __FILE__ ) ; + +//gjergji : load the department list +require_once ($root_path . 'modules/dept_admin/model/class_department.php') ; +$dept_obj = new Department ( ) ; +$deptarray = $dept_obj->getAllActiveSort ( 'name_formal' ) ; + +//gjergji : load the access roles +require_once($root_path.'include/core/class_access.php'); +$role_obj = & new Access(); +$roles = $role_obj->loadAllRoles(); + +$edit = 0 ; +$error = 0 ; + +if (! isset ( $mode )) + $mode = '' ; +if (! isset ( $errorname )) + $errorname = '' ; +if (! isset ( $erroruser )) + $erroruser = '' ; +if (! isset ( $username )) + $username = '' ; +if (! isset ( $userid )) + $userid = '' ; +if (! isset ( $errorpass )) + $errorpass = '' ; +if (! isset ( $pass )) + $pass = '' ; +if (! isset ( $errorbereich )) + $errorbereich = '' ; +if (! isset ( $dept_nr )) + $dept_nr = '0' ; + +if ($mode != '') { + if ($mode != 'edit' && $mode != 'update' && $mode != 'data_saved') { + /* Trim white spaces off */ + $username = trim ( $username ) ; + $userid = trim ( $userid ) ; + $pass = trim ( $pass ) ; + + if ($username == '') { + $errorname = 1 ; + $error = 1 ; + } + if ($userid == '') { + $erroruser = 1 ; + $error = 1 ; + } + if ($pass == '') { + $errorpass = 1 ; + $error = 1 ; + } + } + + if (($mode == 'save' && ! $error) || ($mode == 'update' && ! $erroruser)) { + + /* Prepare the permission codes */ + +/* $p_areas = '' ; + + while ( list ( $x, $v ) = each ( $_POST ) ) { + if (! ereg ( '_a_', $x )) + continue ; + + if ($_POST [ $x ] != '') + $p_areas .= $v . ' ' ; + }*/ + /* If permission area is available, save it */ + if ($selected_role != '') { + ///$db->debug=true; + if ($mode == 'save') { + $sql = "INSERT INTO care_users ( + name, + login_id, + password, + permission, + staff_nr, + s_date, + s_time, + dept_nr, + user_role, + status, + modify_id, + create_id, + create_time + ) VALUES ( + '" . addslashes ( $username ) . "', + '" . addslashes ( $userid ) . "', + '" . md5 ( $pass ) . "', + '" . $permission . "', + '" . (( int ) $staff_nr) . "', + '" . date ( 'Y-m-d' ) . "', + '" . date ( 'H:i:s' ) . "', + '" . serialize($dept_nr) . "', + '" . $selected_role . "', + 'normal', + '', + '" . $_SESSION [ 'sess_user_name' ] . "', + '" . date ( 'YmdHis' ) . "' + )" ; + + } else { + $sql = "UPDATE care_users SET permission='$permission', dept_nr='" . serialize($dept_nr) ."', user_role ='$selected_role' ,modify_id='" . $_COOKIE [ $local_user . $sid ] . "' WHERE login_id='$userid'" ; + } + + /* Do the query */ + $db->BeginTrans () ; + $ok = $db->Execute ( $sql ) ; + if ($ok && $db->CommitTrans ()) { + //echo $sql; + header ( 'Location:admin_user_access_edit.php' . URL_REDIRECT_APPEND . '&userid=' . strtr ( $userid, ' ', '+' ) . '&mode=data_saved' ) ; + exit () ; + } else { + $db->RollbackTrans () ; + if ($mode != 'save') + $edit = 1 ; + $mode = 'error_double' ; + } + } else { + if ($mode != 'save') + $edit = 1 ; + $mode = 'error_noareas' ; + } // end if ($p_areas!="") + } // end of if($mode=="save" + + + if ($mode == 'edit' || $mode == 'data_saved' || $edit) { + $sql = "SELECT name, login_id, permission, dept_nr,user_role FROM care_users WHERE login_id='$userid'" ; + if ($ergebnis = $db->Execute ( $sql )) { + if ($ergebnis->RecordCount ()) { + $user = $ergebnis->FetchRow () ; + $edit = 1 ; + } + } + } +} + +# Start Smarty templating here +/** + * LOAD Smarty + */ +# Note: it is advisable to load this after the inc_front_chain_lang.php so +# that the smarty script can use the user configured template theme + + +require_once ($root_path . 'gui/smarty_template/smarty_care.class.php') ; +$smarty = new smarty_care ( 'system_admin' ) ; + +# Title in toolbar +$smarty->assign ( 'sToolbarTitle', $LDManageAccess ) ; +$smarty->assign('LDBack', $LDBack); + $smarty->assign('LDHelp', $LDHelp); + $smarty->assign('LDClose', $LDClose); + +# href for return button +$smarty->assign ( 'pbBack', $returnfile ) ; + +# href for help button +$smarty->assign ( 'pbHelp', "javascript:gethelp('edp.php','access','$mode')" ) ; + +# href for close button +$smarty->assign ( 'breakfile', $breakfile ) ; + +# Window bar title +$smarty->assign ( 'sWindowTitle', $LDManageAccess ) ; + +# Buffer page output + + +ob_start () ; +?> +<ul> + +<?php +if (($mode != '' || $error) && $mode != 'edit') { + + ?> +<table border=0> + <tr> + <td><img + <?php + echo createMascot ( $root_path, 'mascot1_r.gif', '0', 'bottom' ) ?> + align="absmiddle"></td> + <td class="warnprompt"> + <?php + if ($error) + echo $LDInputError ; elseif ($mode == 'data_saved') + echo $LDUserInfoSaved ; elseif ($mode == 'error_save') + echo $LDUserInfoNoSave ; elseif ($mode == 'error_noareas') + echo $LDNoAreas ; elseif ($mode == 'error_double') + echo $LDUserDouble ; + ?></td> + </tr> + </table> +<?php +} +?> +<FONT class="prompt"> +<?php + +if (($mode == "") and ($remark != 'fromlist')) { + $gtime = date ( 'H.i' ) ; + if ($gtime < '9.00') + echo $LDGoodMorning ; + if (($gtime > '9.00') and ($gtime < '18.00')) + echo $LDGoodDay ; + if ($gtime > '18.00') + echo $LDGoodEvening ; + echo ' ' . $_COOKIE [ $local_user . $sid ] ; +} +?> +</FONT> +<p> + + + <FORM action="admin_user_access_list.php" name="all"> + <input type="hidden" name="sid" value="<?php echo $sid ; ?>"> + <input type="hidden" name="lang" value="<?php echo $lang ; ?>"> + <input type="submit" name=message value="<?php echo $LDListActual ?>"> + </FORM> + <p> + + + <form method="post" action="admin_user_access_edit.php" name="user"> + <input type="image" <?php echo createLDImgSrc ( $root_path, 'savedisc.gif', '0', 'absmiddle' ) ?>> + +<?php +if ($mode == 'data_saved' || $edit) { + echo '<input type="button" value="' . $LDEnterNewUser . '" onClick="javascript:window.location.href=\'admin_user_access_edit.php' . URL_REDIRECT_APPEND . '&remark=fromlist\'">' ; +} +?> +<input type="button" value="<?php +echo $LDFindEmployee ; +?>" + onClick="javascript:window.location.href='admin_user_search_employee.php<?php + echo URL_REDIRECT_APPEND ; + ?>&remark=fromlist'"> + + <table border=0 bgcolor="#000000" cellpadding=0 cellspacing=0> + <tr> + <td> + + <table border="0" cellpadding="5" cellspacing="1"> + + <tr bgcolor="#dddddd"> + <td colspan="3"> +<?php +echo $LDNewAccess ?>: +</td> +</tr> + +<tr bgcolor="#dddddd"> + <td> + <input type=hidden name=route value=validroute> +<?php +if ($errorname) { + echo "<font color=red > <b>$LDName</b>" ; +} else { + echo $LDName ; +} +?> +<?php + +if ($edit) { + echo '<input type="hidden" name="username" value="' . $user [ 'name' ] . '">' . '<b>' . $user [ 'name' ] . '</b>' ; +} elseif (isset ( $is_employee ) && $is_employee) { + ?> + <input name="username" type="hidden" + <?php + if ($username != "") + echo ' value="' . $username . '"><br><b>' . $username . '</b>' ; + else + echo '>' ; +} else { + ?> + <input name="username" type="text" <?php if ($username != "") echo ' value="' . $username . '"' ; ?>> +<?php +} +?> +<br> +</td> +<td> +<?php +if ($erroruser) { + echo "<font color=red > <b> $LDUserId</b>" ; +} else { + echo $LDUserId ; +} +?> +<?php +if ($edit) + echo '<input type="hidden" name="userid" value="' . $user [ 'login_id' ] . '">' . '<b>' . $user [ 'login_id' ] . '</b>' ; else { + ?> + <input type=text name="userid" <?php if ($userid != "") echo 'value="' . $userid . '"' ; ?>> + <?php +} +?> +<br> +</td> +<td> +<?php +if ($errorpass) { + echo "<font color=red > <b>$LDPassword</b>" ; +} else { + echo $LDPassword ; +} +?> +<?php +if ($edit) + echo '<input type="hidden" name="pass" value="*">****' ; else { + ?> + <input type="password" name="pass" <?php if ($pass != "") echo "value=" . $pass ; ?>> + <?php +} +?> +<br> +</td> +</tr> +<tr bgcolor="#dddddd"> +<td valign="top"><b> <?php echo $LDRole ?> : </b> + <select name="permission"> + <?php + while ( list( $x, $v ) = each( $roles ) ) { + ?> + <option value="<?php echo $v['permission'] ?>" onclick="document.getElementById('selected_role').value = <?php echo $v['id'] ?>;"<?php + if ($v['id'] == $user['user_role'] ) echo ' selected' ?>> + <?php + echo $v['role_name'] ; + ?> + </option> + <?php + } + ?> + </select> +</td> +<td colspan="2"><b> <?php echo $LDDept ?> : </b><br> +<?php +while(list($x,$dept)=each($deptarray)){ + $actualDept = unserialize($user['dept_nr']); + $subDepts = $dept_obj->getAllSubDepts($dept['nr']); +?> + <label> + <input type="checkbox" name="dept_nr[]" id="<?php echo $dept['nr'] ?>" value="<?php echo $dept['nr']?>" <?php if( in_array($dept['nr'],$actualDept)) echo 'checked' ?>> + <?php + if(isset($$dept['LD_var'])&&!empty($$dept['LD_var'])) echo $$dept['LD_var'] . '</label><br>'; + else echo $dept['name_formal'] . '</label><br>'; + if($subDepts) { + while (list($y,$sDept) = each($subDepts)) { + ?> + <sup>L</sup> + <label> + <input type="checkbox" name="dept_nr[]" id="<?php echo $sDept['nr'] ?>" value="<?php echo $sDept['nr']?>" <?php if( in_array($sDept['nr'],$actualDept)) echo 'checked' ?>> + <?php + if(isset($$sDept['LD_var'])&&!empty($$sDept['LD_var'])) echo $$sDept['LD_var'] . '<br>'; + else echo $sDept['name_formal'] . '<br>'; + ?></label><?php + } + } +} +?> +</td> +</tr> +<tr bgcolor="#dddddd"> +<td colspan=3> +<p> +<input type="hidden" name="staff_nr" value="<?php echo $staff_nr ; ?>"> +<input type="hidden" name="itemname" value="<?php echo $itemname ?>"> +<input type="hidden" name="sid" value="<?php echo $sid ; ?>"> +<input type="hidden" name="lang" value="<?php echo $lang ; ?>"> +<?php + reset($roles); + echo '<input type="hidden" name="selected_role" id="selected_role"'; + $found = false; + while ( list( $x, $v ) = each( $roles ) ) { + if ($v['id'] == $user['user_role'] ) { + echo ' value="'.$v['id'].'">'; + $found = true; + } + } + if($found == false) echo ' value="">'; +?> + +<input type="hidden" name="mode" value="<?php +if ($edit || $mode == 'data_saved' || $mode == 'edit') + echo 'update' ; else + echo 'save' ; +?>"> +<input type="image" <?php +echo createLDImgSrc ( $root_path, 'savedisc.gif', '0', 'absmiddle' ) ?>> + <input type="reset" value="<?php +echo $LDReset ?>"> +</td> +</tr> +</table> + + </td> + </tr> +</table> + +</form> + +<p> +<a href="<?php echo $breakfile ?>" ><img <?php echo createLDImgSrc ( $root_path, 'cancel.gif', '0' ) ?> alt="<?php echo $LDCancel ?>" align="middle"></a> + +</ul> + +<?php + +$sTemp = ob_get_contents () ; +ob_end_clean () ; + +# Assign page output to the mainframe template + + +$smarty->assign ( 'sMainFrameBlockData', $sTemp ) ; +/** + * show Template + */ +$smarty->display ( 'common/mainframe.tpl' ) ; + +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Care2002-developers mailing list Care2002-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/care2002-developers