[ Index ]

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

title

Body

[close]

/include/inc_tmpl/ -> subscriber.form.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  ?>
  32  <form action="phpwcms.php?do=messages&amp;p=4&amp;s=<?php echo $_userInfo['subscriber_data']['address_id'] ?>&amp;edit=1" method="post" name="editsubscriber" id="editsubscriber" style="background:#F3F5F8;border-top:1px solid #92A1AF;border-bottom:1px solid #92A1AF;margin:0 0 5px 0;padding:10px 10px 15px 10px">
  33  <table border="0" cellpadding="0" cellspacing="0" summary="">
  34  
  35      <tr> 
  36          <td align="right" class="chatlist"><?php echo $BL['be_cnt_last_edited']  ?>:&nbsp;</td>
  37          <td class="v10"><?php echo html_specialchars($_userInfo['subscriber_data']['address_tstamp']) ?></td>
  38      </tr>
  39      
  40      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td>
  41      </tr>
  42  
  43      <tr> 
  44          <td align="right" class="chatlist"><?php echo $BL['be_profile_label_email']  ?>:&nbsp;</td>
  45          <td><input name="subscribe_email" type="text" id="subscribe_email" class="f11b<?php 
  46          
  47          //error class
  48          if(!empty($_userInfo['error']['email'])) echo ' errorInputText';
  49          
  50          ?>" style="width:300px;" value="<?php echo html_specialchars($_userInfo['subscriber_data']['address_email']) ?>" size="30" /></td>
  51      </tr>
  52      
  53      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="2" /></td>
  54      </tr>
  55      
  56      <tr> 
  57          <td align="right" class="chatlist"><?php echo $BL['be_cnt_ecardform_name']  ?>:&nbsp;</td>
  58          <td><input name="subscribe_name" type="text" id="subscribe_name" class="f11b" style="width:300px;" value="<?php echo html_specialchars($_userInfo['subscriber_data']['address_name']) ?>" size="30" /></td>
  59      </tr>
  60      
  61      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
  62      
  63      <tr>
  64          <td align="right" class="chatlist" valign="top" style="padding-top: 4px;"><?php 
  65          
  66      echo $BL['be_cnt_subscription'] ;
  67      
  68      //retrieve available subscriptions
  69      $_userInfo['select_subscr'] = '';
  70      $_userInfo['subscr_all']    = 1;
  71      $_userInfo['subscriptions'] = _dbQuery("SELECT * FROM ".DB_PREPEND."phpwcms_subscription ORDER BY subscription_name");
  72  
  73      $_userInfo['subscriber_data']['subscriptions']    = unserialize($_userInfo['subscriber_data']['address_subscription']);
  74      
  75      if($_userInfo['subscriptions']) {
  76              
  77          foreach($_userInfo['subscriptions'] as $value) {
  78          
  79              $_userInfo['select_subscr'] .= '        <tr>
  80                  <td><input type="checkbox" name="subscribe_to[]" id="subscribe_to'.$value['subscription_id'].'" value="'.$value['subscription_id'].'"';
  81              if(is_array($_userInfo['subscriber_data']['subscriptions']) && in_array($value['subscription_id'], $_userInfo['subscriber_data']['subscriptions'])) {
  82              
  83                  $_userInfo['select_subscr'] .= ' checked="checked"';
  84                  $_userInfo['subscr_all']     = 0;
  85              
  86              }
  87              $_userInfo['select_subscr'] .= ' /></td>
  88                  <td><label for="subscribe_to'.$value['subscription_id'].'">'.
  89                  html_specialchars($value['subscription_name']).
  90                  '</label></td>
  91              </tr>
  92              ';
  93          }
  94      
  95      }
  96      
  97      
  98      ?>:&nbsp;</td>
  99          <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 100          
 101              <tr>
 102                  <td><input type="checkbox" name="subscribe_all" id="subscribe_all" value="1"<?php is_checked($_userInfo['subscr_all'], 1) ?> /></td>
 103                  <td><label for="subscribe_all"><?php echo $BL['be_newsletter_allsubscriptions'] ?></label></td>
 104              </tr>
 105              
 106      <?php echo $_userInfo['select_subscr'] ?>
 107          
 108          </table></td>
 109      
 110      </tr>
 111      
 112      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 113      
 114      <tr>
 115          <td align="right" class="chatlist"><?php echo $BL['be_ftptakeover_status'] ?>:&nbsp;</td>
 116          <td><table border="0" cellpadding="0" cellspacing="0" summary="">        
 117              <tr>
 118                  <td><input type="checkbox" name="subscribe_active" id="subscribe_active" value="1"<?php is_checked($_userInfo['subscriber_data']['address_verified'], 1) ?> /></td>
 119                  <td><label for="subscribe_active"><?php echo $BL['be_cnt_activated'] ?></label></td>
 120              </tr>
 121          </table></td>
 122      </tr>
 123      
 124      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td>
 125      </tr>
 126      <tr> 
 127          <td>&nbsp;</td>
 128          <td>
 129              <input name="submit" type="submit" class="button10" value="<?php echo empty($_userInfo['subscriber_data']['address_id']) ? $BL['be_admin_fcat_button2'] : $BL['be_article_cnt_button1'] ?>" />
 130              <input name="save" type="submit" class="button10" value="<?php echo $BL['be_article_cnt_button3'] ?>" />
 131              &nbsp;&nbsp;&nbsp;&nbsp;
 132              <input name="new" type="button" class="button10" value="<?php echo ucfirst($BL['be_msg_new']) ?>" onclick="location.href='phpwcms.php?do=messages&p=4&s=0&edit=1';return false;" />
 133              <input name="close" type="button" class="button10" value="<?php echo $BL['be_admin_struct_close'] ?>" onclick="location.href='phpwcms.php?do=messages&p=4';return false;" />
 134          </td>
 135      </tr>
 136  
 137  </table>
 138  </form>


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