   <%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="org.ellectra.gui.utils.JSFUtils"%>
<%@page import="javax.faces.context.FacesContext"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>

<f:view>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    
    %>

<base href="<%=basePath%>">
<title>Ellectra Web</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="Ellectra Web">
<link rel="stylesheet" href="commission.css" type="text/css">
<link rel="stylesheet" href="ellectraweb.css" type="text/css">

</head>
<body>
<a name="top"></a>

<div align="center">

<table border="0" cellspacing="0" cellpadding="0" width="760"
	class="tbl1" summary="Container of page content">

	
	<!-- HEADER LINE -->
	<%@ include file="header.jsp"%>
	</td>
</tr>
<tr>
	<td bgcolor="#ffffff" height="1"></td>
</tr>
<tr>
	<td bgcolor="#330099" height="1"></td>
</tr><!-- END OF HEADER -->

	<!-- MAIN CONTENT -->
	<tr>
		<td valign="top" align="left">
		<table border="0" cellspacing="0" cellpadding="0" width="760"
			height="450" bgcolor="#FFFFFF" id="content" summary="Content of page">
			<tr>
				<!-- MENU CELL -->
				<%@ include file="navigation-menu.jsp"%>
				<!-- END OF MENU CELL -->

				<!-- VERTICAL SEPERATOR CELLS -->
				<td width="1" class="sep" height="100%"></td>
				<td width="15"></td>
