示例#1
0
					<?php 
        if ($config->ps_lastname) {
            ?>
						<td><?php 
            echo $item->lastname;
            ?>
</td>
					<?php 
        }
        ?>
					
					<?php 
        if ($config->ps_gender) {
            ?>
						<td><?php 
            echo BookProHelper::formatGender($item->gender);
            ?>
</td>
					<?php 
        }
        ?>
					
					<?php 
        if ($config->ps_birthday) {
            ?>
						<td><?php 
            echo JHtml::_('date', $item->birthday, "d-m-Y");
            ?>
</td>
					<?php 
        }
    ?>
			<?php 
    //}
    ?>
			 -->
		</tr>
		</thead>
	<?php 
    foreach ($displayData as $pass) {
        ?>
	<tr>
		<?php 
        if ($config->ps_gender) {
            ?>
		<td style="border: 1px #ccc solid;"><?php 
            echo BookProHelper::formatGender($pass->gender);
            ?>
</td>
		<?php 
        }
        ?>
		
		<td style="border: 1px #ccc solid;"><?php 
        echo $pass->firstname;
        ?>
</td>
		<td style="border: 1px #ccc solid;"><?php 
        echo $pass->lastname;
        ?>
</td>
		
示例#3
0
    if ($params->get('ps_lastname', 1)) {
        ?>
	
					<td><?php 
        echo $subject->lastname;
        ?>
</td>
				<?php 
    }
    ?>
				
				<?php 
    if ($params->get('ps_gender')) {
        ?>
					<td><?php 
        echo BookProHelper::formatGender($subject->gender);
        ?>
</td>
				<?php 
    }
    ?>
				<?php 
    if ($params->get('ps_birthday')) {
        ?>
					<td><?php 
        echo JHtml::_('date', $subject->birthday, "d-m-Y");
        ?>
</td>
				<?php 
    }
    ?>
示例#4
0
 /**
  *
  * @param html $input
  * @param Customer $customer
  * @return mixed
  */
 private function fillCustomer($input)
 {
     $input = str_replace('{email}', $this->customer->email, $input);
     $input = str_replace('{firstname}', $this->customer->firstname, $input);
     $input = str_replace('{lastname}', $this->customer->lastname, $input);
     //$input = str_replace('{username}', $this->customer->username, $input);
     //$input = str_replace('{password}', $this->customer->password, $input);
     $input = str_replace('{mobile}', $this->customer->mobile, $input);
     $input = str_replace('{address}', $this->customer->address, $input);
     $input = str_replace('{city}', $this->customer->city, $input);
     $input = str_replace('{gender}', BookProHelper::formatGender($this->customer->gender), $input);
     $input = str_replace('{telephone}', $this->customer->telephone, $input);
     $input = str_replace('{states}', $this->customer->states, $input);
     $input = str_replace('{zip}', $this->customer->zip ? 'N/A' : $this->customer->zip, $input);
     $input = str_replace('{country}', $this->customer->country_name, $input);
     return $input;
 }