[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/include/inc_tmpl/ -> files.private.trash.tmpl.php (source)

   1  <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2009 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
   6   
   7     This script is part of PHPWCMS. The PHPWCMS web content management system is
   8     free software; you can redistribute it and/or modify it under the terms of
   9     the GNU General Public License as published by the Free Software Foundation;
  10     either version 2 of the License, or (at your option) any later version.
  11    
  12     The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
  13     A copy is found in the textfile GPL.txt and important notices to the license 
  14     from the author is found in LICENSE.txt distributed with these scripts.
  15    
  16     This script is distributed in the hope that it will be useful, but WITHOUT ANY 
  17     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  18     PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  19   
  20     This copyright notice MUST APPEAR in all copies of the script!
  21  *************************************************************************************/
  22  
  23  // ----------------------------------------------------------------
  24  // obligate check for phpwcms constants
  25  if (!defined('PHPWCMS_ROOT')) {
  26     die("You Cannot Access This Script Directly, Have a Nice Day.");
  27  }
  28  // ----------------------------------------------------------------
  29  
  30  
  31  //Feststellen, ob überhaupt Dateien/Ordner im Papierkorb des Users vorhanden sind
  32  $sql = "SELECT COUNT(f_id) FROM ".DB_PREPEND."phpwcms_file WHERE f_uid=".$_SESSION["wcs_user_id"]." AND f_trash=1 LIMIT 1;";
  33  if($result = mysql_query($sql, $db) or die ("error while counting user files")) {
  34      if($row = mysql_fetch_row($result)) $count_user_files = $row[0];
  35      mysql_free_result($result);
  36  }
  37  //Wenn überhaupt Papierkorb-Dateien für User vorhanden, dann Listing
  38  if(isset($count_user_files) && $count_user_files) {
  39      //Beginn Tabelle für Dateilisting
  40      echo "<table width=\"538\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
  41      echo "<tr><td colspan=\"2\"><img src=\"img/leer.gif\" width=\"1\" height=\"1\"></td></tr>\n";
  42      include_once  (PHPWCMS_ROOT."/include/inc_lib/files.private-delfilelist.inc.php");
  43      echo "</table>\n";
  44      ?><table width="538" border="0" cellpadding="0" cellspacing="0" summary="">
  45      <tr><td colspan="2" bgcolor="#9BBECA"><img src="img/leer.gif" width="1" height="1" alt=""></td><tr>
  46      <tr><td colspan="2"><img src="img/leer.gif" width="1" height="3" alt=""></td><tr>
  47      <tr>
  48          <td width="19"><img src="img/leer.gif" width="6" height="1" alt=""><img src="img/button/trash_13x13_1.gif" width="13" height="13" alt=""></td>
  49          <td width="519" class="msglist">&nbsp;<strong><?php
  50          
  51          echo "<a href=\"include/inc_act/act_file.php?trash=0|9".
  52                "\" title=\"".$BL['be_ftrash_delall']."\" onclick=\"return confirm('". str_replace("\n", "\\n", $BL['be_ftrash_delall'])."');\">".
  53               $BL['be_ftrash_delallfiles']."</a>";
  54               
  55          ?></strong></td>
  56      <tr>
  57      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="2"></td><tr>
  58      </table>
  59  <?php
  60      
  61      //Ende Tabelle
  62  } else { //Wenn keinerlei Datensatz innerhalb Files durchlaufen wurde, dann
  63      echo "<img src=\"img/leer.gif\" width=\"1\" height=\"6\"><br />".$BL['be_ftrash_nofiles']."&nbsp;&nbsp;";
  64      echo "[<a href=\"phpwcms.php?do=files&f=0\">".$BL['be_ftrash_show']."</a>]";
  65      echo "<br /><img src=\"img/leer.gif\" width=\"1\" height=\"6\">";
  66  }
  67  ?>


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7