<page xmlns="http://xmlns.oracle.com/uix/controller"
      xmlns:baja="http://xmlns.oracle.com/uix/controller"
      xmlns:uix="http://xmlns.oracle.com/uix/ui" 
      xmlns:html="http://www.w3.org/TR/REC-html40">

    <baja:head  xmlns="http://xmlns.oracle.com/uix/ui">
        <dataScope>
            <contents>
	<html:noScript>
	JavaScript is not supported by your browser. Oracle requires JavaScript
	support to completely render this page
	</html:noScript>
                <head xmlns="http://xmlns.oracle.com/uix/ui" 
                      uix:title="pageTitle@getPageTitle"/>
            </contents>
            <provider>
                <data name="getPageTitle">
                    <method class="oracle.sysman.eml.ecm.patch.PatchConfigData" 
                            method="getPageTitle"/>
                </data>
            </provider>
        </dataScope>
    </baja:head>




<baja:content xmlns="http://xmlns.oracle.com/uix/ui">
    <dataScope>
        <contents>
		
		<script>
		<contents>

				 function clearParams()
				 {  
					with(document.patchValidationTable)
					{
						platform.value = "All";
						product.value = "All";
						release.value = "All";
						patch.value = "";
				   }
				 }

		</contents>
		</script>
		
		<html:noScript>
			"This page uses JavaScript to perform the list of values lookup. Your browser either does not support JavaScript, or it is disabled.  Please enable JavaScript, or upgrade your browser."
  		</html:noScript>

            <form name="patchValidationTable" method="POST">
                <contents>

                    <pageLayout xmlns="http://xmlns.oracle.com/uix/ui" 
                                uix:title="pageTitle@getPageTitle">
								
						

                        <mediumAdvertisement>
                            <include baja:node="../../oemBanner" />
                        </mediumAdvertisement>
                        
                        <globalButtons>
                            <include baja:node="../../globalButtonBar" />
                        </globalButtons>
                        
                        <tabs>
                            <include baja:node="../../globalTabs" />
                        </tabs>
                        
                        <pageHeader>
                            <include baja:node="../../admin/rep/header"/>
                        </pageHeader>
                        
                        <start>
                            <include baja:node="../../admin/rep/adminSideNav" />
                        </start>
                        
                        <copyright>
                            <include baja:node="../../copyright"/>
                        </copyright>
			 
						<location>
							<include baja:node="/breadCrumbs" />
						</location>

                        <contents>
						
						
						<messageBox automatic="true" />

                            <header uix:text="AVAIL_PATCH_VALID@ResourceBundle">
                                <contents>

                                    <rowLayout>
                                        <contents>
                                            <styledText styleClass="OraInstructionText" uix:text="VALID_PATCH_HDR@ResourceBundle"/>
                                        </contents>
                                    </rowLayout>
                                    
                                    <rowLayout>
                                        <contents>
											<spacer height="8"/>
                                    	</contents>
                                    </rowLayout>
									
									<rowLayout>
										<contents>
										<labeledFieldLayout width="100%"
										                    columns="2"
															labelWidth="25%"
															fieldWidth="80%">
										<contents>
											
											<messageTextInput name="patch"
											                  uix:prompt="OPT_PATCHNAME@ResourceBundle"
															  uix:text="patchSel@searchData" />
											<messageChoice name="platform"
														   uix:prompt="OPT_PLATFORM@ResourceBundle"
														   uix:selectedValue="platformSel@searchData">
												<contents uix:childData="platformList@searchData">
													<option uix:text="text" uix:value="value"/>
												</contents>
											</messageChoice>
											
											<messageChoice name="product"
														   uix:prompt="OPT_PRODUCT@ResourceBundle"
														   uix:selectedValue="productSel@searchData">
												<contents uix:childData="productList@searchData">
													<option uix:text="text" uix:value="value"/>
												</contents>
											</messageChoice>
											
											<messageChoice name="release"
														   uix:prompt="OPT_RELEASE@ResourceBundle"
														   uix:selectedValue="releaseSel@searchData">
												<contents uix:childData="releaseList@searchData">
													<option uix:text="text" uix:value="value"/>
												</contents>
											</messageChoice>
										
										</contents>
										</labeledFieldLayout>

										</contents>
									</rowLayout>
									
									<rowLayout>
                                        <contents>
											<spacer height="8"/>
                                    	</contents>
                                    </rowLayout>
									
									<rowLayout>
										<contents>
											
											<submitButton baja:event="filter" uix:text="BTN_FILTER@ResourceBundle"/>
											<spacer width="5"/>
											<button uix:text="BTN_CLEAR@ResourceBundle" onClick="clearParams();"/>
											
										</contents>
									</rowLayout>
									
									<rowLayout>
                                        <contents>
											<spacer height="8"/>
                                    	</contents>
                                    </rowLayout>
                                    
                                    <rowLayout>
                                        <contents>
                                        
                                            <table name="validationTable"
											       width="100%"
		summary=""
												   id="validation"
												   partialRenderMode="multiple"
												   uix:value="value@TableData"
												   minValue="1"
												   uix:maxValue="maxValue@TableData"
												   uix:blockSize="blockSize@TableData"
												   uix:tableData="TableData@TableData"
												   uix:columnHeaderData="headerData@ColumnHeaderData">
                                            
                                                <contents>
                                                    <styledText headers="hdrPatchID"      uix:text="patchID"/>
													<styledText headers="hdrReleaseName"  uix:text="releaseName"/>
													<styledText headers="hdrPlatformName" uix:text="platformName"/>
													<styledText headers="hdrProductName"  uix:text="productName"/>
													<styledText headers="hdrPatchType"    uix:text="patchType"/>
													<styledText headers="hdrIsValid"      uix:text="isValid"/>
                                                </contents>
												
												<columnHeaderStamp>
													<sortableHeader uix:text="headerText"
													                uix:value="value"
																	uix:sortable="sort"/>
												</columnHeaderStamp>
												
												<columnHeaderData>
													<headerData id="hdrPatchID"      uix:sort="sortPatchID@TableData"      value="PATCH_ID"      uix:headerText="VALID_PATCH_ID@ResourceBundle"/>
													<headerData id="hdrReleaseName"  uix:sort="sortReleaseName@TableData"  value="RELEASE_NAME"  uix:headerText="VALID_VERSION@ResourceBundle"/>
													<headerData id="hdrPlatformName" uix:sort="sortPlatformName@TableData" value="PLATFORM_NAME" uix:headerText="VALID_PLATFORM@ResourceBundle"/>
													<headerData id="hdrProductName"  uix:sort="sortProductName@TableData"  value="PRODUCT_NAME"  uix:headerText="VALID_PRODUCT@ResourceBundle"/>
													<headerData id="hdrPatchType"    uix:sort="sortPatchType@TableData"    value="PATCH_TYPE"    uix:headerText="VALID_PATCH_TYPE@ResourceBundle"/>
													<headerData id="hdrIsValid"      uix:sort="sortIsValid@TableData"      value="IS_VALID"      uix:headerText="VALID_IS_VALID@ResourceBundle"/>
												</columnHeaderData>
												
												<tableSelection>
													<singleSelection id="select" shortDesc="Selected the patch to make action" uix:selectedIndex="selected@TableData">
														<contents>
															<submitButton baja:event="certify"   uix:text="BTN_VALIDATE@ResourceBundle"/>
															<spacer width="3"/>
															<submitButton baja:event="uncertify" uix:text="BTN_INVALIDATE@ResourceBundle" />
														</contents>
													</singleSelection>
												</tableSelection>
                                                
                                            </table>
                                            
                                        </contents>
                                    </rowLayout>
									<rowLayout>
									  <contents>
										  <spacer height="8"/>
									  </contents>
									</rowLayout>
									<rowLayout>
									<contents>
                                    	<link  destination="patchConfigParams">
											<contents>
												<styledText styleClass="OraInstructionText" uix:text="BACK_PATCH_SETUP@ResourceBundle"/>
											</contents>
										</link>
									</contents>
									</rowLayout>
								</contents>
                            </header>

                        </contents>
                    </pageLayout>

                </contents>
            </form>
            
        </contents>

        <provider>

            <data name="TableData">
				<method class="oracle.sysman.eml.ecm.patch.PatchValidationData"
				        method="populateResultsTable"/>
			</data>
			
            <data name="ResourceBundle">
                <bundle class = "oracle.sysman.eml.ecm.patch.util.PatchResourceBundle"/>
            </data>
            
            <data name="getPageTitle">
                <method class="oracle.sysman.eml.ecm.patch.PatchValidationData"
                        method="getPageTitle"/>
            </data>
			
			<data name="searchData">
                <method class="oracle.sysman.eml.ecm.patch.PatchValidationData"
                        method="getSearchData"/>
            </data>
			
			<data name="configStatus">
				<method class="oracle.sysman.eml.ecm.util.EcmSessionUtil"
						method="getConfigStatus"/>
			</data>

        </provider>
        
    </dataScope>
</baja:content>

<handlers>
    <event name="null">
        <method class="oracle.sysman.eml.ecm.OnlineHelp"
                method="loadPatchHelpTopic"/>
    </event>
	
	<event name="goto" source="validationTable">
		<method class="oracle.sysman.eml.ecm.patch.PatchValidationHandler"
		        method="doTableGoto"/>
	</event>
	
	<event name="sort" source="validationTable">
		<method class="oracle.sysman.eml.ecm.patch.PatchValidationHandler"
		        method="doTableSort"/>
	</event>
	
	<event name="certify">
		<method class="oracle.sysman.eml.ecm.patch.PatchValidationHandler"
		        method="certify"/>
	</event>
	
	<event name="uncertify">
		<method class="oracle.sysman.eml.ecm.patch.PatchValidationHandler"
		        method="unCertify"/>
	</event>
	
	<event name="filter">
		<method class="oracle.sysman.eml.ecm.patch.PatchValidationHandler"
		        method="doFilter"/>
	</event>

</handlers>

</page>



