<?php

 require ('../e/class/connect.php');
 require ('../e/class/db_sql.php');
 require ('../e/class/t_functions.php');
  $link=db_connect();
 $empire=new mysqlquery; 
 $page=(int)$_GET[page];
 $line=20;
 $offset=$page*$line;
 if(!$page){$page=0;}
 ?>
<!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=gb2312" />
<title>留言本附加组件-信息列表</title>
<link type="text/css" rel="stylesheet" href="skin/css/min.css" />
<link type="text/css" rel="stylesheet" href="skin/css/code.css" />
<script type="text/javascript" language="javascript" src="skin/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" language="javascript" src="skin/js/min.js"></script>

</head>
<body>
<div class="hvalign" style="width:720px">
  <div class="hvalign-cnt">
    <div class="hvalign-cnt-inner">
      <div class="well"> <span class="pull-left">当前位置:扩展插件 > 留言信息列表</span> </div>
      <div class="clear"></div>
      <div>
      
        <table class="table table-bordered table-striped">
         <thead>
         	<tr>
         		<td width="15%">ID</td> 
                <td width="20%">用户</td>
                <td width="45%">简介</td>
                <td width="20%">操作</td>         
        	</tr>
         </thead>   
          <tbody>
<?php
$query="select * from {$dbtbpre}movie_gbook  order by id desc limit $offset,$line";

$q=$empire->query($query);
$totalquery="select count(*) as total from {$dbtbpre}movie_gbook ";
$num=$empire->gettotal($totalquery);
$search="&pa33ge=";
while($r=$empire->fetch($q)){
	$id=$r[id];
	$username=$r[username];
	$smalltext=esub($r[text],30);
	$edit='<a href="editgbook.php?action=edit&id='.$id.'" target="_self">修改</a> | <a href="gbook.php?action=del&id='.$id.'" target="_self">删除</a>';
	
?>

         	<tr>
         		<td width="15%"><?=$id?></td> 
                <td width="20%"><?=$username?></td>
                <td width="45%"><?=$smalltext?></td>
                <td width="20%"><?=$edit?></td>         
        	</tr>
<?php
}

?>
          </tbody>
        </table>
        
        <div><?=diy_listpage($num,$line,$page,$search='')?></div>
        
        
        <p align="center" style="color:#F30"></p>
      </div>
      <div class="clear"></div>
      <div align="center" class="well"><a  data-toggle="modal" href="#myModal"  data-keyboard="true" data-backdrop="true" >关于我们</a> </div>
    </div>
  </div>
</div>
<div class="modal hide fade" id="myModal">
  <div class="modal-header"> <a class="close" data-dismiss="modal">×</a>
    <h3>关于我们</h3>
  </div>
  <div class="modal-body">
    <p>牡丹江市科繁科技有限公司创始于2011年，从事于商务软件、互联网、系统 集成、工业自动化控制等信息领域。</p>
    <p>地址：黑龙江省牡丹江市西安区太平路，祥合大厦1612室。</p>
    <p>官方网址:<a href="http://www.92game.net/" target="_blank">http://www.92game.net/</a></p>
  </div>
  <div class="modal-footer"> <a href="#" class="btn btn-primary"  data-dismiss="modal">关闭</a> </div>
</div>
<script type="text/javascript" language="javascript" src="skin/js/code.js"></script>
<script>
    $('.table').tooltip({
      selector: "a[rel=tooltip]"
    })
    window.prettyPrint && prettyPrint()
	
</script>

</body>
</html>
        
 
 
 
 
 