<!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>
<title>系统后台</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->basedir;?>images/admin/public.css" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->basedir;?>images/admin/style.css" />
<script src="<?php echo $this->basedir;?>js/jquery.js" type="text/javascript"></script>
<script src="<?php echo $this->basedir;?>js/jquery.form.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#form").validate({
		rules:{
			name:{
				required:true
			}
		},
		message:{
			name:{
				required:'请输入标题名'
			}
		}
	})
});
</script>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr align="center" valign="top">
    <td width="*" align="center" valign="top"><!-- ######### begin ######### -->
      <div class="Block">
        <div class="BlockBar">添加一个模块</div>
        <table cellspacing="1" cellpadding="4" class="tab">
        <form id="form" name="form1" method="post" action="<?php echo $this->installdir;?>module/add">
          <tr class="row">
            <td width="73">标题名:</td>
            <td width="389">
              <a class="input">
              <input type="text" class="txt {required:true}" name="name" value="" maxlength=15 id="name"></a><input class="ClewSign" disabled /></a> <div id="error" class="">
				
              </div></td>
          </tr>
          <tr class="row">
            <td>所属模块:</td>
            <td>
              <select name="parentid" id="select">
                <option value="0">作为主分类</option>
				<?php
				foreach($this->topModule as $val){
				if ($val['id'] == $this->mid){
					echo '<option value="'.$val['id'].'" selected="selected" >'.$val['name'].'</option>';
				}else{
					echo '<option value="'.$val['id'].'">'.$val['name'].'</option>';
				}
				}?>
              </select>
			  </td>
          </tr>
          <tr class="row">
            <td>模块名:</td>
            <td><a class="input">
              <input type="text" name="url" id="url" /></a><input class="ClewSign" disabled /></td>
          </tr>
          <tr class="row">
            <td>排序值:</td>
            <td><label for="sort"></label>
              <input name="sort" type="text" id="sort" size="10" maxlength="3" /></td>
          </tr>
		  <tr class="row">
            <td>作为常用项:</td>
            <td><input type="radio" name="islink" value="true" id="radio1" class="radio" /><label for="radio1">是</label>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="islink" value="false" id="radio2" checked="checked" class="radio" /><label for="radio2">否</label></td>
          </tr>
          <tr class="rows">
            <td class="rows"></td>
            <td class="rows"><label for="button"></label>
              <input name="button" type="submit" class="btn" id="button" value="提交添加" /> <label for="button2"></label>
              <input name="button2" type="reset" class="btn" id="button2" value="重置" /> <label for="button3"></label>
              <input name="button3" type="button" class="btn" id="button3" value="返回上一页" onClick="javascript:history.back()" /></td>
          </tr> </form> 
        </table>
      </div>
      <div id="App-Version-Prompt" style="display:none;">
        <div class="space"></div>
        <div class="Block">
          <div class="BlockBar">版本更新信息</div>
          <div class="BlockContent" id="App-Version-Prompt-Body" style="padding:20px 5px 20px 5px; text-align:center; background:#FFFFCC;">loading...</div>
        </div>
      </div>
      <!-- ########## end ########## -->
    </td>
    <td width="5"></td>
    <td width="150" align="center" valign="top">
    <?php
	echo $this->render('menu');
	?>
     </td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>
