| <apex:page standardController="Opportunity" extensions="OpportunityVisitNotesController" showHeader="false" sidebar="false" id="allPage" action="{!init}"> | 
| <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> | 
| <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> | 
| <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> | 
| <script> | 
| function leavemessage() { | 
|     //blockme(); | 
|     if ('{!usertype}' == 'PowerPartner'){ | 
|     window.open('/production/apex/OpportunityVisitNotesPopUp?raid=' + '{!URLENCODE(Opportunity.Id)}', | 
|                 'VisitNotes', | 
|                 'height=400,width=600,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no'); | 
|     } else{ | 
|     window.open('/apex/OpportunityVisitNotesPopUp?raid=' + '{!URLENCODE(Opportunity.Id)}', | 
|                 'VisitNotes', | 
|                 'height=400,width=600,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no'); | 
|     } | 
| } | 
|   | 
| function reloadjs() { | 
|     //blockme(); | 
|     init(); | 
| } | 
| </script> | 
|     <apex:form id="allForm"> | 
|         <apex:actionFunction name="init" action="{!init}" rerender="allPanel,message"> | 
|         </apex:actionFunction> | 
|         <apex:outputPanel id="allPanel"> | 
|             <apex:pageBlock title="" id="allBlock"> | 
|                 <apex:pageBlockButtons location="top"> | 
|                     <apex:commandButton onclick="leavemessage(); return false;" value="记录" rerender="dummy"/> | 
|                 </apex:pageBlockButtons> | 
|   | 
|                 <apex:inputField id="response" value="{!ra.Visit_Notes__c | 
|                 }" style="width:100%; height:120px; resize:none;"/> | 
|                 <script> | 
|                     j$(escapeVfId('allPage:allForm:allBlock:response')).attr('readonly', true); | 
|                 </script> | 
|             </apex:pageBlock> | 
|         </apex:outputPanel> | 
|     </apex:form> | 
| </apex:page> |