<!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 href="<{$css_root}>images/admincp.css" rel="stylesheet" type="text/css" />
<title>添加导航</title>
</head>
<body>
<div class="container">
<div class="itemtitle">
  <h3>导航管理</h3>
  <ul class="tab1">
      <li> <a href="navgation.php?act=show"> <span>导航列表</span> </a> </li>
      <li class="current"> <a href="navgation.php?act=add"> <span>添加导航</span> </a> </li>
    </ul>
</div>
<form id="form" action="navgation.php?act=addok" method="post" name="form">

  <table class="tb tb2">
    <tbody>
      <tr>
        <td class="td27" colspan="2">导航名称:</td>
      </tr>
      <tr class="noborder">
        <td class="vtop rowform"><input class="txt" type="text" value="" name="nav[name]"/>
        </td>
        <td class="vtop tips2">导航名称，显示在网站的导航条中</td>
      </tr>
      
      <tr>
        <td class="td27" colspan="2">链接地址:</td>
      </tr>
      <tr class="noborder">
        <td class="vtop rowform">
          <select name="nav[url]">
          <option value="custom">自定义链接</option>
              <{section name=cates loop=$catelist}>
              <option 
              value="<{$catelist[cates].url}>"><{$catelist[cates].name}>
              </option>
              <{/section}>
            </select> 
            </td>
        <td class="vtop tips2">如果选择了自定义链接，请在下面外部链接框中填入链接地址</td>
      </tr>
      
      <tr>
        <td class="td27" colspan="2">外部链接:</td>
      </tr>
      <tr class="noborder">
        <td class="vtop rowform"><input class="txt" type="text" value="" name="nav[outurl]"/>
        </td>
        <td class="vtop tips2">外部地址必须于 HTTP 开头,站内链接只用填写相对地址</td>
      </tr>
      
      <tr>
        <td class="td27" colspan="2">打开方式:</td>
      </tr>
      <tr class="noborder">
        <td class="vtop rowform"><ul>
            
              <li>
              <input class="radio" type="radio" value="1" name="nav[target]"/>
              新窗口 </li>
              <li>
              <input class="radio" type="radio" checked="" value="0" name="nav[target]"/>
              原窗口 </li>
             
              
          </ul></td>
        <td class="vtop tips2">外部链接建议使用新窗口</td>
      </tr>
      
      <tr>
        <td class="td27" colspan="2">显示顺序:</td>
      </tr>
      <tr class="noborder">
        <td class="vtop rowform"><input class="txt" type="text" value="" name="nav[displayorder]"/>
        </td>
        <td class="vtop tips2">数值越大越往后，建议不要超过250</td>
      </tr>
      <tr>
        <td colspan="2"><input class="btn" type="submit" value="提交" name="submit"/>
        </td>
      </tr>
    </tbody>
  </table>
</form>
</div>
</body>
</html>
