forked from livovil/pythonweb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
397 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="Generator" content="EditPlus®"> | ||
<meta name="Author" content=""> | ||
<meta name="Keywords" content=""> | ||
<meta name="Description" content=""> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<h1>增加管理员</h1> | ||
<form action="" method=""> | ||
<table> | ||
<tr> | ||
<td>姓名 :</td> | ||
<td><input type="text" name="uname" maxlength="10"></td> | ||
<td>十个字符以内</td> | ||
</tr> | ||
<tr> | ||
<td>密码 :</td> | ||
<td><input type="password" name="upwd" maxlength="10"></td> | ||
<td>十个字符以内</td> | ||
</tr> | ||
<tr> | ||
<td>性别 :</td> | ||
<td> | ||
<input type="radio" name="gender" value="female">女士 | ||
<input type="radio" name="gender" value="male">男士 | ||
</td> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<td>角色 :</td> | ||
<td> | ||
<input type="checkbox" name="admit" value="superadmit">超级管理员 | ||
<br> | ||
<input type="checkbox" name="admit" value="billadmit">账单管理员 | ||
</td> | ||
<td>至少选择一个角色</td> | ||
</tr> | ||
<tr> | ||
<td>头像 :</td> | ||
<td><input type="file" name="uimg"></td> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<td></td> | ||
<td> | ||
<input type="submit"> | ||
<!-- value="保存" value="重置" --> | ||
<input type="reset"> | ||
</td> | ||
<td></td> | ||
</tr> | ||
</table> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="Generator" content="EditPlus®"> | ||
<meta name="Author" content=""> | ||
<meta name="Keywords" content=""> | ||
<meta name="Description" content=""> | ||
<title>Document</title> | ||
<style type="text/css"> | ||
table{ | ||
width:990px; | ||
margin:0 auto; | ||
font-size:12px; | ||
color:#9c9a9c; | ||
border-bottom:1px solid #E4E4E4; | ||
} | ||
.first-row{ | ||
font-weight:bold; | ||
color:#666; | ||
border-bottom:1px solid #E4E4E4; | ||
|
||
} | ||
/* .first-row>td{*/ | ||
/* text-align:left;*/ | ||
/* }*/ | ||
.col1{ | ||
width:610px; | ||
text-align:left; | ||
padding-left:10px; | ||
} | ||
a{ | ||
text-decoration:none; | ||
color:#005aa0; | ||
} | ||
td{ | ||
border-bottom:1px dashed #E4E4E4; | ||
padding:5px 0px; | ||
text-align:center; | ||
} | ||
.fcol{ | ||
padding-left:0; | ||
} | ||
|
||
|
||
|
||
</style> | ||
</head> | ||
<body> | ||
<table> | ||
<tr class="first-row"> | ||
<td class="col1 fcol">主题</td> | ||
<td>回复/浏览</td> | ||
<td>作者</td> | ||
<td>时间</td> | ||
</tr> | ||
<tr> | ||
<td class="col1"><a href="#">银灰色的,很酷</a></td> | ||
<td>0/0</td> | ||
<td><a href="">2001年冬天</a></td> | ||
<td>2001-11-11 11:11:11</td> | ||
</tr> | ||
<tr> | ||
<td class="col1"><a href="#">银灰色的,很酷</a></td> | ||
<td>0/0</td> | ||
<td><a href="">2001年冬天</a></td> | ||
<td>2001-11-11 11:11:11</td> | ||
</tr> | ||
<tr> | ||
<td class="col1"><a href="#">银灰色的,很酷</a></td> | ||
<td>0/0</td> | ||
<td><a href="">2001年冬天</a></td> | ||
<td>2001-11-11 11:11:11</td> | ||
</tr> | ||
<tr> | ||
<td class="col1"><a href="#">银灰色的,很酷</a></td> | ||
<td>0/0</td> | ||
<td><a href="">2001年冬天</a></td> | ||
<td>2001-11-11 11:11:11</td> | ||
</tr> | ||
|
||
|
||
|
||
|
||
</table> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
/*1. 清除浏览器默认样式*/ | ||
body,h2,p{ | ||
margin:0; | ||
} | ||
/*2. 从外向里添加样式*/ | ||
#container{ | ||
width:990px; | ||
margin:0 auto; | ||
} | ||
/*3. 标题样式*/ | ||
#container h2{ | ||
font-weight:normal; | ||
color:#b2b2b2; | ||
border-bottom:1px solid #d3d3d3; | ||
padding-bottom:20px; | ||
margin-bottom:35px; | ||
padding-top:50px; | ||
} | ||
|
||
/*4. 左右两列布局*/ | ||
#regist>p{ | ||
float:left; | ||
position:relative; | ||
} | ||
#regist>p>a{ | ||
position:absolute; | ||
width:145px; | ||
height:44px; | ||
border:1px solid #85b55c; | ||
text-align:center; | ||
line-height:44px; | ||
border-radius:5px; | ||
text-decoration:none; | ||
color:#85b55c; | ||
bottom:20px; | ||
left:175px; | ||
} | ||
#regist>form{ | ||
float:right; | ||
margin-right:45px; | ||
margin-top:70px; | ||
} | ||
.form-line{ | ||
margin-top:20px; | ||
/*子元素都浮动,父元素高度为0,外边距显示出现问题*/ | ||
height:40px; | ||
} | ||
.form-line>p{ | ||
color:#A7A9A9; | ||
float:left; | ||
width:64px; | ||
height:40px; | ||
text-align:right; | ||
line-height:40px; | ||
margin-right:40px; | ||
|
||
} | ||
.form-line>div{ | ||
float:left; | ||
width:300px; | ||
} | ||
.form-control{ | ||
width:288px; | ||
height:40px; | ||
box-sizing:border-box; | ||
border:1px solid #e3e3e3; | ||
outline:none; | ||
padding:0 12px; | ||
font-size:16px; | ||
} | ||
.forget-pwd{ | ||
float:right; | ||
} | ||
.forget-pwd>a{ | ||
color:#A7A9A9; | ||
} | ||
.isSave{ | ||
width:16px; | ||
height:16px; | ||
vertical-align:middle; | ||
} | ||
.form-line label{ | ||
color:#A7A9A9; | ||
} | ||
.btn{ | ||
width:145px; | ||
height:38px; | ||
border:1px solid #64A131; | ||
border-radius:5px; | ||
background:#64A131; | ||
color:#fff; | ||
font-size:16px; | ||
margin-right:10px; | ||
} | ||
.registBtn{ | ||
background:#fff; | ||
color:#64A131; | ||
margin-right:0; | ||
} | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="Generator" content="EditPlus®"> | ||
<meta name="Author" content=""> | ||
<meta name="Keywords" content=""> | ||
<meta name="Description" content=""> | ||
<title>Document</title> | ||
<link rel="stylesheet" href="00-regist.css"> | ||
</head> | ||
<body> | ||
<div id="container" class=""> | ||
<!-- 页面分上下两部分 --> | ||
<h2>会员登录</h2> | ||
<div id="regist" class=""> | ||
<!-- 左列结构 --> | ||
<p> | ||
<img src="huiyuan.jpg" width="" height="" border="0" alt=""> | ||
<a href="">会员注册></a> | ||
</p> | ||
<!-- 右列结构 --> | ||
<form method="post" action="login"> | ||
<!-- 第一行 --> | ||
<div id="" class="form-line"> | ||
<p>手机号</p> | ||
<div id="" class=""> | ||
<input class="form-control" type="text" name="uphone"> | ||
</div> | ||
</div> | ||
<div id="" class="form-line"> | ||
<p>密码</p> | ||
<div id="" class=""> | ||
<input class="form-control type="password" name="upwd" placeholder="请输入6-20位的数字字符" maxlength="20"> | ||
</div> | ||
</div> | ||
<div id="" class="form-line"> | ||
<p></p> | ||
<div id="" class=""> | ||
<p class="forget-pwd"> | ||
<a href="">忘记密码</a> | ||
<a href="">快捷登录</a> | ||
</p> | ||
<input type="checkbox" name="isSave" class="isSave" id="isSave"><label for="isSave">记住密码</label> | ||
</div> | ||
</div> | ||
<div id="" class="form-line"> | ||
<p></p> | ||
<div id="" class=""> | ||
<input class="loginBtn btn" type="submit" value="登录"><input class="registBtn btn" type="button" value="会员注册"> | ||
</div> | ||
</div> | ||
</form> | ||
<div id="" class="clear" style="clear:both;"> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title></title> | ||
<script type="text/javascript"> | ||
var date1 = new Date(); | ||
var y = date1.getFullYear(); | ||
var m = date1.getMonth(); | ||
var d = date1.getDate(); | ||
var h = date1.getHours(); | ||
var m1 = date1.getMinutes(); | ||
var s = date1.getSeconds(); | ||
var x = date1.getDay(); | ||
switch(x){ | ||
case 0 : | ||
x = '星期日'; | ||
break | ||
case 1 : | ||
x = '星期一'; | ||
break; | ||
case 2 : | ||
x = '星期二'; | ||
break; | ||
case 3 : | ||
x = '星期三'; | ||
break; | ||
case 4 : | ||
x = '星期四'; | ||
break; | ||
case 5 : | ||
x = '星期五'; | ||
break; | ||
case 6 : | ||
x = '星期六'; | ||
}; | ||
console.log(y+'年'+m+'月'+d+'日'+s+'时'+m1+'分'+s+'秒'+x); | ||
</script> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.