[ 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 // News 31 32 $content['news_default'] = array( 33 'news_lang' => array(), 34 'news_category' => array(), 35 'news_sort' => 5, 36 'news_paginate' => 0, 37 'news_paginate_count' => 10, 38 'news_limit' => '', 39 'news_archive' => 1, 40 'news_andor' => 'OR', 41 'news_paginate_basis' => 3, 42 'news_archive_link' => '', 43 'news_prio' => 0, 44 'news_skip' => '', 45 'news_detail_link' => '' 46 ); 47 48 // set default values or merge with defaults 49 $content['news'] = $content['id'] > 0 && is_array($content['news']) ? array_merge($content['news_default'], $content['news']) : $content['news_default']; 50 51 // necessary JavaScript libraries 52 initMootools(); 53 initMootoolsAutocompleter(); 54 55 56 ?> 57 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> 58 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr> 59 60 <tr> 61 <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template'] ?>: </td> 62 <td><select name="template" id="template"> 63 <?php 64 65 echo '<option value="">'.$BL['be_admin_tmpl_default'].'</option>'.LF; 66 67 $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE.'inc_cntpart/news'); 68 if(is_array($tmpllist) && count($tmpllist)) { 69 foreach($tmpllist as $val) { 70 $selected_val = (isset($content["template"]) && $val == $content["template"]) ? ' selected="selected"' : ''; 71 $val = html_specialchars($val); 72 echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; 73 } 74 } 75 76 ?> 77 </select></td> 78 </tr> 79 80 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr> 81 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> 82 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr> 83 84 <tr> 85 <td align="right" class="chatlist"><?php echo $BL['be_cnt_sorting'] ?>: </td> 86 <td><table cellpadding="0" cellspacing="0" border="0" summary=""> 87 <tr> 88 <td><select name="news_sort" id="calink_type"> 89 90 <option value="9"<?php is_selected(9, $content['news']['news_sort']) ?>><?php echo $BL['be_sort_date'].', '.$BL['be_admin_struct_orderdesc'] ?></option> 91 <option value="10"<?php is_selected(10, $content['news']['news_sort']) ?>><?php echo $BL['be_sort_date'].', '.$BL['be_admin_struct_orderasc'] ?></option> 92 <option value="1"<?php is_selected(1, $content['news']['news_sort']) ?>><?php echo $BL['be_admin_struct_orderdate'].', '.$BL['be_admin_struct_orderdesc'] ?></option> 93 <option value="2"<?php is_selected(2, $content['news']['news_sort']) ?>><?php echo $BL['be_admin_struct_orderdate'].', '.$BL['be_admin_struct_orderasc'] ?></option> 94 <option value="3"<?php is_selected(3, $content['news']['news_sort']) ?>><?php echo $BL['be_admin_struct_orderchangedate'].', '.$BL['be_admin_struct_orderdesc'] ?></option> 95 <option value="4"<?php is_selected(4, $content['news']['news_sort']) ?>><?php echo $BL['be_admin_struct_orderchangedate'].', '.$BL['be_admin_struct_orderasc'] ?></option> 96 <option value="5"<?php is_selected(5, $content['news']['news_sort']) ?>><?php echo $BL['be_article_cnt_start'].', '.$BL['be_admin_struct_orderdesc'] ?></option> 97 <option value="6"<?php is_selected(6, $content['news']['news_sort']) ?>><?php echo $BL['be_article_cnt_start'].', '.$BL['be_admin_struct_orderasc'] ?></option> 98 <option value="7"<?php is_selected(7, $content['news']['news_sort']) ?>><?php echo $BL['be_article_cnt_end'].', '.$BL['be_admin_struct_orderdesc'] ?></option> 99 <option value="8"<?php is_selected(8, $content['news']['news_sort']) ?>><?php echo $BL['be_article_cnt_end'].', '.$BL['be_admin_struct_orderasc'] ?></option> 100 101 </select></td> 102 <td> </td> 103 <td bgcolor="#e7e8eb"><input type="checkbox" name="news_prio" id="news_prio" value="1"<?php is_checked(1, $content['news']['news_prio']) ?> /></td> 104 <td bgcolor="#e7e8eb"><label for="news_prio"> <?php echo $BL['be_use_prio'] ?> </label></td> 105 </tr> 106 </table></td> 107 </tr> 108 109 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 110 111 <tr> 112 <td align="right" class="chatlist"><?php echo $BL['be_tags'] ?>: </td> 113 <td><table cellpadding="0" cellspacing="0" border="0" summary=""> 114 <tr> 115 <td><input type="text" name="news_category" id="news_category" value="<?php echo html_specialchars(implode(', ', $content['news']['news_category'])) ?>" class="width350 bold" /></td> 116 <td> </td> 117 <td><select name="news_andor" id="news_andor"> 118 119 <option value="OR"<?php is_selected('OR', $content['news']['news_andor']) ?>><?php echo $BL['be_fsearch_or'] ?></option> 120 <option value="AND"<?php is_selected('AND', $content['news']['news_andor']) ?>><?php echo $BL['be_fsearch_and'] ?></option> 121 <option value="NOT"<?php is_selected('NOT', $content['news']['news_andor']) ?>><?php echo $BL['be_fsearch_not'] ?></option> 122 123 </select></td> 124 </tr> 125 </table></td> 126 </tr> 127 128 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 129 130 <tr> 131 <td align="right" class="chatlist"><?php echo $BL['be_profile_label_lang'] ?>: </td> 132 <td><input type="text" name="news_lang" id="news_lang" value="<?php echo html_specialchars(implode(', ', $content['news']['news_lang'])) ?>" class="width200" /></td> 133 </tr> 134 135 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr> 136 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> 137 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr> 138 139 <tr> 140 <td align="right" class="chatlist"><?php echo $BL['be_show_content'] ?>: </td> 141 <td><select name="news_archive" id="news_archive"> 142 143 <option value="0"<?php is_selected(0, $content['news']['news_archive']) ?>><?php echo $BL['be_archived_items'].': '.$BL['be_include'] ?></option> 144 <option value="1"<?php is_selected(1, $content['news']['news_archive']) ?>><?php echo $BL['be_archived_items'].': '.$BL['be_exclude'] ?></option> 145 <option value="2"<?php is_selected(2, $content['news']['news_archive']) ?>><?php echo $BL['be_archived_items'].': '.$BL['be_solely'] ?></option> 146 <option value="3"<?php is_selected(3, $content['news']['news_archive']) ?>><?php echo $BL['be_cnt_guestbook_listing_all'].' > ' . $BL['be_article_cnt_start'] ?></option> 147 148 </select></td> 149 </tr> 150 151 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr> 152 153 <tr> 154 <td align="right" class="chatlist"><?php echo $BL['be_cnt_rssfeed_item'] ?>: </td> 155 <td><table cellpadding="0" cellspacing="0" border="0" summary=""> 156 <tr> 157 <td><input type="text" name="news_limit" id="news_limit" value="<?php echo html_specialchars($content['news']['news_limit']) ?>" class="width50" /></td> 158 <td> <?php echo $BL['be_cnt_rssfeed_max'] ?> </td> 159 <td><input type="text" name="news_skip" id="news_skip" value="<?php echo html_specialchars($content['news']['news_skip']) ?>" class="width50" /> 160 <td> <?php echo $BL['be_skip_first_items'] ?></td> 161 </tr> 162 </table></td> 163 </tr> 164 165 166 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr> 167 168 <tr> 169 <td> </td> 170 <td><table cellpadding="0" cellspacing="0" border="0" summary=""> 171 <tr> 172 <td bgcolor="#e7e8eb"><input type="checkbox" name="news_paginate" id="news_paginate" value="1"<?php is_checked(1, $content['news']['news_paginate']) ?> /></td> 173 <td bgcolor="#e7e8eb"><label for="news_paginate"> <?php echo $BL['be_pagination'] ?> </label></td> 174 <td> </td> 175 <td><select name="news_paginate_basis" id="news_paginate_basis" onchange="setPaginateBasis();"> 176 177 <option value="0"<?php is_selected(0, $content['news']['news_paginate_basis']) ?>><?php echo $BL['be_pagniate_count'] ?></option> 178 <option value="1"<?php is_selected(1, $content['news']['news_paginate_basis']) ?>><?php echo $BL['be_date_day'] ?></option> 179 <option value="2"<?php is_selected(2, $content['news']['news_paginate_basis']) ?>><?php echo $BL['be_date_week'] ?></option> 180 <option value="3"<?php is_selected(3, $content['news']['news_paginate_basis']) ?>><?php echo $BL['be_date_month'] ?></option> 181 <option value="4"<?php is_selected(4, $content['news']['news_paginate_basis']) ?>><?php echo $BL['be_date_year'] ?></option> 182 183 </select></td> 184 <td> </td> 185 <td><input type="text" name="news_paginate_count" id="news_paginate_count" value="<?php echo html_specialchars($content['news']['news_paginate_count']) ?>" class="width25" /></td> 186 </tr> 187 </table></td> 188 </tr> 189 190 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr> 191 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> 192 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr> 193 194 <tr> 195 <td align="right" class="chatlist"><?php echo $BL['be_archive'] ?>: </td> 196 <td><table cellpadding="0" cellspacing="0" border="0" summary=""> 197 <tr> 198 <td><input type="text" name="news_archive_link" id="news_archive_link" value="<?php echo html_specialchars($content['news']['news_archive_link']) ?>" class="width250" /></td> 199 <td> <?php echo $BL['be_article_urlalias'].'/'.$BL['be_func_struct_articleID'] ?></td> 200 </tr> 201 </table> 202 </td> 203 </tr> 204 205 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr> 206 207 <tr> 208 <td align="right" class="chatlist"><?php echo $BL['be_news_detail_link'] ?>: </td> 209 <td><table cellpadding="0" cellspacing="0" border="0" summary=""> 210 <tr> 211 <td><input type="text" name="news_detail_link" id="news_detail_link" value="<?php echo html_specialchars($content['news']['news_detail_link']) ?>" class="width250" /></td> 212 <td> <?php echo $BL['be_article_urlalias'].'/'.$BL['be_func_struct_articleID'] ?></td> 213 </tr> 214 </table> 215 </td> 216 </tr> 217 218 219 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /><script type="text/javascript"> 220 <!-- 221 222 window.addEvent('domready', function(){ 223 224 /* Autocompleter for categories/tags */ 225 var searchCategory = $('news_category'); 226 var indicator2 = new Element('span', {'class': 'autocompleter-loading', 'styles': {'display': 'none'}}).setHTML('').injectAfter(searchCategory); 227 var completer2 = new Autocompleter.Ajax.Json(searchCategory, 'include/inc_act/ajax_connector.php', { 228 multi: true, 229 maxChoices: 30, 230 autotrim: true, 231 minLength: 0, 232 allowDupes: false, 233 postData: {action: 'newstags', method: 'json'}, 234 onRequest: function(el) { 235 indicator2.setStyle('display', ''); 236 }, 237 onComplete: function(el) { 238 indicator2.setStyle('display', 'none'); 239 } 240 }); 241 242 var selectLang = $('news_lang'); 243 var indicator1 = new Element('span', {'class': 'autocompleter-loading', 'styles': {'display': 'none'}}).setHTML('').injectAfter(selectLang); 244 var completer1 = new Autocompleter.Ajax.Json(selectLang, 'include/inc_act/ajax_connector.php', { 245 multi: true, 246 allowDupes: false, 247 autotrim: true, 248 minLength: 0, 249 maxChoices: 20, 250 postData: {action: 'lang', method: 'json'}, 251 onRequest: function(el) { 252 indicator1.setStyle('display', ''); 253 }, 254 onComplete: function(el) { 255 indicator1.setStyle('display', 'none'); 256 } 257 }); 258 259 selectLang.addEvent('keyup', function(){ 260 this.value = this.value.replace(/[^a-z\-\, ]/g, ''); 261 }); 262 263 setPaginateBasis(); 264 265 }); 266 267 function setPaginateBasis() { 268 if($('news_paginate_basis').selectedIndex == 0) { 269 $('news_paginate_count').setStyle('visibility', 'visible'); 270 } else { 271 $('news_paginate_count').setStyle('visibility', 'hidden'); 272 } 273 } 274 275 //--> 276 </script></td></tr> 277 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> 278
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 |