<%@ page contentType="text/html; charset=GBK"%>
<%@ page import = "zr.zrpower.entity.sys.SessionUser"%>
<%@ page import = "zr.zrpower.ejb.sys.UIService"%>
<%@ page import = "zr.zrpower.ejb.sys.UserIdeaService"%>
<%@ page import = "zr.zrpower.entity.sys.BPIP_USER_IDEA"%>

<%@ page import = "java.lang.Object"%>
<HTML>
<%
SessionUser user = (SessionUser)session.getAttribute("userinfo");
UIService userUI =new UIService();
UserIdeaService ideaService =new UserIdeaService();
BPIP_USER_IDEA[] ideaList = null;
%>
<HTML>
<HEAD>
<TITLE></TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META http-equiv="Content-Type" content="text/html; charset=GBK">
<link REL="stylesheet" type="text/css" href="../../../zrsysmanage/css/<%=user.getUserCSS()%>">
<SCRIPT LANGUAGE="JavaScript" src="../../../zrsysmanage/script/Public.js" type="text/jscript" ></SCRIPT>
<LINK type="text/css" rel="stylesheet" href="../../html5/css/style_tables.css">
<SCRIPT LANGUAGE="JavaScript" src="../../html5/script/jquery-2.0.3.min.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="../../html5/layer/layer.js"></SCRIPT>

<SCRIPT LANGUAGE="javascript" type="text/jscript">
function Check(theForm)
{

  var Content=theForm.CONTENT.value;
  if (trim(Content).length<1){
    <%if(user.getUserWINDOWTYPE().equals("6")){ %>
         layer.alert('请输入意见内容!', {icon: 7});
    <%}else{%>
         alert("请输入意见内容!");
    <%}%>
    theForm.CONTENT.focus();
    return false;
  }

  return true;
}

function CheckDel(theForm)
{

          if (confirm("确定要删除吗？"))
          { document.RegForm.Act.value='delete';
            return true;
          }
          else
         {return false;}


}

</SCRIPT>
</HEAD>
<BODY class="BodyMain">
<%
  String strID = request.getParameter("SelectedItems");
  String strWhere = "  ID="+strID;
  ideaList = ideaService.GetIdeaList(strWhere);

 if (ideaList!=null)
  {

%>
<FORM name="RegForm" method="post" action="../../../actionuseridea.do" >

<input type="hidden" name="USERNO" value="<%=user.getUserID()%>">
<input type="hidden" name="Act" value="edit">
<input type="hidden" name="ID" value="<%=ideaList[0].getID()%>">
<input type="hidden" name="USER_NO" value="<%= ideaList[0].getUSER_NO()%>"/>

<!--HTML Head表单头显示[显示内容,图标文件,用户肤色的图片文件夹]-->
<%=userUI.ShowHeadHtml("处理意见信息管理","IcoTitle.gif",user.getUserImage())%>

<!--HTML Body Start显示表单开始部分-->
<%=userUI.ShowBodyStartHtml()%>

  <DIV id="divMessage" style='padding-left:0;padding-top:0;width:100%;height:100%;overflow:auto'>
    <br>&nbsp;
           <fieldset style="width: 98%">
           <legend>编辑处理意见信息</legend>
    <TABLE border='0' width="100%"  cellspacing="0" cellpadding="0" align=center>

             <TR>
               <TD class="PutdSet" valign="top" width="30%">内容：</TD>
               <TD class="inputTd">
                 <input class="text" type="text" name="CONTENT" size="60" maxlength="200" value="<%=ideaList[0].getCONTENT()%>">
                 <Font class="WriteSign">*</Font></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:if(CheckDel(document.RegForm)){document.RegForm.submit();}","buttonDelete.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>


<!--HTML Body End显示表单结束部分-->
<%=userUI.ShowBodyEndHtml()%>
<!--HTML Foot显示表单尾[显示内容，用户肤色的图片文件夹]-->
<%=userUI.ShowFootHtml("",user.getUserImage())%>
</FORM>
<%
}
%>
</BODY>
</HTML>
<%
//清空相关对象
user = null;
userUI = null;
ideaService = null;
ideaList = null;
%>
