<%@taglib uri="/struts-tags" prefix="s" %>
<%@taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@taglib uri="/customtag" prefix="customtag" %>
<%@taglib uri="/csiuicore" prefix="csiuicore" %><%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<fmt:setBundle basename="/it/csi/demo/democomp/presentation/democomp/action/miaapp/CpHomeAction" />


<s:include value="fragments/header.jsp" ></s:include>



<!-- pageId:cpHome -->
<s:form id="cpHome" action="cpHome" method="post">
		
	
	
		
<!-- ####################### PANNELLO CONTENUTI ###################### -->
<div id="contentPanel">

	<!-- ================ UDLRC Layout UP PANEL ================ -->
	<div id="northPanel">
		<div class="wrapper">
		
	
	<div id="p_pMenu" class="formPanelBlock"><!-- startFragment:p_pMenu -->

	
	

	
	
	

	<!-- endFragment:p_pMenu --></div>

		</div>
	</div>
	<!-- ================ FINE UDLRC Layout UP PANEL ================ -->


	<!-- ================ UDLRC Layout WEST-CENTER-EAST WRAPPER ================ -->
	<div id="westCenterWrapper" class="floatWrapper">
		<!-- ***** UDLRC Layout LEFT PANEL ***** -->
		<div id="westPanel">
			<div class="wrapper">
			
	
	<div id="p_pLeft" class="formPanelBlock"><!-- startFragment:p_pLeft -->

	
	

	
	
			
	
	<div id="p_pMenu1" class="menuPanelBlock"><!-- startFragment:p_pMenu1 -->
	
	
<div class="menuPanel vertical" id="pMenu1">

	
		
			
<s:if test="isWidgetVisible('cpHome','mnuMenu')" >

	


	<s:include value="fragments/menu.jsp"></s:include>

	

</s:if>

	


		
	
	
</div>

	<!-- endFragment:p_pMenu1 --></div>

	

	<!-- endFragment:p_pLeft --></div>

			</div>
		</div>
		<!-- ***** FINE UDLRC Layout LEFT PANEL ***** -->


		<!-- ***** UDLRC Layout CENTER PANEL ***** -->
		<div id="centerPanel">
			<div class="wrapper">
				<!-- titolo pannello PRIMO livello -->
				<h3><s:text name="cpHome.pMain.label" /></h3>

					
	
	<div id="p_pCenter" class="formPanelBlock"><!-- startFragment:p_pCenter -->

	
	

	
	
			
	
	<div id="p_pnlErroriRicerca" class="stdMessagePanelBlock"><!-- startFragment:p_pnlErroriRicerca -->
	
	
<div class="stdMessagePanel" id="pnlErroriRicerca">
	<customtag:stdMessagePanel id="pnlErroriRicerca" errorMessage="true" errorDetails="true" actionMessage="true" isStandalone="true" />
</div>

	<!-- endFragment:p_pnlErroriRicerca --></div>

			
	
	<div id="p_pRicerca" class="widgetsPanelBlock"><!-- startFragment:p_pRicerca -->
	
	
<h4 class="wpLabel">Parametri di ricerca </h4>
<div class="widgetsPanel" id="pRicerca">
	
	<customtag:widgetsPanel id="pRicercaTbl" columns="2" tableStyleClass="formTable"
		summary=""  isStandalone="true"
		>
	

	
	
<s:if test="isWidgetVisible('cpHome','cbRegione')" >

	
<customtag:widgetsPanelColumn labelField="true" textLabel="%{getText('cpHome.cbRegione.label')}" labelFor="widg_cbRegione" errorFor="appDatafiltroPersona.codRegione" labelId="cbRegioneLbl"
	  fieldRequired="true">


<!-- widget cbRegione -->
	<csiuicore:ajaxify id="p_pRicerca" 
		widgetType="combo" 
		requestUri="cpHome!handleCbRegione_VALUE_CHANGED.do"
		pageId="cpHome"
		formName="cpHome" >
<s:select name="appDatafiltroPersona.codRegione" id="widg_cbRegione"
          headerKey="" headerValue="" 
          list="appDataregioni"
          disabled="isWidgetDisabled('cpHome','cbRegione')"
          listKey="id"
          listValue="descrizione"
          onclick="onCBClick(this,'confermacbRegione','conferma','cpHome!handleCbRegione_VALUE_CHANGED.do')" onfocus="inFocus(this)" onblur="lostFocus(this,'confermacbRegione','conferma','cpHome!handleCbRegione_VALUE_CHANGED.do')" 
          />
<noscript><s:submit value="conferma" name="confermacbRegione" id="confermacbRegione" cssClass="" method="handleCbRegione_VALUE_CHANGED" /></noscript>
	</csiuicore:ajaxify>

	
</customtag:widgetsPanelColumn>

</s:if>

	


	
<s:if test="isWidgetVisible('cpHome','cbProvincia')" >

	
<customtag:widgetsPanelColumn labelField="true" textLabel="%{getText('cpHome.cbProvincia.label')}" labelFor="widg_cbProvincia" errorFor="appDatafiltroPersona.codProvincia" labelId="cbProvinciaLbl"
	  fieldRequired="true">


