[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | ©Steve Dunstan 2001-2002 7 | http://e107.org 8 | jalist@e107.org 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $Source: /cvsroot/e107/e107_0.7/e107_themes/templates/user_template.php,v $ 14 | $Revision: 1.15 $ 15 | $Date: 2006/08/04 00:19:07 $ 16 | $Author: mcfly_e107 $ 17 +----------------------------------------------------------------------------+ 18 */ 19 20 if (!defined('e107_INIT')) { exit; } 21 if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); } 22 23 global $user_shortcodes, $pref; 24 //Set this to TRUE if you would like any extended user field that is empty to NOT be shown on the profile page 25 define("HIDE_EMPTY_FIELDS", FALSE); 26 27 $EXTENDED_CATEGORY_START = "<tr><td colspan='2' class='forumheader' style='text-align:left'>{EXTENDED_NAME}</td></tr>"; 28 29 $EXTENDED_CATEGORY_TABLE = " 30 <tr> 31 <td style='width:40%' class='forumheader3'> 32 {EXTENDED_ICON} 33 {EXTENDED_NAME} 34 </td> 35 <td style='width:60%' class='forumheader3'>{EXTENDED_VALUE}</td> 36 </tr> 37 "; 38 39 $EXTENDED_END = ""; 40 // $datestamp = $gen->convert_date($user_join, "forum"); 41 42 $USER_SHORT_TEMPLATE_START = " 43 <div style='text-align:center'>".LAN_138." {TOTAL_USERS} 44 <br /> 45 <br /> 46 {USER_FORM_START} 47 <p>".LAN_419.": {USER_FORM_RECORDS} ".LAN_139." {USER_FORM_ORDER} 48 {USER_FORM_SUBMIT} 49 {USER_FORM_END} 50 </p> 51 </div> 52 <br /> 53 <br /> 54 <table style='".USER_WIDTH."' class='fborder'> 55 <tr> 56 <td class='fcaption' style='width:2%'> </td> 57 <td class='fcaption' style='width:20%'>".LAN_142."</td> 58 <td class='fcaption' style='width:20%'>".LAN_112."</td> 59 <td class='fcaption' style='width:20%'>".LAN_145."</td> 60 </tr> 61 "; 62 $USER_SHORT_TEMPLATE_END = " 63 </table> 64 "; 65 66 $USER_SHORT_TEMPLATE = " 67 <tr> 68 <td class='forumheader3' style='width:2%'>{USER_ICON_LINK}</td> 69 <td class='forumheader' style='width:20%'>{USER_ID}: {USER_NAME_LINK}</td> 70 <td class='forumheader3' style='width:20%'>{USER_EMAIL}</td> 71 <td class='forumheader3' style='width:20%'>{USER_JOIN}</td> 72 </tr> 73 "; 74 75 $sc_style['USER_SIGNATURE']['pre'] = "<tr><td colspan='2' class='forumheader3' style='text-align:left'>"; 76 $sc_style['USER_SIGNATURE']['post'] = "</td></tr>"; 77 78 $sc_style['USER_COMMENTS_LINK']['pre'] = "<tr><td colspan='2' class='forumheader3' style='text-align:left'>"; 79 $sc_style['USER_COMMENTS_LINK']['post'] = "</td></tr>"; 80 81 $sc_style['USER_FORUM_LINK']['pre'] = "<tr><td colspan='2' class='forumheader3' style='text-align:left'>"; 82 $sc_style['USER_FORUM_LINK']['post'] = "</td></tr>"; 83 84 $sc_style['USER_UPDATE_LINK']['pre'] = "<tr><td colspan='2' class='forumheader3' style='text-align:center'>"; 85 $sc_style['USER_UPDATE_LINK']['post'] = "</td></tr>"; 86 87 $sc_style['USER_RATING']['pre'] = "<tr><td colspan='2' style='width:100%' class='forumheader3'><span style='float:left'>".LAN_406."</span></span><span style='float:right;'>"; 88 $sc_style['USER_RATING']['post'] = "</span></td></tr>"; 89 90 $sc_style['USER_LOGINNAME']['pre'] = " : "; 91 92 if(isset($pref['photo_upload']) && $pref['photo_upload']) 93 { 94 $user_picture = "{USER_PICTURE}"; 95 $colspan = " colspan='2'"; 96 $main_colspan = ""; 97 } 98 else 99 { 100 $user_picture = ""; 101 $colspan = ""; 102 $main_colspan = " colspan = '2' "; 103 } 104 105 $sc_style['USER_SENDPM']['pre'] = "<tr><td colspan='2' style='width:100%' class='forumheader3'><span style='float:left'>"; 106 $sc_style['USER_SENDPM']['post'] = "</span><span style='float:right;'>".LAN_425."</span></td></tr>"; 107 108 if($tp->parseTemplate("{USER_SENDPM}", FALSE, $user_shortcodes)) 109 { 110 $sendpm = "{USER_SENDPM}"; 111 } 112 else 113 { 114 $sendpm = ""; 115 } 116 117 $span = " rowspan='".($sendpm ? "5" : "4")."' "; 118 $sc_style['USER_PICTURE']['pre']="<td {$span} class='forumheader3' style='width:20%; vertical-align:middle; text-align:center'>"; 119 $sc_style['USER_PICTURE']['post']="</td>"; 120 121 $USER_FULL_TEMPLATE = " 122 <div style='text-align:center'> 123 <table style='".USER_WIDTH."' class='fborder'> 124 <tr> 125 <td colspan='2' class='fcaption' style='text-align:center'>".LAN_142." {USER_ID} : {USER_NAME}{USER_LOGINNAME}</td> 126 </tr> 127 <tr> 128 $user_picture 129 <td {$main_colspan} class='forumheader3' style='width:100%'> 130 <span style='float:left'>{USER_REALNAME_ICON} ".LAN_308."</span> 131 <span style='float:right; text-align:right'>{USER_REALNAME}</span> 132 </td> 133 </tr> 134 135 <tr> 136 <td {$main_colspan} style='width:100%' class='forumheader3'> 137 <span style='float:left'>{USER_EMAIL_ICON} ".LAN_112."</span> 138 <span style='float:right; text-align:right'>{USER_EMAIL_LINK}</span> 139 </td> 140 </tr> 141 142 <tr> 143 <td {$main_colspan} style='width:100%' class='forumheader3'> 144 <span style='float:left'>".LAN_406.":</span> 145 <span style='float:right; text-align:right'>{USER_LEVEL}</span> 146 </td> 147 </tr> 148 149 <tr> 150 <td {$main_colspan} style='width:100%' class='forumheader3'> 151 <span style='float:left'>".LAN_404.": </span> 152 <span style='float:right; text-align:right'>{USER_LASTVISIT}<br />{USER_LASTVISIT_LAPSE}</span> 153 </td> 154 </tr> 155 {$sendpm} 156 {USER_RATING} 157 {USER_SIGNATURE} 158 {USER_EXTENDED_ALL} 159 <tr> 160 <td colspan='2' class='forumheader'>".LAN_403."</td> 161 </tr> 162 163 <tr> 164 <td style='width:30%' class='forumheader3'>".LAN_145."</td> 165 <td style='width:70%' class='forumheader3'>{USER_JOIN}<br />{USER_DAYSREGGED}</td> 166 </tr> 167 168 <tr> 169 <td style='width:30%' class='forumheader3'>".LAN_147."</td> 170 <td style='width:70%' class='forumheader3'>{USER_CHATPOSTS} ( {USER_CHATPER}% )</td> 171 </tr> 172 173 <tr> 174 <td style='width:30%' class='forumheader3'>".LAN_148."</td> 175 <td style='width:70%' class='forumheader3'>{USER_COMMENTPOSTS} ( {USER_COMMENTPER}% )</td> 176 </tr> 177 {USER_COMMENTS_LINK} 178 179 <tr> 180 <td style='width:30%' class='forumheader3'>".LAN_149."</td> 181 <td style='width:70%' class='forumheader3'>{USER_FORUMPOSTS} ( {USER_FORUMPER}% )</td> 182 </tr> 183 {USER_FORUM_LINK} 184 <tr> 185 <td style='width:30%' class='forumheader3'>".LAN_146."</td> 186 <td style='width:70%' class='forumheader3'>{USER_VISITS}</td> 187 </tr> 188 {USER_UPDATE_LINK} 189 <tr> 190 <td colspan='2' class='forumheader3' style='text-align:center'> 191 <table style='width:95%'> 192 <tr> 193 <td style='width:50%'>{USER_JUMP_LINK=prev}</td> 194 <td style='width:50%; text-align:right'>{USER_JUMP_LINK=next}</td> 195 </tr> 196 </table> 197 </td> 198 </tr> 199 </table></div> 200 {PROFILE_COMMENTS} 201 {PROFILE_COMMENT_FORM} 202 "; 203 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |