3 * $Id: default.php 1800 2009-04-25 04:02:15Z fishbone $
5 defined( '_JEXEC' ) or die( 'Restricted access' );
6 require_once dirname(__FILE__) . DS . '..' . DS . '..' . DS . '..' . DS . 'functions.php';
8 $cparams =& JComponentHelper::getParams('com_media');
11 <div class="Post-body">
12 <div class="Post-inner">
14 <?php if ($this->params->def('show_page_title', 1)): ?>
15 <h2 class="PostHeaderIcon-wrapper"><?php echo JHTML::_('image.site', 'PostHeaderIcon.png', null, null, null, JText::_("PostHeaderIcon"), array('width' => '24', 'height' => '31')); ?> <span class="PostHeader">
16 <span class="componentheading<?php echo $this->params->get('pageclass_sfx')?>"><?php echo $this->escape($this->params->get('page_title')); ?></span>
21 <div class="PostContent">
23 <div class="contentpane<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
24 <?php if ($this->category->image || $this->category->description) : ?>
25 <div class="contentdescription<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
26 <?php if ($this->params->get('image') != -1 && $this->params->get('image') != '') : ?>
27 <img src="<?php echo $this->baseurl .'/'. $cparams->get('image_path') . '/'. $this->params->get('image'); ?>" align="<?php echo $this->params->get('image_align'); ?>" hspace="6" alt="<?php echo JText::_( 'Contacts' ); ?>" />
28 <?php elseif ($this->category->image) : ?>
29 <img src="<?php echo $this->baseurl .'/'. $cparams->get('image_path') . '/'. $this->category->image; ?>" align="<?php echo $this->category->image_position; ?>" hspace="6" alt="<?php echo JText::_( 'Contacts' ); ?>" />
31 <?php echo $this->category->description; ?>
34 <script language="javascript" type="text/javascript">
35 function tableOrdering( order, dir, task ) {
36 var form = document.adminForm;
38 form.filter_order.value = order;
39 form.filter_order_Dir.value = dir;
40 document.adminForm.submit( task );
43 <form action="<?php echo artxUrlToHref($this->action); ?>" method="post" name="adminForm">
44 <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
47 <td align="right" colspan="6">
48 <?php if ($this->params->get('show_limit')) :
49 echo JText::_('Display Num') .' ';
50 echo $this->pagination->getLimitBox();
57 <td align="center" colspan="6" class="sectiontablefooter<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
58 <?php echo $this->pagination->getPagesLinks(); ?>
62 <td colspan="6" align="right">
63 <?php echo $this->pagination->getPagesCounter(); ?>
68 <?php if ($this->params->get( 'show_headings' )) : ?>
70 <td width="5" align="right" class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
71 <?php echo JText::_('Num'); ?>
73 <td height="20" class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
74 <?php echo JHTML::_('grid.sort', 'Name', 'cd.name', $this->lists['order_Dir'], $this->lists['order'] ); ?>
76 <?php if ( $this->params->get( 'show_position' ) ) : ?>
77 <td height="20" class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
78 <?php echo JHTML::_('grid.sort', 'Position', 'cd.con_position', $this->lists['order_Dir'], $this->lists['order'] ); ?>
81 <?php if ( $this->params->get( 'show_email' ) ) : ?>
82 <td height="20" width="20%" class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
83 <?php echo JText::_( 'Email' ); ?>
86 <?php if ( $this->params->get( 'show_telephone' ) ) : ?>
87 <td height="20" width="15%" class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
88 <?php echo JText::_( 'Phone' ); ?>
91 <?php if ( $this->params->get( 'show_mobile' ) ) : ?>
92 <td height="20" width="15%" class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
93 <?php echo JText::_( 'Mobile' ); ?>
96 <?php if ( $this->params->get( 'show_fax' ) ) : ?>
97 <td height="20" width="15%" class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
98 <?php echo JText::_( 'Fax' ); ?>
103 <?php echo $this->loadTemplate('items'); ?>
107 <input type="hidden" name="option" value="com_contact" />
108 <input type="hidden" name="catid" value="<?php echo $this->category->id;?>" />
109 <input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
110 <input type="hidden" name="filter_order_Dir" value="" />
115 <div class="cleared"></div>