<?php 
require_once '../../Config.php';
if (intval ( BLL_Admin::isLogin () ) === 0) {
	header ( 'Location:../index.html' );
	die();
}
COM_OftenFunction::setListPageUrl ( "FloatList" );
?>
<!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>后台管理系统</title>
<link rel="stylesheet" type="text/css" href="../Css/RightFrm.css" />
<script type="text/javascript" src="../jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../Comm.js"></script>
</head>
<body>
<table  border="0" cellpadding="0" cellspacing="1" class="headTable">
  <tr>
    <th width="80%">浮动列表</th>
    <th width="20%" class="links"><a href="Float_Add.php">【新增】</a></th>
  </tr>
</table>
<table  border="0" cellpadding="0" cellspacing="1" class="listTable">
  <tr>
    <th width="3%">&nbsp;</th>
    <th width="10%">类别</th>
    <th width="22%">标题</th>
    <th width="25%">代码</th>
    <th width="10%">上移</th>
    <th width="10%">下移</th>
    <th width="20%">操作</th>
  </tr>
  <?php
	$sortArr = BLL_Float::getSortList ();
	$Pd = new COM_PagingDevice ();
	$Pd->_setDataList ( BLL_Float::getAllList ( '*', $Pd->_getLimitArr () ) );
	$dataList = BLL_Float::getPreNext ( $Pd->_getDataList () );
	for($i = 0; $i < count ( $dataList ); $i ++) {
		$row = $dataList [$i];
		echo "<tr>\r\n";
		echo "<td class=\"center\"><input type=\"checkbox\" name=\"theId\" value=\"$row[id]\"></td>\r\n";
		echo "<td class='center'>{$sortArr[$row['type']]['sortName']}</td>\r\n";
		echo "<td>$row[title]</td>\r\n";
		echo "<td>$row[code]</td>\r\n";
		echo "<td class='center move'>" . COM_OftenFunction::getMove ( $row ['preStr'], '↑', 'FloatMove' ) . "</td>\r\n";
		echo "<td class='center move'>" . COM_OftenFunction::getMove ( $row ['nextStr'], '↓', 'FloatMove' ) . "</td>\r\n";
		echo "<td class=\"center\"><a href=\"Float_Edit.php?theId=$row[id]\">【修改】</a></td>\r\n";
		echo "</tr>\r\n";
	}
  ?>
  <tr>
  	<td colspan='7' class="pageInfo">
  	<?php echo COM_OftenFunction::managerPageInfo ( $Pd->_getPageInfo () );?>
  	</td>
  </tr>
</table>
<table  border=0 cellpadding=0 cellspacing=1  class="cmdTable">
  <tr>
    <th>
	<span onClick="selectAll('theId');">全选</span>&nbsp;&nbsp;&nbsp;&nbsp;
	<span onClick="unSelectAll('theId');">全不选</span>&nbsp;&nbsp;&nbsp;&nbsp;
	<span onClick="antiSelectAll('theId');">反选</span>&nbsp;&nbsp;&nbsp;&nbsp;
	<span onClick="handleSelect('theId','TheAction.php?action=delete','hideframe');">删除</span>
	</th>
  </tr>
</table>
<iframe name="hideframe" width="0" height="0"></iframe>
<script type="text/javascript">$(function(){setTableColor();});</script>
</body>
</html>