[ Index ]

PHP Cross Reference of phpwcms V1.5.0 _r431 (28.01.12)

title

Body

[close]

/include/inc_tmpl/content/ -> cnt0.inc.php (source)

   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  // Plain Text
  32  
  33  initMootools('1.2');
  34  $GLOBALS['BE']['HEADER']['flext.js'] = getJavaScriptSourceLink(TEMPLATE_PATH.'lib/mootools/plugin-1.2/mootools.flext.js');
  35  
  36  if(empty($content['ctext_format'])) {
  37      $content['ctext_format'] = 'plain';
  38  }
  39  
  40  ?>
  41  <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
  42  
  43  <tr>
  44      <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?>:&nbsp;</td>
  45      <td><select name="template" id="template" class="f11b">
  46  <?php
  47      
  48      echo '<option value="">'.$BL['be_admin_tmpl_default'].'</option>'.LF;
  49  
  50  // templates for frontend login
  51  $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE.'inc_cntpart/plaintext');
  52  if(is_array($tmpllist) && count($tmpllist)) {
  53      foreach($tmpllist as $val) {
  54          $selected_val = (isset($content["template"]) && $val == $content["template"]) ? ' selected="selected"' : '';
  55          $val = html_specialchars($val);
  56          echo '    <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF;
  57      }
  58  }
  59  
  60  ?>                  
  61          </select></td>
  62  </tr>
  63  
  64  <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
  65  
  66  <tr>
  67      <td align="right" class="chatlist"><?php echo $BL['be_media_format'] ?>:&nbsp;</td>
  68      <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
  69              <tr>
  70                  <td><input name="ctext_format" type="radio" id="ctext_format0" value="plain" <?php is_checked('plain', $content['ctext_format']); ?> /></td>
  71                  <td class="v10"><label for="ctext_format0" class="checkbox"><?php echo $BL['be_ctype_plaintext'] ?></label></td>
  72                  
  73                  <td>&nbsp;</td>
  74                  <td><input name="ctext_format" type="radio" id="ctext_format1" value="markdown" <?php is_checked('markdown', $content['ctext_format']); ?> /></td>
  75                  <td class="v10"><label for="ctext_format1" class="checkbox">MarkDown</label>(<a href="http://en.wikipedia.org/wiki/Markdown" target="_blank" title="Wikipedia: Markdown">?</a>)</td>
  76                  
  77                  <td>&nbsp;</td>
  78                  <td><input name="ctext_format" type="radio" id="ctext_format2" value="textile" <?php is_checked('textile', $content['ctext_format']); ?> /></td>
  79                  <td class="v10"><label for="ctext_format2" class="checkbox">Textile</label>(<a href="http://en.wikipedia.org/wiki/Textile_%28markup_language%29" target="_blank" title="Wikipedia: Textile">?</a>)</td>
  80  
  81              </tr>
  82          </table>
  83      </td>
  84  </tr>
  85  
  86  <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
  87  
  88  <tr>
  89      <td align="right" valign="top" class="chatlist tdtop4"><?php echo $BL['be_cnt_plaintext'] ?>:&nbsp;</td>
  90      <td valign="top"><textarea name="ctext" rows="20" class="code width440 flext growme" id="ctext"><?php 
  91          if(empty($content["text"])) {
  92          
  93              echo '';
  94          
  95          } else {
  96              
  97              if($content["text"]{0} == LF || $content["text"]{0} == "\r") echo ' '; // keep 1st linebreak;
  98              echo html_specialchars($content["text"]);
  99              
 100          }
 101      
 102      ?></textarea></td>
 103  </tr>
 104  
 105  <tr><td colspan="2" class="rowspacer7x0"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>


Generated: Sun Jan 29 16:31:14 2012 Cross-referenced by PHPXref 0.7.1