OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / templates / pwc007_music / html / com_contact / contact / default.php
1 <?php
2 defined( '_JEXEC' ) or die( 'Restricted access' );
3
4 $cparams = JComponentHelper::getParams ('com_media');
5 ?>
6 <div class="Post">
7     <div class="Post-body">
8 <div class="Post-inner">
9
10 <?php if ($this->params->get('show_page_title', 1) && !$this->contact->params->get( 'popup' ) && $this->params->get('page_title') != $this->contact->name ): ?>
11 <h2 class="PostHeaderIcon-wrapper"><?php echo JHTML::_('image.site', 'PostHeaderIcon.png', null, null, null, JText::_("PostHeaderIcon"), array('width' => '24', 'height' => '31')); ?> <span class="PostHeader">
12 <span class="componentheading<?php echo $this->params->get('pageclass_sfx')?>"><?php echo $this->escape($this->params->get('page_title')); ?></span>
13 </span>
14 </h2>
15
16 <?php endif; ?>
17 <div class="PostContent">
18
19 <div id="component-contact">
20 <table width="100%" cellpadding="0" cellspacing="0" border="0" class="contentpaneopen<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
21 <?php if ( $this->params->get( 'show_contact_list' ) && count( $this->contacts ) > 1) : ?>
22 <tr>
23         <td colspan="2" align="center">
24                 <br />
25                 <form action="<?php echo JRoute::_('index.php') ?>" method="post" name="selectForm" id="selectForm">
26                 <?php echo JText::_( 'Select Contact' ); ?>:
27                         <br />
28                         <?php echo JHTML::_('select.genericlist',  $this->contacts, 'contact_id', 'class="inputbox" onchange="this.form.submit()"', 'id', 'name', $this->contact->id);?>
29                         <option type="hidden" name="option" value="com_contact" />
30                 </form>
31         </td>
32 </tr>
33 <?php endif; ?>
34 <?php if ( $this->contact->name && $this->contact->params->get( 'show_name' ) ) : ?>
35 <tr>
36         <td width="100%" class="contentheading<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
37                 <?php echo $this->contact->name; ?>
38         </td>
39 </tr>
40 <?php endif; ?>
41 <?php if ( $this->contact->con_position && $this->contact->params->get( 'show_position' ) ) : ?>
42 <tr>
43         <td colspan="2">
44         <?php echo $this->contact->con_position; ?>
45                 <br /><br />
46         </td>
47 </tr>
48 <?php endif; ?>
49 <tr>
50         <td>
51                 <table border="0" width="100%">
52                 <tr>
53                         <td></td>
54                         <td rowspan="2" align="right" valign="top">
55                         <?php if ( $this->contact->image && $this->contact->params->get( 'show_image' ) ) : ?>
56                                 <div style="float: right;">
57                                         <?php echo JHTML::_('image', $cparams->get('image_path') . '/'.$this->contact->image, JText::_( 'Contact' ), array('align' => 'middle')); ?>
58                                 </div>
59                         <?php endif; ?>
60                         </td>
61                 </tr>
62                 <tr>
63                         <td>
64                                 <?php echo $this->loadTemplate('address'); ?>
65                         </td>
66                 </tr>
67                 </table>
68         </td>
69         <td>&nbsp;</td>
70 </tr>
71 <?php if ( $this->contact->params->get( 'allow_vcard' ) ) : ?>
72 <tr>
73         <td colspan="2">
74         <?php echo JText::_( 'Download information as a' );?>
75                 <a href="<?php echo JURI::base(); ?>index.php?option=com_contact&amp;task=vcard&amp;contact_id=<?php echo $this->contact->id; ?>&amp;format=raw&amp;tmpl=component">
76                         <?php echo JText::_( 'VCard' );?></a>
77         </td>
78 </tr>
79 <?php endif;
80 if ( $this->contact->params->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id))
81         echo $this->loadTemplate('form');
82 ?>
83 </table>
84 </div>
85
86 </div>
87 <div class="cleared"></div>
88
89
90 </div>
91
92     </div>
93 </div>
94