[ Index ]

PHP Cross Reference of phpwcms V1.4.7 _r403 (01.11.10)

title

Body

[close]

/include/inc_tmpl/ -> admin.structlist.tmpl.php (source)

   1  <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2010 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  ?><table width="538" border="0" cellpadding="0" cellspacing="0" summary="">
  32  <tr><td colspan="2" class="title"><?php echo $BL['be_admin_struct_title'] ?></td></tr>
  33  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6"></td></tr>
  34  <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr>
  35  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="4"></td></tr>
  36  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="1"></td></tr>
  37  <?php
  38  //echo "<tr onMouseOver=\"this.bgColor='#CCFF00';\" onMouseOut=\"this.bgColor='#FFFFFF';\">\n";
  39  
  40  $listmode = 1;
  41  $cut_id = (isset($_GET["cut"])) ? intval($_GET["cut"]) : 0;
  42  $cut_article = (isset($_GET["acut"])) ? intval($_GET["acut"]) : 0;
  43  
  44  //-- 19-11-2004 Fernando Batista start-----------------------------------------------------------------------------------------------------------
  45  $copy_id = (isset($_GET["cop"])) ? intval($_GET["cop"]) : 0;
  46  $copy_article = (isset($_GET["acopy"])) ? intval($_GET["acopy"]) : 0;
  47  
  48  $cut_article_content = (isset($_GET["accut"])) ? intval($_GET["accut"]) : 0;
  49  $copy_article_content = (isset($_GET["accopy"])) ? intval($_GET["accopy"]) : 0;
  50  
  51  //-- 19-11-2004 Fernando Batista end-----------------------------------------------------------------------------------------------------------
  52  
  53  if(isset($_GET["open"])) {
  54      list($open_id, $open_value) = explode(":", $_GET["open"]);
  55      $_SESSION["structure"][intval($open_id)] = $open_value;
  56  }
  57  
  58  $child_count = get_root_childcount(0, $db);
  59  //$an = $BL['be_admin_struct_index'];
  60  $an = $indexpage['acat_name'];
  61  
  62  $a  = "<tr onmouseover=\"this.bgColor='#CCFF00';\" onmouseout=\"this.bgColor='#FFFFFF';\">\n";
  63  $a .= "<td width=\"450\">";
  64  $a .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" summary=\"\">\n<tr>\n";
  65  $a .= '<td nowrap="nowrap">';
  66  $a .= ($child_count) ? "<a href=\"phpwcms.php?do=admin&amp;p=6&amp;open=0:".(($_SESSION["structure"][0])?0:1)."\">" : "";
  67  $a .= "<img src=\"img/symbole/plus_".(($child_count) ? (($_SESSION["structure"][0]) ? "close" : "open") : "empty");
  68  $a .= ".gif\" width=\"15\" height=\"15\" border=\"0\" alt=\"\" />".(($child_count) ? "</a>" : "");
  69  $a .= "<img src=\"img/symbole/page_1.gif\" width=\"11\" height=\"15\" alt=\"ID:0\"></td>\n";
  70  $a .= "<td><img src=\"img/leer.gif\" width=\"2\" height=\"15\" alt=\"\" /></td>\n";
  71  $a .= "<td class=\"dir\"><strong>".$an."</strong></td>\n</tr>\n</table></td>\n";
  72  
  73  echo $a;
  74  //-- 19-11-2004 Fernando Batista start-----------------------------------------------------------------------------------------------------------
  75  // echo "<td width=\"77\">\n";
  76  echo '<td width="110" nowrap="nowrap">';
  77  //-- 19-11-2004 Fernando Batista end-----------------------------------------------------------------------------------------------------------
  78  
  79  $struct[0]["acat_id"]     = 0;
  80  $struct[0]["acat_aktiv"]  = 1;
  81  $struct[0]["acat_public"] = 1;
  82  $struct[0]["acat_struct"] = 0;
  83  
  84  //-- 19-11-2004 Fernando Batista start-----------------------------------------------------------------------------------------------------------
  85  // echo listmode_edits ($listmode,$struct,0,$an,$cut_article,$cut_id,0,0,0,0);
  86  // echo listmode_edits($listmode,$struct,0,$an,$copy_article,$copy_id,$cut_article,$cut_id,0,0,0,0);
  87  $child_sort    = ( get_root_childcount(0, $db) + 1 ) * 10;
  88  echo listmode_edits($listmode,$struct,0,$an,$copy_article_content,$cut_article_content,$copy_article,$copy_id,$cut_article,$cut_id,0,0,0,$child_sort);
  89  //-- 19-11-2004 Fernando Batista end-----------------------------------------------------------------------------------------------------------
  90  
  91  echo "</td>\n</tr>\n";
  92  //-- 19-11-2004 Fernando Batista start-----------------------------------------------------------------------------------------------------------
  93  // if($_SESSION["structure"][0]) struct_list (0, $db, $cut_id, $cut_article, $listmode);
  94  // if($_SESSION["structure"][0]) struct_list(0, $db, $copy_id, $copy_article, $cut_id, $cut_article, $listmode);
  95  //-- 19-11-2004 Fernando Batista end-----------------------------------------------------------------------------------------------------------
  96  if($_SESSION["structure"][0]) {
  97      struct_list(0, $db, $copy_article_content, $cut_article_content,$copy_id, $copy_article, $cut_id, $cut_article, $listmode);
  98  }
  99  
 100  
 101  ?>
 102  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5"></td></tr>
 103  <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr>
 104  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="4"></td></tr>
 105  </table>


Generated: Tue Nov 16 22:51:00 2010 Cross-referenced by PHPXref 0.7