[ Index ]
 

Code source de e107 0.7.8

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/e107_themes/templates/ -> download_template.php (source)

   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/download_template.php,v $
  14  |     $Revision: 1.17 $
  15  |     $Date: 2007/02/03 14:21:25 $
  16  |     $Author: e107steved $
  17  +----------------------------------------------------------------------------+
  18  */
  19  if (!defined('e107_INIT')) { exit; }
  20  if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); }
  21  
  22  
  23  /* set style of download image and thumbnail */
  24  define("DL_IMAGESTYLE","border:0px");
  25  
  26  // ##### CAT TABLE --------------------------------------------------------------------------------
  27  if(!isset($DOWNLOAD_CAT_TABLE_START))
  28  {
  29                  $DOWNLOAD_CAT_TABLE_START = "
  30                  <div style='text-align:center'>
  31                  <table class='fborder' style='".USER_WIDTH."'>\n
  32                  <tr>
  33                  <td style='width:3%; text-align:center' class='fcaption'>&nbsp;</td>
  34                  <td style='width:60%; text-align:center' class='fcaption'>".LAN_dl_19."</td>
  35                  <td style='width:10%; text-align:center' class='fcaption'>".LAN_dl_20."</td>
  36                  <td style='width:17%; text-align:center' class='fcaption'>".LAN_dl_21."</td>
  37                  <td style='width:10%; text-align:center' class='fcaption'>".LAN_dl_77."</td>
  38                  </tr>";
  39  }
  40  if(!isset($DOWNLOAD_CAT_PARENT_TABLE))
  41  {
  42                  $DOWNLOAD_CAT_PARENT_TABLE = "
  43                  <tr>
  44                  <td colspan='5' class='forumheader' style='text-align:left; font-weight:bold;'>
  45                          {DOWNLOAD_CAT_MAIN_ICON} {DOWNLOAD_CAT_MAIN_NAME}
  46                  </td>
  47                  </tr>";
  48  }
  49  
  50  if(!isset($DOWNLOAD_CAT_CHILD_TABLE))
  51  {
  52                  $DOWNLOAD_CAT_CHILD_TABLE = "
  53                  <tr>
  54                  <td class='forumheader3'>
  55                          {DOWNLOAD_CAT_SUB_ICON}
  56                  </td>
  57                  <td class='forumheader3'>
  58                          {DOWNLOAD_CAT_SUB_NEW_ICON} {DOWNLOAD_CAT_SUB_NAME}<br />
  59                          <span class='smalltext'>
  60                          {DOWNLOAD_CAT_SUB_DESCRIPTION}
  61                          </span>
  62                  </td>
  63                  <td class='forumheader3' style='text-align:center;'>
  64                          {DOWNLOAD_CAT_SUB_COUNT}
  65                  </td>
  66                  <td class='forumheader3' style='text-align:center;'>
  67                          {DOWNLOAD_CAT_SUB_SIZE}
  68                  </td>
  69                  <td class='forumheader3' style='text-align:center;'>
  70                          {DOWNLOAD_CAT_SUB_DOWNLOADED}
  71                  </td>
  72                  </tr>
  73                  {DOWNLOAD_CAT_SUBSUB}
  74                  ";
  75  
  76  }
  77  
  78  if(!isset($DOWNLOAD_CAT_SUBSUB_TABLE))
  79  {
  80      $DOWNLOAD_CAT_SUBSUB_TABLE = "
  81      <tr>
  82      <td class='forumheader3'>
  83          &nbsp;
  84          </td>
  85          <td class='forumheader3' style='width:100%'>
  86              <table>
  87              <tr>
  88                  <td class='forumheader3' style='border:0'>".
  89                  LAN_dl_42."
  90                  </td>
  91                  <td class='forumheader3' style='border:0'>
  92                  {DOWNLOAD_CAT_SUBSUB_ICON}
  93                  </td>
  94                  <td class='forumheader3' style='border:0; width: 100%'>
  95                      {DOWNLOAD_CAT_SUBSUB_NEW_ICON} {DOWNLOAD_CAT_SUBSUB_NAME}<br />
  96                      <span class='smalltext'>
  97                      {DOWNLOAD_CAT_SUBSUB_DESCRIPTION}
  98                      </span>
  99                  </td>
 100              </tr>
 101              </table>
 102          </td>
 103  
 104      <td class='forumheader3' style='text-align:center;'>
 105          {DOWNLOAD_CAT_SUBSUB_COUNT}
 106      </td>
 107      <td class='forumheader3' style='text-align:center;'>
 108          {DOWNLOAD_CAT_SUBSUB_SIZE}
 109      </td>
 110      <td class='forumheader3' style='text-align:center;'>
 111          {DOWNLOAD_CAT_SUBSUB_DOWNLOADED}
 112      </td>
 113      </tr>";
 114  }
 115  
 116  if(!isset($DOWNLOAD_CAT_TABLE_END))
 117  {
 118                  $DOWNLOAD_CAT_TABLE_END = "
 119                  <tr><td class='forumheader3' colspan='5' style='text-align:right;'>{DOWNLOAD_CAT_NEWDOWNLOAD_TEXT}</td></tr>
 120                  <tr><td class='forumheader3' colspan='5' style='text-align:right;'>{DOWNLOAD_CAT_SEARCH}</td></tr>
 121                  </table>
 122                  </div>\n";
 123  }
 124  // ##### ------------------------------------------------------------------------------------------
 125  
 126  
 127  
 128  // ##### LIST TABLE -------------------------------------------------------------------------------
 129  if(!isset($DOWNLOAD_LIST_TABLE_START))
 130  {
 131                  $DOWNLOAD_LIST_TABLE_START = "
 132                  <div style='text-align:center'>
 133                  <form method='post' action='".e_SELF."?".e_QUERY."'>
 134                  <table class='fborder' style='".USER_WIDTH."'>\n
 135                  <tr>
 136          <td colspan='7' style='text-align:center' class='forumheader'>
 137                          <span class='defaulttext'>".LAN_dl_37."</span>
 138                          <select name='view' class='tbox'>".
 139                          ($view == 5 ? "<option selected='selected'>5</option>" : "<option>5</option>").
 140                          ($view == 10 ? "<option selected='selected'>10</option>" : "<option>10</option>").
 141                          ($view == 15 ? "<option selected='selected'>15</option>" : "<option>15</option>").
 142                          ($view == 20 ? "<option selected='selected'>20</option>" : "<option>20</option>").
 143                          ($view == 50 ? "<option selected='selected'>50</option>" : "<option>50</option>")."
 144                          </select>
 145                          &nbsp;
 146                          <span class='defaulttext'>".LAN_dl_38."</span>
 147                          <select name='order' class='tbox'>".
 148                          ($order == "download_datestamp" ? "<option value='download_datestamp' selected='selected'>".LAN_dl_22."</option>" : "<option value='download_datestamp'>".LAN_dl_22."</option>").
 149                          ($order == "download_requested" ? "<option value='download_requested' selected='selected'>".LAN_dl_18."</option>" : "<option value='download_requested'>".LAN_dl_77."</option>").
 150                          ($order == "download_name" ? "<option value='download_name' selected='selected'>".LAN_dl_23."</option>" : "<option value='download_name'>".LAN_dl_23."</option>").
 151                          ($order == "download_author" ? "<option value='download_author' selected='selected'>".LAN_dl_24."</option>" : "<option value='download_author'>".LAN_dl_24."</option>")."
 152                          </select>
 153                          &nbsp;
 154                          <span class='defaulttext'>".LAN_dl_39."</span>
 155                          <select name='sort' class='tbox'>".
 156                          ($sort == "ASC" ? "<option value='ASC' selected='selected'>".LAN_dl_25."</option>" : "<option value='ASC'>".LAN_dl_25."</option>").
 157                          ($sort == "DESC" ? "<option value='DESC' selected='selected'>".LAN_dl_26."</option>" : "<option value='DESC'>".LAN_dl_26."</option>")."
 158                          </select>
 159                          &nbsp;
 160                          <input class='button' type='submit' name='goorder' value='".LAN_dl_27."' />
 161          </td>
 162                  </tr>
 163          <tr>
 164          <td style='width:35%; text-align:center' class='fcaption'>".LAN_dl_28."</td>
 165          <td style='width:15%; text-align:center' class='fcaption'>".LAN_dl_22."</td>
 166          <td style='width:20%; text-align:center' class='fcaption'>".LAN_dl_24."</td>
 167          <td style='width:10%; text-align:center' class='fcaption'>".LAN_dl_21."</td>
 168          <td style='width:5%; text-align:center' class='fcaption'>".LAN_dl_29."</td>
 169          <td style='width:10%; text-align:center' class='fcaption'>".LAN_dl_12."</td>
 170          <td style='width:5%; text-align:center' class='fcaption'>".LAN_dl_8."</td>
 171          </tr>";
 172  
 173  }
 174  
 175  if(!isset($DOWNLOAD_LIST_TABLE))
 176  {
 177          $DOWNLOAD_LIST_TABLE = "
 178          <tr>
 179          <td class='forumheader3' style='text-align:left;'>
 180          {DOWNLOAD_LIST_NEWICON} {DOWNLOAD_LIST_NAME}
 181          </td>
 182          <td class='forumheader3' style='text-align:center;'>
 183          {DOWNLOAD_LIST_DATESTAMP}
 184          </td>
 185          <td class='forumheader3' style='text-align:center;'>
 186          {DOWNLOAD_LIST_AUTHOR}
 187          </td>
 188          <td class='forumheader3' style='text-align:center;'>
 189          {DOWNLOAD_LIST_FILESIZE}
 190          </td>
 191          <td class='forumheader3' style='text-align:center;'>
 192          {DOWNLOAD_LIST_REQUESTED}
 193          </td>
 194          <td class='forumheader3' style='text-align:center;'>
 195          {DOWNLOAD_LIST_RATING}
 196          </td>
 197          <td class='forumheader3' style='text-align:center;'>
 198          {DOWNLOAD_LIST_LINK} {DOWNLOAD_LIST_ICON}</a>
 199          </td>
 200          </tr>";
 201  }
 202  
 203  if(!isset($DOWNLOAD_LIST_TABLE_END))
 204  {
 205          $DOWNLOAD_LIST_TABLE_END = "
 206          <tr><td class='forumheader3' colspan='7' style='text-align:right;'>{DOWNLOAD_LIST_TOTAL_AMOUNT} {DOWNLOAD_LIST_TOTAL_FILES}</td></tr>
 207          </table>
 208          </form>
 209          </div>\n";
 210  }
 211  // ##### ------------------------------------------------------------------------------------------
 212  
 213  
 214  // ##### VIEW TABLE -------------------------------------------------------------------------------
 215  
 216  $DL_VIEW_PAGETITLE = PAGE_NAME." / {DOWNLOAD_CATEGORY} / {DOWNLOAD_VIEW_NAME}";
 217  $DL_VIEW_CAPTION = "{DOWNLOAD_VIEW_CAPTION}";
 218  
 219          $DL_VIEW_NEXTPREV = "
 220          <div style='text-align:center'>
 221              <table style='".USER_WIDTH."'>
 222              <tr>
 223              <td style='width:40%;'>{DOWNLOAD_VIEW_PREV}</td>
 224              <td style='width:20%; text-align: center;'>{DOWNLOAD_BACK_TO_LIST}</td>
 225              <td style='width:40%; text-align: right;'>{DOWNLOAD_VIEW_NEXT}</td>
 226              </tr>
 227              </table>
 228          </div>\n";
 229  
 230  // Only renders the following rows when data is present.
 231  $sc_style['DOWNLOAD_VIEW_AUTHOR_LAN']['pre'] = "<tr><td style='width:20%' class='forumheader3'>";
 232  $sc_style['DOWNLOAD_VIEW_AUTHOR_LAN']['post'] = "</td>";
 233  
 234  $sc_style['DOWNLOAD_VIEW_AUTHOR']['pre'] = "<td style='width:80%' class='forumheader3'>";
 235  $sc_style['DOWNLOAD_VIEW_AUTHOR']['post'] = "</td></tr>";
 236  
 237  $sc_style['DOWNLOAD_VIEW_AUTHOREMAIL_LAN']['pre'] = "<tr><td style='width:20%' class='forumheader3'>";
 238  $sc_style['DOWNLOAD_VIEW_AUTHOREMAIL_LAN']['post'] = "</td>";
 239  
 240  $sc_style['DOWNLOAD_VIEW_AUTHOREMAIL']['pre'] = "<td style='width:80%' class='forumheader3'>";
 241  $sc_style['DOWNLOAD_VIEW_AUTHOREMAIL']['post'] = "</td></tr>";
 242  
 243  $sc_style['DOWNLOAD_VIEW_AUTHORWEBSITE_LAN']['pre'] = "<tr><td style='width:20%' class='forumheader3'>";
 244  $sc_style['DOWNLOAD_VIEW_AUTHORWEBSITE_LAN']['post'] = "</td>";
 245  
 246  $sc_style['DOWNLOAD_VIEW_AUTHORWEBSITE']['pre'] = "<td style='width:80%' class='forumheader3'>";
 247  $sc_style['DOWNLOAD_VIEW_AUTHORWEBSITE']['post'] = "</td></tr>";
 248  
 249  if(!isset($DOWNLOAD_VIEW_TABLE))
 250  {
 251          $DOWNLOAD_VIEW_TABLE = "
 252          <div style='text-align:center'>
 253          <table class='fborder' style='".USER_WIDTH."'>\n
 254          <tr>
 255          <td colspan='2' class='fcaption' style='text-align:left;'>
 256          {DOWNLOAD_VIEW_NAME}
 257          </td>
 258          </tr>
 259  
 260          {DOWNLOAD_VIEW_AUTHOR_LAN}
 261          {DOWNLOAD_VIEW_AUTHOR}
 262  
 263          {DOWNLOAD_VIEW_AUTHOREMAIL_LAN}
 264          {DOWNLOAD_VIEW_AUTHOREMAIL}
 265  
 266          {DOWNLOAD_VIEW_AUTHORWEBSITE_LAN}
 267          {DOWNLOAD_VIEW_AUTHORWEBSITE}
 268  
 269          <tr>
 270          <td style='width:20%' class='forumheader3'>{DOWNLOAD_VIEW_DESCRIPTION_LAN}</td>
 271          <td style='width:80%' class='forumheader3'>{DOWNLOAD_VIEW_DESCRIPTION}</td>
 272          </tr>
 273  
 274          <tr>
 275          <td style='width:20%' class='forumheader3'>{DOWNLOAD_VIEW_IMAGE_LAN}</td>
 276          <td style='width:80%' class='forumheader3'>{DOWNLOAD_VIEW_IMAGE}</td>
 277          </tr>
 278  
 279          <tr>
 280          <td style='width:20%' class='forumheader3'>{DOWNLOAD_VIEW_FILESIZE_LAN}</td>
 281          <td style='width:80%' class='forumheader3'>{DOWNLOAD_VIEW_FILESIZE}</td>
 282          </tr>
 283  
 284          <tr>
 285          <td style='width:20%' class='forumheader3'>{DOWNLOAD_VIEW_DATE_LAN}</td>
 286          <td style='width:80%' class='forumheader3'>{DOWNLOAD_VIEW_DATE=long}</td>
 287          </tr>
 288  
 289          <tr>
 290          <td style='width:20%' class='forumheader3'>{DOWNLOAD_VIEW_REQUESTED_LAN}</td>
 291          <td style='width:80%' class='forumheader3'>{DOWNLOAD_VIEW_REQUESTED}</td>
 292          </tr>
 293  
 294          <tr>
 295          <td style='width:20%' class='forumheader3'>{DOWNLOAD_VIEW_LINK_LAN}</td>
 296          <td style='width:80%' class='forumheader3'>{DOWNLOAD_VIEW_LINK}</td>
 297          </tr>
 298  
 299          <tr>
 300          <td style='width:20%' class='forumheader3'>{DOWNLOAD_VIEW_RATING_LAN}</td>
 301          <td style='width:80%' class='forumheader3'>{DOWNLOAD_VIEW_RATING}</td>
 302          </tr>
 303  
 304          <tr>
 305          <td style='width:20%' class='forumheader3' colspan='2'>{DOWNLOAD_REPORT_LINK}</td>
 306          </tr>
 307          </table>
 308          <div style='text-align:right; ".USER_WIDTH."; margin-left: auto; margin-right: auto'>{DOWNLOAD_ADMIN_EDIT}</div>
 309          </div>\n";
 310  }
 311  
 312  // ##### ------------------------------------------------------------------------------------------
 313  
 314  // ##### MIRROR LIST -------------------------------------------------------------------------------
 315  
 316  if(!isset($DOWNLOAD_MIRROR_START))
 317  {
 318      $DOWNLOAD_MIRROR_START = "
 319      <div style='text-align:center'>
 320      <table class='fborder' style='".USER_WIDTH."'>
 321      <tr>
 322      <td class='fcaption' colspan='4'>{DOWNLOAD_MIRROR_REQUEST}</td>
 323      </tr>
 324      <tr>
 325      <td class='forumheader' style='width: 30%; text-align: center;'>{DOWNLOAD_MIRROR_HOST_LAN}</td>
 326      <td class='forumheader' style='width: 40%;'>{DOWNLOAD_MIRROR_DESCRIPTION_LAN}</td>
 327      <td class='forumheader' style='width: 20%; text-align: center;'>{DOWNLOAD_MIRROR_LOCATION_LAN}</td>
 328      <td class='forumheader' style='width: 10%; text-align: center;'>{DOWNLOAD_MIRROR_GET_LAN}</td>
 329      </tr>
 330      ";
 331  }
 332  
 333  if(!isset($DOWNLOAD_MIRROR))
 334  {
 335      $DOWNLOAD_MIRROR = "
 336      <tr>
 337      <td class='forumheader3' style='width: 30%; text-align: center;'>{DOWNLOAD_MIRROR_IMAGE}<br /><br /><div class='smalltext'>{DOWNLOAD_MIRROR_REQUESTS}<br />{DOWNLOAD_TOTAL_MIRROR_REQUESTS}</div></td>
 338      <td class='forumheader3' style='width: 40%'><div class='smalltext'>{DOWNLOAD_MIRROR_DESCRIPTION}</div></td>
 339      <td class='forumheader3' style='width: 20%;; text-align: center;'>{DOWNLOAD_MIRROR_LOCATION}</td>
 340      <td class='forumheader3' style='width: 10%; text-align: center;'><div class='smalltext'>{DOWNLOAD_MIRROR_LINK} {DOWNLOAD_MIRROR_FILESIZE}</div></td>
 341      </tr>
 342      ";
 343  }
 344  
 345  if(!isset($DOWNLOAD_MIRROR_END))
 346  {
 347      $DOWNLOAD_MIRROR_END = "
 348      </table>
 349      </div>
 350      ";
 351  }
 352  
 353  // ##### ------------------------------------------------------------------------------------------
 354  ?>


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7