<?php
/**
 * @package iCMS
 * @copyright 2007-2010, iDreamSoft
 * @license http://www.idreamsoft.cn iDreamSoft
 * @author coolmoo <idreamsoft@qq.com>
 */
!defined('iPATH') && exit('What are you doing?'); 
iCMS_admincp_head();
?><script type="text/javascript">admincpnav('首页&nbsp;&raquo;&nbsp;TAG管理&nbsp;&raquo;&nbsp;添加TAG');</script>
<div class="container" id="cpcontainer">
  <div class="itemtitle">
    <ul class="tab1" id="submenu">
      <li id="nav_manage"><a href="<?=__SELF__?>?do=tag&operation=manage"><span>TAG管理</span></a></li>
      <li id="nav_sort"><a href="<?=__SELF__?>?do=tag&operation=sort"><span>TAG归类管理</span></a></li>
      <li id="nav_add" class="current"><a href="<?=__SELF__?>?do=tag&operation=add"><span>添加TAG</span></a></li>
    </ul>
  </div>
  <div id="basic">
    <form action="<?=__SELF__?>?do=tag&operation=post" method="post">
    <input type="hidden" name="action" value="save" />
    <input type="hidden" name="id" value="<?=$id?>"  />
    <table class="tb tb2 nobdb">
      <tr>
        <th colspan="15" class="partition">添加TAG</th>
      </tr>
      <tr class="nobg">
        <td colspan="2" class="td27">TAG:</td>
      </tr>
      <tr>
        <td class="vtop rowform"><input name="name" id="name" value="<?=$rs->name?>" type="text" class="txt"  /></td>
        <td class="vtop tips2"></td>
      </tr>
      <tr class="nobg">
        <td colspan="2" class="td27">归类:</td>
      </tr>
      <tr>
        <td class="vtop rowform"><select name="sortid" style="width:auto;">
        <option value="0"> == 暂无归类 == </option>
        <?=tagsort($rs->sortid)?>
        </select</td>
        <td class="vtop tips2"></td>
      </tr>
      <tr class="nobg">
        <td colspan="2" class="td27">自定链接:</td>
      </tr>
      <tr>
        <td class="vtop rowform"><input name="link" id="link" value="<?=$rs->link?>" type="text" class="txt"  /></td>
        <td class="vtop tips2"></td>
      </tr>
      <tr class="nobg">
        <td colspan="2" class="td27">使用数:</td>
      </tr>
      <tr>
        <td class="vtop rowform"><input name="count" id="count" value="<?=$rs->count?>" type="text" class="txt"  /></td>
        <td class="vtop tips2"></td>
      </tr>
      <tr class="nobg">
        <td colspan="2" class="td27">模板:</td>
      </tr>
      <tr>
        <td class="vtop rowform"><input name="tpl" id="tpl" value="<?=$rs->tpl?>" type="text" class="txt"  /></td>
        <td class="vtop tips2"><img src="admin/images/selecttpl.gif" width="67" height="19" align="absmiddle" onclick="showDialog('<?=__SELF__?>?do=dialog&operation=template&click=file&type=htm','tpl');"/></td>
      </tr>
      <tr class="nobg">
        <td colspan="2" class="td27">排序:</td>
      </tr>
      <tr>
        <td class="vtop rowform"><input name="ordernum" id="ordernum" value="<?=_int($rs->ordernum)?>" type="text" class="txt"  /></td>
        <td class="vtop tips2"></td>
      </tr>
      <tr class="nobg">
        <td colspan="2" class="td27">状态:</td>
      </tr>
      <tr>
        <td class="vtop rowform"><ul onmouseover="altStyle(this);">
              <li<?php if($rs->status=='1') echo ' class="checked"'?>>
                <input class="radio" type="radio" name="status" value="1" <?php if($rs->status=='1') echo 'checked'?>>
                启用</li>
              <li<?php if($rs->status=='0') echo ' class="checked"'?>>
                <input class="radio" type="radio" name="status" value="0" <?php if($rs->status=='0') echo 'checked'?>>
                禁用</li>
            </ul></td>
        <td class="vtop tips2"></td>
      </tr>
    
       <tr class="nobg">
        <td colspan="2"><div class="fixsel">
            <input type="submit" class="btn" name="forumlinksubmit" value="提交"  />
          </div></td>
      </tr>
    </table>
    </form>
  </div>
</div>
</body>
</html>