Index. jsp: <meta http-equiv = "refresh" content = "0; url =./pages/login. jsp"/>
Login. jsp
<Body onload = "document. All. name2.focus ()">
<TD width = "60%"> <HTML: Text maxlength = "30" property = "epno" size = "20" styleid = "name2" onblur = "loaduser () "/> & nbsp; </TD>
<HTML: Image property = "button" onclick = "loginsubmit ('userlogin'); savecookie (); "Border =" 0 "page ="/pages/images/logon_icon.gif "/>
<TD align = "Left"> <HTML: Image property = "button" onclick = "loginsubmit ('changepassword ') "Border =" 0 "page ="/pages/images/logon_repw.gif "/>
<Script language = "JavaScript">
Function loginsubmit (choice ){
Document. All. selectid. value = choice;
Loginformbean. Submit ();
}
</SCRIPT>
<Script language = "JavaScript">
<! -- Hide script from older browsers
Function loaduser ()
{
VaR cookiename = "";
VaR cookievalue = "";
Cookiename = Document. All. name2.value;
Cookievalue = readcookie (cookiename );
If (cookievalue! = '')
Document. All. name4.value = cookievalue;
}
Function savecookie ()
{
VaR cname = Document. All. name2.value;
VaR cvalue = Document. All. name4.value;
Setcookie (cname, cvalue );
}
Function setcookie (name, value)
{
Date = new date ();
Date. setmonth (date. getmonth () + 6 );
Document. Cookie = Name + "=" + escape (value) + "; expires =" + date. togmtstring ();
}
Function readcookie (name)
{
// If there is no cookie, return false, else return the value.
If (document. Cookie = '')
Return false;
Else
Return Unescape (getcookievalue (name ));
}
Function getcookievalue (name)
{
// Declare variables.
VaR firstchar, lastchar;
// Get the entire cookie string.
VaR thebigcookie = Document. Cookie;
// Alert (thebigcookie );
Firstchar = thebigcookie. indexof (name );
If (firstchar! =-1)
{
Firstchar + = Name. Length + 1;
Lastchar = thebigcookie. indexof (';', firstchar );
If (lastchar =-1) lastchar = thebigcookie. length;
Return thebigcookie. substring (firstchar, lastchar );
}
Else
Return false;
}
// End hiding JavaScript -->
</SCRIPT>
Header. jsp
<TD> <HTML: link styleclass = "menu_f13" page = "/pages/client/menu. JSP "target =" leftframe "> Customer Relationship Management <TD> <HTML: IMG width = "20" Height = "28" page = '/pages/images/menu_bg.jpg'/> </TD>
<%
Date nowdate = new date ();
Simpledateformat yearfor = new simpledateformat ("YYYY ");
Simpledateformat monthfor = new simpledateformat ("mm ");
Simpledateformat dayfor = new simpledateformat ("DD ");
Simpledateformat timefor = new simpledateformat ("HH: mm ");
String yearstr = yearfor. Format (nowdate );
String monstr = monthfor. Format (nowdate );
String daystr = dayfor. Format (nowdate );
String ctime = timefor. Format (nowdate );
%>
Left. jsp
<IFRAME src = "client/menu. JSP "width =" 100% "Height =" 100% "name =" leftframe "marginwidth =" 0 "marginheight =" 0 "scrolling =" Auto "frameborder =" no "border =" 0 ">
Help. jsp
<Logic: present name = "login_user">
<Tr>
<TD background = "images/top_search_bg.gif"> & nbsp; <font color = "# ff0000"> <Bean: write name = "login_user" property = "realname"/> </font>. Welcome to the rongzhong business management system! </TD>
</Tr>
</Logic: Present>
Hint. jsp
<Logic: present name = "newbookedlist">
<Logic: iterate id = "booknew" name = "newbookedlist" type = "cn. rzdd. CBS. Persistence. Po. appformbooklog" length = "3">
<HTML: link href = "client/applist1.jsp">
<Bean: write name = "booknew" property = "afmid"/> & nbsp;
</Html: link>
</Logic: iterate>
</Logic: Present>
Index2.jsp
<Frameset rows = "108, *, 28" frameborder = "no" border = "0" framespacing = "0">
<Frame src = "<HTML: rewrite page = '/pages/header. jsp'/>" name = "TOP" scrolling = "no" noresize>
<Frameset rows = "*" Cols = "215, *" framespacing = "0" frameborder = "no" border = "0">
<Frame src = "<HTML: rewrite page = '/pages/left. jsp'/>" name = "Left" scrolling = "no" noresize>
<Frame src = "<HTML: rewrite page = '/pages/center. jsp'/>" name = "rightframe" scrolling = "yes" noresize>
</Frameset>
<Frame src = "<HTML: rewrite page = '/pages/State. jsp'/>" name = "state" scrolling = "no" noresize>
</Frameset>
Center. jsp
<JSP: Include page = "/pages/hint. jsp" Flush = "false"/>
Menu. jsp
<SCRIPT type = "text/JavaScript">
<! --
D = new dtree ('D ');
D. Add (0,-1, 'customer relationship management ');
<%
If (user. hasaccess (rolelist, "101") {%>
D. Add (, 'customer information management', 'mermerinfolist2. jsp ', "", 'rightframework ');
<%} Else {%>
D. Add (, 'customer information management', ''," ", 'rightframework ');
<%}
If (user. hasaccess (rolelist, "102") {%>
D. Add (, 'application information management', 'applist1. jsp ', "", 'rightframework ');
<%} Else {%>
D. Add (2, 0, 'application information management ','',"",'');
<%}
If (user. hasaccess (rolelist, "103") {%>
D. Add (3,0, 'complaint management', '<HTML: rewrite page = "/pages/client/cuscomplain. jsp"/>', "", 'rightframework ');
<%} Else {%>
D. Add (3,0, 'complaint management ','',"",'');
<%}
If (user. hasaccess (rolelist, "104") {%>
D.add(4,0, 'Consultation management', 'inquire.html ', "", 'rightframework ');
<%} Else {%>
D. Add (, 'consulting management ','',"",'');
<%}
If (user. hasaccess (rolelist, "105") {%>
D. Add (5, 0, 'settlement management', '/Rz/CRM/clientsettleinitial. Do', "", 'rightframework ');
<%} Else {%>
D. Add (5, 0, 'settlement management ','',"",'');
<% }%>
D. Add (6, 0, 'Report management ');
<%
If (user. hasaccess (rolelist, "106") {%>
D. Add (7, 6, 'schedule handover report', '<HTML: rewrite page = "/CRM/connectreport. Do"/>', "", 'rightframework ');
<%} Else {%>
D. Add (7, 6, 'booking handover report', ',', 'rightframe ');
<%}
If (user. hasaccess (rolelist, "107") {%>
D. Add (, 'business statistical report ','#','','');
<%} Else {%>
D. Add (, 'business statistical report', '','', 'rightframe ');
<%}
If (user. hasaccess (rolelist, "108") {%>
D. Add (9, 6, 'Consultation statistical report ','#','','');
<%} Else {%>
D. Add (9, 6, 'Consultation statistical report', '','', 'rightframe ');
<%}
If (user. hasaccess (rolelist, "109") {%>
D. Add (, 'clear report ','#','','');
<%} Else {%>
D. Add (, 'clear report', '','', 'rightframe ');
<%}
If (user. hasaccess (rolelist, "110") {%>
D. Add (11,6, 'Customer Service Performance Appraisal report ','#','','');
<%} Else {%>
D. Add (11,6, 'Customer Service Performance Appraisal report', '','', 'rightframe ');
<% }%>
Document. Write (d );
// -->
</SCRIPT>
Bankadd. Java
Rzlogger log = new rzlogger ();
Log. logdebug ("start executing action:" + actionmapping. getpath ());
Log. logerror (E. fillinstacktrace ());
Messages. Add (actionmessages. global_message,
New actionmessage ("Mm. Add. Bank. Success "));
Super. savemessages (httpservletrequest, messages );
Httpservletrequest. setattribute (Const. next_action_key,
"/Pages/market/Bank/Add. jsp ");
Return actionmapping. findforward (Const. Success );
Messgpage. jsp
<HTML: messages id = "message" message = "true">
<Bean: write name = "message"/>
</Html: messages>
<%
String nextact = (string) request. getattribute ("next_action ");
If (null! = Nextact ){
%>
<Script language = "JavaScript">
Function jump ()
{
Document. Location = "<HTML: rewrite page = '<% = nextact %>'/> ";
}
</SCRIPT>
<Input type = "button" value = "OK" styleclass = "botton_ds" onclick = "Jump ()" C/>
<! -- HTML: button value = "OK" property = "Submit" onclick = "document. Location = '<% = nextact %>'"/-->
<%} Else {%>
<HTML: button value = "OK" property = "Submit" onclick = "history. Back ()"/>
<% }%>
Banklist. Java
// Set the first page and initialize pager.
List list = bandao. listbank ();
Simplepager pager = new simplepager (arraylist) list,
Const. items_per_page );
Httpservletrequest. getsession (). setattribute (bankpage.
Bank_list_pager_key, pager );
Actionforward forward = new actionforward ();
String Path = actionmapping. findforward (Const. Success). getpath () + "? "+
Const. page_key + "= 1 ";
Forward. setpath (PATH );
Bankpage. Java
// Go to the specified page, mainly calling pager. gotopage ();
Pager pager = (PAGER) httpservletrequest. getsession (). getattribute (bank_list_pager_key );
Pager. gotopage (requestpage );
List curpage = pager. getcurrentpage ();
Httpservletrequest. setattribute (Const. page_key, curpage );
Return actionmapping. findforward (Const. Success );
Info. jsp
<TD colspan = "3" bgcolor = "# ffffff" class = tr_02> <HTML: text styleid = "fddbr" styleclass = "input02" name = "dissupplierform" property = "silegrep"/> </TD>
List. jsp
</Tr>
<%
Int I = 0;
Pager pager = (PAGER) Session. getattribute ("Rz. Supplier. List ");
%>
<Logic: present name = "page"> <logic: iterate id = "supplierinf" name = "page" indexid = "Index" type = "CN. rzdd. CBS. persistence. po. supplierinf "> <logic: present name =" supplierinf ">
<%
Int curindex = I + 1 + (pager. getcurrentpageindex ()-1) * pager. getcountperpage ();
I ++;
Request. setattribute ("indexd", new INTEGER (I ));
If (curindex % 2 = 0 ){
%>
<Tr bgcolor = "# eaeaea">
<%} Else {%>
<Tr bgcolor = "# f0f9ff">
<% }%>
<TD> <Div align = "center"> <Bean: write name = "indexd"/> </div> </TD>
<TD Height = "25"> <Div align = "center"> <SPAN class = "button"> <Bean: write name = "supplierinf" property = "sisupname"/> & nbsp; </span> </div> </TD>
<TD> <Div align = "center"> <Bean: write name = "supplierinf" property = "sirepresent"/> & nbsp; </div> </TD>
<TD Height = "25"> <Div align = "center"> <Bean: write name = "supplierinf" property = "silegrep"/> & nbsp; </div> </TD>
<TD> <Div align = "center"> <HTML: link page = "/MM/supplierinfo. do "paramid =" Sid "paramname =" supplierinf "paramproperty =" siid "> modify </Tr>
</Logic: Present> </logic: iterate> </logic: Present>
<Tr class = "tr_03">
<TD Height = "30" colspan = "9" align = "right"> <JSP: Include page = "/pages/pagenavigater. jsp" Flush = "false">
<JSP: Param name = "action" value = "supplierpage. Do"/>
<JSP: Param name = "pagername" value = "Rz. Supplier. List"/>
</Jsp: Include>
</TD>
</Tr>
Pagenavigater. jsp
<%
String pagername = request. getparameter ("pagername ");
String action = request. getparameter ("action ");
%>
<Logic: present name = "<% = pagername %>">
<Logic: greaterequal name = "<% = pagername %>" property = "totalpages" value = "0">
Go to <input type = "text" class = "Goto" name = "page" value = '<Bean: write name = "<% = pagername %>" property = "currentpageindex"/> 'onchange = "gotopage ('<% = action %>', this. value) "/>
</Logic: greaterequal>
<Logic: equal name = "<% = pagername %>" property = "hasprior" value = "true">
<A href = 'javascript: priorpage ("<% = action %>", <Bean: write name = "<% = pagername %>" property = "currentpageindex"/>) '> & lt; </a>
</Logic: equal>
<Logic: equal name = "<% = pagername %>" property = "hasprior" value = "false">
& Lt;
</Logic: equal>
<Bean: write name = "<% = pagername %>" property = "currentpageindex"/>/<Bean: write name = "<% = pagername %>" property = "totalpages"/>
<Logic: equal name = "<% = pagername %>" property = "hasnext" value = "true">
<A href = 'javascript: nextpage ("<% = action %>", <Bean: write name = "<% = pagername %>" property = "currentpageindex"/>) '> & gt; </a>
</Logic: equal>
<Logic: equal name = "<% = pagername %>" property = "hasnext" value = "false">
& Gt;
</Logic: equal>
</Logic: Present>