[ Index ]

PHP Cross Reference of phpwcms V1.4.7 _r403 (01.11.10)

title

Body

[close]

/include/inc_tmpl/ -> news.tmpl.php (source)

   1   <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2010 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  // News
  31  
  32  
  33  
  34  $news = & new phpwcmsNews();
  35  
  36  ?>
  37  <h1 class="title"><?php echo $BL['be_news'] ?></h1>
  38  
  39  <?php
  40  
  41      if(isset($_GET['cntid'])) {
  42          
  43          $news->edit();
  44          
  45      } else {
  46      
  47          $news->filter();
  48          $news->countAll();
  49  
  50  ?>
  51      <div class="navBarLeft imgButton chatlist">
  52          &nbsp;&nbsp;
  53          <a href="<?php echo $news->base_url ?>&amp;cntid=0&amp;action=edit" title="<?php echo $BL['be_news_create'] ?>"><img src="img/famfamfam/page_white_add.gif" alt="New" border="0" /><span><?php echo $BL['be_news_create'] ?></span></a>
  54      </div>
  55      
  56  <form action="<?php echo $news->base_url ?>" method="post" name="paginate" id="paginate">
  57  <input type="hidden" name="filter" value="1" />
  58  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="paginate" summary="">
  59      <tr>
  60          <td class="tdbottom3"><table border="0" cellpadding="0" cellspacing="0" summary="">
  61              <tr>
  62                  
  63                  <td><input type="checkbox" name="showactive" id="showactive" value="1" onclick="this.form.submit();"<?php is_checked(1, ( $news->filter_status == 0 || $news->filter_status == 1 ) ? 1 : 0 ) ?> /></td>
  64                  <td><label for="showactive"><img src="img/button/aktiv_12x13_1.gif" alt="" /></label></td>
  65                  <td><input type="checkbox" name="showinactive" id="showinactive" value="1" onclick="this.form.submit();"<?php  is_checked(1, ( $news->filter_status == 0 || $news->filter_status == 2 ) ? 1 : 0 ) ?> /></td>
  66                  <td><label for="showinactive"><img src="img/button/aktiv_12x13_0.gif" alt="" /></label></td>
  67                  <td><input type="text" name="filter" id="filter" size="10" value="<?php echo html_specialchars($news->filter) ?>" /></td>
  68                  <td><input type="image" name="gofilter" src="img/famfamfam/action_go.gif" /></td>
  69                  
  70                  <td>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $news->getPagination(); ?></td>
  71                  
  72              </tr>
  73          </table></td>
  74          
  75          <td class="chatlist items-per-page" align="right">
  76              <?php echo getItemsPerPageMenu( $news->base_url ); ?>
  77          </td>
  78  
  79      </tr>
  80  </table>
  81  </form>
  82      
  83      
  84      
  85  <?php
  86          echo $news->listBackend();
  87          
  88          $phpwcms['be_parse_lang_process'] = true;
  89      
  90      }
  91  
  92      // Begin news form
  93      if(count($news->data)) {
  94          
  95          // some JavaScripts wee need
  96          initJsCalendar();
  97          initJsOptionSelect();
  98          initMootoolsAutocompleter();
  99  
 100  ?>
 101  <script type="text/javascript">
 102  <!--
 103  
 104  function setImgIdName(file_id, file_name) {
 105      if(file_id == null) var file_id=0;
 106      if(file_name == null) var file_name='';
 107      $('cnt_image_id').value = file_id;
 108      $('cnt_image_name').value = file_name;
 109      
 110      showImage();
 111  }
 112  
 113  function showImage() {
 114      var id    = parseInt($('cnt_image_id').value);
 115      var img    = $('cnt_image');
 116      if(id > 0) {
 117          img.innerHTML = '<img src="<?php echo PHPWCMS_URL.'img/cmsimage.php/'.$phpwcms['img_list_width'].'x'.$phpwcms['img_list_height'] ?>/'+id+'" alt="" border="0" />';
 118          img.style.display = '';
 119      } else {
 120          img.style.display = 'none';
 121      }
 122  }
 123  
 124  function addFile(file_id, file_name) {
 125      obj = $('cfile_list');
 126      if(obj!=null && obj.options!=null) {
 127          var newOpt = new Option(file_name, file_id);
 128          obj.options.length++;
 129          obj.options[obj.length-1].text      = newOpt.text;
 130          obj.options[obj.length-1].value     = newOpt.value;
 131          obj.options[obj.length-1].selected    = false;
 132          if(obj.options.length > 5) {
 133              obj.size = obj.options.length;
 134              $('cnt_file_caption').rows = obj.size;
 135          }
 136      }    
 137  }
 138  
 139  function emptyNews() {
 140      document.location.href='<?php echo $news->base_url_decoded ?>&cntid=0&action=edit';
 141      return false;
 142  }
 143  
 144  function closeForm() {
 145      document.location.href='<?php echo $news->base_url_decoded ?>';
 146      return false;
 147  }
 148  
 149  
 150  // Calendar
 151  function aStart(date, month, year) {
 152      $('calendar_start_date').value = subrstr('00' + date, 2) + '<?php echo $BL['default_date_delimiter'] ?>' + subrstr('00' + month, 2) + '<?php echo $BL['default_date_delimiter'] ?>' + year;
 153  }
 154  function aEnd(date, month, year) {
 155      $('calendar_end_date').value = subrstr('00' + date, 2) + '<?php echo $BL['default_date_delimiter'] ?>' + subrstr('00' + month, 2) + '<?php echo $BL['default_date_delimiter'] ?>' + year;
 156  }
 157  function aSort(date, month, year) {
 158      $('sort_date').value = subrstr('00' + date, 2) + '<?php echo $BL['default_date_delimiter'] ?>' + subrstr('00' + month, 2) + '<?php echo $BL['default_date_delimiter'] ?>' + year;
 159  }
 160  
 161  window.addEvent('domready', function(){
 162                                       
 163      /* setup tooltips */
 164      var as = [];
 165      $$('input').each(function(a){ if (a.getAttribute('title')) as.push(a); });
 166      new Tips(as, { maxTitleChars: 25, offsets: {'x': 2, 'y': 5} });
 167               
 168      /* Autocompleter for categories/tags */
 169      var searchCategory = $('cnt_category');
 170      var indicator2 = new Element('span', {'class': 'autocompleter-loading', 'styles': {'display': 'none'}}).setHTML('').injectAfter(searchCategory);
 171      var completer2 = new Autocompleter.Ajax.Json(searchCategory, 'include/inc_act/ajax_connector.php', {
 172          multi: true,
 173          maxChoices: 30,
 174          autotrim: true,
 175          minLength: 0,
 176          allowDupes: false,
 177          postData: {action: 'category', method: 'json'},
 178          onRequest: function(el) {
 179              indicator2.setStyle('display', '');
 180          },
 181          onComplete: function(el) {
 182              indicator2.setStyle('display', 'none');
 183          }
 184      });
 185      
 186      var selectLang = $('cnt_lang');
 187      var indicator1 = new Element('span', {'class': 'autocompleter-loading', 'styles': {'display': 'none'}}).setHTML('').injectAfter(selectLang);
 188      var completer1 = new Autocompleter.Ajax.Json(selectLang, 'include/inc_act/ajax_connector.php', {
 189          multi: false,
 190          allowDupes: false,
 191          autotrim: true,
 192          minLength: 0,
 193          maxChoices: 20,
 194          postData: {action: 'lang', method: 'json'},
 195          onRequest: function(el) {
 196              indicator1.setStyle('display', '');
 197          },
 198          onComplete: function(el) {
 199              indicator1.setStyle('display', 'none');
 200          }
 201      });
 202      
 203      selectLang.addEvent('keyup', function(){
 204          this.value = this.value.replace(/[^a-z\-]/g, '');
 205      });
 206  
 207  
 208  
 209      var cnt_title = $('cnt_title');
 210      
 211      // set name field
 212      $('cnt_name_click').addEvent('click', function(){
 213          var cnt_name = cnt_title.value.trim();
 214          if(cnt_name === '') {
 215              cnt_title.value = $('cnt_name').value.trim();
 216          } else {
 217              $('cnt_name').value = cnt_name;
 218          }        
 219      });
 220      
 221      $('cnt_alias_click').addEvent('click', function(){
 222          var cnt_alias = $('cnt_name').value.trim();
 223          if(cnt_alias === '') {
 224              cnt_alias = cnt_title.value.trim();
 225              $('cnt_name').value = cnt_alias;
 226          }
 227          if(cnt_alias !== '') {
 228              $('cnt_alias').value = create_alias(cnt_alias);
 229          }
 230      });
 231      
 232      var change_name_value    = '-';
 233      var change_alias_value    = '-';
 234      
 235      cnt_title.addEvent('focus', function(){
 236      
 237          change_name_value     = $('cnt_name').value.trim();
 238          change_alias_value    = $('cnt_alias').value.trim();
 239  
 240      });
 241      
 242      cnt_title.addEvent('keyup', function() {
 243          if(change_name_value == ''){
 244              $('cnt_name').value = cnt_title.value;
 245          }
 246          if(change_alias_value == '') {
 247              $('cnt_alias').value = create_alias( $('cnt_name').value );
 248          }
 249      });
 250      
 251  
 252  });
 253  
 254  
 255  //-->
 256  </script>
 257  <form action="<?php echo $news->formAction() ?>" method="post" class="free" onsubmit="selectAllOptions(this.cfile_list);">
 258  
 259  
 260      <p class="break filled important">
 261          <label><?php echo $BL['be_article_cnt_ctitle'] ?></label>
 262          <input type="text" name="cnt_title" id="cnt_title" value="<?php echo html_specialchars($news->data['cnt_title']) ?>" class="text" maxlength="250" />
 263      </p>
 264      
 265      <p>    
 266          <label><?php echo $BL['be_article_asubtitle'] ?></label>
 267          <input type="text" name="cnt_subtitle" id="cnt_subtitle" value="<?php echo html_specialchars($news->data['cnt_subtitle']) ?>" class="text" maxlength="250" />
 268      </p>
 269      
 270      <p>    
 271          <label><?php echo $BL['be_teasertext'] ?></label>
 272          <textarea name="cnt_teasertext" id="cnt_teasertext" class="text" rows="5"><?php echo html_specialchars($news->data['cnt_teasertext']) ?></textarea>
 273      </p>
 274  
 275      <div class="paragraph filled border_top border_bottom">
 276      <table border="0" cellpadding="0" cellspacing="0" summary="">
 277          
 278              <tr>
 279                  <td class="chatlist">&nbsp;</td>
 280                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BL['default_date_format'] ?></td>
 281                  <td class="chatlist">&nbsp;</td>
 282                  <td colspan="2" class="chatlist" style="padding-bottom:2px"><?php echo $BL['default_time_format'] ?></td>
 283              </tr>
 284          
 285              <tr>
 286                  <td><label><?php echo $BL['be_article_cnt_start'] ?></label></td>
 287                  <td><input name="calendar_start_date" type="text" id="calendar_start_date" class="v12" style="width:100px;" value="<?php echo $news->data['cnt_date_start'] ?>" size="30" /></td>
 288          <td><script type="text/javascript">
 289  <!--
 290      
 291          // Calendar start
 292      var calStart = new dynCalendar('calStart', 'aStart', 'img/dynCal/');
 293      calStart.setMonthCombo(true);
 294      calStart.setYearCombo(true);
 295  
 296  //-->
 297  </script>&nbsp;</td>
 298          <td><input name="calendar_start_time" type="text" id="calendar_start_time" class="v12" style="width:55px;" value="<?php echo $news->data['cnt_time_start'] ?>" size="30" /></td>
 299              </tr>
 300              
 301          <tr><td colspan="4" style="font:5px;line-height:5px">&nbsp;</td></tr>
 302          
 303              <tr>
 304                  <td class="chatlist">&nbsp;</td>
 305                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BL['default_date_format'] ?></td>
 306                  <td class="chatlist">&nbsp;</td>
 307                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BL['default_time_format'] ?></td>
 308              </tr>
 309          
 310              <tr>
 311                  <td><label><?php echo $BL['be_article_cnt_end'] ?></label></td>
 312                  <td><input name="calendar_end_date" type="text" id="calendar_end_date" class="v12" style="width:100px;" value="<?php echo $news->data['cnt_date_end'] ?>" size="30" /></td>
 313          <td><script type="text/javascript">
 314  <!--
 315  
 316      var calEnd = new dynCalendar('calEnd', 'aEnd', 'img/dynCal/');
 317      calEnd.setMonthCombo(true);
 318      calEnd.setYearCombo(true);
 319      
 320  
 321  //-->
 322  </script>&nbsp;</td>
 323          <td><input name="calendar_end_time" type="text" id="calendar_end_time" class="v12" style="width:55px;" value="<?php echo $news->data['cnt_time_end'] ?>" size="30" /></td>
 324              </tr>
 325  
 326  
 327          <tr><td colspan="4" style="font:5px;line-height:5px">&nbsp;</td></tr>
 328          
 329  
 330          <!-- sort date -->
 331              <tr>
 332                  <td class="chatlist">&nbsp;</td>
 333                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BL['default_date_format'] ?></td>
 334                  <td class="chatlist">&nbsp;</td>
 335                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BL['default_time_format'] ?></td>
 336              </tr>
 337          
 338              <tr>
 339                  <td><label><?php echo $BL['be_sort_date'] ?></label></td>
 340                  <td><input name="sort_date" type="text" id="sort_date" class="v12" style="width:100px;" value="<?php echo $news->data['cnt_sort_date'] ?>" size="30" /></td>
 341          <td><script type="text/javascript">
 342  <!--
 343      var calSort = new dynCalendar('calSort', 'aSort', 'img/dynCal/');
 344      calSort.setMonthCombo(true);
 345      calSort.setYearCombo(true);
 346  
 347  //-->
 348  </script>&nbsp;</td>
 349          <td><input name="sort_time" type="text" id="sort_time" class="v12" style="width:55px;" value="<?php echo $news->data['cnt_sort_time'] ?>" size="30" /></td>
 350              </tr>    
 351              
 352          </table>
 353      </div>
 354      
 355  
 356      <p class="space_top">    
 357          <label><a id="cnt_name_click"><?php echo $BL['be_title'] ?></a>/<a id="cnt_alias_click"><?php echo $BL['be_alias'] ?></a></label>
 358          <input type="text" name="cnt_name" id="cnt_name" value="<?php echo html_specialchars($news->data['cnt_name']) ?>" class="text short" maxlength="200" title="<?php echo $BL['be_title'] ?>" />
 359          <input type="text" name="cnt_alias" id="cnt_alias" value="<?php echo html_specialchars($news->data['cnt_alias']) ?>" class="text short" maxlength="200" title="<?php echo $BL['be_alias'] ?>" />
 360      </p>
 361      
 362      <p>    
 363          <label><?php echo $BL['be_tags'] ?></label>
 364          <input type="text" name="cnt_category" id="cnt_category" value="<?php echo html_specialchars($news->data['cnt_category']) ?>" class="text" maxlength="250" />
 365      </p>
 366  
 367      <p>    
 368          <label><?php echo $BL['be_profile_label_lang'] ?></label>
 369          <input type="text" name="cnt_lang" id="cnt_lang" value="<?php echo html_specialchars($news->data['cnt_lang']) ?>" class="text short" maxlength="10" title="<?php echo $BL['be_profile_label_lang'] ?>" />
 370      </p>
 371      
 372      <p>    
 373          <label><?php echo $BL['be_priorize'] ?></label>
 374          <select name="cnt_prio" id="cnt_prio" style="width:auto" title="<?php echo $BL['be_priorize'] ?>">
 375          <?php
 376          
 377              for($x=30; $x>=-30; $x--) {                
 378              
 379                  echo '    <option value="'.$x.'"';
 380                  is_selected($x, $news->data['cnt_prio']);
 381                  echo '>'.( $x==0 ? $BL['be_cnt_default'] : $x ).'</option>'.LF;
 382              
 383              }
 384                              
 385          ?>        
 386          </select>
 387      </p>
 388  
 389      <div class="paragraph filled border_bottom border_top">
 390          
 391          <table cellpadding="0" cellspacing="0" border="0" summary="">
 392      
 393              <tr>
 394                  <td><label><?php echo $BL['be_cnt_image'] ?></label></td>
 395                  <td><input type="text" name="cnt_image_name" id="cnt_image_name" value="<?php echo html_specialchars($news->data['cnt_image']['name']) ?>" class="file" maxlength="250" /></td>
 396                  <td style="padding:2px 0 0 5px" width="100">
 397                      <a href="#" title="<?php echo $BL['be_cnt_openimagebrowser'] ?>" onclick="openFileBrowser('filebrowser.php?opt=7');return false;"><img src="img/button/open_image_button.gif" alt="" width="20" height="15" border="0" /></a>
 398                      <a href="#" title="<?php echo $BL['be_cnt_delimage'] ?>" onclick="setImgIdName();return false;"><img src="img/button/del_image_button.gif" alt="" width="15" height="15" border="0" /></a>
 399                      <input name="cnt_image_id" id="cnt_image_id" type="hidden" value="<?php echo $news->data['cnt_image']['id'] ?>" />
 400                  </td>
 401              </tr>
 402  
 403              <tr>
 404                  <td>&nbsp;</td>
 405                  <td colspan="2" class="tdtop5 tdbottom5">
 406                  
 407                  <table border="0" cellpadding="0" cellspacing="0" summary="">
 408                  <tr>
 409                <td><input name="cnt_image_zoom" type="checkbox" id="cnt_image_zoom" value="1" <?php is_checked(1, $news->data['cnt_image']['zoom']); ?> /></td>
 410                    <td><label for="cnt_image_zoom" class="checkbox"><?php echo $BL['be_cnt_enlarge'] ?></label></td>
 411  
 412                    <td><input name="cnt_image_lightbox" type="checkbox" id="cnt_image_lightbox" value="1" <?php is_checked(1, $news->data['cnt_image']['lightbox']); ?> onchange="if(this.checked){$('cnt_image_zoom').checked=true;}" /></td>
 413                    <td><label for="cnt_image_lightbox" class="checkbox"><?php echo $BL['be_cnt_lightbox'] ?></label></td>        
 414                  </tr>
 415                  </table>
 416                  
 417                  <div id="cnt_image" style="padding-top:3px;"></div>
 418                  
 419                  </td>
 420              </tr>
 421              
 422          <tr>
 423                  <td class="top"><label><?php echo $BL['be_cnt_caption'] ?></label></td>
 424                  <td colspan="2" class="tdbottom4">
 425                  <textarea name="cnt_image_caption" id="cnt_image_caption" class="text" rows="2"><?php echo html_specialchars($news->data['cnt_image']['caption']) ?></textarea>                
 426                  </td>
 427              </tr>
 428              
 429              <tr>
 430                  <td><label><?php echo $BL['be_profile_label_website'] ?></label></td>
 431                  <td colspan="2"><input type="text" name="cnt_image_link" id="cnt_image_link" class="text" maxlength="500" value="<?php echo html_specialchars($news->data['cnt_image']['link']) ?>" /></td>
 432              </tr>
 433      
 434          </table>
 435      </div>
 436      
 437      <div class="paragraph border_bottom">
 438      <table border="0" cellpadding="0" cellspacing="0" summary="">
 439      <tr>
 440          <td class="top"><label><?php echo $BL['be_cnt_files'] ?></label></td>
 441          <td style="padding:0 5px 5px 0;"><select name="cnt_files[]" size="5" multiple="multiple" id="cfile_list" class="">
 442  <?php
 443          foreach( $news->getFiles() as $item ) {
 444  
 445              echo '<option value="' . $item['f_id'] . '">' . html_specialchars($item['f_name']) . '</option>' . LF;
 446  
 447          }
 448  ?>
 449          </select></td>
 450          <td valign="top" width="20">
 451          <a href="#" title="<?php echo $BL['be_cnt_openfilebrowser'] ?>" onclick="openFileBrowser('filebrowser.php?opt=9');return false"><img src="img/button/open_image_button.gif" alt="" width="20" height="15" border="0" vspace="2" /></a>
 452          <a href="#" title="<?php echo $BL['be_cnt_sortup'] ?>" onclick="moveOptionUp(getObjectById('cfile_list'));return false;"><img src="img/button/image_pos_up.gif" alt="" width="10" height="9" border="0" /></a><a href="#" title="<?php echo $BL['be_cnt_sortdown'] ?>" onclick="moveOptionDown(getObjectById('cfile_list'));return false;"><img src="img/button/image_pos_down.gif" alt="" width="10" height="9" border="0" /></a>
 453          <a href="#" onclick="removeSelectedOptions(getObjectById('cfile_list'));return false;" title="<?php echo $BL['be_cnt_delfile'] ?>"><img src="img/button/del_image_button1.gif" alt="" width="20" height="15" border="0" vspace="2" /></a>
 454          </td>
 455      </tr>
 456      
 457      <tr>
 458           <td class="top"><label><?php echo $BL['be_cnt_description'] ?></label></td>
 459            <td colspan="2"><textarea name="cnt_file_caption" cols="40" rows="5" class="text" id="cnt_file_caption"><?php echo html_specialchars($news->data['cnt_files']['caption']) ?></textarea></td>
 460      </tr>
 461      
 462    </table>
 463        
 464      </div>
 465  
 466      
 467      <div class="paragraph">
 468          <?php
 469  
 470          $wysiwyg_editor = array(
 471              'value'        => $news->data['cnt_text'],
 472              'field'        => 'cnt_text',
 473              'height'    => '350px',
 474              'width'        => '536px',
 475              'rows'        => '15',
 476              'editor'    => $_SESSION["WYSIWYG_EDITOR"],
 477              'lang'        => 'en'
 478          );
 479          
 480          include (PHPWCMS_ROOT.'/include/inc_lib/wysiwyg.editor.inc.php');
 481  
 482          ?>
 483      </div>
 484      
 485      <p class="space_top border_top">    
 486          <label><?php echo $BL['be_read_more_link'] ?></label>
 487          <input type="text" name="cnt_link" id="cnt_link" value="<?php echo html_entities($news->data['cnt_link']) ?>" class="text" maxlength="250" title="<?php echo $BL['be_read_more_link'] ?>" />
 488      </p>
 489      
 490      <p>    
 491          <label>URL <?php echo $BL['be_admin_page_text'] ?></label>
 492          <input type="text" name="cnt_linktext" id="cnt_linktext" value="<?php echo html_entities($news->data['cnt_linktext']) ?>" class="text" maxlength="250" title="URL <?php echo $BL['be_admin_page_text'] ?>" />
 493      </p>    
 494      
 495      <p class="space_top border_top">    
 496          <label><?php echo $BL['be_article_username'] ?>/<?php echo $BL['be_place'] ?></label>
 497          <input type="text" name="cnt_editor" id="cnt_editor" value="<?php echo html_specialchars($news->data['cnt_editor']) ?>" class="text short" maxlength="250" title="<?php echo $BL['be_article_username'] ?>" />
 498          <input type="text" name="cnt_place" id="cnt_place" value="<?php echo html_specialchars($news->data['cnt_place']) ?>" class="text short" maxlength="250" title="<?php echo $BL['be_place'] ?>" />
 499      </p>
 500      
 501      
 502      <div class="filled border_top paragraph border_bottom">
 503      
 504          <table cellpadding="0" cellspacing="0" border="0" summary="">
 505          
 506          <tr>
 507          
 508              <td><label><?php echo $BL['be_ftptakeover_status'] ?></label></td>
 509              <td><input name="cnt_readmore" type="checkbox" id="cnt_readmore" value="1" <?php is_checked(1, $news->data['cnt_readmore']); ?> /></td>
 510              <td><label class="checkbox" for="cnt_readmore"><?php echo $BL['be_article_morelink'] ?></label></td>
 511          </tr>
 512          
 513          <tr>
 514              <td colspan="3" style="line-height:5px;font-size:5px;">&nbsp;</td>
 515          </tr>
 516          
 517          <tr>
 518              <td>&nbsp;</td>
 519              <td><input name="cnt_status" type="checkbox" id="cnt_status" value="1" <?php is_checked(1, $news->data['cnt_status']); ?> /></td>
 520              <td><label class="checkbox" for="cnt_status"><strong><?php echo $BL['be_published'] ?></strong></label></td>
 521          </tr>
 522          
 523          <tr>
 524              <td>&nbsp;</td>
 525              <td><input name="cnt_archive_status" type="checkbox" id="cnt_archive_status" value="1" <?php is_checked(1, $news->data['cnt_archive_status']); ?> /></td>
 526              <td><label class="checkbox" for="cnt_archive_status"><?php echo $BL['be_show_archived'] ?></label></td>
 527          </tr>
 528          
 529          <tr>
 530              <td colspan="3" style="line-height:5px;font-size:5px;">&nbsp;</td>
 531          </tr>
 532          
 533          <tr>
 534              <td>&nbsp;</td>
 535              <td><input name="cnt_duplicate" type="checkbox" id="cnt_duplicate" value="1" <?php is_checked(1, $news->data['cnt_duplicate']); ?> /></td>
 536              <td><label class="checkbox" for="cnt_duplicate"><?php echo $BL['be_save_copy'] ?></label></td>
 537          </tr>
 538          
 539          </table>
 540              
 541      </div>
 542      
 543      
 544      <p style="padding:10px 0 10px 0" class="border_bottom">
 545          
 546          <label>&nbsp;</label>
 547          
 548          <?php if($news->data['cnt_id']) { ?>
 549          
 550              <input name="submit" type="submit" class="button10" value="<?php echo $BL['be_article_cnt_button1'] ?>" />
 551              <input name="save" type="submit" class="button10" value="<?php echo $BL['be_article_cnt_button3'] ?>" />
 552  
 553          <?php } else { ?>
 554          
 555              <input name="submit" type="submit" class="button10" value="<?php echo $BL['be_admin_fcat_button2'] ?>" />
 556              <input name="save" type="submit" class="button10" value="<?php echo $BL['be_article_cnt_button3'] ?>" />
 557          
 558          <?php }    ?>
 559          &nbsp;&nbsp;&nbsp;&nbsp;
 560          <input name="new" type="button" class="button10" value="<?php echo ucfirst($BL['be_msg_new']) ?>" onclick="emptyNews();" />
 561          <input name="close" type="button" class="button10" value="<?php echo $BL['be_admin_struct_close'] ?>" onclick="closeForm();" />
 562      
 563      </p>
 564  <script type="text/javascript">
 565  <!--
 566      
 567      // Show image
 568      showImage();
 569  
 570  //-->
 571  </script>
 572  </form>
 573  <?php 
 574  
 575      }
 576      // Stop news form
 577      
 578  ?>


Generated: Tue Nov 16 22:51:00 2010 Cross-referenced by PHPXref 0.7