[ Index ]

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

title

Body

[close]

/include/inc_tmpl/ -> subscriberimport.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  $_userInfo['max_file_size'] = return_bytes(@ini_get('upload_max_filesize'));
  32  
  33  // select channel
  34  $_userInfo['select_subscr'] = '';
  35  $_userInfo['subscriptions'] = _dbQuery("SELECT * FROM ".DB_PREPEND."phpwcms_subscription ORDER BY subscription_name");
  36  
  37  if($_userInfo['subscriptions']) {
  38          
  39      foreach($_userInfo['subscriptions'] as $value) {
  40      
  41          $_userInfo['select_subscr'] .= '        <tr>
  42              <td><input type="checkbox" name="subscribe_select['.$value['subscription_id'].
  43              ']" id="subscribe_select'.$value['subscription_id'].'" value="'.$value['subscription_id'].'"';
  44          if(in_array($value['subscription_id'], $_userInfo['subscribe_select'])) {
  45              $_userInfo['select_subscr'] .= ' checked="checked"';
  46          }
  47          $_userInfo['select_subscr'] .= ' /></td>
  48              <td><label for="subscribe_select'.$value['subscription_id'].'">'.
  49              html_specialchars($value['subscription_name']).
  50              '</label></td>
  51          </tr>
  52          ';
  53      }
  54      
  55      if($_userInfo['select_subscr']) {
  56  
  57          $_userInfo['select_subscr'] = $_userInfo['select_subscr'] . '</table>';
  58          
  59          $_userInfo['select_subscr'] = '<table cellpadding="0" cellspacing="0" border="0">
  60              <tr>
  61                  <td><input type="checkbox" name="subscribe_all" id="subscribe_all" value="1"'.is_checked($_userInfo['subscribe_all'], 1, 1, 0).' /></td>
  62                  <td><label for="subscribe_all">'.$BL['be_newsletter_allsubscriptions'].'</label></td>
  63              </tr>
  64              ' .  $_userInfo['select_subscr'];                    
  65  
  66      }
  67  
  68  }
  69  
  70  
  71  ?>
  72  <form action="phpwcms.php?do=messages&amp;p=4&amp;import=1" method="post" name="importsubscriber" id="importsubscriber" enctype="multipart/form-data" style="background:#F3F5F8;border-top:1px solid #92A1AF;border-bottom:1px solid #92A1AF;margin:0 0 5px 0;padding:10px 10px 15px 10px">
  73  <table border="0" cellpadding="0" cellspacing="0" summary="">
  74  
  75      <?php
  76      if(!empty($_userInfo['csvError'])) {
  77      
  78          echo '    <tr> 
  79          <td align="right" valign="top"><img src="img/famfamfam/icon_alert.gif" alt="Error" />&nbsp;</td>
  80          <td class="error1" style="padding: 2px 0 10px 0">'.html_specialchars($_userInfo['csvError']).'</td>
  81      </tr>';
  82      
  83      }
  84      
  85      ?>
  86  
  87      <tr> 
  88          <td align="right" class="chatlist">&nbsp;</td>
  89          <td><?php echo $BL['be_newsletter_shouldbe1'] ?><div class="csv">emailA;nameA<br />&quot;emailB&quot;;&quot;nameB&quot;</div></td>
  90      </tr>
  91  
  92      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>
  93  
  94      <tr> 
  95          <td align="right" class="chatlist" nowrap="nowrap"><?php 
  96          
  97          echo $BL['be_newsletter_selectCSV'];
  98          echo '<input type="hidden" name="MAX_FILE_SIZE" value="'.$_userInfo['max_file_size'].'" />';
  99          
 100          ?>:&nbsp;</td>
 101          <td><input name="cvsfile" type="file" class="f11" style="width:300px;" size="35" /></td>
 102      </tr>
 103      
 104      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 105      
 106      <tr>
 107        <td align="right" class="chatlist"><?php echo $BL['be_newsletter_delimeter'] ?>:&nbsp;</td>
 108        <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 109            <tr>        
 110              <td><input type="text" class="f11b" style="width:30px;text-align:center;" name="delimeter" size="5" value="<?php echo html_specialchars($_userInfo['delimeter']) ?>" /></td>
 111              <td class="v10">&nbsp;<?php echo $BL['be_newsletter_shouldbe2'] ?></td>
 112          </tr>
 113          </table></td>
 114      </tr>
 115      
 116  <?php
 117      
 118  if($_userInfo['select_subscr']) {
 119      
 120      echo '<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>'.LF;
 121      echo '<tr>'.LF.'<td class="chatlist" align="right" valign="top" style="padding-top:3px;">'.$BL['be_cnt_subscription'].':&nbsp;</td>'.LF;
 122      echo '<td>'.$_userInfo['select_subscr'].'</td>'.LF.'</tr>';
 123  
 124  }
 125      
 126  ?>
 127  
 128      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
 129      
 130      <tr>
 131          <td align="right" class="chatlist"><?php echo $BL['be_ftptakeover_status'] ?>:&nbsp;</td>
 132          <td><table border="0" cellpadding="0" cellspacing="0" summary="">        
 133              <tr>
 134                  <td><input type="checkbox" name="subscribe_active" id="subscribe_active" value="1"<?php is_checked($_userInfo['subscribe_active'], 1) ?> /></td>
 135                  <td><label for="subscribe_active"><?php echo $BL['be_cnt_activated'] ?></label></td>
 136              </tr>
 137          </table></td>
 138      </tr>
 139      
 140      
 141      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="12" /></td></tr>
 142      <tr> 
 143          <td>&nbsp;</td>
 144          <td>
 145              <input type="submit" name="submitimport" id="submitimport" value="<?php echo $BL['be_newsletter_newimport'] ?>" class="button10" />
 146              &nbsp;&nbsp;&nbsp;&nbsp;
 147              <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;" />
 148          </td>
 149      </tr>
 150  </table>
 151  </form>


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