<%@ page contentType="text/html; charset=GBK" %>
<%@ page import = "zr.zrpower.common.util.SysPreperty" %>
<%@ page import = "zr.zrpower.entity.sys.SessionUser" %>
<%@ page import = "zr.zrpower.ejb.sys.UIService" %>
<%@ page import = "zr.zrpower.queryengine.mode.QUERY_CONFIG_BUTTON"%>
<%@ page import = "zr.zrpower.queryengine.service.QueryButton"%>

<%@ page import = "java.lang.Object"%>
<%@ page import = "java.util.*" %>
<%@ page import = "java.text.*" %>
<HTML>
<%
QueryButton FlowPackage=new QueryButton();
UIService userUI =new UIService();
SessionUser user = (SessionUser)session.getAttribute("userinfo");
String where=request.getParameter("where");

String FID=request.getParameter("FID");
if (FID==null){FID="0";}
%>
<HTML>
<HEAD>
<TITLE></TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META http-equiv="Content-Type" content="text/html; charset=GBK">
<LINK type="text/css" rel="stylesheet" href="../../zrsysmanage/css/<%=user.getUserCSS()%>">
<SCRIPT LANGUAGE="JavaScript" src="../../zrsysmanage/script/Public.js"></SCRIPT>
<script language="JavaScript" type="text/JavaScript">
<!--
function Check(theForm){
 if (theForm.NAME.value == ""){
    alert("按钮名称不能为空！");
    theForm.NAME.focus();
    return (false);
  }
return (true);
}
//-->
</script>
</HEAD>
<BODY class="BodyMain">
<FORM name="RegForm" method="post" action="../../queryconfigbutton.do"  onsubmit="return Check(this);">
<input type="hidden" id="Act" name="Act" value="add">
<input type="hidden" id="FID" name="FID" value="<%=FID%>">

  <br>&nbsp;
           <DIV id="divMessage" style='padding-left:0;padding-top:0;width:96%;height:100%;overflow:auto'>
           <fieldset>
           <legend>增加查询配置按钮信息</legend>
           <table border="0" class="inputTable" cellspacing="0" cellpadding="0" align="center">
           <tr>
               <td class="inputTdtitle">按钮名称：</td>
               <td class="inputTd"><input class="text" type="text" name="NAME" size="51" maxlength="50"></td>
           </tr>
           <tr>
               <td class="inputTdtitle">按钮运转名称：</td>
               <td class="inputTd"><input class="text" type="text" name="RUNNAME" size="51" maxlength="50"></td>
           </tr>
           <tr>
               <td class="inputTdtitle">图标：</td>
               <td class="inputTd"><input class="text" type="text" name="ICO" size="51" maxlength="20"></td>
           </tr>
           <tr>
               <td class="inputTdtitle">链接地址或js函数：</td>
               <td class="inputTd"><input class="text" type="text" name="PATHORJS" size="51" maxlength="300"></td>
           </tr>
           <tr>
               <td class="inputTdtitle">所属角色编号：</td>
               <td class="inputTd"><input class="text" type="text" name="ROLEIDS" size="51" maxlength="100">
               <br>
               说明：
               <font color="#FF3300">
               不设置时表示所有人都有操作权限，多个角色编号间用逗号分隔，如1,2,3。
               </font>
               </td>
           </tr>
           <tr>
               <td class="inputTdtitle">排序号：</td>
               <td class="inputTd"><input class="text" type="text" name="BCODE" size="51" maxlength="4"></td>
           </tr>
          </table>
          <br>
          </fieldset>
                 <center><br>
                 <table cellspacing="0" cellpadding="0" border='0'><tr>
                 <%=userUI.ClickButton("保 存","JavaScript:if(Check(document.RegForm)){document.RegForm.submit();}","buttonSave.gif",user.getUserImage())%>
                 <%=userUI.ClickButton("重 填","JavaScript:document.RegForm.reset();","buttonReset.gif",user.getUserImage())%>
                 <%=userUI.ClickButton("返 回","JavaScript:history.back();","buttonReturn.gif",user.getUserImage())%>
                 </tr></table>
                 </center>
          </DIV>


</FORM>
</BODY>
</HTML>
