-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrenwu.php
More file actions
57 lines (54 loc) · 1.63 KB
/
renwu.php
File metadata and controls
57 lines (54 loc) · 1.63 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
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title></title>
<script>
</script>
</head>
<body>
<?php
define('IN_ECS',true);
include 'mysql.class.php';
global $db;
if($_GET['act']=='done'){
$startnum = $_POST['startnum'];
$endnum = $_POST['endnum'];
$enddate = strtotime($_POST['enddate']);
$mima = $_POST['mima'];
if(md5($mima)!='e10adc3949ba59abbe56e057f20f883e'){
exit;
}
if(empty($startnum) or empty($endnum) or empty($enddate)){
return false;
}
$renwu = array('startnum'=>$startnum,'endnum'=>$endnum,'enddate'=>$enddate,'is_over'=>0);
$db->autoExecute('renwu',$renwu,'INSERT');
header("location:renwu.php");
exit;
}
$result = $db->getAll("select * from renwu where is_over = 0");
foreach ($result as $key=>$val){
echo "<div style='border:#ccc solid 1px;float:left;margin:2px 5px;' >到期时间<span style='color:red;'>".date('Y-m-d',$val['enddate'])."</span></br>";
for($i=$val['startnum'];$i<=$val['endnum'];$i++){
?>
<a target='_blank' href="http://www.qianbao666.com/task/doTask.html?id=<?php echo $i; ?>"><?php echo $i; ?></a></br>
<?php
}
echo '</div>';
}
?>
<div style="clear:both;"></div>
<form action="renwu.php?act=done" method="post" >
<table>
<tr>
<td>任务开始编号<input type="text" name="startnum" /></td>
<td>任务结束编号<input type="text" name="endnum" /></td>
<td>任务结束时间<input type="text" name="enddate" /></td>
<td>任务结束时间<input type="password" name="mima" /></td>
<td><input type="submit" value="添加" /></td>
</tr>
</table>
</form>
</body>
</html>