Commits

Anonymous committed aaa83da

杂物初步完善

Comments (0)

Files changed (6)

 			KCB.aver=sum(nkw)/len(nkw)
 			KCB.max=max([k for k in nkw])
 			KCB.min=min([k for k in nkw])
-			KCB.ip =remote_addr
+			KCB.ip =str(os.environ['REMOTE_ADDR'])
 			KCB.term=NowTerm.key()
 			KCB.put()
 			self.redirect('/admin')

tpl/addbingo.html

-<html>
-<head>
-
-<meta http-equiv="content-type" content="text/html; charset=UTF-8">
-
-<style>
-*{margin:0; padding:0;}
-body{
-	font:1em/1.625 Georgia, "Times New Roman", Times, serif;
-	color: #066;
-	background:#FFF;
-	margin:0;
-	padding:3em 0;
-}
-#wrapper{
-	width: 980px;
-	margin: 0 auto;
-}
-h1{
-	font-family:"LiHei","LiHei Pro Medium", "Microsoft YaHei", "Microsoft JhengHei","STHeiti", Arial, Helvetica, sans-serif;
-	font-weight:bold;
-	font-size:4em;
-	line-height:1;
-	text-align:center;
-	color:#003;
-	margin-bottom:.5em;
-	letter-spacing: .2em;
-	-moz-text-shadow: 0 .08em .04em rgba(0,0,0,.2);
-	-webkit-text-shadow: 0 .04em .08em rgba(0,0,0,.2);
-	-o-text-shadow: 0 .04em .08em rgba(0,0,0,.2);
-	text-shadow: 0 .08em .04em rgba(0,0,0,.2);
-}
-h2{
-	font-size:2em;
-	font-weight:normal;
-	line-height:1.625;
-	margin-bottom:0.8125em;
-	text-align:center;
-	color:#630;
-	text-transform:uppercase;
-	-moz-text-shadow: 0 0px 5px rgba(0,0,0,.3);
-	-webkit-text-shadow: 0 0px 5px rgba(0,0,0,.3);
-	-o-text-shadow: 0 0px 5px rgba(0,0,0,.3);
-	text-shadow: 0 0px 5px rgba(0,0,0,.3);
-}
-h3{
-	font-size:1em;
-	font-weight:normal;
-	line-height:1.625;
-	margin-bottom:0.8125em;
-	text-align:center;
-	color:#630;
-	text-transform:uppercase;
-	-moz-text-shadow: 0 0px 5px rgba(0,0,0,.3);
-	-webkit-text-shadow: 0 0px 5px rgba(0,0,0,.3);
-	-o-text-shadow: 0 0px 5px rgba(0,0,0,.3);
-	text-shadow: 0 0px 5px rgba(0,0,0,.3);
-}
-
-</style>
-</head>
-
-  <body>
-  {{temp}}
-   {% include 'header.html' %}
-  <br /> <h1><font color="#F20C00">当前课程</h1>
-    {% for KCB in NowKCB %}
-
-	  <h2>{{ KCB.user }}-{{ KCB.url }}|||{{ KCB.public }}|||{{ KCB.place}}</h2>
-
-	<hr />
-    {% endfor %}
-
-<br /> <h1><font color="#088A08">今日课程</h1>
-    {% for KCB in TodayKCB %}
-	  <h2>{{ KCB.day }}-{{ KCB.time }}|||{{ KCB.name }}|||{{ KCB.place}}</h2>
-	  <hr />
-    {% endfor %}
-<br /> <h1>明日课程</h1>
-    {% for KCB in TomorrowKCB %}
-
-	  <h2>{{ KCB.day }}-{{ KCB.time }}|||{{ KCB.name }}|||{{ KCB.place}}</h2>
-
-	<hr />
-    {% endfor %}
-<h3>conact me : weakdancer-at-gmail-dot-com</h3>
-  </body>
-</html>
 
 <html>
 <head>
-<title>后台</title>
+<title>后台--mycubemark--在线魔方成绩</title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf8">
 <link href="/static/main.css" rel="stylesheet" type="text/css" media="all" />
 
 }
 </script>
 <div id="header">
