// All rights reserved. This script is part of PHPWCMS. The PHPWCMS web content management system is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html A copy is found in the textfile GPL.txt and important notices to the license from the author is found in LICENSE.txt distributed with these scripts. This script is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. This copyright notice MUST APPEAR in all copies of the script! *************************************************************************************/ // ---------------------------------------------------------------- // obligate check for phpwcms constants if (!defined('PHPWCMS_ROOT')) { die("You Cannot Access This Script Directly, Have a Nice Day."); } // ---------------------------------------------------------------- $buttonAction = ''."\n"; // Article List $buttonAction .= '\n\n"; // Article Preview (new window) $buttonActionLink = 'index.php?id='.$article["article_catid"].','.$article["article_id"].',0,0,1,0'; $buttonAction .= '\n"; $buttonAction .= '
 '; $buttonAction .= '
'; ?>
" method="post" name="addcontent" id="addcontent"> $value) { if($key == 1) { // if 1st content part in list $sbutton[$key]["top"] = ''; } elseif(isset($sbutton[$key-1]["block"]) && $sbutton[$key-1]["block"] != $sbutton[$key]["block"]) { // if this content part is selected for different block than previous $sbutton[$key]["top"] = ''; } else { $sbutton[$key]["top"] = "\"\""; } if($key == $sc) { // if this is the last content part in list $sbutton[$key]["bottom"] = "\"\""; } elseif(isset($sbutton[$key+1]["block"]) && $sbutton[$key+1]["block"] != $sbutton[$key]["block"]) { // if this is the last content part in current block and next is different $sbutton[$key]["bottom"] = "\"\""; } else { $sbutton[$key]["bottom"] = "\"\""; } $sbutton_string[$sbutton[$key]["id"]] = $sbutton[$key]["top"]. "\"\"". $sbutton[$key]["bottom"]; } unset($sbutton); } //Listing zugehöriger Artikel Content Teile $sql = "SELECT *, UNIX_TIMESTAMP(acontent_tstamp) as acontent_date FROM ".DB_PREPEND."phpwcms_articlecontent ". "WHERE acontent_aid=".$article["article_id"]." AND acontent_trash=0 ". "ORDER BY acontent_block, acontent_sorting, acontent_tab, acontent_id;"; if($result = mysql_query($sql, $db) or die("error while listing contents for this article")) { $sortierwert = 1; $contentpart_block = ' '; $contentpart_block_name = ''; $contentpart_tab = ''; while($row = mysql_fetch_assoc($result)) { // if type of content part not enabled available if(!isset($wcs_content_type[ $row["acontent_type"] ]) || ($row["acontent_type"] == 30 && !isset($phpwcms['modules'][$row["acontent_module"]]))) { continue; } // now show current block name if($contentpart_block != $row['acontent_block']) { $contentpart_block = $row['acontent_block']; $contentpart_block_name = html_specialchars(' {'.$row['acontent_block'].'}'); $contentpart_block_color = ' bgcolor="#E0D6EB"'; switch($contentpart_block) { case '' : $contentpart_block_name = $BL['be_main_content'].$contentpart_block_name; $contentpart_block_color = ' bgcolor="#F5CCCC"'; break; case 'CONTENT' : $contentpart_block_name = $BL['be_main_content'].$contentpart_block_name; if($article['article_paginate']) { $contentpart_block_name .= ' / '; $contentpart_block_name .= $BL['be_cnt_pagination']; } $contentpart_block_color = ' bgcolor="#F5CCCC"'; break; case 'LEFT' : $contentpart_block_name = $BL['be_cnt_left'].$contentpart_block_name; $contentpart_block_color = ' bgcolor="#E0EBD6"'; break; case 'RIGHT' : $contentpart_block_name = $BL['be_cnt_right'].$contentpart_block_name; $contentpart_block_color = ' bgcolor="#FFF5CC"'; break; case 'HEADER' : $contentpart_block_name = $BL['be_admin_page_header'].$contentpart_block_name; $contentpart_block_color = ' bgcolor="#EBEBD6"'; break; case 'FOOTER' : $contentpart_block_name = $BL['be_admin_page_footer'].$contentpart_block_name; $contentpart_block_color = ' bgcolor="#E1E8F7"'; break; } ?> > > > it is always INT because coming from db INT field // check default content parts (system internals if($row['acontent_type'] != 30 && file_exists('include/inc_tmpl/content/cnt'.$row['acontent_type'].'.list.inc.php')) { include(PHPWCMS_ROOT.'/include/inc_tmpl/content/cnt'.$row['acontent_type'].'.list.inc.php'); } elseif($row['acontent_type'] == 30 && file_exists($phpwcms['modules'][$row['acontent_module']]['path'].'inc/cnt.list.php')) { // custom module include($phpwcms['modules'][$row['acontent_module']]['path'].'inc/cnt.list.php'); } else { // default fallback include(PHPWCMS_ROOT.'/include/inc_tmpl/content/cnt0.list.inc.php'); } // end list ?>
"> "><?php echo $BL['be_article_cnt_ledit'] ?>" title="">.gif" alt="" width="12" height="13" border="0" />" title="" onclick="return confirm(' \n ');">
$article['image']['ext'], "image_name" => $article['image']['hash'] . '.' . $article['image']['ext'], "thumb_name" => md5($article['image']['hash'].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"]) ) ); } $thumb_list_image = false; if(!empty($article["image"]["list_hash"])) { $thumb_list_image = get_cached_image( array( "target_ext" => $article['image']['list_ext'], "image_name" => $article['image']['list_hash'] . '.' . $article['image']['list_ext'], "thumb_name" => md5($article['image']['list_hash'].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"]) ) ); } if($thumb_image != false || $thumb_list_image != false) { ?>
'; } if($thumb_list_image != false) { echo ''; } ?>
  : 
  : 
  : 
 
 
.gif" alt="" width="9" height="11" border="0" /> "; //echo ""; echo ''.$row["acontent_before"]; } if(intval($row["acontent_after"])) { //echo ""; //echo ""; echo ''.$row["acontent_after"]; } if($row["acontent_top"]) { echo 'TOP'; } if($row["acontent_anchor"]) { echo 'Anchor'; } ?>
[ID:] '; echo $row["acontent_paginate_page"] == 0 ? 1 : $row["acontent_paginate_page"]; } //Anzeigen der Space Before/After Info if(intval($row["acontent_before"])) { //echo "".$row["acontent_before"]."".$row["acontent_after"]."
" title="">'; echo ''; ?>" title="">.gif" alt="" width="12" height="13" border="0" />" title="" onclick="return confirm(' \n[ID: ]\n ');">