QUEUE_FOOTER.jsp 3.63 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="com.csc.library.entry.HelpEntry,com.csc.library.system.*,com.csc.library.utilities.*,com.csc.library.report.*"%>
<%@ page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*"  %>
<jsp:useBean id="footer" class="com.csc.library.system.Task" scope="page" />
<%
	footer.setChannel(request,response);
	footer.checkProfile();
	UProfile u=footer.getUProfile();

	CheckNull chk=new CheckNull();
	ThaiUtilities thai = new ThaiUtilities();
	ReportUDF rf=new ReportUDF();
	String module[]=rf.getSystemCode("MODULELIST",u.get("lang"));
%>
<table  border="0" align="center" cellpadding="0" cellspacing="1"  bgcolor="#808080" class="inframe">
	<tr class="title1">
		<td width="84%"  class="title1">
			<script language="javascript">swapLang('Remark');</script>
		</td>
	</tr>
    <tr >
		<td>
			<table border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#808080" class="inframe">
				<tr class="title1">
					<td class="title1">ST = <script language="javascript">swapLang('process status');</script></td>
                    <%
						String keyvalue[];
				  	    String[] pstatus=rf.getSystemCode("PROCESS_STATUS",u.get("lang"));
				  		String []tstatus=rf.getSystemCode("PROCESS_TYPE",u.get("lang"));
				  		String[] gstatus=rf.getSystemCode("PROCESS_GROUP",u.get("lang"));		
						int max=pstatus.length;	
						if(tstatus.length>max) max=tstatus.length;									
						if(gstatus.length>max) max=gstatus.length;									
						for(int n=0;n<pstatus.length;n++){
							keyvalue=pstatus[n].split(",");
					%>
                    <td <% if((pstatus.length-1)==n){out.print("colspan='"+(max-pstatus.length+1)+"'");} %> align="left" valign="baseline" <% if ((n%2)==0) out.print(" class=\"writeback\"");%> ><%=keyvalue[0]%>&nbsp;=<%=keyvalue[1]%>&nbsp;</td>
                    <%							
						}
					%>
				</tr>
				<tr class="title1">
					<td   class="title1">TY = <script language="javascript">swapLang('process type');</script></td>
                    <%
						for(int n=0;n<tstatus.length;n++){
							keyvalue=tstatus[n].split(",");
					%>
                                <td <% if((tstatus.length-1)==n){out.print("colspan='"+(max-tstatus.length+1)+"'");} %> align="left" valign="baseline" <% if ((n%2)==0) out.print(" class=\"writeback\"");%>><%=keyvalue[0]%>&nbsp;=<%=keyvalue[1]%>&nbsp;</td>
                    <%	
						}
					%>						  
				</tr>
				<tr class="title1">						  
					<td class="title1">PP = <script language="javascript">swapLang('process priority');</script></td>
                    <td <% out.print("colspan='"+(max)+"'"); %>>0-9</td>
				</tr>
                <tr class="title1">						  
					<td class="title1">GP = <script language="javascript">swapLang('process group');</script></td>
                    <%
						for(int n=0;n<gstatus.length;n++){
							keyvalue=gstatus[n].split(",");
					%>
                    <td  <% if((gstatus.length-1)==n){out.print("colspan='"+(max-gstatus.length+1)+"'");} %>   align="left" valign="baseline" <% if ((n%2)==0) out.print(" class=\"writeback\"");%>><%=keyvalue[0]%>&nbsp;=<%=keyvalue[1]%>&nbsp;</td>
                    <%							
						}
					%>						  
				</tr>
					<tr class="title1">	
					<td class="title1">&nbsp;</td>					  
                    <td  class="writeback" colspan="<%=max%>"><img src="IMAGES/MINI_CSV.gif"> = Csv file <img src="IMAGES/MINI_PDF.gif"> = Pdf file <img src="IMAGES/MINI_TXT.gif"> = Text file <img src="IMAGES/MINI_XLS.gif"> = Excel file <img src="IMAGES/BUTTON/MAIN/EXIT20.gif"> = Cancel Process <img src="IMAGES/WARNING.gif" /> =  Process Message</td>
				</tr>
			</table>
		</td>
	</tr>
</table>