-<h3>你的短链接:<br /><a href="/{{URL}}">kb.gongda.tk/{{URL}}</a><br /><a href="/{{URL}}">ke-biao.appspot.com/{{URL}}</a></h3>
+<h3>你的短链接:<br /><a href="/{{URL}}">mycubemark.appspot.com/{{URL}}</a></h3>
 </div>
 
 
 
 	<fieldset>
 
-	<legend>↓修改你的shorturl↓</legend>
+	<legend>↓修改你的用户名↓</legend>
 
 
 	<div>	<input type="text" name="url" /></div>
 <head>
 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
 <link href="../static/main.css" rel="stylesheet" type="text/css" media="all" />
-<title>Ke-Biao</title>
+<title>error--mycubemark--在线魔方成绩</title>
 </head>
     {% include 'header.html' %}
-  
+
   <body>
 <div style="text-align:center;">{{errormsg}}
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <html>
  <head>
+
   <title>
-   填写初始信息
+ 填写初始信息--mycubemark--在线魔方成绩
   </title>
   <meta http-equiv="content-type" content="text/html; charset=utf-8" />
   <link href="../static/main.css" rel="stylesheet" type="text/css" media="all" />
+      {% include 'seo.html' %}
  </head>
  <body>
   <div id="signup">
      <br />
      您的姓名:
      <input type="text" name="name" />
+	 【有效字符:任意】(以后不可修改)
      <br />
-     http://kb.gongda.tk/
+  您的用户名:
      <input type="text" name="url" />
-     <-在此输入你想要的短连接(shorturl)[有效字符:“a-z”(大小写不敏感)“0-9”以及“-”,和“_”,不含引号】
-     <h4>
-      比如你的短链接是“xxx”,那么你就可以直接通过 kb.gongda.tk/xxx 或 ke-biao.appspot.com/xxx 快速访问到你的课表。
-     </h4>
-     <h4>
-      一般情况下http://是不用输的
-     </h4>
+     【有效字符:“a-z”(大小写不敏感)“0-9”以及“-”,和“_”,不含引号】(以后可以修改)
+
      <br />
      <br />
      <br />
      <input type="radio" checked="checked" name="public" value="1" />
-     公开 所有知道你的shorturl的人均可访问到你的成绩
+     公开 所有人都可通过mycubemark.appspot.com/(你的用户名 )访问到你的成绩
      <br />
      <input type="radio" name="public" value="0" />
-     不公开 只有你自己登录后才可访问到你的成绩
+     不公开 只有你自己登录后才可访问到你的成绩
      <p>
       <input type="Submit" value="提交" />
      </p>

tpl/signup.html.bak

-
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-
-<html>
-<head>
-<title>填写初始信息</title>
-<meta http-equiv="content-type" content="text/html; charset=UTF-8">
-<link href="/static/main.css" rel="stylesheet" type="text/css" media="all" />
-</head>
-
-  <body>
-
-
-
-  <div id='signup'>
-
- <fieldset>
-
-	<legend>↓填写初始信息↓</legend>
-      <form action="/signup/done" method="post"><br />
-      您的姓名:<input type="text" name="name" /><br />
-	 http://kb.gongda.tk/<input type="text" name="url" /><-在此输入你想要的短连接(shorturl)[有效字符:“a-z”(大小写不敏感)“0-9”以及“-”,和“_”,不含引号】
-	<h4>比如你的短链接是“xxx”,那么你就可以直接通过 kb.gongda.tk/xxx 或 ke-biao.appspot.com/xxx 快速访问到你的课表。
-	</h4>
-	<h4>一般情况下http://是不用输的</h4>
-	<br />
-	<br />
-	<br />
-<input type="radio" name="public" value=True  /> 公开 (所有知道你的shorturl的人均可访问到你的课程)
-<br />
-<input type="radio" name="public" value=False /> 不公开 (只有你自己登录后才可访问到你的课程)
-	<br />
-
-<p><input type="Submit" value="提交"  /></p>
-		</fieldset>
-
-    </form>
-
-
-   {% include 'footer.html' %}
-
-	  </body>
-</html>