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 * The following require loads the access areas that can be assigned for
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); ?
>
53 <?php
echo setCharSet(); ?
>
55 require($root_path.'include/inc_css_a_hilitebu.php');
57 <script language
="javascript">
60 function gethelp(x
,s
,x1
,x2
,x3
)
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);
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">
79 <table width
=100% border
=0 cellspacing
=0>
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
>
88 <td bgcolor
=<?php
echo $cfg['body_bgcolor'];?
> colspan
=2>
93 <?php
if(($mode=='search')&&($rows))
96 <table border=0 bgcolor="#999999" cellpadding=0 cellspacing=0>
98 <table border="0" cellpadding="5" cellspacing="1">';
100 <tr bgcolor="#dddddd" background="'.$root_path.'gui/img/common/default/tableHeaderbg3.gif">';
102 <td colspan=8><FONT SIZE=1 FACE=verdana,Arial color=\"#800000\"><b>$LDActualAccess</b></td>";
106 <tr bgcolor="#dfdfdf">';
107 for($i=0;$i<sizeof($LDAccessIndex);$i++
)
109 <td><FONT SIZE=1 FACE=verdana,Arial><b>".$LDAccessIndex[$i]."</b></td>";
112 while ($zeile=$ergebnis->FetchRow())
114 if($zeile['exc']) continue;
116 <tr bgcolor="#efefef">';
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'])
123 <img '.createComIcon($root_path,'padlock.gif','0').'>'; else echo '<img '.createComIcon($root_path,'arrow-gr.gif','0').'>';
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>';
135 <td><FONT SIZE=1 FACE=Arial> '.formatDate2Local($zeile['s_date'],$date_format).' / '.convertTimeToLocal($zeile['s_time']).' </td>';
137 <td><FONT SIZE=1 FACE=Arial>".$zeile['create_id']."</td>";
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";
144 <a href=edv_user_access_delete.php?sid=$sid&lang=$lang&itemname=".str_replace(' ','+',$zeile['login_id'])." title=\"$LDDelete\"> $LDInitDelete</a> </td>";
154 <form method
="post" action
="<?php echo $thisfile; ?>" name
="searchwin">
155 <table border
=1 cellpadding
="20">
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">
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>
168 <tr
><td
><input type
="image" <?php
echo createLDImgSrc($root_path,'searchlamp.gif','0') ?
>>
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">
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
>
196 require($root_path.'include/inc_load_copyrite.php');