2 error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
);
3 require('./roots.php');
4 require($root_path.'include/inc_environment_global.php');
6 * CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02
7 * GNU General Public License
8 * Copyright 2002,2003,2004,2005 Elpidio Latorilla
11 * See the file "copy_notice.txt" for the licence notice
13 define('LANG_FILE','edp.php');
14 $local_user='ck_edv_user';
15 require_once($root_path.'include/inc_front_chain_lang.php');
17 $breakfile='edv-system-admi-welcome.php'.URL_APPEND
;
18 $returnfile='edv_user_access_list.php'.URL_APPEND
;
19 //$HTTP_SESSION_VARS['sess_file_return']='edv.php';
21 require_once($root_path.'include/care_api_classes/class_access.php');
22 $user = & new Access($itemname);
24 if($user->UserExists()){
26 if ($finalcommand=='delete') {
29 header("Location: edv_user_access_list.php?sid=$sid&lang=$lang&remark=itemdelete");
32 echo '<p>'.$LDDbNoDelete.'<p>'.$user->getLastQuery();
37 # Start Smarty templating here
41 # Note: it is advisable to load this after the inc_front_chain_lang.php so
42 # that the smarty script can use the user configured template theme
44 require_once($root_path.'gui/smarty_template/smarty_care.class.php');
45 $smarty = new smarty_care('system_admin');
48 $smarty->assign('sToolbarTitle',"$LDEDP::$LDAccessRight::$LDDelete");
51 $smarty->assign('pbBack',$returnfile);
53 # href for help button
54 $smarty->assign('pbHelp',"javascript:gethelp('edp.php','access','delete')");
56 # href for close button
57 $smarty->assign('breakfile',$breakfile);
60 $smarty->assign('sWindowTitle',"$LDEDP::$LDAccessRight::$LDDelete");
70 <table width
=50% border
=1 cellpadding
="20">
72 <td bgcolor
="#ffffdd"><font face
=verdana
,arial size
=2>
74 <?php
echo $LDSureDelete ?
><p
>
76 <table border
="0" cellpadding
="5" cellspacing
="1">
78 <td align
=right
><font face
=verdana
,arial size
=2 color
=#000080><?php echo $LDName ?>:
79 </td
><td
><font face
=verdana
,arial size
=2 color
=#800000>
86 <td align
=right
><font face
=verdana
,arial size
=2 color
=#000080><?php echo $LDUserId ?>:</td>
87 <td
><font face
=verdana
,arial size
=2 color
=#800000>
89 echo $user->LoginName();
94 <td align
=right
><font face
=verdana
,arial size
=2 color
=#000080><?php echo $LDPassword ?>:</td>
95 <td
><font face
=verdana
,arial size
=2 color
=#800000>
97 echo $zeile['password'];
104 <FORM action
="edv_user_access_delete.php" method
="post">
105 <INPUT type
="hidden" name
="itemname" value
="<?php echo $itemname ?>">
106 <input type
="hidden" name
="finalcommand" value
="delete">
107 <input type
="hidden" name
="sid" value
="<?php echo $sid;?>">
108 <input type
="hidden" name
="lang" value
="<?php echo $lang;?>">
109 <INPUT type
="submit" name
="versand" value
="<?php echo $LDYesDelete ?>"></font
></FORM
>
111 <a href
="<?php echo $returnfile ?>"><img
<?php
echo createLDImgSrc($root_path,'cancel.gif','0') ?
> alt
="<?php echo $LDCancel ?>" align
="middle"></a
>
121 $sTemp = ob_get_contents();
124 # Assign page output to the mainframe template
126 $smarty->assign('sMainFrameBlockData',$sTemp);
130 $smarty->display('common/mainframe.tpl');