<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<script src="js/utils.js"></script>
<script type="text/javascript" src="js/validator.js"></script>
<body>
<h1>
<span class="action-span"><a href="?ctl=system&act=system_article"><tpl>$system_admin_article_list</tpl></a></span>
<span class="action-span1"><a href="?ctl=index&act=admin_main"><tpl>$common_admin_index</tpl><!--管理首页--></a> >> <tpl>if $article_info['sys_article_id']!=''</tpl><tpl>$system_admin_article_mod</tpl><tpl>else</tpl><tpl>$system_admin_article_add</tpl><tpl>/if</tpl></span>
<div style="clear:both"></div>
</h1>
<div class="tab-div">
    <div id="tabbar-div">
      <p>
        <span class="tab-front" id="general-tab"><tpl>$system_admin_article_base</tpl></span><span
		 class="tab-back" id="detail-tab"><tpl>$system_admin_article_content</tpl></span>
      </p>
    </div>

    <!-- tab body -->
    <div id="tabbody-div">
      <form action="?ctl=system&act=system_article_save" method="post" name="theForm" id="theForm" onSubmit="return validate();" >
	  <input type="hidden" name="sys_article_id" value="<tpl>$article_info['sys_article_id']</tpl>" />
        <!-- 基本信息 -->
        <table width="90%" id="general-table" align="center">
          <tr>
            <td width="18%" class="label"><tpl>$system_admin_article_title</tpl>：</td>
            <td colspan="2"><input type="text" name="article_title" id="article_title" value="<tpl>$article_info['sys_article_title']</tpl>" >
			</td>
          </tr>
          <tr>
            <td class="label"><tpl>$system_admin_article_jump</tpl>：</td>
            <td colspan="2"><input type="text" name="article_url_jump" value="<tpl>$article_info['sys_url_jump']</tpl>" /></td>
          <tr>
            <td class="label"><tpl>$system_admin_article_class</tpl>：</td>
            <td colspan="2"><select name="system_article_type" id="system_article_type">
							<option value=""><tpl>$system_admin_article_class_select</tpl></option>
							<option value="1" <tpl>if $article_info['sys_article_class']==1</tpl>selected="selected"<tpl>/if</tpl>><tpl>$system_admin_article_note</tpl></option>
							<option value="2" <tpl>if $article_info['sys_article_class']==2</tpl>selected="selected"<tpl>/if</tpl>><tpl>$system_admin_article_foot</tpl></option>
							</select></td>
          </tr>
          <tr>
            <td class="label"><tpl>$system_admin_article_sort</tpl>：</td>
            <td><input name="article_sort" type="text" size="6" value="<tpl>$article_info['sys_article_sort']</tpl>" ></td>
          </tr>
          <tr>
            <td class="label"><tpl>$system_admin_article_state</tpl>：</td>
            <td colspan="2"><tpl>$system_article_state</tpl></td>
          </tr>
        </table>

        <!-- 详细信息 -->
        <table width="90%" id="detail-table" style="display:none">
          <tr>
            <td><tpl>$content_fck</tpl></td>
          </tr>
        </table>

        <!-- 其他信息 -->
        <table width="90%" id="mix-table" style="display:none" align="center">
          <tr>
            <td class="label">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>

        <div class="button-div">
			<input type="hidden" name="article_type" value="text" />
          <input type="submit" value="<tpl>$system_admin_article_save</tpl>" class="button" />
          <input type="reset" value="<tpl>$system_admin_article_reset</tpl>" class="button" />
        </div>
      </form>
    </div>
</div>
<div id="footer">
<tpl>$common_copyright</tpl>
</div>
<script language="JavaScript">
<!--
  /**
   * 检查表单输入的内容
   */
  function validate()
  {
    var validator = new Validator('theForm');
		validator.required('article_title','<tpl>$system_admin_article_title_info</tpl>');
    validator.required('system_article_type','<tpl>$system_admin_article_type_info</tpl>');
    return validator.passed();
  }
//-->
</script>
<script src="js/tab.js"></script>
</body>
