Location: PHPKode > projects > HikaShop > back/views/order/tmpl/form_address.php
<?php
/**
 * @package		HikaShop for Joomla!
 * @version		1.4.3
 * @author		hikashop.com
 * @copyright	(C) 2010 HIKARI SOFTWARE. All rights reserved.
 * @license		GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?>
<?php $this->typeU=strtoupper($this->type);?>
<fieldset class="adminform" id="htmlfieldset_<?php echo $this->type; ?>">
	<legend><?php echo JText::_('HIKASHOP_'. $this->typeU .'_ADDRESS'); ?></legend>
	<?php
	$name = $this->type.'_address';
	if(!empty($this->order->$name)){
		$address =& $this->order->$name;
		if(empty($this->nobutton)){
		?>
		<div style="float:right">
			<a class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="<?php echo hikashop::completeLink('order&task=address&address_id='.$address->address_id.'&type='.$this->type.'&order_id='.$this->order->order_id,true);?>">
				<img src="<?php echo HIKASHOP_IMAGES; ?>edit.png"/>
			</a>
		</div>
		<?php }?>
		<table class="admintable">
		<?php 
		if(empty($this->display_type)){
			$this->display_type = 'backend';
		}
		$display = 'field_'.$this->display_type;
		foreach($this->order->fields as $field){
			if($field->$display){
				$fieldname = $field->field_namekey;
				?>
				<tr>
					<td class="key">
						<label>
							<?php echo $field->field_realname;?>
						</label>
					</td>
					<td>
						<?php echo $this->fieldsClass->show($field,$address->$fieldname);?>
					</td>
				</tr>
				<?php 
			}
		}
		?>
		</table>
		<?php
	}else{
		?>
		<div style="float:right">
			<a class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="<?php echo hikashop::completeLink('order&task=address&type='.$this->type.'&order_id='.$this->order->order_id,true);?>">
				<img src="<?php echo HIKASHOP_IMAGES; ?>add.png"/>
			</a>
		</div>
		<?php 
	}
	?>
</fieldset>
Return current item: HikaShop