Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#set( $email = "")
#set( $firstName = "")
#set( $lastName = "")
#set( $occupation = "")

#if($userPrimaryInfo.getEmail())
        #set( $email = $userPrimaryInfo.getEmail())
#end
#if( $userPrimaryInfo.getFirstName() )
        #set( $firstName = $userPrimaryInfo.FirstName())
#end
#if( $userPrimaryInfo.getLastName()  )
        #set( $lastName = $userPrimaryInfo.LastName()) 
#end
#if( $userPrimaryInfo.getOccupation() )
        #set( $occupation = $userPrimaryInfo.getOccupation())
#end

                
<div id="tabs-1">
        <p><h2>Profile</h2></p>                 
        <ul>
                <li>Email Address -  $email             </li>
                <li>First Name    - $firstName  </li>
                <li>Last Name     - $lastName   </li>
                <li>Occupation    - $occupation </li>
        </ul>
</div>


#set( $line1 = "")
#set( $line2 = "")
#set( $city = "")
#set( $state = "")
#set( $country = "")
#set( $pin = "")


<div id="tabs-2">
        <p>Addresses</p>
        #if($userPrimaryInfo.getAddresses())
                #set($userAddresses = $userPrimaryInfo.getAddresses())
                
                #foreach ($address in $userAddresses)
                        #if( $address.getLine1() )
                                #set( $ine1 = $address.getLine1())
                        #end
                        #if( $address.getLine2() )
                                #set( $ine2 = $address.getLine2())
                        #end
            #if( $address.getCity() )
                #set( $city = $address.getCity())
            #end
            #if( $address.getState() )
                #set( $state = $address.getState())
            #end
            #if( $address.getCountry() )
                #set( $country = $address.getCountry())
            #end                                        
            #if( $address.getPin() )
                #set($pin = $address.getPin())
            #end
                                <li>Line1 - $line1</li>
                                <li>Line2 - $line2</li>
                                <li>City - $city</li>
                                <li>State - $state</li>
                                <li>Country - $country</li>
                                <li>Pin - $pin</li>
                #end                                            
        #end
</div>