{--if $applyId--}
{--db_fetchrow table="applies" items="*" condition="f_id='$applyId'" varname="applyInfo"--}
{--/if--}
<!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" />
<title>管理中心</title>
<script type="text/javascript" src="../common/common.js"></script>
<link href="common/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="formModify" name="formModify" method="get" action="" onSubmit="return notEmpty(name, '请输入网站名称。')&&notEmpty(url, '请输入网址。')&&notEmpty(categoryId, '请选择所属分类。')">
<table border="0" cellspacing="0" cellpadding="2">
  <tr>
    <td>网站名称：</td>
    <td>
      <input type="text" name="name" id="name" size="30" value="{--$applyInfo.f_name--}" /> <span class="fontRed">*</span>
    </td>
    </tr>
  <tr>
    <td>字色：</td>
    <td>
      <input name="color" type="text" id="color" size="10" maxlength="7" value=""/>
      (如：<span style="color:#F00;cursor:hand" onClick="color.value=this.innerHTML">#FF0000</span> <span style="color:#00F;cursor:hand" onClick="color.value=this.innerHTML">#0000FF</span> <span style="color:#080;cursor:hand" onClick="color.value=this.innerHTML">#008800</span>)
    </td>
  </tr>
  <tr>
    <td>网站网址：</td>
    <td>
      <input name="url" type="text" id="url" value="{--$applyInfo.f_url--}" size="50" /> <span class="fontRed">*</span>
    </td>
    </tr>
  <tr>
    <td>所属分类：</td>
    <td>
    <select id="categoryId" name="categoryId">
    <option value="">请选择</option>
  {--db_fetchrows table="categories" items="*" condition="" orderby="f_sort" varname="arr"--}
  {--section name=loop loop=$arr--}
  {--assign var=indent value=$arr[loop].f_indent-1--}
    <option value="{--$arr[loop].f_id--}" {--if $arr[loop].f_id==$categoryId--}selected{--/if--}>{--$str|indent:$indent:"│"--}├{--$arr[loop].f_name--} ({--$arr[loop].f_id--})</option>
  {--/section--}
    </select> <span class="fontRed">*</span> {--if $applyInfo.f_category--}(建议分类：{--$applyInfo.f_category--}){--/if--}
    </td>
  </tr>
  <tr>
    <td>推荐：</td>
    <td>
      <input name="isRecommend" type="checkbox" id="isRecommend" value="1" />
      推荐 (若选中，则会在该网址后面加上“<span class="fontRed">√</span>”)</td>
    </tr>
  <tr>
    <td>顺序：</td>
    <td>
      <input name="order" type="text" id="order" size="10" maxlength="5" value="1000" />
     (越小越靠前)</td>
    </tr>
  <tr>
    <td>过期时间：</td>
    <td>
      <input type="text" name="expireTime" id="expireTime" value="0"/>
    (若要让该网址在某一日期之后不再显示，则设置其过期时间。格式为“yyyy-mm-dd”。为“0”则不会过期。)</td>
    </tr>
  <tr>
    <td valign="top">备注：</td>
    <td><textarea name="description" id="description" rows="5" cols="50">{--$applyInfo.f_description--}</textarea></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <input type="hidden" name="aId" value="{--$applyId--}"/>
      <input type="hidden" name="cId" value="{--$categoryId--}"/>
      <input type="hidden" name="addUrl" value="{--$addUrl--}"/>
      <input type="hidden" name="back" value="{--$backUrl--}"/>
      <input type="submit" name="btnSubmit" id="btnSubmit" value=" 提交 " />
      <input type="reset" name="btnReset" id="btnReset" value=" 重置 " />
    </td>
  </tr>
</table>
</form>
</body>
</html>