[ Index ]

PHP Cross Reference of phpwcms V1.5.0 _r431 (28.01.12)

title

Body

[close]

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

   1  <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2012 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  //19-11-2004 Fernando Batista -> Copy article, Copy strutures :http://fernandobatista.web.pt
  32  //31-03-2005 Fernando Batista -> copy&cut Article Content :http://fernandobatista.web.pt
  33  
  34  ?>
  35  <table width="538" border="0" cellpadding="0" cellspacing="0" summary="">
  36  <tr><td colspan="2" class="title"><?php echo $BL['be_article_title'] ?></td></tr>
  37  <tr><td colspan="2" class="title"><img src="img/leer.gif" alt="" width="1" height="4" /></td></tr>
  38  <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>
  39  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
  40  <?php
  41  
  42  $listmode = 0;
  43  $cut_id = (isset($_GET["cut"])) ? intval($_GET["cut"]) : 0;
  44  $cut_article = (isset($_GET["acut"])) ? intval($_GET["acut"]) : 0;
  45  
  46  $copy_id = (isset($_GET["cop"])) ? intval($_GET["cop"]) : 0;
  47  $copy_article = (isset($_GET["acopy"])) ? intval($_GET["acopy"]) : 0;
  48  
  49  if(isset($_GET["open"])) {
  50          list($open_id, $open_value) = explode(":", $_GET["open"]);
  51          $_SESSION["structure"][intval($open_id)] = $open_value;
  52          mysql_query("UPDATE ".DB_PREPEND."phpwcms_user SET usr_var_structure='".aporeplace(serialize($_SESSION["structure"]))."' WHERE usr_id=".aporeplace($_SESSION["wcs_user_id"]), $db);
  53  }
  54  
  55  //31-03-2005 Fernando Batista  start---------------------------------------------------------------------------
  56  $cut_article_content = (isset($_GET["accut"])) ? intval($_GET["accut"]) : 0;
  57  $copy_article_content = (isset($_GET["accopy"])) ? intval($_GET["accopy"]) : 0;
  58  if(isset($_GET["opena"])) {
  59          list($open_id, $open_value) = explode(":", $_GET["opena"]);
  60          $_SESSION["structure"]["article"][intval($open_id)] = $open_value;
  61          mysql_query("UPDATE ".DB_PREPEND."phpwcms_user SET usr_var_structure='".aporeplace(serialize($_SESSION["structure"]))."' WHERE usr_id=".aporeplace($_SESSION["wcs_user_id"]), $db);
  62  }
  63  //31-03-2005 Fernando Batista  end-------------------
  64  
  65  $child_count = get_root_childcount(0, $db);
  66  //$an = $BL['be_admin_struct_index'];
  67  $an = $indexpage['acat_name'];
  68  
  69  $a  = "<tr onMouseOver=\"this.bgColor='#CCFF00';\" onMouseOut=\"this.bgColor='#FFFFFF';\">\n";
  70  $a .= "<td width=\"450\">";
  71  $a .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" summary=\"\">\n<tr>\n";
  72  $a .= '<td nowrap="nowrap">';
  73  $a .= ($child_count) ? "<a href=\"phpwcms.php?do=articles&amp;open=0:".(($_SESSION["structure"][0])?0:1)."\">" : "";
  74  $a .= "<img src=\"img/symbole/plus_".(($child_count) ? (($_SESSION["structure"][0]) ? "close" : "open") : "empty");
  75  $a .= ".gif\" width=\"15\" height=\"15\" border=\"0\" alt=\"\">".(($child_count) ? "</a>" : "");
  76  
  77  $a .= "<img src=\"img/symbole/page_1.gif\" width=\"11\" height=\"15\" ";
  78  
  79  $info  = 'ID: <b>0</b><br />';
  80  $info .= 'ALIAS: '.html_specialchars($indexpage["acat_alias"]);
  81      
  82  $a .= 'onmouseover="Tip(\''.$info.'\');" onmouseout="UnTip()" alt="" />';    
  83  
  84  $a .= "</td>\n";
  85  $a .= "<td><img src=\"img/leer.gif\" width=\"2\" height=\"15\" alt=\"\" /></td>\n";
  86  $a .= "<td class=\"dir\"><strong>".$an."</strong></td>\n</tr>\n</table></td>\n";
  87  
  88  echo $a;
  89  echo '<td width="88" nowrap="nowrap">';
  90  
  91  $struct[0]["acat_id"]        = 0;
  92  $struct[0]["acat_aktiv"]    = 1;
  93  $struct[0]["acat_public"]    = 1;
  94  $struct[0]["acat_struct"]    = 0;
  95  
  96  echo listmode_edits ($listmode, $struct, 0, $an, $copy_article_content, $cut_article_content, $copy_article, $copy_id, $cut_article, $cut_id, 0, 0, 0, 0);
  97  
  98  echo "</td>\n</tr>\n";
  99  
 100  if($_SESSION["structure"][0]) {
 101         struct_articlelist(0, 0, $copy_article_content, $cut_article_content, $copy_article, $cut_article, $indexpage['acat_order']);//$template_default["article_order"]
 102         struct_list(0, $db, $copy_article_content, $cut_article_content, $copy_id, $copy_article, $cut_id, $cut_article, $listmode);
 103  }
 104  ?>
 105  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 106  <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>
 107  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="4" /></td></tr>
 108  </table>


Generated: Sun Jan 29 16:31:14 2012 Cross-referenced by PHPXref 0.7.1