[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/include/inc_tmpl/ -> articlecontent.list.tmpl.php (source)

   1  <?php
   2  /*************************************************************************************
   3  Copyright notice
   4  
   5  (c) 2002-2009 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>&nbsp;</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&amp;p=2&amp;s=1&amp;aktion=2&amp;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&amp;p=2&amp;s=1&amp;aktion=1&amp;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&amp;p=2&amp;s=1&amp;aktion=1&amp;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'] ?>:&nbsp;</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'] ?>:&nbsp;</td>
  81                <td valign="top" class="v10"><?php echo html_specialchars(getCleanSubString(strip_tags($article["article_summary"]), 250, '&#8230;')); ?></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'] ?>:&nbsp;</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'] ?>:&nbsp;</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'] ?>:&nbsp;</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'] ?>:&nbsp;</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']; ?>:&nbsp;</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'] ?>:&nbsp;</td>
 166                <td class="v10"><?php echo date($BL['be_longdatetime'], strtotime($article["article_date"])) ?>&nbsp;&nbsp;<span style="color:#727889"><?php echo $BL['be_fprivedit_created'] ?>:</span>&nbsp;<?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'] ?>:&nbsp;</td>
 170                <td class="v10"><?php echo date($BL['be_longdatetime'], strtotime($article["article_begin"])) ?>&nbsp;&nbsp;<span style="color:#727889"><?php echo $BL['be_article_cnt_end'] ?>:</span>&nbsp;<?php echo date($BL['be_longdatetime'], strtotime($article["article_end"])) ?></td>
 171              </tr>
 172              
 173              <tr>
 174                <td class="v10" style="color:#727889" nowrap="nowrap"><?php echo $BL['be_cnt_sortvalue'] ?>:&nbsp;</td>
 175                <td class="v10"><?php echo $article["article_sort"] ?>&nbsp;&nbsp;<span style="color:#727889"><?php echo $BL['be_priorize'] ?>:</span>&nbsp;<?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'] ?>:&nbsp;</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>&nbsp;</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]);
 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);
 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, ";
 243              /*if($article["article_paginate"]) {
 244                  $sql .= 'acontent_paginate_page, ';
 245              }*/
 246              $sql .= "acontent_sorting, acontent_id";
 247              if($result = mysql_query($sql, $db) or die("error while listing contents for this article")) {
 248                  $sc = 0; $scc = 0; //Sort-Zwischenzähler
 249                  while($row = mysql_fetch_row($result)) {
 250                      $scc++;
 251                      if($row[2] == 0) {
 252                          $sc++;
 253                          $sbutton[$sc]["id"]    = $row[0];
 254                          $sbutton[$sc]["sort"]  = $row[1];
 255                          $sbutton[$sc]["block"] = $row[3];
 256                      }
 257                  }
 258              }
 259              if($sc) {
 260                  //Jetzt aufbauen der Sortieranweisung
 261                  foreach($sbutton as $key => $value) {
 262                      if($key == 1) {
 263                          // if 1st content part in list
 264                          $sbutton[$key]["top"] = '<img src="img/button/sort_top_0.gif" border="0" alt="" />';
 265                          
 266                      } elseif(isset($sbutton[$key-1]["block"]) && $sbutton[$key-1]["block"] != $sbutton[$key]["block"]) {
 267                          // if this content part is selected for different block than previous
 268                          $sbutton[$key]["top"] = '<img src="img/button/sort_top_0.gif" border="0" alt="" />';
 269                          
 270                      } else {
 271                          $sbutton[$key]["top"] = "<a href=\"include/inc_act/act_articlecontent.php?sort=".
 272                          $sbutton[$key]["id"].":".$sbutton[$key-1]["sort"]."|".
 273                          $sbutton[$key-1]["id"].":".$sbutton[$key]["sort"].
 274                          "\" title=\"".$BL['be_article_cnt_up']."\"><img src=\"img/button/sort_top_1.gif\" border=\"0\" alt=\"\" /></a>";
 275                      }
 276                      if($key == $sc) {
 277                          // if this is the last content part in list
 278                          $sbutton[$key]["bottom"] = "<img src=\"img/button/sort_bottom_0.gif\" border=\"0\" alt=\"\" />";
 279                      
 280                      } elseif(isset($sbutton[$key+1]["block"]) && $sbutton[$key+1]["block"] != $sbutton[$key]["block"]) {
 281                          // if this is the last content part in current block and next is different
 282                          $sbutton[$key]["bottom"] = "<img src=\"img/button/sort_bottom_0.gif\" border=\"0\" alt=\"\" />";
 283                      
 284                      } else {
 285                          $sbutton[$key]["bottom"] = "<a href=\"include/inc_act/act_articlecontent.php?sort=".
 286                          $sbutton[$key]["id"].":".$sbutton[$key+1]["sort"]."|".
 287                          $sbutton[$key+1]["id"].":".$sbutton[$key]["sort"].
 288                          "\" title=\"".$BL['be_article_cnt_down']."\"><img src=\"img/button/sort_bottom_1.gif\" border=\"0\" alt=\"\" /></a>";
 289                      }
 290                      $sbutton_string[$sbutton[$key]["id"]] = $sbutton[$key]["top"].
 291                      "<img src=\"img/leer.gif\" width=\"1\" height=\"1\" alt=\"\" />".
 292                      $sbutton[$key]["bottom"];
 293                  }
 294                  unset($sbutton);
 295              }
 296  
 297              //Listing zugehöriger Artikel Content Teile
 298              $sql =     "SELECT *, UNIX_TIMESTAMP(acontent_tstamp) as acontent_date FROM ".DB_PREPEND."phpwcms_articlecontent ".
 299                      "WHERE acontent_aid=".$article["article_id"]." AND acontent_trash=0 ".
 300                      "ORDER BY acontent_block, acontent_sorting, acontent_id;";
 301  
 302              if($result = mysql_query($sql, $db) or die("error while listing contents for this article")) {
 303                  $sortierwert=1;
 304                  $contentpart_block = ' ';
 305                  $contentpart_block_name = '';
 306                  while($row = mysql_fetch_assoc($result)) {
 307                  
 308                      // if type of content part not enabled available 
 309                      if(!isset($wcs_content_type[ $row["acontent_type"] ]) || ($row["acontent_type"] == 30 && !isset($phpwcms['modules'][$row["acontent_module"]]))) {
 310                          continue;
 311                      }
 312                  
 313                      // now show current block name
 314                      if($contentpart_block != $row['acontent_block']) {
 315                          $contentpart_block = $row['acontent_block'];
 316                          $contentpart_block_name = html_specialchars(' {'.$row['acontent_block'].'}');
 317                          $contentpart_block_color = ' bgcolor="#E0D6EB"';
 318                          
 319                          switch($contentpart_block) {
 320                              case ''            :    $contentpart_block_name = $BL['be_main_content'].$contentpart_block_name;
 321                                                  $contentpart_block_color = ' bgcolor="#F5CCCC"';
 322                                                  break;
 323                              case 'CONTENT'    :    $contentpart_block_name = $BL['be_main_content'].$contentpart_block_name;
 324                                                  if($article['article_paginate']) {
 325                                                      $contentpart_block_name .= ' / <img src="img/symbole/content_cppaginate.gif" alt="" style="margin-right:2px;" />';
 326                                                      $contentpart_block_name .= $BL['be_cnt_pagination'];
 327                                                  }
 328                                                  $contentpart_block_color = ' bgcolor="#F5CCCC"';
 329                                                  break;
 330                              case 'LEFT'        :    $contentpart_block_name = $BL['be_cnt_left'].$contentpart_block_name;
 331                                                  $contentpart_block_color = ' bgcolor="#E0EBD6"';
 332                                                  break;
 333                              case 'RIGHT'    :    $contentpart_block_name = $BL['be_cnt_right'].$contentpart_block_name;
 334                                                  $contentpart_block_color = ' bgcolor="#FFF5CC"';
 335                                                  break;
 336                              case 'HEADER'    :    $contentpart_block_name = $BL['be_admin_page_header'].$contentpart_block_name;
 337                                                  $contentpart_block_color = ' bgcolor="#EBEBD6"';
 338                                                  break;
 339                              case 'FOOTER'    :    $contentpart_block_name = $BL['be_admin_page_footer'].$contentpart_block_name;
 340                                                  $contentpart_block_color = ' bgcolor="#E1E8F7"';
 341                                                  break;
 342                          }
 343                  
 344              ?>
 345              <tr<?php echo $contentpart_block_color ?>>
 346                  <td align="right" style="padding-right:5px;"><img src="img/symbole/block.gif" alt="" width="9" height="11" border="0" /></td>
 347                  <td style="font-size:9px;"><?php echo  $contentpart_block_name ?></td>
 348                  <td><img src="img/leer.gif" alt="" width="1" height="15" /></td>
 349              </tr>
 350              <tr><td colspan="3" bgcolor="#D9DEE3"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
 351              <?php
 352                      }
 353              
 354              
 355              ?>
 356              <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 357              <tr>
 358                <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>
 359                <td><table border="0" cellpadding="0" cellspacing="0" summary="" width="100%">
 360                  <tr>
 361                    <td width="180" style="font-size:9px;font-weight:bold;text-transform:uppercase;"><?php                   
 362                    
 363                  $cntpart_title = $wcs_content_type[$row["acontent_type"]];
 364                  if(!empty($row["acontent_module"])) {
 365                  
 366                      $cntpart_title .= ': '.$BL['modules'][$row["acontent_module"]]['listing_title'];
 367                  
 368                  }
 369                  echo $cntpart_title;
 370                    
 371                    
 372                    ?></td>
 373                    <td width="23" nowrap="nowrap"><?php echo $sbutton_string[$row["acontent_id"]]; ?></td>
 374                    <td class="v09" style="color:#727889;padding:0 4px 0 5px" width="60" nowrap="nowrap">[ID:<?php echo $row["acontent_id"] ?>]</td>
 375                    <td class="v09" nowrap="nowrap"><?php 
 376                    
 377                    echo date($BL['be_shortdatetime'], $row["acontent_date"]).'&nbsp;';
 378                    
 379                    //Display cp paginate page number
 380                    if($article["article_paginate"]) {
 381  
 382                      echo '<img src="img/symbole/content_cppaginate.gif" alt="subsection" title="subsection" />';
 383                      echo $row["acontent_paginate_page"] == 0 ? 1 : $row["acontent_paginate_page"];
 384                    }
 385                    
 386                                      
 387                    //Anzeigen der Space Before/After Info
 388                    if(intval($row["acontent_before"])) {
 389                        //echo "<td><img src=\"img/symbole/content_space_before.gif\" width=\"12\" height=\"6\"></td>";
 390                        //echo "<td class=\"v09\">".$row["acontent_before"]."</td>";
 391                      echo '<img src="img/symbole/content_space_before.gif" alt="" />'.$row["acontent_before"];
 392                    }
 393                    if(intval($row["acontent_after"])) {
 394                        //echo "<td><img src=\"img/symbole/content_space_after.gif\" width=\"12\" height=\"6\"></td>";
 395                        //echo "<td class=\"v09\">".$row["acontent_after"]."</td>";
 396                      echo '<img src="img/symbole/content_space_after.gif" alt="" />'.$row["acontent_after"];
 397                    }
 398                    if($row["acontent_top"]) {
 399                        echo '<img src="img/symbole/content_top.gif" alt="TOP" title="TOP" />';
 400                    }
 401                    if($row["acontent_anchor"]) {
 402                        echo '<img src="img/symbole/content_anchor.gif" alt="Anchor" title="Anchor" />';
 403                    }
 404                    ?></td>
 405                  </tr>
 406                </table></td>
 407                <td align="right" style="padding-right:1px;"><a href="phpwcms.php?do=articles&amp;p=2&amp;s=1&amp;aktion=2&amp;id=<?php 
 408                echo $article["article_id"]."&amp;acid=".$row["acontent_id"];
 409                ?>" title="<?php echo $BL['be_article_cnt_edit'] ?>"><img src="img/button/edit_22x13.gif" alt="" border="0" /></a><?php
 410                  // duplicate content part
 411                    echo '<a href="include/inc_act/act_structure.php?do=8%7C'.$row["acontent_id"].'%7C'.$article["article_id"].'%7C'.($row["acontent_sorting"]+5).'" ';
 412                  echo 'title="'.$BL['be_func_content_copy'].' [ID:'.$row["acontent_id"].']" ';
 413                  echo 'onclick="return confirm(\''.js_singlequote($BL['be_func_content_copy']).': \n'.js_singlequote($cntpart_title.' [ID:'.$row["acontent_id"].']').'\');">';
 414                  echo '<img src="img/button/copy_13x13.gif" border="0" alt="" width="13" height="13" /></a>';
 415                
 416                ?><a href="include/inc_act/act_articlecontent.php?do=<?php
 417                echo "2,".$article["article_id"].",".$row["acontent_id"].",".switch_on_off($row["acontent_visible"])
 418                ?>" title="<?php
 419                echo $BL['be_article_cnt_lvisible']
 420                ?>"><img src="img/button/visible_12x13_<?php
 421                echo $row["acontent_visible"]
 422                ?>.gif" alt="" width="12" height="13" border="0" /></a><a href="include/inc_act/act_articlecontent.php?do=<?php
 423                echo "9,".$article["article_id"].",".$row["acontent_id"]
 424                ?>" title="<?php echo $BL['be_article_cnt_delpart'] ?>" onclick="return confirm('<?php
 425                echo $BL['be_article_cnt_delpartjs'] ?> \n[ID: <?php echo $row["acontent_id"]
 426                ?>]\n ');"><img src="img/button/trash_13x13_1.gif" alt="" width="13" height="13" border="0" /></a></td>
 427              </tr>
 428  <?php
 429  
 430      // list content type overview
 431      $cinfo = NULL;
 432      
 433      //$row["acontent_type"] = intval($row["acontent_type"]); -> it is always INT because coming from db INT field
 434      
 435      // check default content parts (system internals
 436      if($row['acontent_type'] != 30 && file_exists('include/inc_tmpl/content/cnt'.$row['acontent_type'].'.list.inc.php')) {
 437      
 438          include(PHPWCMS_ROOT.'/include/inc_tmpl/content/cnt'.$row['acontent_type'].'.list.inc.php');
 439      
 440      } elseif($row['acontent_type'] == 30 && file_exists($phpwcms['modules'][$row['acontent_module']]['path'].'inc/cnt.list.php')) {
 441      
 442          // custom module
 443          include($phpwcms['modules'][$row['acontent_module']]['path'].'inc/cnt.list.php');
 444      
 445      } else {
 446      
 447          // default fallback
 448          include (PHPWCMS_ROOT.'/include/inc_tmpl/content/cnt0.list.inc.php');
 449      
 450      }
 451      // end list
 452  
 453  ?>
 454              <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="4" /></td></tr>
 455              <tr><td colspan="3" bgcolor="#D9DEE3"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
 456  <?php
 457      }
 458  } //Ende Listing Artikel Content Teile
 459  ?>
 460              <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>
 461              
 462  </table>
 463  <input name="csorting" type="hidden" id="csorting" value="<?php echo ($scc*10); ?>" />
 464  </form>
 465  <?php echo $buttonAction; ?>


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7