[ 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_plugins/forum/templates/forum_post_template.php,v $ 14 | $Revision: 1.22 $ 15 | $Date: 2006/11/09 16:56:30 $ 16 | $Author: mrpete $ 17 +----------------------------------------------------------------------------+ 18 */ 19 20 if (!defined('e107_INIT')) { exit; } 21 if(!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); } 22 23 // the user box and subject box are not always displayed, therefore we need to define them /in case/ they are, if not they'll be ignored. 24 25 if(!$userbox) 26 { 27 $userbox = "<tr> 28 <td class='forumheader2' style='width:20%'>".LAN_61."</td> 29 <td class='forumheader2' style='width:80%'> 30 <input class='tbox' type='text' name='anonname' size='71' value='".$anonname."' maxlength='20' style='width:95%' /> 31 </td> 32 </tr>"; 33 } 34 35 if(!$subjectbox) 36 { 37 $subjectbox = "<tr> 38 <td class='forumheader2' style='width:20%'>".LAN_62."</td> 39 <td class='forumheader2' style='width:80%'> 40 <input class='tbox' type='text' name='subject' size='71' value='".$subject."' maxlength='100' style='width:95%' /> 41 </td> 42 </tr>"; 43 } 44 45 // the poll is optional, be careful when changing the values here, only change if you know what you're doing ... 46 if(!$poll_form) 47 { 48 if(is_readable(e_PLUGIN."poll/poll_class.php")) { 49 require_once(e_PLUGIN."poll/poll_class.php"); 50 $pollo = new poll; 51 $poll_form = $pollo -> renderPollForm("forum"); 52 } 53 } 54 55 // finally, file attach is optional, again only change this if you know what you're doing ... 56 if(!$fileattach) 57 { 58 $fileattach = " 59 <tr> 60 <td colspan='2' class='nforumcaption2'>".($pref['image_post'] ? LAN_390 : LAN_416)."</td> 61 </tr> 62 <tr> 63 <td style='width:20%' class='forumheader3'>".LAN_392."</td> 64 <td style='width:80%' class='forumheader3'>".LAN_393." | ".$allowed_filetypes." |<br />".LAN_394."<br />".LAN_395.": ".($pref['upload_maxfilesize'] ? $pref['upload_maxfilesize'].LAN_396 : ini_get('upload_max_filesize'))." 65 <br /> 66 <div id='fiupsection'> 67 <span id='fiupopt'> 68 <input class='tbox' name='file_userfile[]' type='file' size='47' /> 69 </span> 70 </div> 71 <input class='button' type='button' name='addoption' value='".LAN_417."' onclick=\"duplicateHTML('fiupopt','fiupsection')\" /> 72 </td> 73 </tr> 74 "; 75 //</td> 76 //</tr> 77 } 78 // If the upload directory is not writable, we need to alert the user about this. 79 if(!$fileattach_alert) 80 { 81 $fileattach_alert = " 82 <tr> 83 <td colspan='2' class='nforumcaption2'>".($pref['image_post'] ? LAN_390 : LAN_416)."</td> 84 </tr> 85 <tr> 86 <td colspan='2' class='forumheader3'>".LAN_FORUM_1."</td> 87 </tr>\n"; 88 } 89 // ------------ 90 91 if(!$FORUMPOST) 92 { 93 $FORUMPOST = " 94 <div style='text-align:center'> 95 <div class='spacer'> 96 {FORMSTART} 97 <table style='".USER_WIDTH."' class='fborder'> 98 <tr> 99 <td colspan='2' class='fcaption'>{BACKLINK} 100 </td> 101 </tr> 102 {USERBOX} 103 {SUBJECTBOX} 104 <tr> 105 <td class='forumheader2' style='width:20%'>{POSTTYPE}</td> 106 <td class='forumheader2' style='width:80%'> 107 {POSTBOX}<br />{EMAILNOTIFY}<br />{POSTTHREADAS} 108 </td> 109 </tr> 110 111 {POLL} 112 113 {FILEATTACH} 114 115 <tr style='vertical-align:top'> 116 <td colspan='2' class='forumheader' style='text-align:center'> 117 {BUTTONS} 118 </td> 119 </tr> 120 </table> 121 {FORMEND} 122 123 <table style='".USER_WIDTH."'> 124 <tr> 125 <td> 126 {FORUMJUMP} 127 </td> 128 </tr> 129 </table> 130 </div></div> 131 "; 132 } 133 134 if(!$FORUMPOST_REPLY) 135 { 136 $FORUMPOST_REPLY = " 137 <div style='text-align:center'> 138 <div class='spacer'> 139 {FORMSTART} 140 <table style='".USER_WIDTH."' class='fborder'> 141 <tr> 142 <td colspan='2' class='fcaption'>{BACKLINK} 143 </td> 144 </tr> 145 {USERBOX} 146 {SUBJECTBOX} 147 <tr> 148 <td class='forumheader2' style='width:20%'>{POSTTYPE}</td> 149 <td class='forumheader2' style='width:80%'> 150 {POSTBOX}<br />{EMAILNOTIFY}<br />{POSTTHREADAS} 151 </td> 152 </tr> 153 154 {POLL} 155 156 {FILEATTACH} 157 158 <tr style='vertical-align:top'> 159 <td colspan='2' class='forumheader' style='text-align:center'> 160 {BUTTONS} 161 </td> 162 </tr> 163 </table> 164 {FORMEND} 165 166 <table style='".USER_WIDTH."'> 167 <tr> 168 <td> 169 {FORUMJUMP} 170 </td> 171 </tr> 172 </table> 173 </div></div> 174 <div style='text-align:center'> 175 {THREADTOPIC} 176 {LATESTPOSTS} 177 </div> 178 "; 179 } 180 181 if(!$LATESTPOSTS_START) 182 { 183 $LATESTPOSTS_START = " 184 <table style='".USER_WIDTH."' class='fborder'> 185 <tr> 186 <td colspan='2' class='fcaption' style='vertical-align:top'>". 187 LAN_101."{LATESTPOSTSCOUNT}".LAN_102." 188 </td> 189 </tr>"; 190 } 191 192 if(!$LATESTPOSTS_POST) 193 { 194 $LATESTPOSTS_POST = " 195 <tr> 196 <td class='forumheader3' style='width:20%;vertical-align:top'><b>{POSTER}</b></td> 197 <td class='forumheader3' style='width:80%'> 198 <div class='smallblacktext' style='text-align:right'>".IMAGE_post2." ".LAN_322."{THREADDATESTAMP}</div> 199 {POST} 200 </td> 201 </tr> 202 "; 203 } 204 205 if(!$LATESTPOSTS_END) 206 { 207 $LATESTPOSTS_END = " 208 </table> 209 "; 210 } 211 212 if(!$THREADTOPIC_REPLY) 213 { 214 $THREADTOPIC_REPLY = " 215 <table style='".USER_WIDTH."' class='fborder'> 216 <tr> 217 <td colspan='2' class='fcaption' style='vertical-align:top'>".LAN_100."</td> 218 </tr> 219 <tr> 220 <td class='forumheader3' style='width:20%;vertical-align:top'><b>{POSTER}</b></td> 221 <td class='forumheader3' style='width:80%'> 222 <div class='smallblacktext' style='text-align:right'>".IMAGE_post2." ".LAN_322."{THREADDATESTAMP}</div>{POST} 223 </td> 224 </tr> 225 </table> 226 "; 227 } 228 229 $FORUM_CRUMB['sitename']['value'] = "<a class='forumlink' {SITENAME_HREF}>{SITENAME}</a>"; 230 $FORUM_CRUMB['sitename']['sep'] = " :: "; 231 232 $FORUM_CRUMB['forums']['value'] = "<a class='forumlink' {FORUMS_HREF}>{FORUMS_TITLE}</a>"; 233 $FORUM_CRUMB['forums']['sep'] = " :: "; 234 235 $FORUM_CRUMB['parent']['value'] = "{PARENT_TITLE}"; 236 $FORUM_CRUMB['parent']['sep'] = " :: "; 237 238 $FORUM_CRUMB['subparent']['value'] = "<a class='forumlink' {SUBPARENT_HREF}>{SUBPARENT_TITLE}</a>"; 239 $FORUM_CRUMB['subparent']['sep'] = " :: "; 240 241 $FORUM_CRUMB['forum']['value'] = "<a class='forumlink' {FORUM_HREF}>{FORUM_TITLE}</a>"; 242 $FORUM_CRUMB['forum']['sep'] = " :: "; 243 244 $FORUM_CRUMB['thread']['value'] = "{THREAD_TITLE}"; 245 246 ?>
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 |