[ Index ] |
PHP Cross Reference of phpwcms V1.5.0 _r431 (28.01.12) |
[Summary view] [Print] [Text view]
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 $buttonAction = '<table cellpadding="0" cellspacing="0" border="0"><tr>'."\n"; 32 // Article List 33 $buttonAction .= '<td><input type="button" value="'.$BL['be_article_cnt_center']; 34 $buttonAction .= '" class="button10" title="'.$BL['be_article_cnt_center'].'" onclick="'; 35 $buttonAction .= "location.href='phpwcms.php?do=articles';return false;\"></td>\n<td> </td>\n"; 36 // Article Preview (new window) 37 $buttonActionLink = 'index.php?id='.$article["article_catid"].','.$article["article_id"].',0,0,1,0'; 38 $buttonAction .= '<td>'; 39 $buttonAction .= '<input type="button" value="'.$BL['be_func_struct_preview']; 40 $buttonAction .= '" class="button10" title="'.$BL['be_func_struct_preview'].'" onclick="'; 41 $buttonAction .= "window.open('".$buttonActionLink."', 'articlePreviewWindows');return false;\"></td>\n"; 42 $buttonAction .= '</tr></table>'; 43 44 45 ?> 46 <form action="phpwcms.php?do=articles&p=2&s=1&aktion=2&id=<?php echo $article["article_id"] ?>" method="post" name="addcontent" id="addcontent"> 47 <table width="538" border="0" cellpadding="0" cellspacing="0" summary=""> 48 <tr><td colspan="3" class="title"><?php echo $BL['be_article_cnt_ltitle'] ?></td></tr> 49 <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="8" /></td> 50 </tr> 51 <tr bgcolor="#92A1AF"><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="1" /></td> 52 </tr> 53 <tr bgcolor="#F3F5F8"><td><img src="img/leer.gif" alt="" width="23" height="4" /></td> 54 <td><img src="img/leer.gif" alt="" width="453" height="1" /></td> 55 <td><img src="img/leer.gif" alt="" width="62" height="1" /></td> 56 </tr> 57 <tr bgcolor="#F3F5F8"> 58 <td width="23" align="right"><img src="img/symbole/article_text.gif" alt="" width="9" height="11" border="0" /><img src="img/leer.gif" alt="" width="5" height="1" /></td> 59 <td width="453" class="dir"><a href="phpwcms.php?do=articles&p=2&s=1&aktion=1&id=<?php echo $article["article_id"] ?>"><strong><?php echo html_specialchars($article["article_title"]) ?></strong></a></td> 60 <td width="62" align="right" class="h13" style="padding-right:1px"><a href="phpwcms.php?do=articles&p=2&s=1&aktion=1&id=<?php echo $article["article_id"] ?>"><img src="img/button/edit_22x13.gif" alt="<?php echo $BL['be_article_cnt_ledit'] ?>" width="22" height="13" border="0" /></a><a href="include/inc_act/act_articlecontent.php?do=<?php echo "3,".$article["article_id"].",0,".switch_on_off($article["article_aktiv"]) ?>" title="<?php echo $BL['be_article_cnt_lvisible'] ?>"><img src="img/button/visible_12x13_<?php echo $article["article_aktiv"] ?>.gif" alt="" width="12" height="13" border="0" /></a><a href="include/inc_act/act_articlecontent.php?do=<?php echo "1,".$article["article_id"]; ?>" title="<?php echo $BL['be_article_cnt_ldel'] ?>" onclick="return confirm('<?php echo $BL['be_article_cnt_ldeljs'].'\n'.html_specialchars($article["article_title"]); ?> \n ');"><img src="img/button/trash_13x13_1.gif" alt="" width="13" height="13" border="0" /></a></td> 61 </tr> 62 <tr bgcolor="#F3F5F8"><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="3" /></td> 63 </tr> 64 <tr bgcolor="#F3F5F8"> 65 <td><img src="img/leer.gif" alt="" width="23" height="1" /></td> 66 <td><table border="0" cellpadding="0" cellspacing="0" summary="" class="tdMorepace"> 67 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="2" /></td> 68 </tr> 69 <?php if($article["article_subtitle"]) { ?> 70 <tr> 71 <td valign="top" class="v10" style="color:#727889"><?php echo $BL['be_article_asubtitle'] ?>: </td> 72 <td valign="top" class="v10"><strong><?php echo html_specialchars($article["article_subtitle"]); ?></strong></td> 73 </tr> 74 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="1" /></td> 75 </tr> 76 <?php } ?> 77 78 <?php if(!empty($article["article_summary"])) { ?> 79 <tr> 80 <td valign="top" class="v10" style="color:#727889"><?php echo $BL['be_article_asummary'] ?>: </td> 81 <td valign="top" class="v10"><?php echo html_specialchars(getCleanSubString(strip_tags($article["article_summary"]), 250, '…')); ?></td> 82 </tr> 83 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="1" /></td> 84 </tr> 85 <?php } ?> 86 87 <tr> 88 <td valign="top" class="v10" style="color:#727889"><?php echo $BL['be_article_cat'] ?>: </td> 89 <td valign="top" class="v10"><?php echo html_specialchars($article["article_cat"]) ?></td> 90 </tr> 91 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="1" /></td> 92 </tr> 93 <tr> 94 <td valign="top" class="v10" style="color:#727889"><?php echo $BL['be_article_akeywords'] ?>: </td> 95 <td valign="top" class="v10"><?php if($article["article_keyword"]) {echo html_specialchars($article["article_keyword"]);}else{echo "not defined/completed";} ?></td> 96 </tr> 97 <?php 98 99 if($article["article_redirect"]) { 100 ?> 101 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="1" /></td> 102 </tr> 103 <tr> 104 <td valign="top" class="v10" style="color:#727889"><?php echo $BL['be_article_cnt_redirect'] ?>: </td> 105 <td valign="top" class="v10"><?php echo html_specialchars($article["article_redirect"]); ?></td> 106 </tr> 107 <?php 108 } 109 110 111 $thumb_image = false; 112 if(!empty($article["image"]["hash"])) { 113 $thumb_image = get_cached_image( 114 array( "target_ext" => $article['image']['ext'], 115 "image_name" => $article['image']['hash'] . '.' . $article['image']['ext'], 116 "thumb_name" => md5($article['image']['hash'].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"]) 117 ) 118 ); 119 } 120 121 $thumb_list_image = false; 122 if(!empty($article["image"]["list_hash"])) { 123 $thumb_list_image = get_cached_image( 124 array( "target_ext" => $article['image']['list_ext'], 125 "image_name" => $article['image']['list_hash'] . '.' . $article['image']['list_ext'], 126 "thumb_name" => md5($article['image']['list_hash'].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"]) 127 ) 128 ); 129 } 130 131 if($thumb_image != false || $thumb_list_image != false) { 132 133 ?> 134 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="1" /></td> 135 </tr> 136 <tr> 137 <td valign="top" class="v10" style="color:#727889"><?php echo $BL['be_cnt_image'] ?>: </td> 138 <td valign="top" class="v10"><?php 139 140 if($thumb_image != false) { 141 echo '<img src="'.PHPWCMS_IMAGES . $thumb_image[0] .'" border="0" '.$thumb_image[3].' alt="" style="margin-right:5px;" />'; 142 } 143 if($thumb_list_image != false) { 144 echo '<img src="'.PHPWCMS_IMAGES . $thumb_list_image[0] .'" border="0" '.$thumb_list_image[3].' alt=""'; 145 if(!empty($article['image']['list_usesummary'])) { 146 echo ' class="inactive"'; 147 } 148 echo ' />'; 149 } 150 151 ?></td> 152 </tr> 153 <?php 154 155 } 156 157 ?> 158 159 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 160 <tr> 161 <td class="v10" style="color:#727889"><?php echo $BL['be_article_username']; ?>: </td> 162 <td class="v10"><?php echo $article["article_username"] ?></td> 163 </tr> 164 <tr> 165 <td class="v10" style="color:#727889"><?php echo $BL['be_article_eslastedit'] ?>: </td> 166 <td class="v10"><?php echo phpwcms_strtotime($article["article_date"], $BL['be_longdatetime'], '') ?> <span style="color:#727889"><?php echo $BL['be_fprivedit_created'] ?>:</span> <?php echo date($BL['be_longdatetime'], $article["article_created"]) ?></td> 167 </tr> 168 <tr> 169 <td class="v10" style="color:#727889" nowrap="nowrap"><?php echo $BL['be_article_cnt_start'] ?>: </td> 170 <td class="v10"><?php echo phpwcms_strtotime($article["article_begin"], $BL['be_longdatetime'], '') ?> <span style="color:#727889"><?php echo $BL['be_article_cnt_end'] ?>:</span> <?php echo phpwcms_strtotime($article["article_end"], $BL['be_longdatetime'], '') ?></td> 171 </tr> 172 173 <tr> 174 <td class="v10" style="color:#727889" nowrap="nowrap"><?php echo $BL['be_cnt_sortvalue'] ?>: </td> 175 <td class="v10"><?php echo $article["article_sort"] ?> <span style="color:#727889"><?php echo $BL['be_priorize'] ?>:</span> <?php echo $article["article_priorize"] ?></td> 176 </tr> 177 178 <tr> 179 <td class="v10" style="color:#727889" nowrap="nowrap"><?php echo $BL['be_archive'] ?>: </td> 180 <td class="v10"><?php echo '[ '.strtoupper($article["article_archive_status"] == 1 ? $BL['be_on'] : $BL['be_off'] ).' ] ' . $BL['be_show_archived'] ?></td> 181 </tr> 182 183 </table></td> 184 <td> </td> 185 </tr> 186 <tr bgcolor="#F3F5F8"><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 187 <tr><td colspan="3" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 188 <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 189 190 <tr><td colspan="3"><?php echo $buttonAction; ?></td></tr> 191 192 <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 193 194 <tr bgcolor="#92A1AF"><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 195 <tr bgcolor="#D9DEE3"><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="4" /></td></tr> 196 <tr bgcolor="#D9DEE3"><td colspan="3"><table border="0" cellpadding="0" cellspacing="0" summary=""> 197 <tr> 198 <td><img src="img/leer.gif" alt="" width="7" height="1" /></td> 199 <td><img src="img/symbole/add_content.gif" alt="" width="11" height="9" /><img src="img/leer.gif" alt="" width="5" height="1" /></td> 200 <td><select name="ctype" class="v12" id="ctype" onchange="this.form.submit();"> 201 <?php 202 203 $temp_count = 0; 204 205 if(is_array($article["article_cntpart"]) && count($article["article_cntpart"])) { 206 207 // list all content parts usable for this article category 208 foreach($article["article_cntpart"] as $value) { 209 210 if(isset($wcs_content_type[$value])) { 211 212 echo getContentPartOptionTag($value, $wcs_content_type[$value], $article['article_cpdefault']); 213 $temp_count++; 214 215 } 216 $value1 = $value * (-1); 217 if(isset($BL['be_admin_optgroup_label'][$value1]) && $value) { 218 echo '<optgroup label="[ '.$BL['be_admin_optgroup_label'][$value1].' ]" class="cntOptGroup"></optgroup>'."\n"; 219 } 220 } 221 222 } 223 if(!$temp_count) { 224 //list all available content parts 225 foreach($wcs_content_type as $key => $value) { 226 //echo "<option value=\"".$key."\">".$value."</option>"; 227 echo getContentPartOptionTag($key, $value, $article['article_cpdefault']); 228 } 229 } 230 ?> 231 </select></td> 232 <td><img src="img/leer.gif" alt="" width="5" height="1" /></td> 233 <td><input type="submit" name="image" value="<?php echo $BL['be_article_cnt_add'] ?>" class="v12" title="<?php echo $BL['be_article_cnt_addtitle'] ?>" /></td> 234 </tr> 235 </table></td></tr> 236 <tr bgcolor="#D9DEE3"><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 237 <tr bgcolor="#92A1AF"><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 238 <?php 239 //Auslesen der Content Daten zum Zusammenstellen der Sortier-Informationen 240 241 $sql = "SELECT acontent_id, acontent_sorting, acontent_trash, acontent_block FROM ".DB_PREPEND."phpwcms_articlecontent "; 242 $sql .= "WHERE acontent_aid=".$article["article_id"]." ORDER BY acontent_block, acontent_sorting, acontent_id"; 243 244 if($result = mysql_query($sql, $db) or die("error while listing contents for this article")) { 245 $sc = 0; $scc = 0; //Sort-Zwischenzähler 246 while($row = mysql_fetch_row($result)) { 247 $scc++; 248 if($row[2] == 0) { 249 $sc++; 250 $sbutton[$sc]["id"] = $row[0]; 251 $sbutton[$sc]["sort"] = $row[1]; 252 $sbutton[$sc]["block"] = $row[3]; 253 } 254 } 255 } 256 if($sc) { 257 //Jetzt aufbauen der Sortieranweisung 258 foreach($sbutton as $key => $value) { 259 if($key == 1) { 260 // if 1st content part in list 261 $sbutton[$key]["top"] = '<img src="img/button/sort_top_0.gif" border="0" alt="" />'; 262 263 } elseif(isset($sbutton[$key-1]["block"]) && $sbutton[$key-1]["block"] != $sbutton[$key]["block"]) { 264 // if this content part is selected for different block than previous 265 $sbutton[$key]["top"] = '<img src="img/button/sort_top_0.gif" border="0" alt="" />'; 266 267 } else { 268 $sbutton[$key]["top"] = "<a href=\"include/inc_act/act_articlecontent.php?sort=". 269 $sbutton[$key]["id"].":".$sbutton[$key-1]["sort"]."|". 270 $sbutton[$key-1]["id"].":".$sbutton[$key]["sort"]. 271 "\" title=\"".$BL['be_article_cnt_up']."\"><img src=\"img/button/sort_top_1.gif\" border=\"0\" alt=\"\" /></a>"; 272 } 273 if($key == $sc) { 274 // if this is the last content part in list 275 $sbutton[$key]["bottom"] = "<img src=\"img/button/sort_bottom_0.gif\" border=\"0\" alt=\"\" />"; 276 277 } elseif(isset($sbutton[$key+1]["block"]) && $sbutton[$key+1]["block"] != $sbutton[$key]["block"]) { 278 // if this is the last content part in current block and next is different 279 $sbutton[$key]["bottom"] = "<img src=\"img/button/sort_bottom_0.gif\" border=\"0\" alt=\"\" />"; 280 281 } else { 282 $sbutton[$key]["bottom"] = "<a href=\"include/inc_act/act_articlecontent.php?sort=". 283 $sbutton[$key]["id"].":".$sbutton[$key+1]["sort"]."|". 284 $sbutton[$key+1]["id"].":".$sbutton[$key]["sort"]. 285 "\" title=\"".$BL['be_article_cnt_down']."\"><img src=\"img/button/sort_bottom_1.gif\" border=\"0\" alt=\"\" /></a>"; 286 } 287 $sbutton_string[$sbutton[$key]["id"]] = $sbutton[$key]["top"]. 288 "<img src=\"img/leer.gif\" width=\"1\" height=\"1\" alt=\"\" />". 289 $sbutton[$key]["bottom"]; 290 } 291 unset($sbutton); 292 } 293 294 //Listing zugehöriger Artikel Content Teile 295 $sql = "SELECT *, UNIX_TIMESTAMP(acontent_tstamp) as acontent_date FROM ".DB_PREPEND."phpwcms_articlecontent ". 296 "WHERE acontent_aid=".$article["article_id"]." AND acontent_trash=0 ". 297 "ORDER BY acontent_block, acontent_sorting, acontent_tab, acontent_id;"; 298 299 if($result = mysql_query($sql, $db) or die("error while listing contents for this article")) { 300 $sortierwert = 1; 301 $contentpart_block = ' '; 302 $contentpart_block_name = ''; 303 $contentpart_tab = ''; 304 while($row = mysql_fetch_assoc($result)) { 305 306 // if type of content part not enabled available 307 if(!isset($wcs_content_type[ $row["acontent_type"] ]) || ($row["acontent_type"] == 30 && !isset($phpwcms['modules'][$row["acontent_module"]]))) { 308 continue; 309 } 310 311 // now show current block name 312 if($contentpart_block != $row['acontent_block']) { 313 $contentpart_block = $row['acontent_block']; 314 $contentpart_block_name = html_specialchars(' {'.$row['acontent_block'].'}'); 315 $contentpart_block_color = ' bgcolor="#E0D6EB"'; 316 317 switch($contentpart_block) { 318 case '' : $contentpart_block_name = $BL['be_main_content'].$contentpart_block_name; 319 $contentpart_block_color = ' bgcolor="#F5CCCC"'; 320 break; 321 case 'CONTENT' : $contentpart_block_name = $BL['be_main_content'].$contentpart_block_name; 322 if($article['article_paginate']) { 323 $contentpart_block_name .= ' / <img src="img/symbole/content_cppaginate.gif" alt="" style="margin-right:2px;" />'; 324 $contentpart_block_name .= $BL['be_cnt_pagination']; 325 } 326 $contentpart_block_color = ' bgcolor="#F5CCCC"'; 327 break; 328 case 'LEFT' : $contentpart_block_name = $BL['be_cnt_left'].$contentpart_block_name; 329 $contentpart_block_color = ' bgcolor="#E0EBD6"'; 330 break; 331 case 'RIGHT' : $contentpart_block_name = $BL['be_cnt_right'].$contentpart_block_name; 332 $contentpart_block_color = ' bgcolor="#FFF5CC"'; 333 break; 334 case 'HEADER' : $contentpart_block_name = $BL['be_admin_page_header'].$contentpart_block_name; 335 $contentpart_block_color = ' bgcolor="#EBEBD6"'; 336 break; 337 case 'FOOTER' : $contentpart_block_name = $BL['be_admin_page_footer'].$contentpart_block_name; 338 $contentpart_block_color = ' bgcolor="#E1E8F7"'; 339 break; 340 } 341 342 ?> 343 <tr<?php echo $contentpart_block_color ?>> 344 <td align="right" style="padding-right:5px;"><img src="img/symbole/block.gif" alt="" width="9" height="11" border="0" /></td> 345 <td style="font-size:9px;font-weight:bold;"><?php echo $contentpart_block_name ?></td> 346 <td><img src="img/leer.gif" alt="" width="1" height="15" /></td> 347 </tr> 348 <tr><td colspan="3" bgcolor="#D9DEE3"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 349 <?php 350 } 351 352 // now check if content part is tabbed 353 if($row['acontent_tab'] && $contentpart_tab != $row['acontent_tab']) { 354 355 $contentpart_tab = $row['acontent_tab']; 356 357 $contentpart_tabbed = explode('_', $contentpart_tab, 2); 358 $contentpart_tab_title = empty($contentpart_tabbed[1]) ? '' : $contentpart_tabbed[1]; 359 $contentpart_tab_number = empty($contentpart_tabbed[0]) ? 0 : intval($contentpart_tabbed[0]); 360 $contentpart_tab_number++; 361 362 ?> 363 <tr<?php echo $contentpart_block_color ?>> 364 <td align="right" style="padding-right:5px;"><img src="img/symbole/tabbed.gif" alt="" width="9" height="11" border="0" /></td> 365 <td style="font-size:9px;"><?php 366 echo html_specialchars($contentpart_tab_title); 367 if(empty($contentpart_tab_title)) { 368 echo ' [' . $contentpart_tab_number . ']'; 369 } 370 ?> </td> 371 <td><img src="img/leer.gif" alt="" width="1" height="15" /></td> 372 </tr> 373 <tr><td colspan="3" bgcolor="#D9DEE3"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 374 <?php 375 376 } elseif($contentpart_tab && empty($row['acontent_tab'])) { 377 378 // not the same tab but following cp is not tabbed 379 $contentpart_tab = ''; 380 ?> 381 <tr<?php echo $contentpart_block_color ?>><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 382 <tr><td colspan="3" bgcolor="#D9DEE3"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 383 <?php 384 385 } 386 387 388 ?> 389 <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 390 <tr> 391 <td align="right" style="padding-right:5px;"><img src="img/symbole/content_9x11<?php if($row["acontent_granted"]) echo '_granted'; ?>.gif" alt="" width="9" height="11" border="0" /></td> 392 <td><table border="0" cellpadding="0" cellspacing="0" summary="" width="100%"> 393 <tr> 394 <td width="180" style="font-size:9px;font-weight:bold;text-transform:uppercase;"><?php 395 396 $cntpart_title = $wcs_content_type[$row["acontent_type"]]; 397 if(!empty($row["acontent_module"])) { 398 399 $cntpart_title .= ': '.$BL['modules'][$row["acontent_module"]]['listing_title']; 400 401 } 402 echo $cntpart_title; 403 404 405 ?></td> 406 <td width="23" nowrap="nowrap"><?php echo $sbutton_string[$row["acontent_id"]]; ?></td> 407 <td class="v09" style="color:#727889;padding:0 4px 0 5px" width="60" nowrap="nowrap">[ID:<?php echo $row["acontent_id"] ?>]</td> 408 <td class="v09" nowrap="nowrap"><?php 409 410 echo date($BL['be_shortdatetime'], $row["acontent_date"]).' '; 411 412 //Display cp paginate page number 413 if($article["article_paginate"]) { 414 415 echo '<img src="img/symbole/content_cppaginate.gif" alt="subsection" title="subsection" />'; 416 echo $row["acontent_paginate_page"] == 0 ? 1 : $row["acontent_paginate_page"]; 417 } 418 419 420 //Anzeigen der Space Before/After Info 421 if(intval($row["acontent_before"])) { 422 //echo "<td><img src=\"img/symbole/content_space_before.gif\" width=\"12\" height=\"6\"></td>"; 423 //echo "<td class=\"v09\">".$row["acontent_before"]."</td>"; 424 echo '<img src="img/symbole/content_space_before.gif" alt="" />'.$row["acontent_before"]; 425 } 426 if(intval($row["acontent_after"])) { 427 //echo "<td><img src=\"img/symbole/content_space_after.gif\" width=\"12\" height=\"6\"></td>"; 428 //echo "<td class=\"v09\">".$row["acontent_after"]."</td>"; 429 echo '<img src="img/symbole/content_space_after.gif" alt="" />'.$row["acontent_after"]; 430 } 431 if($row["acontent_top"]) { 432 echo '<img src="img/symbole/content_top.gif" alt="TOP" title="TOP" />'; 433 } 434 if($row["acontent_anchor"]) { 435 echo '<img src="img/symbole/content_anchor.gif" alt="Anchor" title="Anchor" />'; 436 } 437 ?></td> 438 </tr> 439 </table></td> 440 <td align="right" style="padding-right:1px;"><a href="phpwcms.php?do=articles&p=2&s=1&aktion=2&id=<?php 441 echo $article["article_id"]."&acid=".$row["acontent_id"]; 442 ?>" title="<?php echo $BL['be_article_cnt_edit'] ?>"><img src="img/button/edit_22x13.gif" alt="" border="0" /></a><?php 443 // duplicate content part 444 echo '<a href="include/inc_act/act_structure.php?do=8%7C'.$row["acontent_id"].'%7C'.$article["article_id"].'%7C'.($row["acontent_sorting"]+5).'" '; 445 echo 'title="'.$BL['be_func_content_copy'].' [ID:'.$row["acontent_id"].']" '; 446 echo 'onclick="return confirm(\''.js_singlequote($BL['be_func_content_copy']).': \n'.js_singlequote($cntpart_title.' [ID:'.$row["acontent_id"].']').'\');">'; 447 echo '<img src="img/button/copy_13x13.gif" border="0" alt="" width="13" height="13" /></a>'; 448 449 ?><a href="include/inc_act/act_articlecontent.php?do=<?php 450 echo "2,".$article["article_id"].",".$row["acontent_id"].",".switch_on_off($row["acontent_visible"]) 451 ?>" title="<?php 452 echo $BL['be_article_cnt_lvisible'] 453 ?>"><img src="img/button/visible_12x13_<?php 454 echo $row["acontent_visible"] 455 ?>.gif" alt="" width="12" height="13" border="0" /></a><a href="include/inc_act/act_articlecontent.php?do=<?php 456 echo "9,".$article["article_id"].",".$row["acontent_id"] 457 ?>" title="<?php echo $BL['be_article_cnt_delpart'] ?>" onclick="return confirm('<?php 458 echo $BL['be_article_cnt_delpartjs'] ?> \n[ID: <?php echo $row["acontent_id"] 459 ?>]\n ');"><img src="img/button/trash_13x13_1.gif" alt="" width="13" height="13" border="0" /></a></td> 460 </tr> 461 <?php 462 463 // list content type overview 464 $cinfo = NULL; 465 466 //$row["acontent_type"] = intval($row["acontent_type"]); -> it is always INT because coming from db INT field 467 468 // check default content parts (system internals 469 if($row['acontent_type'] != 30 && file_exists('include/inc_tmpl/content/cnt'.$row['acontent_type'].'.list.inc.php')) { 470 471 include(PHPWCMS_ROOT.'/include/inc_tmpl/content/cnt'.$row['acontent_type'].'.list.inc.php'); 472 473 } elseif($row['acontent_type'] == 30 && file_exists($phpwcms['modules'][$row['acontent_module']]['path'].'inc/cnt.list.php')) { 474 475 // custom module 476 include($phpwcms['modules'][$row['acontent_module']]['path'].'inc/cnt.list.php'); 477 478 } else { 479 480 // default fallback 481 include (PHPWCMS_ROOT.'/include/inc_tmpl/content/cnt0.list.inc.php'); 482 483 } 484 // end list 485 486 ?> 487 <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="4" /></td></tr> 488 <tr><td colspan="3" bgcolor="#D9DEE3"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 489 <?php 490 } 491 } //Ende Listing Artikel Content Teile 492 ?> 493 <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 494 495 </table> 496 <input name="csorting" type="hidden" id="csorting" value="<?php echo ($scc*10); ?>" /> 497 </form> 498 <?php echo $buttonAction; ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Jan 29 16:31:14 2012 | Cross-referenced by PHPXref 0.7.1 |