<!-- CENTRAL CONTENT CELL -->
				<td width="565" valign="top">
				<br />
	  <%@ include file="hmenu.jsp" %>
	  
  	
                                
                                     
                                    <div class="title14bb"><strong>Associated Procurement Officers</strong><br>
                                    </div>
                                    
                                    <br>
                                    
                                    <div class="text11n"> 
                                    <h:form>
                                        
                                        
                                        <h:panelGrid border="1" columns="2" styleClass="gridstyle" style="width: 524px">
                                            
                                            
                                            <h:panelGrid border="0" columns="1" styleClass="gridstyle" style="width: 340px">
                                                <h:outputText value="#{multilingua.l_au2}" style="font-weight: bold"></h:outputText>
                                            </h:panelGrid>
                                            <h:selectOneMenu style="width: 151px"
                                                             value="#{associateuserwithtender.a_au2}" id="type"
                                                             valueChangeListener="#{associateuserwithtender.roleSelected}"
                                                             onchange="submit()" immediate="true">
                                                <f:selectItem itemLabel="Select Staff Role" itemValue="0" />
                                                <f:selectItem itemLabel="Administrative staff" itemValue="PROCUREMENT_OFFICER_ADMINISTRATIVE" />
                                                <f:selectItem itemLabel="Opening Tenders staff" itemValue="PROCUREMENT_OFFICER_OPENING" />
                                                <f:selectItem itemLabel="Evaluating Tenders staff" itemValue="PROCUREMENT_OFFICER_EVALUATING" />
                                            </h:selectOneMenu>
                                            
                                            
                                            <h:panelGrid border="0" columns="1" styleClass="gridstyle" style="width: 340px">
                                                <h:outputText value="#{multilingua.l_au1}" style="font-weight: bold"></h:outputText>
                                            </h:panelGrid>
                                            <h:selectOneMenu style="width: 160px" disabled="#{associateuserwithtender.buttonAddDisabled}"
                                                             valueChangeListener="#{associateuserwithtender.userSelected}"
                                                             value="#{associateuserwithtender.a_au1}"
                                                             onchange="submit()" immediate="true">
                                                <f:selectItems value="#{associateuserwithtender.userslistbox}"/>
                                            </h:selectOneMenu>
                                            
                                        </h:panelGrid>
                                        
                                        
                                        <h:panelGrid border="0" columns="1" style="width: 524px">
                                        <h:panelGroup>
                                            <p align="right"><h:commandButton
                                                    value="#{multilingua.l_au3}" styleClass="buttonstyle" disabled="#{associateuserwithtender.buttonAddDisabled}"
                                                    actionListener="#{associateuserwithtender.addToListp}" action="submit()" immediate="true"></h:commandButton>
                                            </p>
                                        </h:panelGroup>
                                        </h:panelGrid>
                                        <br>
                                        
                                        <br>
                                        <strong>Administrative Staff</strong>
                                        <h:dataTable id="peoplelista" value="#{associateuserwithtender.ausers}" 
                                                     binding="#{associateuserwithtender.adata}" var="peoplea" 
                                                     style="width: 524px" border="1"
                                                     columnClasses="none, checkBoxStyle"
                                                     rowClasses="gridstyle"
                                                     headerClass="gridstyle">
                                            
                                            
                                            <h:column id="Name">
                                                <f:facet name="header">
                                                    <h:outputText  value="Full name"/>
                                                </f:facet>
                                                <h:outputText value="#{peoplea.name}"/>
                                            </h:column> 
                                            
                                            
                                            <h:column id="checked">
                                                <h:selectBooleanCheckbox value="#{peoplea.checked}" 
                                                valueChangeListener="#{associateuserwithtender.checkedSelectedAdmin}"
                                                onchange="submit()" immediate="true"/>
                                            </h:column> 
                                            
                                        </h:dataTable>
                                        

                                        <br>
                                        <strong>Opening Tenders Staff</strong>
                                        <h:panelGrid border="1" columns="2" styleClass="gridstyle" style="width: 524px">
                                            <h:panelGrid border="0" columns="1" styleClass="gridstyle" style="width: 340px">
                                                <h:outputText value="#{multilingua.l_au8}" style="font-weight: bold"></h:outputText>
                                            </h:panelGrid>
                                            <h:inputText id="a_au3" styleClass="textboxstyle" value="#{associateuserwithtender.a_au3}" 
                                             validator="#{associateuserwithtender.validateMinNum}" ></h:inputText>
                                        </h:panelGrid>
                                        
                                        <h:dataTable id="peoplelisto" value="#{associateuserwithtender.ousers}" 
                                                     binding="#{associateuserwithtender.odata}" var="peopleo" 
                                                     style="width: 524px" border="1"
                                                     columnClasses="none, checkBoxStyle"
                                                     rowClasses="gridstyle"
                                                     headerClass="gridstyle">
                                            
                                            
                                            <h:column id="Nameo">
                                                <f:facet name="header">
                                                    <h:outputText  value="Full name"/>
                                                </f:facet>
                                                <h:outputText value="#{peopleo.name}"/>
                                            </h:column> 
                                            
                                            
                                            <h:column id="checkedo">
                                                <h:selectBooleanCheckbox value="#{peopleo.checked}" 
                                                valueChangeListener="#{associateuserwithtender.checkedSelectedOpen}" 
                                                onchange="submit()" immediate="true"/>
                                            </h:column> 
                                            
                                        </h:dataTable>
                                        
                                        <br>
                                        <strong>Evaluating Tenders Staff</strong>
                                        <h:dataTable id="peopleliste" value="#{associateuserwithtender.eusers}" 
                                                     binding="#{associateuserwithtender.edata}" var="peoplee" 
                                                     style="width: 524px" border="1"
                                                     columnClasses="none, checkBoxStyle"
                                                     rowClasses="gridstyle"
                                                     headerClass="gridstyle">
                                            
                                            
                                            <h:column id="Namee">
                                                <f:facet name="header">
                                                    <h:outputText  value="Full name"/>
                                                </f:facet>
                                                <h:outputText value="#{peoplee.name}"/>
                                            </h:column> 
                                            
                                            
                                            <h:column id="checkede">
                                                <h:selectBooleanCheckbox value="#{peoplee.checked}" 
                                                valueChangeListener="#{associateuserwithtender.checkedSelectedEval}" 
                                                onchange="submit()" immediate="true"/>
                                            </h:column> 
                                            
                                        </h:dataTable>
                                        
                                        <br>
                                        <h:panelGrid border="0" columns="1" style="width: 524px">
                                            <h:panelGroup><p align="right">
                                                <h:commandButton
                                                        value="#{multilingua.l_au7}" styleClass="buttonstyle"
                                                        actionListener="#{associateuserwithtender.removeFromListp}" immediate="true">
                                                </h:commandButton>
                                            </p></h:panelGroup>
                                        </h:panelGrid>
                                        
                                        
                                        
                                        <h:panelGrid border="0" columns="1" style="width: 524px;">
                                            <h:panelGroup><p align="right">
                                                <h:commandButton  value="Cancel" styleClass="buttonstyle" 
                                                action="#{associateuserwithtender.Cancel}" immediate="true"></h:commandButton>
                                                <f:verbatim>&nbsp</f:verbatim>
                                                <h:commandButton value="Update" styleClass="buttonstyle" 
                                                action="#{associateuserwithtender.OKpresses}"></h:commandButton>
                                            </p></h:panelGroup>
                                        </h:panelGrid>
                                        
                                        
                                        <h:panelGrid>
                                            <h:message for="a_au3" styleClass="msgstyle"/>
                                        </h:panelGrid>
                                        
                                    </h:form>
                                    </div>
                                </td>
                                <!-- END OF CENTRAL CONTENT CELL -->
  	
  	
<!-- VERTICAL SEPERATOR CELL -->
				<td width="14"></td>
			</tr>
		</table>
		</td>
	</tr>

	<%@ include file="footer.jsp"%>
</table>
</div>
</body>

</html>

</f:view>