<!--#include file="Mobel_Fun.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link href="<%=sitepath%>css/bootstrap.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/font-awesome.min.css" rel="stylesheet">
<link href="<%=sitepath%>plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/animate.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/style.min.css" rel="stylesheet">
<link href="<%=sitepath&adminPath%>css/adminstyle.css" rel="stylesheet">
<script src="<%=sitepath%>js/jquery.min.js"></script>
<script src="<%=sitepath&adminPath%>js/adminjs.js"></script>
<!--[if lte IE 9]>
<script src="<%=sitepath%>js/respond.min.js"></script>
<script src="<%=sitepath%>js/html5.js"></script>
<![endif]-->
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content">
<div class="ibox float-e-margins">
<div class="row row-lg">
<div class="col-md-6">
							<div class="panel">
								<div class="panel-heading">
									<h3 class="panel-title">栏目模型</h3>
									<div class="panel-aj">
										<button type="button" class="btn-toggle-collapse"><i class="fa fa-chevron-down"></i></button>
										<button type="button" class="btn-remove"><i class="fa fa-times"></i></button>
									</div>
								</div>
<div class="panel-body">
<div class="panel-body no-padding">		
<div class="ibox-content">

<div class="col-sm-12">
          <div class="col-sm-7">
                <button onClick="location.reload()" class="btn btn-primary1" type="button"><i class="fa fa-refresh"></i> 刷新</button>
               <!--<button onClick="closetab()" class="btn" type="button"><i class="fa fa-reply"></i> 关闭</button>-->
               </div>
          <FORM name="" action="" id="sortlist" method="post">            
            <table id="table"
           data-toggle="table"
           data-pagination="true"          
           data-show-toggle="true"
           data-show-columns="true"
           data-id-field="id"       
           data-id-table="advancedTable"
           data-page-size="20"
           data-page-list="[20,50,100]" >
              <thead>
                <tr>
                              
                  <th class="tabletype" data-field="title">模型名称</th>
                  <th class="tabletype" data-field="type" data-sortable="true">模型类型</th>
                   <th class="tabletype" data-field="list_FD">列表文件夹</th>
                  <th class="tablename" data-field="list_TP">列表模板</th>                 
                  <th class="tablename" data-field="Content_TP">内容模板</th>                 
                  <th class="tableonoff" data-field="onoff" >状态</th>
                   <th class="tableorder" data-field="order" data-sortable="true">排序</th>
                  <th class="tableedit" data-field="edit" class="text-right">编辑</th>
                </tr>
              </thead>              
              <%			  
			  sql="select * from [dbpre]Model order by Model_order asc, Model_ID asc"
			 set rs=dbsqlr1(sql)
				do while not rs.eof 		
				echo"<tr>"&vbcrlf& _				
				"<td><input type='text' id='title"&rs("Model_ID")&"' value='"&rs("Model_Name")&"'></td>"&vbcrlf& _	
				"<td><input type='hidden' id='Model_type"&rs("Model_ID")&"' value='"&rs("Model_type")&"'>"&rs("Model_type")&"</td>"&vbcrlf& _
				"<td>"&rs("Model_list_FD")&"</td>"&vbcrlf& _				
				"<td><input type='text' class='title' id='list_TP"&rs("Model_ID")&"' value='"&rs("Model_list_TP")&"'></td>"&vbcrlf& _
				"<td><input type='text' class='title' id='Content_TP"&rs("Model_ID")&"' value='"&rs("Model_Content_TP")&"'></td>"&vbcrlf& _
				"<td><button type='button'  onclick=setcol('Model_OnOff','"&rs("Model_type")&"') class='btn btn-"&rs("Model_OnOff")&"  dim'><i class='fa fa-toggle-on'></i></button></td>"&vbcrlf& _	
				"<td><input type='number' name='SortOrders' class='order'  min='0' max='99' id='order"&rs("Model_ID")&"' value="&rs("Model_order")&"></td>"&vbcrlf& _	
			   	"<td><button type='button' class='btn btn-info dim' onclick=save('"&rs("Model_ID")&"')><i class='fa fa fa-check'></i></button>"&vbcrlf& _
			"</tr>"&vbcrlf  
		
	rs.movenext
	if not rs.eof then result=result&","
	Loop
closers rs
			  
			  %>
            </table>
          </FORM>
        </div>

</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Panel Other -->
</div>
<div id="jieguo"></div>

<script src="<%=sitepath%>js/klorofil-common.js"></script>
<script src="<%=sitepath%>js/bootstrap.min.js"></script> 
<script src="<%=sitepath%>plugins/bootstrap-table/bootstrap-table.min.js"></script> 
<script src="<%=sitepath%>plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script> 
<script src="<%=sitepath%>plugins/layer/layer.min.js"></script>
</body>
</html>
