- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / modules / system_admin / edv_user_access_search.php
blob4d78f04b5f239cb533adc8946b2936d34eab8491
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');
16 /**
17 * The following require loads the access areas that can be assigned for
18 * user permissions.
20 require($root_path.'include/inc_accessplan_areas_functions.php');
22 require_once($root_path.'include/inc_config_color.php');
24 $breakfile='edv.php?sid='.$sid.'&lang='.$lang;
25 $returnfile=$HTTP_SESSION_VARS['sess_file_return'].URL_APPEND;
26 $HTTP_SESSION_VARS['sess_file_return']=basename(__FILE__);
28 $thisfile=basename(__FILE__);
30 if(isset($mode) && ($mode=='search')) {
32 if(!isset($db) || !$db) include_once($root_path.'include/inc_db_makelink.php');
34 if(isset($dblink_ok)&&$dblink_ok) {
35 /* Load the date formatter */
36 include_once($root_path.'include/inc_date_format_functions.php');
39 $sql='SELECT * FROM care_users WHERE exc <> 1 AND (login_id LIKE "'.addslashes($name).'%" OR name LIKE "'.addslashes($name).'%")';
41 if($ergebnis=$db->Execute($sql)) {
43 $rows=$ergebnis->RecordCount();
46 else { echo "$LDDbNoLink<br>$sql"; }
51 <?php html_rtl($lang); ?>
52 <HEAD>
53 <?php echo setCharSet(); ?>
54 <?php
55 require($root_path.'include/inc_css_a_hilitebu.php');
57 <script language="javascript">
58 <!--
60 function gethelp(x,s,x1,x2,x3)
62 if (!x) x="";
63 urlholder="<?php echo $root_path; ?>help-router.php<?php echo URL_REDIRECT_APPEND ?>&helpidx="+x+"&src="+s+"&x1="+x1+"&x2="+x2+"&x3="+x3;
64 helpwin=window.open(urlholder,"helpwin","width=790,height=540,menubar=no,resizable=yes,scrollbars=yes");
65 window.helpwin.moveTo(0,0);
67 // -->
68 </script>
69 </HEAD>
71 <BODY topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 bgcolor=<?php echo $cfg['bot_bgcolor'];?> onLoad="document.searchwin.name.select()">
74 <FONT SIZE=-1 FACE="Arial">
76 <P>
79 <table width=100% border=0 cellspacing=0>
80 <tr>
81 <td bgcolor="<?php echo $cfg['top_bgcolor']; ?>" height="45"><FONT COLOR="<?php echo $cfg['top_txtcolor']; ?>" SIZE=+2 FACE="Arial">
82 <STRONG> <?php echo "$LDEDP $LDAccessRight $LDSearch" ?></STRONG></FONT></td>
83 <td bgcolor="<?php echo $cfg['top_bgcolor']; ?>" height="10" align=right>
84 <?php if($cfg['dhtml'])echo'<a href="'.$returnfile.'"><img '.createLDImgSrc($root_path,'back2.gif','0').' style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)>';?></a>
85 <a href="javascript:gethelp('')"><img <?php echo createLDImgSrc($root_path,'hilfe-r.gif','0') ?> <?php if($cfg['dhtml'])echo'style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)>';?></a><a href="<?php echo $breakfile;?>"><img <?php echo createLDImgSrc($root_path,'close2.gif','0') ?> alt="<?php echo $LDClose ?>" <?php if($cfg['dhtml'])echo'style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)>';?></a></td>
86 </tr>
87 <tr>
88 <td bgcolor=<?php echo $cfg['body_bgcolor'];?> colspan=2>
90 <p><br>
91 <ul>
93 <?php if(($mode=='search')&&($rows))
95 echo '
96 <table border=0 bgcolor="#999999" cellpadding=0 cellspacing=0>
97 <tr><td>
98 <table border="0" cellpadding="5" cellspacing="1">';
99 echo '
100 <tr bgcolor="#dddddd" background="'.$root_path.'gui/img/common/default/tableHeaderbg3.gif">';
101 echo "
102 <td colspan=8><FONT SIZE=1 FACE=verdana,Arial color=\"#800000\"><b>$LDActualAccess</b></td>";
103 echo "
104 </tr>";
105 echo '
106 <tr bgcolor="#dfdfdf">';
107 for($i=0;$i<sizeof($LDAccessIndex);$i++)
108 echo "
109 <td><FONT SIZE=1 FACE=verdana,Arial><b>".$LDAccessIndex[$i]."</b></td>";
110 echo "</tr>";
112 while ($zeile=$ergebnis->FetchRow())
114 if($zeile['exc']) continue;
115 echo '
116 <tr bgcolor="#efefef">';
117 echo "
118 <td><FONT SIZE=1 FACE=Arial>".$zeile['name']."</td>\n
119 <td><FONT SIZE=1 FACE=Arial>".$zeile['login_id']."</td>\n
120 <td><FONT SIZE=1 FACE=Arial>****</td><td>\n";
121 if ($zeile['lockflag'])
122 echo '
123 <img '.createComIcon($root_path,'padlock.gif','0').'>'; else echo '<img '.createComIcon($root_path,'arrow-gr.gif','0').'>';
126 echo "
127 </td>\n <td><FONT SIZE=1 FACE=Arial>";
128 /* Display the permitted areas */
130 $area=explode(' ',$zeile['permission']);
132 for($j=0;$j<sizeof($area);$j++) echo $area_opt[$area[$j]].'<br>';
134 echo '</td>
135 <td><FONT SIZE=1 FACE=Arial> '.formatDate2Local($zeile['s_date'],$date_format).' / '.convertTimeToLocal($zeile['s_time']).' </td>';
136 echo "
137 <td><FONT SIZE=1 FACE=Arial>".$zeile['create_id']."</td>";
138 echo "
139 <td><FONT SIZE=1 FACE=verdana,Arial>
140 <a href=edv_user_access_edit.php?sid=$sid&lang=$lang&mode=edit&userid=".str_replace(' ','+',$zeile['login_id'])." title=\"$LDChange\"> $LDInitChange</a> \n
141 <a href=edv_user_access_lock.php?sid=$sid&lang=$lang&itemname=".str_replace(' ','+',$zeile['login_id'])." ";
142 if ($zeile['lockflag']) echo "title=\"$LDUnlock\" > $LDInitUnlock"; else echo "title=\"$LDLock\"> $LDInitLock";
143 echo "</a> \n
144 <a href=edv_user_access_delete.php?sid=$sid&lang=$lang&itemname=".str_replace(' ','+',$zeile['login_id'])." title=\"$LDDelete\"> $LDInitDelete</a> </td>";
145 echo "</tr>";
147 echo "
148 </table>
149 </td></tr>
150 </table>";
154 <form method="post" action="<?php echo $thisfile; ?>" name="searchwin">
155 <table border=1 cellpadding="20">
156 <tr>
157 <td bgcolor="#ffffdd"><font face=verdana,arial size=2 color=#800000>
159 <b><?php echo $LDKeywordPrompt ?></b><p>
161 <table border="0" cellpadding="5" cellspacing="1">
162 <tr>
163 <td><font face=verdana,arial size=2 color=#000080><?php echo "$LDName / $LDUserId" ?>:<br>
164 <input type="text" name="name" size=25 maxlength=40>
165 </td>
166 </tr>
168 <tr><td><input type="image" <?php echo createLDImgSrc($root_path,'searchlamp.gif','0') ?>>
169 </td>
170 </tr>
171 </table>
172 <input type="hidden" name="sid" value="<?php echo $sid;?>">
173 <input type="hidden" name="lang" value="<?php echo $lang;?>">
174 <input type="hidden" name="mode" value="search">
176 </form>
177 </ul>
178 </td>
179 </tr>
180 </table>
184 </td>
185 </tr>
186 </table>
187 <br>
189 <FORM method=get action="<?php echo $breakfile;?>" >
190 <input type="hidden" name="sid" value="<?php echo $sid;?>">
191 <input type="hidden" name="lang" value="<?php echo $lang;?>">
192 <INPUT type="submit" value="<?php echo $LDCancel ?>"></FORM>
195 <?php
196 require($root_path.'include/inc_load_copyrite.php');
200 </FONT>
203 </BODY>
204 </HTML>