phpwcms PHP Cross Reference Content Management Systems

Source: /include/inc_tmpl/article.structlist.tmpl.php - 105 lines - 4648 bytes - Summary - Text - Print

Description: phpwcms content management system

   1  <?php
   2  /**
   3   * phpwcms content management system
   4   *
   5   * @author Oliver Georgi <oliver@phpwcms.de>
   6   * @copyright Copyright (c) 2002-2014, Oliver Georgi
   7   * @license http://opensource.org/licenses/GPL-2.0 GNU GPL-2
   8   * @link http://www.phpwcms.de
   9   *
  10   **/
  11  
  12  // ----------------------------------------------------------------
  13  // obligate check for phpwcms constants
  14  if (!defined('PHPWCMS_ROOT')) {
  15     die("You Cannot Access This Script Directly, Have a Nice Day.");
  16  }
  17  // ----------------------------------------------------------------
  18  
  19  
  20  //19-11-2004 Fernando Batista -> Copy article, Copy strutures http://fernandobatista.net
  21  //31-03-2005 Fernando Batista -> Copy/Cut Article Content http://fernandobatista.net
  22  
  23  ?>
  24  <table width="538" border="0" cellpadding="0" cellspacing="0" summary="">
  25  <tr><td colspan="2" class="title"><?php echo $BL['be_article_title'] ?></td></tr>
  26  <tr><td colspan="2" class="title"><img src="img/leer.gif" alt="" width="1" height="4" /></td></tr>
  27  <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>
  28  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
  29  <?php
  30  
  31  $listmode = 0;
  32  $cut_id = (isset($_GET["cut"])) ? intval($_GET["cut"]) : 0;
  33  $cut_article = (isset($_GET["acut"])) ? intval($_GET["acut"]) : 0;
  34  
  35  $copy_id = (isset($_GET["cop"])) ? intval($_GET["cop"]) : 0;
  36  $copy_article = (isset($_GET["acopy"])) ? intval($_GET["acopy"]) : 0;
  37  
  38  if(isset($_GET["open"])) {
  39      list($open_id, $open_value) = explode(":", $_GET["open"]);
  40      $open_id = intval($open_id);
  41      if(empty($open_value)) {
  42          unset($_SESSION["structure"][$open_id]);
  43      }
  44      $_SESSION["structure"][$open_id] = $open_value;
  45      mysql_query("UPDATE ".DB_PREPEND."phpwcms_user SET usr_var_structure="._dbEscape(serialize($_SESSION["structure"]))." WHERE usr_id=".aporeplace($_SESSION["wcs_user_id"]), $db);
  46  }
  47  
  48  //31-03-2005 Fernando Batista  start---------------------------------------------------------------------------
  49  $cut_article_content = (isset($_GET["accut"])) ? intval($_GET["accut"]) : 0;
  50  $copy_article_content = (isset($_GET["accopy"])) ? intval($_GET["accopy"]) : 0;
  51  if(isset($_GET["opena"])) {
  52      list($open_id, $open_value) = explode(":", $_GET["opena"]);
  53      $open_id = intval($open_id);
  54      if(empty($open_value)) {
  55          unset($_SESSION["structure"]["article"][$open_id]);
  56      } else {
  57          $_SESSION["structure"]["article"][$open_id] = $open_value;
  58      }
  59      mysql_query("UPDATE ".DB_PREPEND."phpwcms_user SET usr_var_structure="._dbEscape(serialize($_SESSION["structure"]))." WHERE usr_id=".aporeplace($_SESSION["wcs_user_id"]), $db);
  60  }
  61  //31-03-2005 Fernando Batista  end-------------------
  62  
  63  $child_count = get_root_childcount(0, $db);
  64  //$an = $BL['be_admin_struct_index'];
  65  $an = $indexpage['acat_name'];
  66  
  67  $a  = "<tr onMouseOver=\"this.bgColor='#CCFF00';\" onMouseOut=\"this.bgColor='#FFFFFF';\">\n";
  68  $a .= '<td width="461">';
  69  $a .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" summary=\"\">\n<tr>\n";
  70  $a .= '<td nowrap="nowrap">';
  71  $a .= ($child_count) ? "<a href=\"phpwcms.php?do=articles&amp;open=0:".(($_SESSION["structure"][0])?0:1)."\">" : "";
  72  $a .= "<img src=\"img/symbole/plus_".(($child_count) ? (($_SESSION["structure"][0]) ? "close" : "open") : "empty");
  73  $a .= ".gif\" width=\"15\" height=\"15\" border=\"0\" alt=\"\">".(($child_count) ? "</a>" : "");
  74  
  75  $a .= "<img src=\"img/symbole/page_1.gif\" width=\"11\" height=\"15\" ";
  76  
  77  $info  = 'ID: <b>0</b><br />';
  78  $info .= 'ALIAS: '.html($indexpage["acat_alias"]);
  79  
  80  $a .= 'onmouseover="Tip(\''.$info.'\');" onmouseout="UnTip()" alt="" />';
  81  
  82  $a .= "</td>\n";
  83  $a .= "<td><img src=\"img/leer.gif\" width=\"2\" height=\"15\" alt=\"\" /></td>\n";
  84  $a .= '<td class="dir" width="97%"><strong>'.$an."</strong></td>\n</tr>\n</table></td>\n";
  85  
  86  echo $a;
  87  echo '<td width="77" nowrap="nowrap">';
  88  
  89  $struct[0]["acat_id"]        = 0;
  90  $struct[0]["acat_aktiv"]    = 1;
  91  $struct[0]["acat_struct"]    = 0;
  92  
  93  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);
  94  
  95  echo "</td>\n</tr>\n";
  96  
  97  if($_SESSION["structure"][0]) {
  98      struct_articlelist(0, 0, $copy_article_content, $cut_article_content, $copy_article, $cut_article, $indexpage['acat_order']);//$template_default["article_order"]
  99      struct_list(0, $db, $copy_article_content, $cut_article_content, $copy_id, $copy_article, $cut_id, $cut_article, $listmode);
 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>

title

Description

title

Description

title

Description

title

title

Body