-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·199 lines (188 loc) · 6.29 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?
session_start();
include("central/config.php");
include("$app_path/common/get_post.php");
//foreach ($arrHttp as $var=>$value) echo "$var = $value<br>";
if (isset($_SESSION["lang"])){ $arrHttp["lang"]=$_SESSION["lang"];}else{ $arrHttp["lang"]=$lang;
$_SESSION["lang"]=$lang;}
include ("$app_path/lang/admin.php");
include ("$app_path/lang/lang.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="pt-br" xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-br">
<head>
<title>ABCD</title>
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="pragma" content="no-cache" />
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Language" content="pt-br" />
<meta name="robots" content="all" />
<meta http-equiv="keywords" content="" />
<meta http-equiv="description" content="" />
<!-- Stylesheets -->
<link rel="stylesheet" rev="stylesheet" href="<? echo $app_path?>/css/template.css" type="text/css" media="screen"/>
<!--[if IE]>
<link rel="stylesheet" rev="stylesheet" href="<? echo $app_path?>/css/bugfixes_ie.css" type="text/css" media="screen"/>
<![endif]-->
<!--[if IE 6]>
<link rel="stylesheet" rev="stylesheet" href="<? echo $app_path?>/css/bugfixes_ie6.css" type="text/css" media="screen"/>
<![endif]-->
<script src=<? echo $app_path?>/dataentry/js/lr_trim.js></script>
<script languaje=javascript>
document.onkeypress =
function (evt) {
var c = document.layers ? evt.which
: document.all ? event.keyCode
: evt.keyCode;
if (c==13) Enviar()
return true;
}
function UsuarioNoAutorizado(){
alert("<?php echo $msgstr["menu_noau"]?>")
}
function Enviar(){
login=Trim(document.administra.login.value)
password=Trim(document.administra.password.value)
if (login=="" || password==""){
alert("<?php echo $msgstr["datosidentificacion"]?>")
return
}else{
if (document.administra.newindow.checked){ document.administra.target="new_window";
ancho=screen.availWidth-15
alto=(screen.availHeight||screen.height) -50
msgwin=window.open("","new_window","menubar=no, toolbar=no, location=no, scrollbars=yes, status=yes, resizable=yes, top=0, left=0, width="+ancho+", height="+alto)
msgwin.focus() } else{ document.administra.target="" }
document.administra.submit()
}
}
</script>
</head>
<body>
<div class="heading">
<div class="institutionalInfo">
<h1><img src=central/images/logoabcd.jpg >
<?php echo $institution_name?></h1>
</div>
<div class="userInfo"></div>
<div class="spacer"> </div>
</div>
<div class="sectionInfo">
<div class="breadcrumb"></div>
<div class="actions"></div>
<div class="spacer"> </div>
</div>
<form name=administra onsubmit="javascript:return false" method=post action=<?php echo $app_path?>/common/inicio.php>
<input type=hidden name=Opcion value=admin>
<input type=hidden name=cipar value=acces.par>
<input type=hidden name=lang value=<?php echo $arrHttp["lang"]?>>
<div class="middle login">
<div class="loginForm">
<div class="boxTop">
<div class="btLeft"> </div>
<div class="btRight"> </div>
</div>
<div class="boxContent">
<?php
if (isset($arrHttp["login"]) and $arrHttp["login"]=="N"){
echo "
<div class=\"helper alert\">".$msgstr["menu_noau"]."
</div>
";
}
?>
<div class="formRow">
<label for="user"><?php echo $msgstr["userid"]?></label>
<?php
if (isset($arrHttp["login"]) and $arrHttp["login"]=="N"){
echo "
<input type=\"text\" name=\"login\" id=\"user\" value=\"\" class=\"textEntry superTextEntry inputAlert\" onfocus=\"this.className = 'textEntry superTextEntry inputAlert textEntryFocus';\" onblur=\"this.className = 'textEntry superTextEntry inputAlert';\" />\n";
}else{
echo "
<input type=\"text\" name=\"login\" id=\"user\" value=\"\" class=\"textEntry superTextEntry\" onfocus=\"this.className = 'textEntry superTextEntry textEntryFocus';\" onblur=\"this.className = 'textEntry superTextEntry';\" />\n";
}
?>
</div>
<div class="formRow">
<label for="pwd"><?php echo $msgstr["password"]?></label>
<input type="password" name="password" id="pwd" value="" class="textEntry superTextEntry" onfocus="this.className = 'textEntry superTextEntry textEntryFocus';" onblur="this.className = 'textEntry superTextEntry';" />
</div>
<div id="formRow3" class="formRow formRowFocus">
<label ><?php echo $msgstr["lang"]?></label> <select name=lang class="textEntry singleTextEntry">
<?php
$a=$db_path."lang.tab";
if (file_exists($a)){
$fp=file($a);
$selected="";
foreach ($fp as $value){
$value=trim($value);
if ($value!=""){
$l=explode('=',$value);
if ($l[0]!="lang"){
if ($l[0]==$_SESSION["lang"]) $selected=" selected";
echo "<option value=$l[0] $selected>".$msgstr[$l[0]]."</option>";
$selected="";
}
}
}
}else{
echo $msgstr["flang"].$db_path."lang/".$_SESSION["lang"]."/lang.tab";
die;
}
?>
</select>
</div>
<div class="formRow"><br>
<?php
if (file_exists("dbpath.dat")){
$fp=file("dbpath.dat");
echo $msgstr["database_dir"].": <select name=db_path>\n";
foreach ($fp as $value){
if (trim($value)!=""){
$v=explode('|',$value);
$v[0]=trim($v[0]);
echo "<Option value=".trim($v[0]).">".$v[1]."\n";
}
}
echo "</select><p>";
}
?>
<input type="checkbox" name="newindow" value=
<?php
if (isset($open_new_window) and $open_new_window=="Y")
echo "Y checked";
else
echo "N";
?> />
<label for="setCookie" class="inline"><?php echo $msgstr["openwindow"]?></label>
</div>
<div class="submitRow">
<div class="frLeftColumn"></div>
<div class="frRightColumn">
<a href="javascript:Enviar()" class="defaultButton goButton">
<img src="<? echo $app_path?>/images/icon/defaultButton_next.png" alt="" title="" />
<span><strong><?php echo $msgstr["entrar"]?></strong></span>
</a>
</div>
<div class="spacer"> </div>
</div>
<div class="spacer"> </div>
</div>
<div class="boxBottom">
<div class="bbLeft"> </div>
<div class="bbRight"> </div>
</div>
</div>
</div>
</form>
<?php include ("$app_path/common/footer.php");?>
</body>
</html>