Advertisement
Guest User

Untitled

a guest
Dec 5th, 2011
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.49 KB | None | 0 0
  1. <apex:page controller="IAMSCUController" tabStyle="Account" showHeader="false">
  2.  
  3.     <head>
  4.         <script>
  5.             $j = jQuery.noConflict();
  6.  
  7.             function showDialog(name, phone){
  8.               //$j("#phoneNumber").html(phone);
  9.               $j("#info-form").dialog("open");
  10.               $j('#info-form').dialog("option" , "title" , name);
  11.               $j('#info-form').dialog('option', 'position', 'center');
  12.               return false;
  13.             }
  14.            
  15.             $j(document).ready(function() {
  16.                $j("#info-form").dialog({ autoOpen: false, modal: true, position: 'center'  });
  17.             });
  18.         </script>
  19.            
  20.         <style>
  21.             .accountLink { cursor: pointer; cursor: hand; }
  22.             .odd { background-color: #FCF7F7; height: 40px; cursor: pointer; cursor: hand; }
  23.             .even { background-color: #E3DCDB; height: 40px; cursor: pointer; cursor: hand; }
  24.             .row_hover{ background-color: red; height: 40px; }
  25.         </style>
  26.     </head>
  27.    
  28.     <apex:composition template="IamscuSiteTemplate">
  29.         <apex:define name="body">
  30.             <apex:form >
  31.  
  32.                 <apex:pageBlock title="{!$Label.IAMSCUSchools}">
  33.                
  34.                     <p><strong>{!$Label.IAMSCUInfo1}</strong></p>
  35.                     <p>{!$Label.IAMSCUInfo2}</p>
  36.                     <p>{!$Label.IAMSCUInfo3}</p>
  37.                     <p>{!$Label.IAMSCUSearchInfo}</p>
  38.                     <br />
  39.  
  40.                     <apex:inputText value="{!nameSelected}" size="40"/>
  41.  
  42.                     <apex:selectList value="{!awardLevelSelected}" size="1" multiselect="false" >
  43.                         <apex:selectOptions value="{!awardsLevels}"/>
  44.                     </apex:selectList>
  45.                    
  46.                     <apex:selectList value="{!countrySelected}" size="1" multiselect="false" >
  47.                         <apex:selectOptions value="{!countries}"/>
  48.                     </apex:selectList>
  49.                    
  50.                     <apex:outputPanel id="statesPanel">
  51.                         <apex:selectList value="{!stateSelected}" size="1" multiselect="false" rendered="{!statesEnabled}" >
  52.                             <apex:selectOptions value="{!states}"/>
  53.                         </apex:selectList>
  54.                     </apex:outputPanel>
  55.                    
  56.                     <apex:commandButton value="Search" action="{!invokeService2}"/>
  57.                    
  58.                     <apex:actionStatus id="status" startText=" searching..." stopText=""/>
  59.                     <br /><br />
  60.                    
  61.                     <apex:outputPanel id="resultPanel" layout="block">
  62.  
  63.                         <apex:dataList value="{!outputs}" var="outs" id="theList">
  64.                             <apex:outputText value="{!outs}"/>
  65.                         </apex:dataList>                
  66.                        
  67.                         <apex:dataTable rules="rows" value="{!IAMSCUSchools}" var="school" width="100%" rowClasses="odd,even">
  68.                             <apex:column onmouseup="alert('populate view');" width="20px" onmouseover="$j('#row-arrow-{!school.id}').show();" onmouseout="$j('#row-arrow-{!school.id}').hide();">
  69.                                 <img src="http://kumdo.com.au/bbs/skin/board/arrow.gif" id="row-arrow-{!school.id}"/>
  70.                             </apex:column>
  71.                             <apex:column onmouseup="alert('populate view');" onmouseover="$j('#row-arrow-{!school.id}').show();" onmouseout="$j('#row-arrow-{!school.id}').hide();">
  72.                                 {!school.Name}
  73.                             </apex:column>
  74.                             <apex:column onmouseup="alert('populate view');" onmouseover="$j('#row-arrow-{!school.id}').show();" onmouseout="$j('#row-arrow-{!school.id}').hide();">
  75.                                 <apex:commandLink action="{!invokeService}"
  76.                                                  value="{!school.Name}"
  77.                                                  reRender="resultPanel">
  78.                                     <apex:param name="id2" value="{!school.Id}" />
  79.                                 </apex:commandLink>
  80.                                
  81.                                 &nbsp;<a href="" class="accountLink" onclick="return showDialog('{!school.Name}','{!school.Id}')"><apex:outputText value="send info"/></a>
  82.                             </apex:column>
  83.                         </apex:dataTable>
  84.                        
  85.                         <apex:panelGrid columns="4">
  86.                             <apex:commandLink action="{!first}">First</apex:commandlink>
  87.                             <apex:commandLink action="{!previous}" rendered="{!hasPrevious}">Previous</apex:commandlink>
  88.                             <apex:commandLink action="{!next}" rendered="{!hasNext}">Next</apex:commandlink>
  89.                             <apex:commandLink action="{!last}">Last</apex:commandlink>
  90.                         </apex:panelGrid>
  91.                        
  92.                     </apex:outputPanel>
  93.                 </apex:pageBlock>
  94.                
  95.                 <div id="info-form" >
  96.                     <div style="float:left">First Name:</div><div id="firstName"></div>
  97.                     <div style="float:left">Last Name:</div><div id="lastName"></div>
  98.                     <div style="float:left">Position:</div><div id="position"></div>
  99.                 </div>
  100.             </apex:form>
  101.         </apex:define>
  102.     </apex:composition>
  103. </apex:page>
  104.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement