<?php
if (!defined('USING_SYSTEM')) exit;
?>
<!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" />
<link type="text/css" rel="stylesheet" href="admin/images/page.css" />
<script type="text/javascript" src="skins/common/images/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="admin/images/page.js"></script>
<title>Filiant Control Panel</title>
</head>
<body>
<div class="bigTips"<?php echo ($tips=='')?'':' style="display:block;"' ?>><?php echo $tips ?></div>
<form id="mainForm" action="" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th colspan="3">基本信息</th>
  </tr>
  <tr>
    <td class="title" width="150">站点名称</td>
    <td width="400"><input name="siteTitleTxt" type="text" class="textbox" value="<?php echo $_ENV->site->title ?>" /></td>
    <td class="tips">网站的名称，将显示在标题等地方</td>
  </tr>
  <tr>
    <td class="title">备案信息</td>
    <td><input name="siteIcpTxt" type="text" class="textbox" value="<?php echo $_ENV->site->icp ?>" /></td>
    <td class="tips">网站的备案信息，若无请留空</td>
  </tr>
  <tr>
    <td class="title">统计代码</td>
    <td><textarea name="siteStatcodeTxt" class="textbox" style="height:100px;"><?php echo $_ENV->site->statcode ?></textarea></td>
    <td class="tips">网站的备案信息，若无请留空</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th colspan="3">顶级权限</th>
  </tr>
  <tr>
    <td class="title" width="150">站点状态</td>
    <td width="400" class="dropdown">
      <select name="siteOpenTxt">
        <option value="1">开启</option>
        <option value="0">关闭</option>
      </select>
<script type="text/javascript">
$('[name="siteOpenTxt"]').val('<?php echo $_ENV->site->open ? '1' : '0' ?>');
</script>
    </td>
    <td class="tips">关闭站点后将只有创始人可以访问网站</td>
  </tr>
  <tr>
    <td class="title" width="150">关闭说明</td>
    <td width="400">
      <textarea name="siteCloseinfoTxt" class="textbox" style="height:100px;"><?php echo $_ENV->site->closeinfo ?></textarea>
    </td>
    <td class="tips">若站点关闭后给用户的提示信息</td>
  </tr>
</table>
<div class="controls">
  <a class="button" href="javascript:void(0);" onclick="$('#mainForm').trigger('submit');return false;">保存<i></i></a>
</div>
</form>
</body>
</html>