[ Index ] |
PHP Cross Reference of phpwcms V1.5.0 _r431 (28.01.12) |
[Summary view] [Print] [Text view]
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 //newsletter subscription 32 33 ?> 34 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td> 35 </tr> 36 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td> 37 </tr> 38 <tr> 39 <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="13" /><?php echo $BL['be_cnt_subscription'] ?>: </td> 40 <td valign="top"><?php 41 42 $content["newsletter"]['left'] = array(); 43 $content["newsletter"]['right'] = array(); 44 45 // default = all subscriptions 46 $content["newsletter"]['right'][0] = $BL['be_newsletter_allsubscriptions']; 47 48 // retrieve all available subscriptions first 49 $result = _dbQuery("SELECT * FROM ".DB_PREPEND."phpwcms_subscription ORDER BY subscription_name"); 50 foreach($result as $row) { 51 $content["newsletter"]['right'][ $row["subscription_id"] ] = html_specialchars($row["subscription_name"]); 52 } 53 54 if(isset($content["newsletter"]["subscription"]) && is_array($content["newsletter"]["subscription"])) { 55 foreach($content["newsletter"]["subscription"] as $row => $result) { 56 if(isset($content["newsletter"]['right'][ $row ])) { 57 $content["newsletter"]['left'][ $row ] = $content["newsletter"]['right'][ $row ]; 58 unset($content["newsletter"]['right'][ $row ]); 59 } 60 } 61 } 62 63 echo createOptionTransferSelectList( 'cnewsletter_subscription', 64 $content["newsletter"]['left'], 65 $content["newsletter"]['right'], 66 array('class'=>'optionTransfer', 'formname'=>'articlecontent', 'rows'=>7)); 67 68 ?></td> 69 <td> </td> 70 </tr> 71 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6"></td></tr> 72 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr> 73 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6"></td></tr> 74 75 <tr> 76 <td align="right" class="chatlist"><?php echo $BL['be_cnt_labelemail'] ?>: </td> 77 <td><table width="439" border="0" cellpadding="0" cellspacing="0" summary=""> 78 <tr> 79 <td width="180"><input name="cnewsletter_label_email" type="text" id="cnewsletter_label_email" class="f11b" style="width: 180px" value="<?php echo isset($content["newsletter"]["label_email"]) ? $content["newsletter"]["label_email"] : '' ?>" size="20" maxlength="100"></td> 80 <td width="79" align="right" class="chatlist"> <?php 81 82 echo $BL['be_cnt_tablealign']; 83 if(!isset($content["newsletter"]["pos"])) $content["newsletter"]["pos"] = 0; 84 85 ?>: </td> 86 <td width="180"><select name="cnewsletter_pos" class="f10" id="cnewsletter_pos"> 87 <option value="0" <?php is_selected(0, $content["newsletter"]["pos"]) ?>><?php echo $BL['be_cnt_default'] ?></option> 88 <option value="1" <?php is_selected(1, $content["newsletter"]["pos"]) ?>><?php echo $BL['be_cnt_left'] ?></option> 89 <option value="2" <?php is_selected(2, $content["newsletter"]["pos"]) ?>><?php echo $BL['be_cnt_center'] ?></option> 90 <option value="3" <?php is_selected(3, $content["newsletter"]["pos"]) ?>><?php echo $BL['be_cnt_right'] ?></option> 91 </select></td> 92 </tr> 93 </table></td> 94 </tr> 95 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3"></td></tr> 96 <tr> 97 <td align="right" class="chatlist"><?php echo $BL['be_cnt_labelname'] ?>: </td> 98 <td><table width="439" border="0" cellpadding="0" cellspacing="0" summary=""> 99 <tr> 100 <td width="180"><input name="cnewsletter_label_name" type="text" id="cnewsletter_label_name" class="f11b" style="width: 180px" value="<?php echo isset($content["newsletter"]["label_name"]) ? $content["newsletter"]["label_name"] : '' ?>" size="20" maxlength="100"></td> 101 <td width="79" align="right" class="chatlist"> <?php echo $BL['be_cnt_buttontext'] ?>: </td> 102 <td width="180"><input name="cnewsletter_button_text" type="text" id="cnewsletter_button_text" class="f11b" style="width: 180px" value="<?php echo isset($content["newsletter"]["button_text"]) ? $content["newsletter"]["button_text"] : '' ?>" size="40" maxlength="50"></td> 103 </tr> 104 </table></td> 105 </tr> 106 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3"></td></tr> 107 <tr> 108 <td align="right" class="chatlist"><?php echo $BL['be_cnt_labelsubsc'] ?>: </td> 109 <td><table width="439" border="0" cellpadding="0" cellspacing="0" summary=""> 110 <tr> 111 <td width="180"><input name="cnewsletter_label_subscriptions" type="text" id="cnewsletter_label_subscriptions" class="f11b" style="width: 180px" value="<?php echo isset($content["newsletter"]["label_subscriptions"]) ? $content["newsletter"]["label_subscriptions"] : '' ?>" size="20" maxlength="100"></td> 112 <td width="79" align="right" class="chatlist"> <?php echo $BL['be_cnt_allsubsc'] ?>: </td> 113 <td width="180"><input name="cnewsletter_all_subscriptions" type="text" id="cnewsletter_all_subscriptions" class="f11b" style="width: 180px" value="<?php echo isset($content["newsletter"]["all_subscriptions"]) ? $content["newsletter"]["all_subscriptions"] : '' ?>" size="40" maxlength="50"></td> 114 </tr> 115 </table></td> 116 </tr> 117 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6"></td></tr> 118 <tr> 119 <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="13"><?php echo $BL['be_cnt_infotext'] ?>: </td> 120 <td valign="top"><textarea name="cnewsletter_text" rows="8" class="f10" id="cnewsletter_text" style="width: 440px"><?php echo isset($content["newsletter"]["text"]) ? $content["newsletter"]["text"] : '' ?></textarea></td> 121 </tr> 122 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3"></td></tr> 123 <tr> 124 <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="16"><?php echo $BL['be_cnt_successtext'] ?>: </td> 125 <td valign="top"><textarea name="cnewsletter_success_text" rows="5" class="f10" id="cnewsletter_success_text" style="width: 440px"><?php echo isset($content["newsletter"]["success_text"]) ? $content["newsletter"]["success_text"] : '' ?></textarea></td> 126 </tr> 127 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6"></td></tr> 128 <tr> 129 <td align="right" class="chatlist">URL 1: </td> 130 <td><input name="cnewsletter_url1" type="text" id="cnewsletter_url1" class="f11b" style="width: 440px" value="<?php echo isset($content["newsletter"]["url1"]) ? html_specialchars($content["newsletter"]["url1"]) : '' ?>" size="20" /></td> 131 </tr> 132 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3"></td></tr> 133 <tr> 134 <td align="right" class="chatlist">URL 2: </td> 135 <td><input name="cnewsletter_url2" type="text" id="cnewsletter_url2" class="f11b" style="width: 440px" value="<?php echo isset($content["newsletter"]["url2"]) ? html_specialchars($content["newsletter"]["url2"]) : '' ?>" size="20" /></td> 136 </tr> 137 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6"></td></tr> 138 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr> 139 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6"></td></tr> 140 141 <tr> 142 <td> </td> 143 <td style="padding-bottom:3px;" class="v10">{NEWSLETTER_NAME}, {NEWSLETTER_EMAIL}, {NEWSLETTER_VERIFY}, {NEWSLETTER_DELETE}, {IP}, {DATE:m/d/Y}, [SUBJECT][/SUBJECT]</td> 144 </tr> 145 146 <tr> 147 <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="16"><?php echo $BL['be_cnt_regmail'] ?>: </td> 148 <td valign="top"><textarea name="cnewsletter_reg_text" rows="5" wrap="OFF" class="code" id="cnewsletter_reg_text" style="width: 440px"><?php echo isset($content["newsletter"]["reg_text"]) ? $content["newsletter"]["reg_text"] : '' ?></textarea></td> 149 </tr> 150 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3"></td></tr> 151 <tr> 152 <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="16"><?php echo $BL['be_cnt_logoffmail'] ?>: </td> 153 <td valign="top"><textarea name="cnewsletter_logoff_text" rows="5" wrap="OFF" class="code" id="cnewsletter_logoff_text" style="width: 440px"><?php echo isset($content["newsletter"]["logoff_text"]) ? $content["newsletter"]["logoff_text"] : '' ?></textarea></td> 154 </tr> 155 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3"></td></tr> 156 <tr> 157 <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="16"><?php echo $BL['be_cnt_changemail'] ?>: </td> 158 <td valign="top"><textarea name="cnewsletter_change_text" rows="5" wrap="OFF" class="code" id="cnewsletter_change_text" style="width: 440px"><?php echo isset($content["newsletter"]["change_text"]) ? $content["newsletter"]["change_text"] : '' ?></textarea></td> 159 </tr> 160 161 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6"></td></tr> 162 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Jan 29 16:31:14 2012 | Cross-referenced by PHPXref 0.7.1 |