
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[.$ourphp_adminfont.admintitle.]</title>
<link href="templates/images/ourphp_login.css" rel="stylesheet" type="text/css"> 
<script type="text/javascript" src="../../function/plugs/jquery/1.7.2/jquery-1.7.2.min.js"></script>
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(m,n){
 var tli=document.getElementById("menu"+m).getElementsByTagName("li");
 var mli=document.getElementById("main"+m).getElementsByTagName("ul");
 for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";
 }
}
//-->
</script>

</head>

<body>
<div style="height:50px;"></div>
<div style="clear:both"></div>
<div id="tabs0">
 <ul class="menu0" id="menu0">
  <li onclick="setTab(0,0)" class="hover">积分领取管理</li>
 </ul>
 <div class="main" id="main0" style="border-top:2px #488fcd solid; clear:both;">
  <ul class="block">
	  <li>
		<div class="ourphp_newslist">
				
				[.if $smarty.get.opcms == 'ourphp'.]
		        <table width="100%" border="0" cellpadding="10" class="ourphp_newslist">
                  <tr>
				 	<td width="5%" bgcolor="#EBEBEB"><div align="center">批量?</div></td>
				  	<td width="3%" bgcolor="#EBEBEB"><div align="center">ID</div></td>
                    <td width="20%" bgcolor="#EBEBEB">积分名称</td>
					<td width="10%" bgcolor="#EBEBEB">可领积分</td>
					<td width="15%" bgcolor="#EBEBEB">领取账号</td>
					<td width="10%" bgcolor="#EBEBEB">领取状态</td>
					<td width="14%" bgcolor="#EBEBEB">领取时间</td>
                    <td width="14%" bgcolor="#EBEBEB">产生时间</td>
                    <td width="9%" bgcolor="#EBEBEB">操作</td>
                  </tr>
				  [.section loop=$integral name=op.]
                  <tr>
				 	 <td><div align="center"><input type="checkbox" name="op_b[]" value="[.$integral[op].id.]" />
				 	 </div></td>
				  	<td><div align="center"><font style="background:#009933; color:#FFFFFF; padding:2px; text-align:center;">[.$integral[op].id.]</font></div></td>
                    <td>[.$integral[op].title.]</td>
					<td>[.$integral[op].integral.]</td>
					<td>[.$integral[op].useremail.]</td>
					<td>[.if $integral[op].confirm == 0.]未领取[.else.]已领取[./if.]</td>
					<td>[.$integral[op].lqtime.]</td>
                    <td>[.$integral[op].time.]</td>
                    <td><a href="?opcms=edit&id=[.$integral[op].id.]&page=[.$page.]">编辑</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="?ourphp_cms=del&id=[.$integral[op].id.]" onclick="javascript:return confirm('确认删除吗?')">删除</a></td>
                  </tr>
				  [.sectionelse.]
				  <tr>
                    <td colspan="9">[.$ourphp_access.]</td>
                  </tr>
				  [./section.]
                  <tr>
                    <td colspan="9">[.$ourphppage.]</td>
                  </tr>
                </table>
				[.elseif $smarty.get.opcms == 'edit'.]
		        <form id="form1" name="form1" method="post" action="?ourphp_cms=edit&id=[.$smarty.get.id.]&page=[.$smarty.get.page.]" class="registerform">
						<table width="98%" border="0" cellpadding="5" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse; margin-top:20px;" align="center">
						  <tr>
							<td><div align="right">积分名称</div></td>
							<td><input name="title" type="text" class="win" value="[.$ourphp_integral.OP_Iname.]" [.$ourphp_bgcolor.] datatype="*" nullmsg="*是必填项!"/><font color=red> (*)</font></td>
						  </tr>
						  <tr>
							<td><div align="right">可领积分</div></td>
							<td><input name="integral" type="text" class="win" value="[.$ourphp_integral.OP_Iintegral.]" [.$ourphp_bgcolor.] atatype="*" nullmsg="*是必填项!"/><font color=red> (*)</font></td>
						  </tr>
						  <tr>
							<td><div align="right">积分状态</div></td>
							<td><input name="confirm" type="radio" value="1" [.if $ourphp_integral.OP_Iconfirm == 1.]checked="checked"[./if.] />
							  已领取
						        <input type="radio" name="confirm" value="0" [.if $ourphp_integral.OP_Iconfirm == 1.]checked="checked"[./if.] />
					        未领取</td>
						  </tr>
						   <tr>
							<td></td>
							<td><input type="submit" name="submit" value="提 交" class="ourphp-anniu"/></td>
						  </tr>
						</table>
                </form>
				[./if.]
        </div>
	  </li>
  </ul>
 </div>
</div>
[.include file="ourphp_foot.html".]
</body>
</html>