OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / templates / pwc007_music / html / com_contact / category / default.php
1 <?php
2 /**
3  * $Id: default.php 1800 2009-04-25 04:02:15Z fishbone $
4  */
5 defined( '_JEXEC' ) or die( 'Restricted access' );
6 require_once dirname(__FILE__) . DS . '..' . DS . '..' . DS . '..' . DS . 'functions.php';
7
8 $cparams =& JComponentHelper::getParams('com_media');
9 ?>
10 <div class="Post">
11     <div class="Post-body">
12 <div class="Post-inner">
13
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>
17 </span>
18 </h2>
19
20 <?php endif; ?>
21 <div class="PostContent">
22
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' ); ?>" />
30         <?php endif; ?>
31         <?php echo $this->category->description; ?>
32         </div>
33 <?php endif; ?>
34 <script language="javascript" type="text/javascript">
35         function tableOrdering( order, dir, task ) {
36         var form = document.adminForm;
37
38         form.filter_order.value         = order;
39         form.filter_order_Dir.value     = dir;
40         document.adminForm.submit( task );
41 }
42 </script>
43 <form action="<?php echo artxUrlToHref($this->action); ?>" method="post" name="adminForm">
44 <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
45         <thead>
46                 <tr>
47                         <td align="right" colspan="6">
48                         <?php if ($this->params->get('show_limit')) :
49                                 echo JText::_('Display Num') .'&nbsp;';
50                                 echo $this->pagination->getLimitBox();
51                         endif; ?>
52                         </td>
53                 </tr>
54         </thead>
55         <tfoot>
56                 <tr>
57                         <td align="center" colspan="6" class="sectiontablefooter<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
58                                 <?php echo $this->pagination->getPagesLinks(); ?>
59                         </td>
60                 </tr>
61                 <tr>
62                         <td colspan="6" align="right">
63                                 <?php echo $this->pagination->getPagesCounter(); ?>
64                         </td>
65                 </tr>
66         </tfoot>
67         <tbody>
68         <?php if ($this->params->get( 'show_headings' )) : ?>
69                 <tr>
70                         <td width="5" align="right" class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
71                                 <?php echo JText::_('Num'); ?>
72                         </td>
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'] ); ?>
75                         </td>
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'] ); ?>
79                         </td>
80                         <?php endif; ?>
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' ); ?>
84                         </td>
85                         <?php endif; ?>
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' ); ?>
89                         </td>
90                         <?php endif; ?>
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' ); ?>
94                         </td>
95                         <?php endif; ?>
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' ); ?>
99                                 </td>
100                         <?php endif; ?>
101                 </tr>
102         <?php endif; ?>
103         <?php echo $this->loadTemplate('items'); ?>
104 </tbody>
105 </table>
106
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="" />
111 </form>
112 </div>
113
114 </div>
115 <div class="cleared"></div>
116
117
118 </div>
119
120     </div>
121 </div>
122