-
Notifications
You must be signed in to change notification settings - Fork 0
/
add.php
187 lines (185 loc) · 10.9 KB
/
add.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
<?php
session_start();
if(!isset($_SESSION['log']) || $_SESSION['log'] == false) {
echo " <script>location.href='login.php';</script> ";
header("Content-type:text/html;charset=utf-8");
}
?>
<!doctype html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>信息录入</title>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<link rel="stylesheet" href="My97DatePicker/skin/WdatePicker.css">
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/app.css">
<!--[if lt IE 9]>
<script src="lib/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->
</head>
<body>
<header class="g-hd">
<div class="m-nav">
<div class="g-cnt">
<a class="logo f-fl" href="/"><img src="images/logo.png" alt="">ZMNSEM</a>
<ul class="nav-cnt f-fl">
<li class="nav-item">
<h3><a href="index.php">页面排期</a><i></i></h3>
</li>
</ul>
<?php
if (!isset($_SESSION['log']) || $_SESSION['log'] == false) {
echo '<div class="u-user f-fr"><i></i><a href="login.php">登录</a></div>';
} else {
echo '<div class="u-user f-fr"><i><img src="images/user_img.png" alt=""></i>管理员</div>';
}
?>
</div>
</div>
</header>
<div class="g-bd g-cnt">
<div class="m-form m-info">
<form action="action.php?action=add" method="post">
<div class="form-item">
<div class="ant-col-6 item-label"><label>任务类别</label></div>
<div class="ant-col-14 item-input">
<div class="ant-radio-group">
<label class="ant-radio-wrapper"><span class="ant-radio"><input type="radio" class="ant-radio-input" name="category" value="新增专题"><span class="ant-radio-inner"></span></span><span>新增专题</span></label>
<label class="ant-radio-wrapper"><span class="ant-radio"><input type="radio" class="ant-radio-input" name="category" value="改版专题"><span class="ant-radio-inner"></span></span><span>改版专题</span></label>
<label class="ant-radio-wrapper"><span class="ant-radio"><input type="radio" class="ant-radio-input" name="category" value="修改专题"><span class="ant-radio-inner"></span></span><span>修改专题</span></label>
</div>
</div>
</div>
<div class="form-item">
<div class="ant-col-6 item-label"><label>状态</label></div>
<div class="ant-col-14 item-input">
<div class="ant-radio-group">
<label class="ant-radio-wrapper"><span class="ant-radio"><input type="radio" class="ant-radio-input" name="state" value="普通"><span class="ant-radio-inner"></span></span><span>普通</span></label>
<label class="ant-radio-wrapper"><span class="ant-radio"><input type="radio" class="ant-radio-input" name="state" value="紧急"><span class="ant-radio-inner"></span></span><span>紧急</span></label>
<label class="ant-radio-wrapper"><span class="ant-radio"><input type="radio" class="ant-radio-input" name="state" value="延后"><span class="ant-radio-inner"></span></span><span>延后</span></label>
</div>
</div>
</div>
<div class="form-item">
<div class="ant-col-6 item-label"><label>专题 Title</label></div>
<div class="ant-col-14 item-input"><input class="ant-input ant-input-lg" type="text" name="title" placeholder="标题"></div>
</div>
<div class="form-item">
<div class="ant-col-6 item-label"><label>专题目录</label></div>
<div class="ant-col-14 item-input">
<div class="ant-col-6">
<input class="ant-input ant-input-lg directory-input" type="text" name="directory" placeholder="用于页面 url">
</div>
</div>
</div>
<div class="form-item">
<div class="ant-col-6 item-label"><label>页面类型</label></div>
<div class="ant-col-14 item-input">
<div class="ant-radio-group">
<label class="ant-radio-wrapper"><span class="ant-radio"><input type="radio" class="ant-radio-input" name="type" value="PC 端"><span class="ant-radio-inner"></span></span><span>PC 端</span></label>
<label class="ant-radio-wrapper"><span class="ant-radio"><input type="radio" class="ant-radio-input" name="type" value="移动端"><span class="ant-radio-inner"></span></span><span>移动端</span></label>
</div>
</div>
</div>
<div class="form-item">
<div class="ant-col-6 item-label"><label>原型 URL</label></div>
<div class="ant-col-14 item-input"><input class="ant-input ant-input-lg proto-input" type="text" placeholder="http://sem.zmnedu.com 自动生成" disabled><input class="f-dn proto-input" type="hidden" name="proto_url"></div>
</div>
<div class="form-item">
<div class="ant-col-6 item-label"><label>需求提交人</label></div>
<div class="ant-col-14 item-input">
<div class="ant-col-8">
<select class="ant-input ant-input-lg" name="sponsor">
<option value="-">请选择</option>
<option value="宋凯悦">宋凯悦</option>
<option value="卢婷婷">卢婷婷</option>
<option value="侯玉竹">侯玉竹</option>
</select>
</div>
</div>
</div>
<div class="form-item">
<div class="ant-col-6 item-label"><label>时间</label></div>
<div class="ant-col-14 item-input">
<div class="ant-col-10 f-mrn">
<span class="ant-input-preSuffix-wrapper"><input type="text" class="ant-input ant-input-lg" name="time_start" onclick="WdatePicker()" placeholder="开始时间"><span class="ant-input-suffix"><i class="anticon anticon-calendar"></i></span></span>
</div>
<div class="ant-col-10">
<span class="ant-input-preSuffix-wrapper"><input type="text" class="ant-input ant-input-lg" name="time_end" onclick="WdatePicker()" placeholder="预完成时间"><span class="ant-input-suffix"><i class="anticon anticon-calendar"></i></span></span>
</div>
</div>
</div>
<div class="form-item">
<div class="ant-col-6 item-label"><label>实际完成时间</label></div>
<div class="ant-col-14 item-input">
<div class="ant-col-10 f-mrn">
<span class="ant-input-preSuffix-wrapper"><input type="text" class="ant-input ant-input-lg" name="time_finish" onclick="WdatePicker()" placeholder="开始时间"><span class="ant-input-suffix"><i class="anticon anticon-calendar"></i></span></span>
</div>
</div>
</div>
<div class="form-item">
<div class="ant-col-6 item-label"><label>进度</label></div>
<div class="ant-col-14 item-input">
<div class="ant-radio-group">
<label class="ant-radio-wrapper"><span class="ant-radio"><input type="radio" class="ant-radio-input" name="progress" value="设计"><span class="ant-radio-inner"></span></span><span>设计</span></label>
<label class="ant-radio-wrapper"><span class="ant-radio"><input type="radio" class="ant-radio-input" name="progress" value="前端"><span class="ant-radio-inner"></span></span><span>前端</span></label>
<label class="ant-radio-wrapper"><span class="ant-radio"><input type="radio" class="ant-radio-input" name="progress" value="上线"><span class="ant-radio-inner"></span></span><span>上线</span></label>
</div>
</div>
</div>
<div class="form-item">
<div class="ant-col-6 item-label"><label>页面 URL</label></div>
<div class="ant-col-14 item-input"><input class="ant-input ant-input-lg" type="text" name="page_url" placeholder="页面上线地址"></div>
</div>
<div class="form-item">
<div class="ant-col-6 item-label"><label>设计</label></div>
<div class="ant-col-14 item-input">
<div class="ant-col-8">
<select class="ant-input ant-input-lg" name="designer">
<option value="-">请选择</option>
<option value="李亚男">李亚男</option>
<option value="王文静">王文静</option>
</select>
</div>
</div>
</div>
<div class="form-item">
<div class="ant-col-6 item-label"><label>前端</label></div>
<div class="ant-col-14 item-input">
<div class="ant-col-8">
<select class="ant-input ant-input-lg" name="coder">
<option value="-">请选择</option>
<option value="徐振瑜">徐振瑜</option>
<option value="冯月钗">冯月钗</option>
<option value="周飞">周飞</option>
</select>
</div>
</div>
</div>
<div class="form-ft f-tac">
<button type="submit" class="u-btn u-btn-primary u-btn-lg submit"><span>确定</span></button>
<button type="reset" class="u-btn u-btn-lg"><span>重置</span></button>
</div>
</form>
</div>
</div>
<footer class="g-ft">
<div class="g-cnt">
<div class="f-fl">©2017 ZmnSEM 体验技术部出品</div>
<div class="f-fr">文档版本:0.0.1</div>
</div>
</footer>
<script src="lib/jquery/1.11.3/jquery.min.js"></script>
<script src="lib/superslide/jquery.SuperSlide.2.1.2.js"></script>
<script src="My97DatePicker/WdatePicker.js"></script>
<script src="js/app.js"></script>
<script>
$(".directory-input").change(function() {
$(".proto-input").val("http://sem.test.zmnedu.com/proto/" + $(this).val());
});
</script>
</body>
</html>