
<!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?1" rel="stylesheet" type="text/css"> 
<script type="text/javascript" src="../../function/plugs/jquery/1.7.2/jquery-1.7.2.min.js"></script>
<script src="../../function/plugs/layer/layer.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 id="tabs0" class="mt-50">
 <ul class="menu0" id="menu0">
  <li onclick="setTab(0,0)" class="hover">模型列表</li>
  <li onclick="setTab(0,1)">创建模型</li>
 </ul>
 <div class="main" id="main0" style="border-top:2px #488fcd solid; clear:both;">
  <ul class="block">
	  <li>
		<div class="ourphp_newslist">
		        <table width="100%" border="0" cellpadding="10" class="ourphp_newslist">
                  <tr>
				  	<td width="5%" bgcolor="#EBEBEB"><div align="center">ID</div></td>
                    <td bgcolor="#EBEBEB">模型类别</td>
					<td bgcolor="#EBEBEB">模型名称</td>
					<td bgcolor="#EBEBEB">模型类型</td>
					<td bgcolor="#EBEBEB">字段名</td>
                    <td bgcolor="#EBEBEB">时间</td>
                    <td width="10%" bgcolor="#EBEBEB">操作</td>
                  </tr>
				  [.section loop=$Modellist name=op.]
                  <tr>
				  	<td><div align="center"><font class="la">[.$Modellist[op].id.]</font></div></td>
					<td>[.$Modellist[op].class.]</td>
                    <td>[.$Modellist[op].name.]</td>
					<td>[.$Modellist[op].type.]</td>
					<td>[.$Modellist[op].field.]</td>
                    <td>[.$Modellist[op].time.]</td>
                    <td><a href="?ourphp_cms=del&id=[.$Modellist[op].id.]" onclick="javascript:return confirm('确认删除吗?')">删除</a></td>
                  </tr>
				  [.sectionelse.]
				  <tr>
                    <td colspan="7">[.$ourphp_access.]</td>
                  </tr>
				  [./section.]
                  <tr>
                    <td colspan="7">[.$ourphppage.]</td>
                  </tr>
                </table>
		</div>
	  </li>
  </ul>
  
  <ul>
	  <li>
	  

		<form id="form1" name="form1" method="POST" action="?ourphp_cms=add" class="registerform">
		<table width="98%" border="0" cellpadding="5" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse;" align="center">
		  <tr>
		  	<td colspan="2" style="color:#ff0000;">模型创建后不可修改</td>
		  </tr>
		  <tr>
		  	<td colspan="2">&nbsp;</td>
		  </tr>
		  <tr>
				<td><div align="right">模型类别</div></td>
				<td>
					<select name="OP_Modelclass" class="win3">
						<option value="article" >(article)文章模型</option>
						<option value="product" >(product)产品模型</option>
						<option value="photo" >(photo)图集模型</option>
						<option value="down" >(down)下载模型</option>
						<option value="job" >(job)招聘模型</option>
						<option value="video" >(video)视频模型</option>
						<option value="column" >(column)栏目模型</option>
					</select>
				</td>
		  </tr>
		  <tr>
				<td><div align="right">模型类型</div></td>
				<td>
					<select name="OP_Modeltype" class="win3">
						<option value="varchar" >varchar(输入框)</option>
						<option value="text" >text(长文本)</option>
						<option value="editor" >editor(编辑器)</option>
					</select>
				</td>
		  </tr>
		  <tr>
		  	<td><div align="right">模型名称</div></td>
			<td><input name="OP_Modelname" type="text" class="win" datatype="*" nullmsg="必填项!"/><font color=red> (*) 汉字</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">字段名</div></td>
			<td><input name="OP_Modelfield" type="text" class="win" datatype="*" nullmsg="必填项!"/><font color=red> (*) 英文字母，不能是汉字和数字</font></td>
		  </tr>
		   <tr>
		   	<td></td>
			<td><input type="submit" name="submit" value="提 交" class="ourphp-anniu"/></td>
		  </tr>
		</table>
		</form>
		
	  </li>
  </ul>
 </div>
</div>
[.include file="ourphp_foot.html".]
</body>
</html>