[ Index ] |
PHP Cross Reference of phpwcms V1.4.7 _r403 (01.11.10) |
[Summary view] [Print] [Text view]
1 <?php 2 /************************************************************************************* 3 Copyright notice 4 5 (c) 2002-2010 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 //FAQ 32 33 ?> 34 <tr> 35 <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template'] ?>: </td> 36 <td><select name="faq_template" id="faq_template" class="f11b"> 37 <?php 38 39 // templates for recipes 40 $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE.'inc_cntpart/faq'); 41 if(is_array($tmpllist) && count($tmpllist)) { 42 foreach($tmpllist as $val) { 43 if(isset($content['faq']['faq_template']) && $val == $content['faq']['faq_template']) { 44 $selected_val = ' selected="selected"'; 45 } else { 46 $selected_val = ''; 47 } 48 $val = htmlspecialchars($val); 49 echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; 50 } 51 } 52 53 ?> 54 </select></td> 55 </tr> 56 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr> 57 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" /></td></tr> 58 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr> 59 <tr><td colspan="2" class="chatlist"> <?php echo $BL['be_cnt_question'] ?>: </td></tr> 60 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="1" /></td> 61 </tr> 62 <tr><td colspan="2"><textarea name="faq_question" rows="4" class="msgtext" id="faq_question" style="width: 536px"><?php 63 64 echo empty($content["faq_question"]) ? '' : $content["faq_question"]; 65 66 ?></textarea></td></tr> 67 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td> 68 </tr> 69 <tr><td colspan="2" class="chatlist"> <?php echo $BL['be_cnt_answer'] ?>: </td></tr> 70 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="1" /></td> 71 </tr> 72 <tr><td colspan="2" align="center"><?php 73 74 $wysiwyg_editor = array( 75 'value' => isset($content["faq_answer"]) ? $content["faq_answer"] : '', 76 'field' => 'faq_answer', 77 'height' => '300px', 78 'width' => '536px', 79 'rows' => '15', 80 'editor' => $_SESSION["WYSIWYG_EDITOR"], 81 'lang' => 'en' 82 ); 83 84 include (PHPWCMS_ROOT.'/include/inc_lib/wysiwyg.editor.inc.php'); 85 86 87 88 ?></td></tr> 89 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td> 90 </tr> 91 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" /></td> 92 </tr> 93 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td> 94 </tr> 95 <tr> 96 <td align="right" class="chatlist"><?php echo $BL['be_cnt_image'] ?>: </td> 97 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 98 <tr> 99 <td><input name="cimage_name" type="text" id="cimage_name" class="f11b" style="width: 200px; color: #727889;" value="<?php echo isset($content["image_name"]) ? html_specialchars($content["image_name"]) : '' ?>" size="40" maxlength="250" onfocus="this.blur()" /></td> 100 <td><img src="img/leer.gif" alt="" width="3" height="1" /><a href="javascript:;" title="<?php echo $BL['be_cnt_openimagebrowser'] ?>" onclick="tmt_winOpen('filebrowser.php?opt=0&target=nolist','imageBrowser','width=380,height=300,left=8,top=8,scrollbars=yes,resizable=yes',1)"><img src="img/button/open_image_button.gif" alt="" width="20" height="15" border="0" /></a></td> 101 <td><img src="img/leer.gif" alt="" width="3" height="1" /><a href="javascript:;" title="<?php echo $BL['be_cnt_delimage'] ?>" onclick="document.articlecontent.cimage_name.value='';document.articlecontent.cimage_id.value='0';this.blur();return false;"><img src="img/button/del_image_button.gif" alt="" width="15" height="15" border="0" /></a> 102 <input name="cimage_id" type="hidden" value="<?php echo isset($content["image_id"]) ? $content["image_id"] : '' ?>" /></td> 103 </tr> 104 </table></td> 105 </tr> 106 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td> 107 </tr> 108 <tr> 109 <td align="right" class="chatlist"><?php echo $BL['be_cnt_maxw'] ?>: </td> 110 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 111 <tr> 112 <td><input name="cimage_width" type="text" class="f11b" id="cimage_width" style="width: 50px;" size="3" maxlength="3" onkeyup="if(!parseInt(this.value)) this.value='';" value="<?php echo isset($content["image_width"]) ? $content["image_width"] : '' ?>" /></td> 113 <td class="chatlist"> <?php echo $BL['be_cnt_maxh'] ?>: </td> 114 <td><input name="cimage_height" type="text" class="f11b" id="cimage_height" style="width: 50px;" size="3" maxlength="3" onkeyup="if(!parseInt(this.value)) this.value='';" value="<?php echo isset($content["image_height"]) ? $content["image_height"] : '' ?>" /></td> 115 <td class="chatlist"> px </td> 116 <td bgcolor="#E7E8EB"> </td> 117 <td bgcolor="#E7E8EB"><input name="cimage_zoom" type="checkbox" id="cimage_zoom" value="1" <?php is_checked(1, isset($content["image_zoom"]) ? $content["image_zoom"] : 0); ?> /></td> 118 <td bgcolor="#E7E8EB" class="v10"> <label for="cimage_zoom"><?php echo $BL['be_cnt_enlarge'] ?></label> </td> 119 <td bgcolor="#E7E8EB"><img src="img/leer.gif" alt="" width="6" height="15" /></td> 120 </tr> 121 </table></td> 122 </tr> 123 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td> 124 </tr> 125 <tr> 126 <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="13" /><?php echo $BL['be_cnt_caption'] ?>: </td> 127 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 128 <tr> 129 <td valign="top"><textarea name="cimage_caption" cols="30" rows="4" class="f11" id="cimage_caption" style="width: 300px;"><?php echo isset($content["image_caption"]) ? html_specialchars($content["image_caption"]) : '' ?></textarea></td> 130 <td valign="top"><img src="img/leer.gif" alt="" width="15" height="1" /></td> 131 <td valign="top"><?php 132 133 if(isset($content["image_hash"])) { 134 $thumb_image = get_cached_image( 135 array( "target_ext" => $content["image_ext"], 136 "image_name" => $content["image_hash"] . '.' . $content["image_ext"], 137 "thumb_name" => md5($content["image_hash"].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"]) 138 ) 139 ); 140 141 if($thumb_image != false) { 142 echo '<img src="'.PHPWCMS_IMAGES . $thumb_image[0] .'" border="0" '.$thumb_image[3].'>'; 143 } 144 } 145 146 ?></td> 147 </tr> 148 </table></td> 149 </tr> 150 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td> 151 </tr> 152 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" /></td> 153 </tr>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Nov 16 22:51:00 2010 | Cross-referenced by PHPXref 0.7 |