2 /************************************************************************/
\r
4 /************************************************************************/
\r
5 /* Copyright (c) 2002-2010 */
\r
6 /* Inclusive Design Institute */
\r
7 /* http://atutor.ca */
\r
9 /* This program is free software. You can redistribute it and/or */
\r
10 /* modify it under the terms of the GNU General Public License */
\r
11 /* as published by the Free Software Foundation. */
\r
12 /************************************************************************/
\r
13 // $Id: edit.php 3111 2005-01-18 19:32:00Z joel $
\r
16 global $display_name_formats, $moduleFactory, $db, $_modules;
\r
19 <div class="input-form">
\r
21 <p><a href="inbox/send_message.php?id=<?php echo $this->row['member_id']; ?>"><?php echo _AT('send_message'); ?></a></p>
\r
22 <dl id="public-profile">
\r
23 <?php $mod = $moduleFactory->getModule('_standard/profile_pictures');
\r
24 if ($mod->isEnabled() === TRUE): ?>
\r
25 <dt><?php echo _AT('picture'); ?></dt>
\r
26 <dd><?php if (profile_image_exists($this->row['member_id'])): ?>
\r
28 //run a check to see if any personal album exists, if not, create one.
\r
29 $sql = 'SELECT * FROM '.TABLE_PREFIX.'pa_albums WHERE member_id='.$this->row['member_id'].' AND type_id='.AT_PA_TYPE_PERSONAL;
\r
30 $result = mysql_query($sql, $db);
\r
32 $row = mysql_fetch_assoc($result); //album info.
\r
35 if (in_array('mods/_standard/photos/index.php', $_modules)){
\r
36 $img_link = AT_PA_BASENAME.'albums.php?id='.$aid;
\r
38 $img_link = 'get_profile_img.php?id='.$this->row['member_id'].SEP.'size=o';
\r
41 <a href="<?php echo $img_link ?>"><?php print_profile_img($this->row['member_id'], 2); ?></a>
\r
43 <?php echo _AT('none'); ?>
\r
48 <dt><?php echo _AT('email'); ?></dt>
\r
50 <?php if($this->row['private_email']): ?>
\r
51 <?php echo _AT('private'); ?>
\r
53 <a href="mailto:<?php echo $this->row['email']; ?>"><?php echo $this->row['email']; ?></a>
\r
57 <dt><?php echo _AT('web_site'); ?></dt>
\r
59 <?php if ($this->row['website']) {
\r
60 echo '<a href="'.htmlspecialchars($this->row['website'], ENT_COMPAT, "UTF-8").'">'.AT_print($this->row['website'], 'members.website').'</a>';
\r
66 <dt><?php echo _AT('phone'); ?></dt>
\r
68 <?php if ($this->row['phone']) {
\r
69 echo $this->row['phone'];
\r
76 <dt><?php echo _AT('status'); ?></dt>
\r
77 <dd><?php echo $this->status; ?></dd>
\r