- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / modules / system_admin / edv_user_access_delete.php
blobc169aa203023d50d32f209814301ac14b248e778
1 <?php
2 error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR);
3 require('./roots.php');
4 require($root_path.'include/inc_environment_global.php');
5 /**
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
9 * elpidio@care2x.org,
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') {
28 if($user->Delete()) {
29 header("Location: edv_user_access_list.php?sid=$sid&lang=$lang&remark=itemdelete");
30 exit;
31 } else {
32 echo '<p>'.$LDDbNoDelete.'<p>'.$user->getLastQuery();
37 # Start Smarty templating here
38 /**
39 * LOAD Smarty
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');
47 # Title in toolbar
48 $smarty->assign('sToolbarTitle',"$LDEDP::$LDAccessRight::$LDDelete");
50 # hide return button
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);
59 # Window bar title
60 $smarty->assign('sWindowTitle',"$LDEDP::$LDAccessRight::$LDDelete");
62 # Buffer page output
64 ob_start();
67 <p>
69 <center>
70 <table width=50% border=1 cellpadding="20">
71 <tr>
72 <td bgcolor="#ffffdd"><font face=verdana,arial size=2>
73 <p>
74 <?php echo $LDSureDelete ?><p>
76 <table border="0" cellpadding="5" cellspacing="1">
77 <tr>
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>
80 <?php
81 echo $user->Name();
83 </td>
84 </tr>
85 <tr>
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>
88 <?php
89 echo $user->LoginName();
91 </td>
92 </tr>
93 <!-- <tr>
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>
96 <?php
97 echo $zeile['password'];
99 </td>
100 </tr> -->
101 </table>
103 <br>
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>
113 </center>
115 </td>
116 </tr>
117 </table>
119 <?php
121 $sTemp = ob_get_contents();
122 ob_end_clean();
124 # Assign page output to the mainframe template
126 $smarty->assign('sMainFrameBlockData',$sTemp);
128 * show Template
130 $smarty->display('common/mainframe.tpl');