<%@ page contentType="text/html; charset=GBK" language="java" errorPage="" %>
<%@ taglib uri="/cms4j" prefix="cms4j" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>CMS4J </title>
<link href="../skin/blue/css/oper_area_style.css" rel="stylesheet" type="text/css">
</head>

<script src="../../js/common.js"></script>
<script src="../../js/page_init.js"></script>

<script>
//页面初始化
function pageInit(){
	selectInit("MODULE_ID","${param.MODULE_ID}");
}
</script>

<body onLoad="pageInit()">
<form action="../../do?action=addRes" method="post" name="cms4jForm" id="cms4jForm">
  <table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
    <tr height="12"> 
      <td width="3%"><img src="../../images/admin/oper_table_up_left.gif" width="26" height="12"></td>
      <td width="92%" background="../../images/admin/oper_table_up_bg.gif" height="12"></td>
      <td width="5%"><img src="../../images/admin/oper_table_up_right.gif" width="26" height="12"></td>
    </tr>
    <tr> 
      <td colspan="3"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="5" background="../../images/admin/oper_table_left_bg.gif"><img src="../../images/admin/oper_table_left_bg.gif" width="5" height="2"></td>
            <td background="../../images/admin/oper_table_bg.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  
                <td class="title_bar">添加新资源</td>
                </tr>
                <tr height="4"> 
                  <td height="4"></td>
                </tr>
              </table>
              
            <table width="100%" border="0" cellpadding="0" cellspacing="1" class="list_border_bg">
              <tr>
                <td height="22" align="right" class="list_left_title">资源名称：</td>
                <td height="22" colspan="3" class="list_cell_bg"><input name="NAME" type="text" class="form_input" id="NAME" style="width:95% ">
                    <span class="test_must">*</span></td>
              </tr>
              <tr>
                <td height="22" align="right" class="list_left_title">所属模块：</td>
                <td width="33%" height="22" class="list_cell_bg"><select name="MODULE_ID" id="MODULE_ID">
                  <option selected value="">请选择</option>
                  <cms4j:module>
				  <option value="<%=module_info.getMODULE_ID()%>"><%=module_info.getNAME()%></option>
				  </cms4j:module>
                </select></td>
                <td width="16%" height="22" align="right" class="list_left_title">是否为菜单：</td>
                <td width="34%" class="list_cell_bg"><input type="radio" name="RES_TYPE" value="2">                  
                  菜单
                    <input name="RES_TYPE" type="radio" value="1" checked>
                  非菜单</td>
              </tr>
              <tr >
                <td height="22" align="right" class="list_left_title">来源：</td>
                <td height="22" colspan="3" class="list_cell_bg"><input name="RES_SOURCE_TYPE" type="radio" value="1" checked onClick="displayCtrl('inside_source','outside_source');">
                  CMS4J内部资源
                    <input type="radio" name="RES_SOURCE_TYPE" value="2" onClick="displayCtrl('outside_source','inside_source');">
                  链接至外部资源</td>
              </tr>
              <tr id="inside_source">
                <td height="22" colspan="4">
				<table width="100%" border="0" cellpadding="0" cellspacing="1" class="list_border_bg">
				  <tr>
                    <td height="22" align="right" class="list_left_title">操作类型：</td>
                    <td height="22" class="list_cell_bg"><input name="RES_OPER_TYPE" type="radio" value="1" checked>
                      执行命令
                        <input type="radio" name="RES_OPER_TYPE" value="2">
                        列表页
                        <input type="radio" name="RES_OPER_TYPE" value="3">
                        操作页                      <span class="test_must">*</span></td>
				    </tr>
                  <tr>
                    <td width="17%" height="22" align="right" class="list_left_title">ACTION动作：</td>
                    <td width="83%" height="22" class="list_cell_bg"><input name="RES_ACTION" type="text" class="form_input" id="RES_ACTION" style="width:95% ">
                        <span class="test_must">*</span></td>
                  </tr>
                  <tr>
                    <td height="22" align="right" class="list_left_title">实现类：</td>
                    <td height="22" class="list_cell_bg"><input name="COMMAND" type="text" class="form_input" id="COMMAND" style="width:95% ">                        </td>
                  </tr>
                </table></td>
                </tr>
              <tr id="outside_source" style="display:none ">
                <td height="22" align="right" class="list_left_title">链接至外部：</td>
                <td height="22" colspan="3" class="list_cell_bg"><input name="OUT_URL" type="text" class="form_input" id="OUT_URL" style="width:95% ">
                  <span class="test_must">*</span> </td>
              </tr>
              <tr>
                <td height="22" align="right" class="list_left_title">作者：</td>
                <td height="22" colspan="3" class="list_cell_bg"><input name="AUTH" type="text" class="form_input" id="AUTH" style="width:95% " value="Dekn"></td>
              </tr>
              <tr>
                <td width="17%" height="22" align="right" class="list_left_title">作者联系方式：</td>
                <td height="22" colspan="3" class="list_cell_bg"><input name="AUTH_CONTACT" type="text" class="form_input" id="AUTH_CONTACT" style="width:95% " value="http://www.cms4j.com"></td>
              </tr>
              <tr> 
                <td height="22" align="right" class="list_left_title">分类说明：</td>
                <td height="22" colspan="3" class="list_cell_bg"><textarea name="RES_DESC" rows="3" class="form_input" id="RES_DESC" style="width:95% "></textarea></td>
              </tr>
              <tr> 
                <td height="22" colspan="4" align="right" class="table_oper_tr"><input type="submit" name="Submit" value="添 加"> 
                  <input type="button" name="Submit2" value="取 消" onClick="location.href='resource_list.jsp'"> </td>
              </tr>
            </table></td>
            <td width="5" background="../../images/admin/oper_table_right_bg.gif"><img src="../../images/admin/oper_table_right_bg.gif" width="5" height="2"></td>
          </tr>
        </table></td>
    </tr>
    <tr height="13"> 
      <td><img src="../../images/admin/oper_table_down_left.gif" width="26" height="13"></td>
      <td width="100%" height="13" background="../../images/admin/oper_table_down_bg.gif"></td>
      <td align="right"><img src="../../images/admin/oper_table_down_right.gif" width="26" height="13"></td>
    </tr>
  </table>
  <table width="717" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td align="center">&nbsp;</td>
  </tr>
</table>
</form>
</body>
</html>
