<?php echo $this->renderPartial('/_include/header')?>

<div id="contentHeader">
  <h3>站点设置</h3>
  <div class="searchArea">
    <ul class="action left" >
    </ul>
    <div class="search right"> </div>
  </div>
</div>
<form action="" method="post" enctype="multipart/form-data" name="xform" id="xform">
  <table class="content_list">
    <tr>
      <td class="tb_title">网站名称：</td>
    </tr>
    <tr >
      <td ><input type="text" class="txt validate[required]" name="Config[site_name]" value="<?php echo $config['site_name']?>" />
        <span info="Config[site_name]"></span>将显示在浏览器窗口标题等位置</span></td>
    </tr>
    <tr>
      <td class="tb_title"> 网站 URL：</td>
    </tr>
    <tr >
      <td ><input type="text" class="txt validate[required]" name="Config[site_domain]" value="<?php echo $config['site_domain']?>" />
        <span info="Config[site_domain]"></span></span></td>
    </tr>
    <tr>
      <td class="tb_title">后台日志：</td>
    </tr>
    <tr >
      <td ><select name="Config[admin_logger]">
          <option value="open" <?php echo XUtils::selected($config['admin_logger'], 'open')?>>开启</option>
          <option value="close" <?php echo XUtils::selected($config['admin_logger'], 'close')?>>关闭</option>
        </select></td>
    </tr>
    <tr>
      <td class="tb_title">站点开关/关闭说明：</td>
    </tr>
    <tr >
      <td ><select name="Config[site_status]">
          <option value="open" <?php echo XUtils::selected($config['site_status'], 'open')?>>开启</option>
          <option value="close" <?php echo XUtils::selected($config['site_status'], 'close')?>>关闭</option>
        </select></td>
    </tr>
    <tr >
      <td ><textarea name="Config[site_status_intro]" class="tarea" ondblclick="textareasize(this, 1)" onkeyup="textareasize(this, 0)"><?php echo $config['site_status_intro']?></textarea></td>
    </tr>
    <tr>
      <td class="tb_title">管理员邮箱：</td>
    </tr>
    <tr >
      <td ><input type="text" class="txt" name="Config[admin_email]" value="<?php echo $config['admin_email']?>" datatype="Email" msg="请填写管理Email"/>
        作为邮件发送的邮箱</td>
    </tr>
    <tr>
      <td class="tb_title">网站备案号：</td>
    </tr>
    <tr >
      <td ><input type="text" class="txt" name="Config[site_icp]" value="<?php echo $config['site_icp']?>" />
        请填写 ICP 备案号</td>
    </tr>
    <tr>
      <td class="tb_title">版权信息：</td>
    </tr>
    <tr >
      <td ><input type="text" class="txt w400" name="Config[site_copyright]" value="<?php echo $config['site_copyright']?>" /></td>
    </tr>
    <tr>
      <td class="tb_title">网站第三方统计代码：</td>
    </tr>
    <tr >
      <td ><textarea  rows="6" name="Config[site_stats]" id="site_stats" cols="50" class="tarea "><?php echo $config['site_stats']?></textarea>
        请填写第三方统计的 js 代码</td>
    </tr>
    <tr class="submit">
      <td ><input type="submit" name="editsubmit" value="提交" class="button" tabindex="3" /></td>
    </tr>
  </table>
</form>
<script type="text/javascript">
$(function(){
	$("#xform").validationEngine();	
});
</script> 
<?php echo $this->renderPartial('/_include/footer')?>