<?php include mayi_tpl('owenjq');?>
<script language=javascript>
function chkform(){
	if(document.form1.tpl_name.value==""){
		alert('请输入模板名称！');
		document.form1.tpl_name.focus();
		return false;
	}
	if(document.form1.tpl_path.value==""){
		alert('请输入模板路径！');
		document.form1.tpl_path.focus();
		return false;
	}
}
</script>
<div id="<?=MPS_SOFTNAME?>">
<table border="0" cellspacing="0" cellpadding="0" class="vbm">
  <tr class="firstr">
  	<td colspan="2">技巧提示</td>
  </tr>
  <tr bgcolor="#ffffff">
    <td id="menu_tip">
  <li>启用状态不设置为启用时，仅作为一个链接方案保存，你可以在启用的时候开启它</li>
    </td>
  </tr>
</table>
</div>
<form method=post onSubmit="return chkform()" name="form1" action="?part=edit">
<input name="id" value="<?=$edit[id]?>" type="hidden">
<div id="<?=MPS_SOFTNAME?>">
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="vbm">
<tr class="firstr">
<td colspan="2"><a href="javascript:collapse_change('1')">导航基本信息</a>
</td>
</tr>
<tr>
  <td width="15%">模板名称： </td>
  <td><input name="tpl_name" type="text" class="text" id="title" value="<?=$edit[tpl_name]?>" size="30"> 
  		<font color="red">*</font></td>
</tr>
<tr>
  <td width="15%">模板路径/标识： </td>
  <td><input name="tpl_path" type="text" class="text" id="title" value="<?=$edit[tpl_path]?>" size="30">
  		<font color="red">*</font></td>
</tr>
<tr>
  <td>是否启用： </td>
  <td><select name="isview">
    <?=get_ifview_options($edit[if_view])?>
    </select>  </td>
</tr>
<tr>
  <td>导航排序： </td>
  <td><input name="displayorder" type="text" class="txt" value="<?=$edit[displayorder]?>" size="13"></td>
</tr>
</table>
</div>
<center>
<input type="submit" name="<?=CURSCRIPT?>_submit" value="保存修改" class="mymps large" />　
<input type="button" onclick="location.href='?'" value="返 回" class="gray large">
</center>
</form>
<?php include mayi_tpl('owenbt');?>