Source

wodewish / tpl / admin.html


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>后台--wodewish--我的愿望列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<link href="/static/main.css" rel="stylesheet" type="text/css" media="all" />

    {% include 'seo.html' %}

</head>

  <body>
     {% include 'header.html' %}
<script language=javascript>

//转载请保留出处 http://www.dwww.cn
function unselectall(){
if(document.myform.chkAll.checked){
document.myform.chkAll.checked = document.myform.chkAll.checked&0;
}
}
function CheckAll(form){
for (var i=0;i<form.elements.length;i++){
var e = form.elements[i];
if (e.Name != 'chkAll'&&e.disabled==false)
e.checked = form.chkAll.checked;
}
}
</script>
<div id="header">
<h3>你的短链接:<br /><a href="/{{URL}}">wodewish.appspot.com/{{URL}}</a></h3>
 分享到:
 <a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http://wodewish.appspot.com/{{URL}}&title={{NAME}}的愿望--wodewish--我的愿望列表"  target="_blank">QQ空间</a>
  <a href="http://share.renren.com/share/buttonshare.do?link=http://wodewish.appspot.com/{{URL}}&title={{NAME}}的愿望--wodewish--我的愿望列表" target="_blank">人人网</a>
   <a href="http://www.douban.com/recommend/?url=http://wodewish.appspot.com/{{URL}}&title={{NAME}}的愿望--wodewish--我的愿望列表" target="_blank">豆瓣</a>
    <a href="http://v.t.sina.com.cn/share/share.php?url=http://wodewish.appspot.com/{{URL}}&title={{NAME}}的愿望--wodewish--我的愿望列表&appkey=79003238&type=3&ralateUid=1763833817" target="_blank">新浪微博</a>
</div>


<div >
<fieldset>

	<legend>↓添加愿望↓(每行一个)</legend>


<form action="/admin/add" method="post">


 <div><textarea name="additem" rows="10" cols="50"></textarea></div>


<input type="Submit" id="submit_btn" value="提交" >
		</fieldset>
	</form>
	<br />

	</div>





	<div >
<fieldset>

	<legend>↓编辑愿望↓</legend>




{% for KCB in KCBs %}

<form action="/admin/com" method="post">
<input type="hidden" name='termkey' value={{KCB.key}}   />
<input type="Submit"  value="已完成"  />
</form>
<form action="/admin/set" method="post">
<input type="hidden" name='termkey' value={{KCB.key}}   />
<input type="Submit"  value="未完成"  />
</form>


<form action="/admin/termname" method="post">
修改愿望名称:
<input type="text"  name='termname' value="{{KCB.name}}"   />
<input type="hidden" name='termkey' value={{KCB.key}}   />
<input type="Submit"  value="提交"  />
</form>

<form action="/admin/del" method="post">
<input type="hidden" name='delitem' value={{KCB.key}}   />
<input type="Submit"  value="删除"  />
</form>

创建于{{ KCB.settime|date:"Y年m月d日 H时i分"}}
||
完成于{{ KCB.comtime|date:"Y年m月d日 H时i分"}}

<br />

{% endfor %}


<p><input type="Submit" id="submit_btn" value="提交" class="btn blue" /></p>
		</fieldset>
	</form>
	<br />
	<br />
	</div>


<form action="/admin/url" method="post">

	<fieldset>

	<legend>↓修改你的用户名↓</legend>


	<div>	<input type="text" name="url" /></div>

	 <input type="Submit"  value="提交"  />

	</fieldset>

	</form>
		<br />
	<br />
<form action="/admin/public" method="post">

	<fieldset>

	<legend>↓修改你的公开状态↓</legend>


<input type="radio" name="public" value=1  /> 公开 (所有知道你的用户名的人均可访问到你的愿望)
<br />
<input type="radio" name="public" value=0 /> 不公开 (只有你自己登录后才可访问到你的愿望)
	<br />

<p><input type="Submit" value="提交"  /></p>

	</fieldset>

	</form>
		<br />
	<br />



      <form action="/admin/deep/addterm" method="post">
	<fieldset>

	<legend>↓添加愿望列表↓</legend>

	<div>	<input type="text" name="termname" />愿望列表名称(比如:我2011年想买的东西)【提交后会自动把这个列表设为当前列表】</div>



	 <input type="Submit"  value="提交"  />

	</fieldset>

	</form>

<div >
<fieldset>

	<legend>↓编辑愿望列表↓</legend>




{% for TERM in TERMS %}
<form action="/admin/term" method="post">
<input type="hidden" name="nowterm" value= {{TERM.key}} >
<input type="Submit" value="置为当前"  />
</form>
<form action="/admin/termname" method="post">

<input type="text"  name='termname' value='{{TERM.name}}'  />
<input type="hidden" name='termkey' value={{TERM.key}}   />
<input type="Submit"  value="改名"  />
</form>

<form action="/admin/delterm" method="post">
<input type="hidden" name='delitem' value={{TERM.key}}   />
<input type="Submit"  value="删除"  />
</form>

<form action="/admin/termweight" method="post">
<input type="text"  name='termweight' value={{TERM.weight}}   />
<input type="hidden" name='termkey' value={{TERM.key}}   />
<input type="Submit"  value="设置重量"  />(整数)(重的在展示页面会下沉)设为0时不显示
</form>


<br />
    {% endfor %}


		</fieldset>
	</form>

	</div>

   {% include 'footer.html' %}

	  </body>
</html>