<!-- widget cbProvincia -->
<s:select name="appDatafiltroPersona.codProvincia" id="widg_cbProvincia"
          headerKey="" headerValue="" 
          list="appDataprovince"
          disabled="isWidgetDisabled('cpHome','cbProvincia')"
          listKey="id"
          listValue="descrizione"
          
          />


	
</customtag:widgetsPanelColumn>

</s:if>

	


	
<s:if test="isWidgetVisible('cpHome','tfCognome')" >

	
<customtag:widgetsPanelColumn labelField="true" textLabel="%{getText('cpHome.tfCognome.label')}" labelFor="widg_tfCognome" errorFor="appDatafiltroPersona.cognome" labelId="tfCognomeLbl"
	  fieldRequired="true">


<!-- widget tfCognome -->
<s:textfield name="appDatafiltroPersona.cognome" id="widg_tfCognome"
maxlength="50"	disabled="isWidgetDisabled('cpHome','tfCognome')"
	size="15" 
/>

	
</customtag:widgetsPanelColumn>

</s:if>

	


	
<s:if test="isWidgetVisible('cpHome','tfRetribuzione')" >

	
<customtag:widgetsPanelColumn labelField="true" textLabel="%{getText('cpHome.tfRetribuzione.label')}" labelFor="widg_tfRetribuzione" errorFor="appDatafiltroPersona.retribuzione" labelId="tfRetribuzioneLbl"
	  >


<!-- widget tfRetribuzione -->
<s:textfield name="appDatafiltroPersona.retribuzione" id="widg_tfRetribuzione"
maxlength="11"	disabled="isWidgetDisabled('cpHome','tfRetribuzione')"
	size="15" cssClass="numbers"
/>

	
</customtag:widgetsPanelColumn>

</s:if>

	



	
	
	
	</customtag:widgetsPanel>
	
</div>

	<!-- endFragment:p_pRicerca --></div>

			
	
	<div id="p_pComandi" class="commandPanelBlock"><!-- startFragment:p_pComandi -->
	
	
<div class="commandPanel functional" id="pComandi">

	
	
		
		
<s:if test="isWidgetVisible('cpHome','bRicerca')" >

	



<!-- widget bRicerca -->
	<csiuicore:ajaxify id="p_pTabella,p_pComandiTabella,p_pRicerca,p_pnlErroriRicerca" 
		widgetType="button" 
		requestUri="cpHome!handleBRicerca_CLICKED.do" 
		pageId="cpHome" 
		formName="cpHome">
<s:submit name="widg_bRicerca" id="widg_bRicerca" method="handleBRicerca_CLICKED"
	key="cpHome.bRicerca.label" cssClass="buttonWidget search"
	disabled="isWidgetDisabled('cpHome','bRicerca')" />

	</csiuicore:ajaxify>

	


</s:if>

	


		
<s:if test="isWidgetVisible('cpHome','bAzzera')" >

	



<!-- widget bAzzera -->
	<csiuicore:ajaxify id="p_pTabella,p_pComandiTabella,p_pnlErroriRicerca,p_pRicerca" 
		widgetType="button" 
		requestUri="cpHome!handleBAzzera_CLICKED.do" 
		pageId="cpHome" 
		formName="cpHome">
<s:submit name="widg_bAzzera" id="widg_bAzzera" method="handleBAzzera_CLICKED"
	key="cpHome.bAzzera.label" cssClass="buttonWidget"
	disabled="isWidgetDisabled('cpHome','bAzzera')" />

	</csiuicore:ajaxify>

	


</s:if>

	




	
	
</div>

	<!-- endFragment:p_pComandi --></div>

			
	
	<div id="p_pTabella" class="widgetsPanelBlock"><!-- startFragment:p_pTabella -->
	
	

<div class="widgetsPanel" id="pTabella">
	

	
	
<s:if test="isWidgetVisible('cpHome','tRicerca')" >

	
<div class="tableWidget">


<!-- widget tRicerca -->
	<csiuicore:ajaxify id="p_pTabella" 
		widgetType="table" 
		pageId="cpHome">
