[ 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 // Calendar module content part form fields 32 33 // it's typically implemented in a 2 column table 34 35 // -> a spacer table row 36 // <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> 37 38 // -> this can be used as spaceholfer 39 // <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr> 40 41 // -> this is the tyical way to format rows with label and input 42 // <tr> 43 // <td align="right" class="chatlist">Field label</td> 44 // <td><input type="text" value="" /></td> 45 // </tr> 46 47 // current module vars are stored in $phpwcms['modules'][$content["module"]] 48 // var to modules path: $phpwcms['modules'][$content["module"]]['path'] 49 50 // before you can use module content part vars check if value is valid and what you are expect 51 // when defining modules vars it is always recommend to name t "modulename_varname". 52 53 if(empty($content['glossary']['glossary_template'])) { 54 $content['glossary']['glossary_template'] = ''; 55 } 56 if(empty($content['glossary']['glossary_filter'])) { 57 $content['glossary']['glossary_filter'] = ''; 58 } 59 if(empty($content['glossary']['glossary_maxwords'])) { 60 $content['glossary']['glossary_maxwords'] = ''; 61 } 62 if(empty($content['glossary']['glossary_tag'])) { 63 $content['glossary']['glossary_tag'] = ''; 64 } 65 if(empty($content['glossary']['glossary_noentry'])) { 66 $content['glossary']['glossary_noentry'] = ''; 67 } 68 69 70 71 ?> 72 <!-- top spacer - seperate from title/subtitle section --> 73 <tr><td colspan="2" style="padding-bottom:8px"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> 74 <!-- start custom fields here --> 75 76 <!-- retrieve templates --> 77 <tr> 78 <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template'] ?>: </td> 79 <td><select name="glossary_template" id="glossary_template" class="f11b"> 80 <?php 81 82 echo '<option value="">'.$BL['be_admin_tmpl_default'].'</option>'.LF; 83 84 // templates for forum 85 $tmpllist = get_tmpl_files($phpwcms['modules'][$content["module"]]['path'].'template'); 86 if(is_array($tmpllist) && count($tmpllist)) { 87 foreach($tmpllist as $val) { 88 $vals = ''; 89 if($val == $content['glossary']['glossary_template']) $vals= ' selected="selected"'; 90 $val = html_specialchars($val); 91 echo '<option value="'.$val.'"'.$vals.'>'.$val."</option>\n"; 92 } 93 } 94 95 ?> 96 </select></td> 97 </tr> 98 <!-- end templates --> 99 100 <!-- little space --> 101 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr> 102 <!-- end space --> 103 104 <!-- input field --> 105 <tr> 106 <td> </td> 107 <td valign="top" class="chatlist" style="padding-bottom:3px;"><?php echo $BL['modules'][$content["module"]]['input_filter_descr'] ?></td> 108 </tr> 109 <tr> 110 <td align="right" class="chatlist"><?php echo $BL['modules'][$content["module"]]['input_filter'] ?>: </td> 111 <td><input type="text" name="glossary_filter" id="glossary_filter" value="<?php echo html_specialchars($content['glossary']['glossary_filter']) ?>" class="f11b" style="width: 440px" maxlength="1000" /></td> 112 </tr> 113 <!-- end field --> 114 115 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr> 116 117 <tr> 118 <td align="right" class="chatlist"><?php echo $BL['modules'][$content["module"]]['listview'] ?>: </td> 119 <td><table cellpadding="0" cellspacing="0" border="0" summary=""> 120 <tr> 121 <td><input name="glossary_maxwords" type="text" class="f11b" id="glossary_maxwords" style="width: 50px;" size="5" maxlength="5" onKeyUp="if(!parseInt(this.value)) this.value='';" value="<?php echo $content['glossary']['glossary_maxwords'] ?>" /></td> 122 <td class="chatlist"> <?php echo $BL['modules'][$content["module"]]['max_words'] ?></td> 123 </tr> 124 </table></td> 125 </tr> 126 127 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr> 128 129 <tr> 130 <td align="right" class="chatlist"><?php echo $BL['modules'][$content["module"]]['glossary_token'] ?>: </td> 131 <td><input type="text" name="glossary_tag" id="glossary_tag" value="<?php echo html_specialchars($content['glossary']['glossary_tag']) ?>" class="f11b" style="width: 440px" maxlength="1000" /></td> 132 </tr> 133 134 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr> 135 136 <tr> 137 <td align="right" class="chatlist" style="padding:3px 5px 0 0" valign="top"><?php echo $BL['modules'][$content["module"]]['no_entry'] ?>:</td> 138 <td><textarea name="glossary_noentry" id="glossary_noentry" class="f11" rows="5" style="width: 440px"><?php echo html_specialchars($content['glossary']['glossary_noentry']) ?></textarea></td> 139 </tr> 140 141 <!-- end custom fields --> 142 <!-- bottom spacer - is followed by status "visible" checkbox --> 143 <tr><td colspan="2" style="padding-top:8px"><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 |