<%@page contentType="text/html;charset=UTF-8" pageEncoding="ISO-8859-1" session="true"
%><%@page import="com.fujitsu.iflow.model.workflow.Filter"
%>

<script type='text/javascript'>
function Go(){return}
</script>
<script type='text/javascript' src='styles/menu_settings1.js'></script>
<script>

// Menu tree
//	MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
//	For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"
<%
	String transportType = (String) session.getAttribute("TransportType");

    /* Rename any of the WorkList choices according to your demo requirement */
    String[] worklistFilterChoices = {"Invalid",			/* 0 */
						 "My Active Activities",	/* 1 */
						 "My Accepted Activities",	/* 2 */
						 "My Activities",			/* 3 */
						 "My Declined Activities",	/* 4 */
						 "My Completed Activities",	/* 5 */
						 "All Inactive Activities",	/* 6 */
						 "All Activities"};		/* 7 */

	/* do not modify, unless you are adding a new filter */
	int[] worklistFilterId = {-1,						/* Invalid */
					   Filter.MyActiveWorkItems,		/* 1 */
					   Filter.MyAcceptedWorkItems,	/* 2 */
					   Filter.MyWorkItems,			/* 3 */
 					   Filter.MyDeclinedWorkItems,	/* 4 */
					   Filter.MyCompletedWorkItems,	/* 5 */
					   Filter.AllInactiveWorkItems,	/* 6 */
					   Filter.AllWorkItems};		/* 7 */

	/* select the worklist choices, you would like to view on the worklist page */
	int[] displayChoices = null;
    	if (transportType.equalsIgnoreCase("LE"))
		displayChoices = new int[] {1,2,3,4,7};
	else
		displayChoices = new int[] {1,2,3,4,5,6,7};
%>
	Menu1=new Array("rollover:images/but_worklist_view.gif:images/but_worklist_view.gif","","",<%=displayChoices.length%>,24,85);
<%
	int menuIndex = 1;
	for(int i=0; i< displayChoices.length; i++, menuIndex++)
	{
%>
		Menu1_<%=menuIndex%>=new Array("<%=worklistFilterChoices[displayChoices[i]]%>",
							"WorkList.jsp?pgNum=1&filterId="+<%=worklistFilterId[displayChoices[i]]%>,"",0,20,150);
<%
	}
%>

</script>
<script type='text/javascript' src='styles/menu_com.js'></script>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">
      <div id='MenuPos1' style='position:relative; width:120; height:0;'></div>
	</td>
  </tr>
  </table>
<!-- end floating menu-->
