<?php 
require_once '../../Config.php';
if (intval ( BLL_Admin::isLogin () ) === 0) {
	header ( 'Location:../index.html' );
	die();
}
?>
<!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>
<script type="text/javascript" src="ThisJs.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="<?php COM_OftenFunction::getListPageUrl ( "FloatList", "Float_List.php" ); ?>">【返回】</a></th>
  </tr>
</table>
<form name="theForm" method="post" action="TheAction.php" onsubmit="return ckTheForm(this);">
  <input type="hidden" name="action" value="add" />
  <table border="0" cellpadding="0" cellspacing="1" class="formTable">
    <tr>
      <th width="10%">标题：</th>
      <td width="90%"><input type="text" name="title_txt" value="" size="40" /></td>
    </tr>
    <tr>
      <th>类型：</th>
      <td>
      	<select name="type_int" id="type_int">
      		<?php
				$dataList = BLL_Float::getSortList ();
				for($i = 0; $i < count ( $dataList ); $i ++) {
					echo "<option value='{$dataList[$i]['id']}'>{$dataList[$i]['sortName']}</option>\r\n";
				}
      		?>
      	</select>
      </td>
    </tr>
    <tr>
      <th>代码：</th>
      <td><input type="text" name="code_txt" value="" size="40" /></td>
    </tr>
    <tr>
      <th>&nbsp;</th>
      <td>
        <input type="submit" value=" 提 交 " class='btn' />
        &nbsp;&nbsp;
        <input type="reset" value=" 重 填 " class='btn' />
      </td>
    </tr>
    <tr>
      <th>&nbsp;</th>
      <td style="color:#ff0000">* 类型选择为类别时只需要填写标题<br />*类型选择为电话、邮箱时只需要填写代码</td>
    </tr>
  </table>
</form>
<script type="text/javascript">$(function(){setTableColor('no');});</script>
</body>
</html>