<!--#include file="gbook_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">
          <a id="delall" href='gbook_fun.asp?act=delall' class="btn btn-danger" type="button"><i class="fa fa-trash"></i> 删除所有未审核</a>
          <button id="remove" class="btn btn-danger" type="button" disabled><i class="fa fa-trash"></i> 删除所选</button>
             <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>         
            <table id="table"
           data-toggle="table"
           data-pagination="true"
           data-search="true"
           data-id-field="id"       
           data-id-table="advancedTable"
           data-page-size="10"
           data-page-list="[10,50,100]" >              
            <thead>
              <tr>
                <th class="tableid"><input id="SelectAll" type="checkbox"></th>
                <th class="tableid" data-field="id" data-sortable="true">ID</th>
                <th class="tabletype" data-field="name"  data-sortable="true">姓名</th>
                <th class="tablename" data-field="title"  data-sortable="true">标题</th>
                <th class="tabletype" data-field="G_time"  data-sortable="true">时间</th>
                <th class="tablename" data-field="tel"  data-sortable="true">手机</th>   
                <th class="tablename" data-field="email"  data-sortable="true">邮箱</th>             
                <th class="tableorder" data-field="G_order" data-sortable="true">排序</th>
                <th class="tablename" data-field="R_content" data-sortable="true">回复内容</th>               
                <th class="tableonoff" data-field="Gonoff" data-sortable="true">审核</th>
                <th class="tableonoff" data-field="Ronoff" data-sortable="true">回复</th>
                <th class="tabletype" data-field="edit"  class="text-right">编辑</th>
              </tr>
               </thead>
              <%
				sql="select * from [dbpre]gbook  order by G_OnOff asc,GID desc"
				Dim rs : set rs=dbsqlr1(sql)
	do while not rs.eof 
	echo "<tr>"&vbcrlf& _
	"<td><input type=checkbox class='checkbox' value="&rs("GID")&"></td>"&vbcrlf& _			
		"<td>"&rs("GID")&"</td>"&vbcrlf& _		
		"<td><input type='text' id='G_Name-"&rs("GID")&"' value='"&rs("G_Name")&"' placeholder='"&rs("G_Name")&"'></td>"&vbcrlf& _
  		"<td><input type='text'  class='title'  id='G_title-"&rs("GID")&"' value='"&rs("G_title")&"'  placeholder='"&rs("G_title")&"'></td>"&vbcrlf& _	
		"<td><input type='text'  id='G_time-"&rs("GID")&"' value='"&rs("G_time")&"' placeholder='"&rs("G_time")&"'></td>"&vbcrlf& _	
		"<td><input type='text'  class='title' id='G_tel-"&rs("GID")&"' value='"&rs("G_tel")&"' placeholder='"&rs("G_tel")&"'></td>"&vbcrlf& _		
		"<td><input type='text'  class='title' id='G_email-"&rs("GID")&"' value='"&rs("G_email")&"' placeholder='"&rs("G_email")&"'></td>"&vbcrlf& _	
		"<td><input type='number' class=order id='G_order-"&rs("GID")&"' value='"&rs("G_order")&"'  placeholder='"&rs("G_order")&"'></td>"&vbcrlf& _	
		"<td><input type='text' class='title' id='R_content-"&rs("GID")&"' placeholder='"&rs("R_content")&"' value='"&rs("R_content")&"'></td>"&vbcrlf& _		
		"<td><em>"&rs("G_OnOff")&"</em><button type='button'  onclick=setgbook('G_onoff','"&rs("GID")&"') class='btn btn-"&rs("G_OnOff")&" dim'><i class='fa fa-toggle-on'></i></button></td>"&vbcrlf
	if isnul(rs("R_content")) then 
	echo "<td><button type='button' class='btn btn-"&rs("R_OnOff")&" dim' onclick=""layer.tips('回复内容未填', $(this))""><i class='fa fa-toggle-on'></i></button></td>"&vbcrlf
	else
	echo "<td><button type='button'  onclick=setgbook('R_onoff','"&rs("GID")&"') class='btn btn-"&rs("R_OnOff")&" dim'><i class='fa fa-toggle-on'></i></button></td>"&vbcrlf
	end if	
	echo" <td><button type='button' class='btn btn-info dim' onclick=opennew('gbook_edit.asp?GID="&rs("GID")&"')><i class='fa fa-pencil'></i></button> <button type='button'  onclick=delgbook('"&rs("GID")&"')  class='btn btn-danger dim'><i class='fa fa-times'></i></button></td>"&vbcrlf& _
			"</tr>"&vbcrlf  
		rs.movenext	
		Loop
		closers rs%>            
            </table>
        </div>

</div>
</div>
</div>
</div>
</div>
</div>
</div>
</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>
