[ Index ]

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

title

Body

[close]

/include/inc_tmpl/content/ -> cnt22.inc.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  // RSS feed
  32  
  33  if(!isset($content['rssfeed'])) {
  34      $content['rssfeed']["rssurl"]        = '';
  35      $content["rssfeed"]["item"]            = '';
  36      $content['rssfeed']["cut1st"]        = 0;
  37      $content['rssfeed']["cacheoff"]        = 0;
  38      $content['rssfeed']["timeout"]        = 0;
  39      $content["rssfeed"]['template']     = '';
  40      $content["rssfeed"]['content_type'] = '';
  41  }
  42  
  43  
  44  ?>
  45  
  46  <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
  47   
  48  <tr>
  49      <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template'] ?>:&nbsp;</td>
  50      <td><select name="crss_template" id="crss_template" class="f11b">
  51    <?php
  52  
  53      echo '<option value="">'.$BL['be_admin_tmpl_default'].'</option>'.LF;
  54  
  55  // templates for RSS feed
  56  $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE.'inc_cntpart/rssfeed');
  57  if(is_array($tmpllist) && count($tmpllist)) {
  58      foreach($tmpllist as $val) {
  59          $vals = '';
  60          if($val == $content["rssfeed"]['template']) $vals= ' selected="selected"';
  61          $val = htmlspecialchars($val);
  62          echo '<option value="'.$val.'"'.$vals.'>'.$val."</option>\n";
  63      }
  64  }
  65  
  66    
  67  ?>                  
  68        </select></td></tr>
  69  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10"></td></tr>
  70  <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr>
  71  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="7"></td></tr>
  72  <tr>
  73      <td align="right" class="chatlist"><?php echo $BL['be_cnt_rssfeed_url'] ?>:&nbsp;</td>
  74      <td valign="top"><input name="crss_url" type="text" id="crss_url" class="f11b" style="width:440px" value="<?php echo html_specialchars($content['rssfeed']["rssurl"]) ?>" size="40"></td>
  75  </tr>
  76  
  77  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5"></td></tr>
  78  
  79  <tr>
  80    <td align="right" class="chatlist"><?php echo  $BL['be_cnt_rssfeed_item'] ?>:&nbsp;</td>
  81    <td><table border="0" cellpadding="0" cellspacing="0" summary="">
  82      <tr>
  83      <td><input name="crss_item" type="text" class="f11b" id="crss_item" style="width: 50px;" size="10" maxlength="10" onKeyUp="if(!parseInt(this.value*1))this.value='';" value="<?php echo  $content["rssfeed"]["item"] ?>"></td>
  84      <td class="f10">&nbsp;<?php echo $BL['be_cnt_rssfeed_max'] ?></td>
  85      <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  86      <td class="chatlist"><label for="crss_contenttype"><?php echo $BL['be_cnt_source'].' '.$BL['content_type'] ?></label>:&nbsp;</td>
  87      <td><select name="crss_contenttype" id="crss_contenttype" class="v12">
  88          <option value=""<?php
  89  if(empty($content["rssfeed"]['content_type'])) {
  90      echo ' selected="selected"';
  91  }        
  92          ?>><?php echo $BL['automatic'] ?></option>
  93  <?php
  94      
  95      foreach($phpwcms['charsets'] as $value) {
  96          echo '        <option value="'.$value.'"';    
  97          if(!empty($content["rssfeed"]['content_type']) && $value == $content["rssfeed"]['content_type']) {
  98              echo ' selected="selected"';    
  99          }
 100          echo '>'.$value.'</option>' . LF;
 101      }
 102      
 103          ?>
 104      </select></td>
 105      
 106      <!--
 107      <td class="chatlist"><label for="crss_cut1st"><?php echo  $BL['be_cnt_rssfeed_cut'] ?></label>:&nbsp;</td>
 108      <td bgcolor="#E7E8EB"><input name="crss_cut1st" type="checkbox" id="crss_cut1st" value="1"<?php echo  is_checked(1, $content['rssfeed']["cut1st"]) ?>></td>
 109      
 110      <td bgcolor="#E7E8EB"><img src="img/leer.gif" alt="" width="1" height="1"></td>
 111      //-->
 112      </tr>
 113      </table></td>
 114  </tr>
 115  
 116  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5"></td></tr>
 117  
 118  <tr>
 119    <td align="right" class="chatlist"><?php echo  $BL['be_cache'] ?>:&nbsp;</td>
 120    <td><table border="0" cellpadding="0" cellspacing="0" bgcolor="#E7E8EB" summary="">
 121      <tr>
 122      <td><input name="crss_cacheoff" type="checkbox" id="crss_cacheoff" value="1"<?php echo  is_checked(1, $content['rssfeed']["cacheoff"]) ?>></td>
 123      <td style="font-size:10px;padding-left:3px;"><label for="crss_cacheoff"><?php echo $BL['be_off'] ?></label>&nbsp;</td>
 124      <td>&nbsp;</td>
 125      <td><select name="crss_timeout" class="f10" style="margin:2px;" onChange="document.articlecontent.crss_cacheoff.checked=false;">
 126  <?php
 127  echo '<option value="0"'.is_selected($content['rssfeed']["timeout"], '0', 0, 0).'>'.$BL['be_admin_tmpl_default']."</option>\n";
 128  echo '<option value="60"'.is_selected($content['rssfeed']["timeout"], '60', 0, 0).'>&nbsp;&nbsp;1 '.$BL['be_date_minute']."</option>\n";
 129  echo '<option value="300"'.is_selected($content['rssfeed']["timeout"], '300', 0, 0).'>&nbsp;&nbsp;5 '.$BL['be_date_minutes']."</option>\n";
 130  echo '<option value="900"'.is_selected($content['rssfeed']["timeout"], '900', 0, 0).'>15 '.$BL['be_date_minutes']."</option>\n";
 131  echo '<option value="1800"'.is_selected($content['rssfeed']["timeout"], '1800', 0, 0).'>30 '.$BL['be_date_minutes']."</option>\n";
 132  echo '<option value="3600"'.is_selected($content['rssfeed']["timeout"], '3600', 0, 0).'>&nbsp;&nbsp;1 '.$BL['be_date_hour']."</option>\n";
 133  echo '<option value="14400"'.is_selected($content['rssfeed']["timeout"], '14400', 0, 0).'>&nbsp;&nbsp;4 '.$BL['be_date_hours']."</option>\n";
 134  echo '<option value="43200"'.is_selected($content['rssfeed']["timeout"], '43200', 0, 0).'>12 '.$BL['be_date_hours']."</option>\n";
 135  echo '<option value="86400"'.is_selected($content['rssfeed']["timeout"], '86400', 0, 0).'>&nbsp;&nbsp;1 '.$BL['be_date_day']."</option>\n";
 136  echo '<option value="172800"'.is_selected($content['rssfeed']["timeout"], '172800', 0, 0).'>&nbsp;&nbsp;2 '.$BL['be_date_days']."</option>\n";
 137  echo '<option value="604800"'.is_selected($content['rssfeed']["timeout"], '604800', 0, 0).'>&nbsp;&nbsp;1 '.$BL['be_date_week']."</option>\n";
 138  echo '<option value="1209600"'.is_selected($content['rssfeed']["timeout"], '1209600', 0, 0).'>&nbsp;&nbsp;2 '.$BL['be_date_weeks']."</option>\n";
 139  echo '<option value="2592000"'.is_selected($content['rssfeed']["timeout"], '2592000', 0, 0).'>&nbsp;&nbsp;1 '.$BL['be_date_month']."</option>\n";
 140  ?>
 141      </select></td>
 142      <td style="font-size:10px;">&nbsp;<?php echo $BL['be_cache_timeout'] ?>&nbsp;&nbsp;</td>
 143      </tr>
 144      </table></td>
 145  </tr>
 146  
 147  <tr><td colspan="2" class="rowspacer7x0"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>


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