- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
<?
if (!$_SESSION['signed_id_user'] || $_SESSION['signed_id_group'] != 1) {
$pagetitle = 'Необходима авторизация';
$pagecontent .= "<p> <p>\n";
$pagecontent .= "<p> <p>\n";
$pagecontent .= "<p> <p>\n";
$pagecontent .= "<p> <p>\n";
$pagecontent .= "<div align=\"center\" style=\"width: 400px;\">\n";
$pagecontent .= "<form action=\"login.php\" method=\"post\">\n";
$pagecontent .= "<fieldset class=\"bw\">\n";
$pagecontent .= " <legend class=\"bw\">авторизация пользователя</legend>\n";
$pagecontent .= " <p>Поля, помеченные <span class=\"required\">*</span> являются обязательными для заполнения</p>\n";
$pagecontent .= " <table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"300\" align=\"center\">\n";
$pagecontent .= " <tr>\n";
$pagecontent .= " <td width=\"160\" align=\"right\">имя пользователя:</td>\n";
$pagecontent .= " <td width=\"120\"><input type=\"text\" size=\"20\" class=\"baseinput\" name=\"username\" id=\"username\" /></td>\n";
$pagecontent .= " <td><div id=\"msgUsername\" class=\"required\">*</div></td>\n";
$pagecontent .= " </tr>\n";
$pagecontent .= " <tr>\n";
$pagecontent .= " <td width=\"160\" align=\"right\">пароль:</td>\n";
$pagecontent .= " <td width=\"120\"><input type=\"password\" size=\"20\" class=\"baseinput\" name=\"password\" id=\"password\" /></td>\n";
$pagecontent .= " <td><div id=\"msgPassword\" class=\"required\">*</div></td>\n";
$pagecontent .= " </tr>\n";
$pagecontent .= " <tr>\n";
$pagecontent .= " <td width=\"160\"> </td>\n";
$pagecontent .= " <td width=\"120\"><input type=\"submit\" class=\"button\" name=\"posted\" value=\"Войти\" /></td>\n";
$pagecontent .= " <td> </td>\n";
$pagecontent .= " </tr>\n";
$pagecontent .= " </table>\n";
$pagecontent .= "</fieldset>\n";
$pagecontent .= "</form>\n";
$pagecontent .= "</div>\n";
$pagecontent .= "<p> <p>\n";
$pagecontent .= "<p> <p>\n";
$pagecontent .= "<p> <p>\n";
$pagecontent .= "<p> <p>\n";
$tpl = new Template();
$tpl->set_file('tpl/e-con_bw.tpl');
$tpl->add_var('PAGETITLE', $pagetitle);
$tpl->add_var('PAGECONTENT', $pagecontent);
echo $tpl->output();
$tpl = NULL;
exit();
}
?>
Подскажите, пожалуйста, нахер с таким стилем кодинга вообще шаблонизатор надо?..