[ 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/links_page/links_template.php,v $ 14 | $Revision: 1.24 $ 15 | $Date: 2006/08/24 14:50:28 $ 16 | $Author: e107coders $ 17 +----------------------------------------------------------------------------+ 18 */ 19 20 if (!defined('e107_INIT')) { exit; } 21 22 global $sc_style, $link_shortcodes; 23 if(!defined("USER_WIDTH")){ define("USER_WIDTH","width:97%"); } 24 25 // ##### NEXT PREV -------------------------------------------------- 26 if(!isset($LINK_NP_TABLE)){ 27 $LINK_NP_TABLE = "<div class='nextprev'>{LINK_NEXTPREV}</div>"; 28 } 29 // ##### ---------------------------------------------------------------------- 30 31 //general : backlink to link frontpage 32 $sc_style['LINK_NAVIGATOR']['pre'] = "<td style='text-align:right;'>"; 33 $sc_style['LINK_NAVIGATOR']['post'] = "</td>"; 34 35 //general : order menu 36 $sc_style['LINK_SORTORDER']['pre'] = "<td style='text-align:left;'>"; 37 $sc_style['LINK_SORTORDER']['post'] = "</td>"; 38 39 $sc_style['LINK_CATMENU']['pre'] = "<td style='text-align:left;'>"; 40 $sc_style['LINK_CATMENU']['post'] = "</td>"; 41 42 $sc_style['LINK_NAVIGATOR_TABLE_PRE']['pre'] = "<table cellpadding='0' cellspacing='0' style='width:100%; margin-bottom:20px;'><tr>"; 43 $sc_style['LINK_NAVIGATOR_TABLE_PRE']['post'] = ""; 44 $sc_style['LINK_NAVIGATOR_TABLE_POST']['pre'] = ""; 45 $sc_style['LINK_NAVIGATOR_TABLE_POST']['post'] = "</tr></table>"; 46 47 $LINK_NAVIGATOR_TABLE = "{LINK_NAVIGATOR_TABLE_PRE}{LINK_SORTORDER}{LINK_NAVIGATOR}{LINK_NAVIGATOR_TABLE_POST}"; 48 49 50 51 $sc_style['LINK_MANAGE_NEWLINK']['pre'] = "<div style='text-align:right;'>"; 52 $sc_style['LINK_MANAGE_NEWLINK']['post'] = " >></div>"; 53 54 $LINK_TABLE_MANAGE_START = " 55 <form method='post' action='".e_SELF."?".e_QUERY."' id='linkmanagerform' enctype='multipart/form-data'> 56 <table class='fborder' style='width:100%;' cellspacing='0' cellpadding='0'> 57 <tr> 58 <td style='width:15%' class='fcaption'>".LAN_LINKS_MANAGER_5."</td> 59 <td style='width:75%' class='fcaption'>".LAN_LINKS_MANAGER_1."</td> 60 <td style='width:10%' class='fcaption'>".LAN_LINKS_MANAGER_2."</td> 61 </tr>"; 62 63 $LINK_TABLE_MANAGE = " 64 <tr> 65 <td style='width:15%; padding-bottom:5px;' class='forumheader3'>{LINK_MANAGE_CAT}</td> 66 <td style='width:75%; padding-bottom:5px;' class='forumheader3'>{LINK_MANAGE_ICON} {LINK_MANAGE_NAME}</td> 67 <td style='width:10%; padding-bottom:5px; text-align:center; vertical-align:top;' class='forumheader3'>{LINK_MANAGE_OPTIONS}</td> 68 </tr>"; 69 70 $LINK_TABLE_MANAGE_END = "</table></form><br />{LINK_MANAGE_NEWLINK}"; 71 72 73 74 // MAIN TABLE ------------------------------------------------------------------------------- 75 $sc_style['LINK_MAIN_ICON']['pre'] = "<td rowspan='2' class='forumheader3' style='width:2%; text-align:left; padding-right:10px;'>"; 76 $sc_style['LINK_MAIN_ICON']['post'] = "</td>"; 77 78 $sc_style['LINK_MAIN_HEADING']['pre'] = ""; 79 $sc_style['LINK_MAIN_HEADING']['post'] = ""; 80 81 $sc_style['LINK_MAIN_DESC']['pre'] = "<tr><td class='forumheader3' colspan='3'>"; 82 $sc_style['LINK_MAIN_DESC']['post'] = "</td></tr>"; 83 84 $sc_style['LINK_MAIN_NUMBER']['pre'] = "<td class='forumheader' style='width:8%; white-space:nowrap;'>"; 85 $sc_style['LINK_MAIN_NUMBER']['post'] = "</td>"; 86 87 $sc_style['LINK_MAIN_TOTAL']['pre'] = ""; 88 $sc_style['LINK_MAIN_TOTAL']['post'] = "<br />"; 89 90 91 $LINK_MAIN_TABLE_START = " 92 <div style='text-align:center'>"; 93 94 $LINK_MAIN_TABLE = " 95 <table class='fborder' style='width:100%; margin-bottom:20px;' cellspacing='0' cellpadding='0'> 96 <tr> 97 {LINK_MAIN_ICON} 98 <td class='fcaption'>{LINK_MAIN_HEADING}</td> 99 {LINK_MAIN_NUMBER} 100 </tr> 101 {LINK_MAIN_DESC} 102 </table>"; 103 104 $LINK_MAIN_TABLE_END = " 105 <div style='text-align:right;'> 106 {LINK_MAIN_TOTAL} 107 </div> 108 </div>"; 109 110 $LINK_MAIN_TABLE_START_ALL = " 111 <div style='text-align:center'>"; 112 $LINK_MAIN_TABLE_END_ALL = " 113 </div>"; 114 115 116 117 118 // LINKS ITEM ---------------------------------------------------------------------------- 119 120 $sc_style['LINK_BUTTON']['pre'] = "<td class='forumheader3' style='width:5%; text-align:center'>"; 121 $sc_style['LINK_BUTTON']['post'] = "</td>"; 122 123 $sc_style['LINK_COMMENT']['pre'] = "<td class='forumheader3' style='width:5%; text-align:center'>"; 124 $sc_style['LINK_COMMENT']['post'] = "</td>"; 125 126 $sc_style['LINK_RATING']['pre'] = "<td class='forumheader3' style='width:5%; text-align:center'>"; 127 $sc_style['LINK_RATING']['post'] = "</td>"; 128 129 $sc_style['LINK_REFER']['pre'] = "<td class='forumheader3' style='width:5%; text-align:center'>"; 130 $sc_style['LINK_REFER']['post'] = "</td>"; 131 132 $sc_style['LINK_URL']['pre'] = "<span class='smalltext'>"; 133 $sc_style['LINK_URL']['post'] = "</span>"; 134 135 $sc_style['LINK_DESC']['pre'] = "<span class='smalltext'>"; 136 $sc_style['LINK_DESC']['post'] = "</span>"; 137 138 $sc_style['LINK_REFER_LAN']['pre'] = "<td class='fcaption' style='text-align:center;width:5%'>"; 139 $sc_style['LINK_REFER_LAN']['post'] = "</td>"; 140 141 $sc_style['LINK_COMMENT_LAN']['pre'] = "<td class='fcaption' style='width:5%'>"; 142 $sc_style['LINK_COMMENT_LAN']['post'] = "</td>"; 143 144 $sc_style['LINK_RATING_LAN']['pre'] = "<td class='fcaption' style='width:5%'>"; 145 $sc_style['LINK_RATING_LAN']['post'] = "</td>"; 146 147 $sc_style['LINK_BUTTON_LAN']['pre'] = "<td class='fcaption' style='width:5%'>"; 148 $sc_style['LINK_BUTTON_LAN']['post'] = "</td>"; 149 150 $sc_style['LINK_CAT_DESC']['pre'] = "<br /><span class='smalltext'><i>"; 151 $sc_style['LINK_CAT_DESC']['post'] = "</i></span>"; 152 153 $LINK_TABLE_CAPTION = LCLAN_ITEM_24."{NAVIGATOR}" ; 154 155 $LINK_TABLE_START = " 156 <div style='text-align:center'> 157 <table class='fborder' style='".USER_WIDTH.";margin-bottom:20px;'> 158 <tr> 159 <td colspan='{BUTTON_COLUMN}' class='fcaption'>".LAN_LINKS_32." {LINK_CAT_NAME} {LINK_CAT_TOTAL} {LINK_CAT_DESC} </td> 160 {LINK_RATING_LAN} 161 {LINK_COMMENT_LAN} 162 {LINK_REFER_LAN} 163 </tr>"; 164 165 $LINK_TABLE = " 166 167 <tr> 168 {LINK_BUTTON} 169 <td class='forumheader3' style='width:60%'> 170 {LINK_NEW} {LINK_APPEND} {LINK_NAME} </a><br /> 171 {LINK_URL=link} 172 {LINK_DESC} 173 174 </td> 175 {LINK_RATING} 176 {LINK_COMMENT} 177 {LINK_REFER} 178 179 </tr> 180 "; 181 182 $LINK_TABLE_END = " 183 </table></div>"; 184 185 186 187 // RATED ----------------------------------------------------------------------------------- 188 $sc_style['LINK_RATED_BUTTON']['pre'] = "<td rowspan='5' class='forumheader3' style='width:10%; text-align:center; padding-right:5px;'>"; 189 $sc_style['LINK_RATED_BUTTON']['post'] = "</td>"; 190 191 $sc_style['LINK_RATED_NAME']['pre'] = ""; 192 $sc_style['LINK_RATED_NAME']['post'] = ""; 193 194 $sc_style['LINK_RATED_URL']['pre'] = "<tr><td colspan='2' class='forumheader2' style='line-height:130%;'><i>"; 195 $sc_style['LINK_RATED_URL']['post'] = "</i></td></tr>"; 196 197 $sc_style['LINK_RATED_REFER']['pre'] = "<td class='forumheader' style='white-space:nowrap;'>"; 198 $sc_style['LINK_RATED_REFER']['post'] = "</td>"; 199 200 $sc_style['LINK_RATED_DESC']['pre'] = "<tr><td colspan='2' class='forumheader3' style='line-height:130%;'>"; 201 $sc_style['LINK_RATED_DESC']['post'] = "</td></tr>"; 202 203 $sc_style['LINK_RATED_RATING']['pre'] = "<td colspan='2' class='forumheader' style='line-height:130%; width:25%; white-space:nowrap; text-align:right;'>"; 204 $sc_style['LINK_RATED_RATING']['post'] = "</td>"; 205 206 $sc_style['LINK_RATED_CATEGORY']['pre'] = "<tr><td colspan='2' class='forumheader2' style='line-height:130%;'><i>"; 207 $sc_style['LINK_RATED_CATEGORY']['post'] = "</i></td></tr>"; 208 209 $LINK_RATED_TABLE_START = " 210 <div style='text-align:center'> 211 "; 212 213 $LINK_RATED_TABLE = " 214 <table class='fborder' style='width:100%; margin-bottom:20px;' cellspacing='0' cellpadding='0'> 215 <tr> 216 {LINK_RATED_BUTTON} 217 <td class='fcaption' style='width:75%;'> 218 {LINK_RATED_APPEND} {LINK_RATED_NAME} </a> 219 </td> 220 {LINK_RATED_RATING} 221 </tr> 222 {LINK_RATED_URL} 223 {LINK_RATED_CATEGORY} 224 {LINK_RATED_DESC} 225 </table>"; 226 227 $LINK_RATED_TABLE_END = " 228 </div>"; 229 230 231 $sc_style['LINK_SUBMIT_PRETEXT']['pre'] = "<tr><td colspan='2' style='text-align:center' class='forumheader2'>"; 232 $sc_style['LINK_SUBMIT_PRETEXT']['post'] = "</td></tr>"; 233 234 // SUBMIT ----------------------------------------------------------------------------------- 235 $LINK_SUBMIT_TABLE = " 236 <div style='text-align:center'> 237 <form method='post' action='".e_SELF.(e_QUERY ? "?".e_QUERY : "")."'> 238 <table class='fborder' style='width:100%' cellspacing='0' cellpadding='0'> 239 {LINK_SUBMIT_PRETEXT} 240 <tr> 241 <td class='forumheader3' style='width:30%'>".LCLAN_SL_10."</td> 242 <td class='forumheader3' style='width:70%'>{LINK_SUBMIT_CAT}</td> 243 </tr> 244 <tr> 245 <td class='forumheader3' style='width:30%'><u>".LCLAN_SL_11."</u></td> 246 <td class='forumheader3' style='width:30%'><input class='tbox' type='text' name='link_name' size='60' value='' maxlength='100' /></td> 247 </tr> 248 <tr> 249 <td class='forumheader3' style='width:30%'><u>".LCLAN_SL_12."</u></td> 250 <td class='forumheader3' style='width:30%'><input class='tbox' type='text' name='link_url' size='60' value='' maxlength='200' /></td> 251 </tr> 252 <tr> 253 <td class='forumheader3' style='width:30%'><u>".LCLAN_SL_13."</u></td> 254 <td class='forumheader3' style='width:30%'><textarea class='tbox' name='link_description' cols='59' rows='3'></textarea></td> 255 </tr> 256 <tr> 257 <td class='forumheader3' style='width:30%'>".LCLAN_SL_14."</td> 258 <td class='forumheader3' style='width:30%'><input class='tbox' type='text' name='link_but' size='60' value='' maxlength='200' /></td> 259 </tr> 260 <tr> 261 <td colspan='2' style='text-align:center' class='forumheader3'><span class='smalltext'>".LCLAN_SL_15."</span></td> 262 </tr> 263 <tr> 264 <td colspan='2' style='text-align:center' class='forumheader'><input class='button' type='submit' name='add_link' value='".LCLAN_SL_16."' /></td> 265 </tr> 266 </table> 267 </form> 268 </div> 269 "; 270 271 272 ?>
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 |