<s:set name="cpHome_tRicerca_clearStatus" value="isTableClearStatus('cpHome_tRicerca')" />
<display:table name="appDatapersone"
               excludedParams="*"
               export="true"
               id="widg_tRicerca"
               pagesize="10"
               requestURI="cpHome.do"
               keepStatus="true"
               clearStatus="${cpHome_tRicerca_clearStatus}"
               uid="row_tRicerca"
               summary="" 
               
               class="dataTable">
	
		<display:column headerClass="nosort" media="html">
			<s:radio list="%{#attr.row_tRicerca.idCittadino}" name="appDataselTabellaIdPersona" id="%{'tRicerca-editcell-'+ (#attr.row_tRicerca_rowNum - 1)}" cssClass="radio" />
		</display:column>

		<display:column headerClass="nosort" media="excel pdf">
		</display:column>
		<display:column property="cognome" titleKey="cpHome.tRicerca.cognome.label" 
			sortable="true" headerClass="sortable"
			    media="html" />

		<display:column property="cognome" titleKey="cpHome.tRicerca.cognome.export.label"
			sortable="true" headerClass="sortable"
			
			media="excel" />
		<display:column property="cognome" titleKey="cpHome.tRicerca.cognome.export.label"
			sortable="true" headerClass="sortable"
			 
			media="pdf" />	
		<display:column property="nome" titleKey="cpHome.tRicerca.nome.label" 
			sortable="true" headerClass="sortable"
			    media="html" />

		<display:column property="nome" titleKey="cpHome.tRicerca.nome.export.label"
			sortable="true" headerClass="sortable"
			
			media="excel" />
		<display:column property="nome" titleKey="cpHome.tRicerca.nome.export.label"
			sortable="true" headerClass="sortable"
			 
			media="pdf" />	
		<display:column property="sesso" titleKey="cpHome.tRicerca.sesso.label" 
			sortable="true" headerClass="sortable"
			    media="html" />

		<display:column property="sesso" titleKey="cpHome.tRicerca.sesso.export.label"
			sortable="true" headerClass="sortable"
			
			media="excel" />
		<display:column property="sesso" titleKey="cpHome.tRicerca.sesso.export.label"
			sortable="true" headerClass="sortable"
			 
			media="pdf" />	
		<display:column property="residenza" titleKey="cpHome.tRicerca.residenza.label" 
			sortable="true" headerClass="sortable"
			    media="html" />

		<display:column property="residenza" titleKey="cpHome.tRicerca.residenza.export.label"
			sortable="true" headerClass="sortable"
			
			media="excel" />
		<display:column property="residenza" titleKey="cpHome.tRicerca.residenza.export.label"
			sortable="true" headerClass="sortable"
			 
			media="pdf" />	
		<display:column property="retribuzione" titleKey="cpHome.tRicerca.retribuzione.label" 
			sortable="true" headerClass="sortable"
			format="{0,number,#,##0}"  class="numbers"  media="html" />

		<display:column property="retribuzione" titleKey="cpHome.tRicerca.retribuzione.export.label"
			sortable="true" headerClass="sortable"
			
			media="excel" />
		<display:column property="retribuzione" titleKey="cpHome.tRicerca.retribuzione.export.label"
			sortable="true" headerClass="sortable"
			format="{0,number,#,##0}" 
			media="pdf" />	
</display:table>



	</csiuicore:ajaxify>


	
</div>

</s:if>

	



	
	
	
</div>

	<!-- endFragment:p_pTabella --></div>

			
	
	<div id="p_pComandiTabella" class="commandPanelBlock"><!-- startFragment:p_pComandiTabella -->
	
	
<div class="commandPanel functional" id="pComandiTabella">

	
	
		
		
<s:if test="isWidgetVisible('cpHome','bCancella')" >

	



<!-- widget bCancella -->
	<csiuicore:ajaxify id="p_pTabella,p_pnlErroriRicerca" 
		widgetType="button" 
		requestUri="cpHome!handleBCancella_CLICKED.do" 
		pageId="cpHome" 
		formName="cpHome">
<s:submit name="widg_bCancella" id="widg_bCancella" method="handleBCancella_CLICKED"
	key="cpHome.bCancella.label" cssClass="buttonWidget deleteItem"
	disabled="isWidgetDisabled('cpHome','bCancella')" />

	</csiuicore:ajaxify>

	


</s:if>

	


		
<s:if test="isWidgetVisible('cpHome','bInserisci')" >

	



<!-- widget bInserisci -->
<s:submit name="widg_bInserisci" id="widg_bInserisci" method="handleBInserisci_CLICKED"
	key="cpHome.bInserisci.label" cssClass="buttonWidget addItem"
	disabled="isWidgetDisabled('cpHome','bInserisci')" />

	


</s:if>

	


		
<s:if test="isWidgetVisible('cpHome','bModifica')" >

	



<!-- widget bModifica -->
	<csiuicore:ajaxify id="p_pTabella,p_pnlErroriRicerca" 
		widgetType="button" 
		requestUri="cpHome!handleBModifica_CLICKED.do" 
		pageId="cpHome" 
		formName="cpHome">
<s:submit name="widg_bModifica" id="widg_bModifica" method="handleBModifica_CLICKED"
	key="cpHome.bModifica.label" cssClass="buttonWidget editItem"
	disabled="isWidgetDisabled('cpHome','bModifica')" />

	</csiuicore:ajaxify>

	


</s:if>

	




	
	
</div>

	<!-- endFragment:p_pComandiTabella --></div>

	

	<!-- endFragment:p_pCenter --></div>

			</div>
		</div>
		<!-- ***** FINE UDLRC Layout CENTER PANEL ***** -->



	</div>
	<!-- ================ FINE UDLRC Layout WEST-CENTER-EAST WRAPPER ================ -->



</div>
<!-- #################### FINE PANNELLO CONTENUTI #################### -->




</s:form>


	<s:include value="fragments/footer.jsp" ></s:include>
