<? if (!defined('ROOT')) exit('Can\'t Access !'); include template('admin_header','admin'); ?>
  <div id="right">
    <div class="right">
      <div style="width:auto;overflow-x:hidden;overflow-y:auto">
      
      <? if($_GET['get']=='list') { ?>
        <div class="tags">
          <div id="tagscontent">
            <div id="con_one_1">
              <div class="table_td" style="margin-top:10px;">
              <form method="post" action="" onsubmit="return remind();">
                  <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">
                    <thead>
                      <tr>
                        <th width="60px"><input type="checkbox" id="chkall" name="chkall" onclick="checkall(this.form, 'id')"></th>
                        <th align="center">编号</th>
                        <th align="center">标题</th>
                        <th align="center">操作</th>
                      </tr>
                    </thead>
                    
            <? if(is_array($this->aboutlist)) { foreach($this->aboutlist as $value) { ?>                    <tbody>
                      <tr class="s_out" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                        <td align="center" ><input type="checkbox" name="id[]" value="<?=$value['id']?>"></td>
                        <td align="center"><?=$value['id']?></td>
                        <td align="left" style="padding-left:10px;"><?=$value['name']?></td>
                        <td align="center"><a href="<?=$value['editurl']?>">编辑</a> <a onclick="return remind();" href="<?=$value['delurl']?>">删除</a></td>
                      </tr>
                    </tbody>
            <? } } ?>                    

                  </table>
                <div class="blank20"></div>
                 <?=config::form('button','删除','submit','','class=\'button\'');?>
                </form>
                <div class="page"><span><?=$this->pagetotal?>条记录/<? echo $_GET['page'] ? $_GET['page'] : 1  ?>页</span><?=$this->showpage?></div>
                <div class="blank20"></div>
              </div>
            </div>
          </div>
        </div>
        <div class="blank20"></div>
      <? } ?>
        
      <? if($_GET['get']=='add'||$_GET['get']=='edit') { ?>
        <div class="tags">
          <div id="tagstitle"><a class="hover"><?=$getName?></a></div>
          <div id="tagscontent">
            <form method="post" name="form1" action=""  onsubmit="return aboutform();">
              <div>
                <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">
                  <tbody>
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">名称</td>
                      <td>
                        <?=config::form('name',$this->about['name'],'input','','class=\'skey\'');?>
                        <span class="tipser" id="nametip">单页的名称</span>
                      
                        </td>
                    </tr>
                    
                    <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                      <td class="left">详细内容</td>
                      <td> 
                      <?=config::form('content',$this->about['content'],'editor','0','<1@1>');?>
                      <span class="tipser" id="contenttip">单页的详细内容</span>
                      </td>
                    </tr>


                  </tbody>
                </table>
              </div>
              <div class="blank20"></div>
               <?=config::form('button','提交','submit','','class=\'button\'');?>
            </form>
          </div>
        </div>
        <div class="blank20"></div>
      <? } ?>
        


      </div>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<? include template('admin_footer','admin'); ?>
