-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit.php
More file actions
44 lines (44 loc) · 1.34 KB
/
Copy pathedit.php
File metadata and controls
44 lines (44 loc) · 1.34 KB
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
<?php
include_once "config.php";
include_once "errorlist.php";
include_once "check.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PhotoVote</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body>
<div id="error_div"><?=$error?></div>
<div id="content">
<h3 align="center">Вы редактируете id:<?=$_GET[num]?></h3>
<!--<p align="center">Поля со звёздочкой обязательны для заполнения.</p>-->
<form action="editor.php" method="post" enctype="multipart/form-data">
<table width="400" border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td>Имя/Фамилия</td>
<td><input name="NS" type="text" /></td>
</tr>
<tr>
<td>Фото</td>
<td><input name="photo" type="file" /></td>
</tr>
<tr>
<td>Рейтинг</td>
<td><input name="rate" type="text" /></td>
</tr>
</table>
<?php
if ($online == 1) {
echo "
<input name=\"num\" type=\"hidden\" value='".$_GET[num]."' />
<input name=\"edit\" type=\"hidden\" value=\"1\" />";
}
?>
<p align="center"><input type="submit" value="Изменить" /></p>
</form>
</div>
</body>
</html>