[ 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 //image with text 32 33 $template_default['article']['image_default_width'] = isset($template_default['article']['image_default_width']) ? $template_default['article']['image_default_width'] : '' ; 34 $template_default['article']['image_default_height']= isset($template_default['article']['image_default_height']) ? $template_default['article']['image_default_height'] : '' ; 35 36 if(empty($content['cimage']['cimage_crop'])) { 37 $content['cimage']['cimage_crop'] = 0; 38 } 39 40 ?> 41 <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 42 43 <tr> 44 <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?>: </td> 45 <td><select name="template" id="template" class="f11b"> 46 <?php 47 48 echo '<option value="">'.$BL['be_admin_tmpl_default'].'</option>'.LF; 49 50 // templates for frontend login 51 $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE.'inc_cntpart/imagetext'); 52 if(is_array($tmpllist) && count($tmpllist)) { 53 foreach($tmpllist as $val) { 54 $selected_val = (isset($content["template"]) && $val == $content["template"]) ? ' selected="selected"' : ''; 55 $val = html_specialchars($val); 56 echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; 57 } 58 } 59 60 ?> 61 </select></td> 62 </tr> 63 64 <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 65 66 67 <tr><td colspan="2" class="chatlist"> <?php echo $BL['be_cnt_htmltext'] ?>: </td></tr> 68 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 69 <tr><td colspan="2" align="center"><?php 70 71 $wysiwyg_editor = array( 72 'value' => isset($content["text"]) ? $content["text"] : '', 73 'field' => 'ctext', 74 'height' => '650px', 75 'width' => '536px', 76 'rows' => '15', 77 'editor' => $_SESSION["WYSIWYG_EDITOR"], 78 'lang' => 'en' 79 ); 80 81 include (PHPWCMS_ROOT.'/include/inc_lib/wysiwyg.editor.inc.php'); 82 83 84 85 ?></td></tr> 86 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 87 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" /></td></tr> 88 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 89 <tr> 90 <td align="right" class="chatlist"><?php echo $BL['be_cnt_image'] ?>: </td> 91 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 92 <tr> 93 <td><input name="cimage_name" type="text" id="cimage_name" class="f11b" style="width: 300px; color: #727889;" value="<?php echo isset($content["image_name"]) ? html_specialchars($content["image_name"]) : '' ?>" size="40" maxlength="250" onfocus="this.blur()" /></td> 94 <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> 95 <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> 96 <input name="cimage_id" type="hidden" value="<?php echo isset($content["image_id"]) ? $content["image_id"] : '' ?>" /></td> 97 </tr> 98 </table></td> 99 </tr> 100 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 101 <tr> 102 <td align="right" class="chatlist"><?php echo $BL['be_cnt_position'] ?>: </td> 103 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 104 <tr> 105 <td><select name="cimage_pos" class="f10" id="cimage_pos" onchange="changeImagePosMenu();"> 106 <option value="0" <?php 107 if(!isset($content["image_pos"])) $content["image_pos"] = 0; 108 109 is_selected(0, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos0'] ?></option> 110 <option value="1" <?php is_selected(1, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos1'] ?></option> 111 <option value="2" <?php is_selected(2, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos2'] ?></option> 112 <option value="3" <?php is_selected(3, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos3'] ?></option> 113 <option value="4" <?php is_selected(4, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos4'] ?></option> 114 <option value="5" <?php is_selected(5, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos5'] ?></option> 115 <option value="6" <?php is_selected(6, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos6'] ?></option> 116 <option value="7" <?php is_selected(7, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos7'] ?></option> 117 <option value="8" <?php is_selected(8, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos8'] ?></option> 118 <option value="9" <?php is_selected(9, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos9'] ?></option> 119 </select></td> 120 <td><img src="img/leer.gif" alt="" width="3" height="1" /></td> 121 <td><img src="img/symbole/content_selected.gif" alt="" name="imgpos0" width="7" height="10" id="imgpos0" /></td> 122 <td><a href="javascript:;" onclick="changeImagePos(0);this.blur();return false;" title="<?php echo $BL['be_cnt_pos0i'] ?>"><img src="img/button/image_pos0.gif" alt="" width="15" height="15" border="0" /></a></td> 123 <td><img src="img/leer.gif" alt="" name="imgpos1" width="7" height="10" id="imgpos1" /></td> 124 <td><a href="javascript:;" onclick="changeImagePos(1);this.blur();return false;" title="<?php echo $BL['be_cnt_pos1i'] ?>"><img src="img/button/image_pos1.gif" alt="" width="15" height="15" border="0" /></a></td> 125 <td><img src="img/leer.gif" alt="" name="imgpos2" width="7" height="10" id="imgpos2" /></td> 126 <td><a href="javascript:;" onclick="changeImagePos(2);this.blur();return false;" title="<?php echo $BL['be_cnt_pos2i'] ?>"><img src="img/button/image_pos2.gif" alt="" width="15" height="15" border="0" /></a></td> 127 <td><img src="img/leer.gif" alt="" name="imgpos3" width="7" height="10" id="imgpos3" /></td> 128 <td><a href="javascript:;" onclick="changeImagePos(3);this.blur();return false;" title="<?php echo $BL['be_cnt_pos3i'] ?>"><img src="img/button/image_pos3.gif" alt="" width="15" height="15" border="0" /></a></td> 129 <td><img src="img/leer.gif" alt="" name="imgpos4" width="7" height="10" id="imgpos4" /></td> 130 <td><a href="javascript:;" onclick="changeImagePos(4);this.blur();return false;" title="<?php echo $BL['be_cnt_pos4i'] ?>"><img src="img/button/image_pos4.gif" alt="" width="15" height="15" border="0" /></a></td> 131 <td><img src="img/leer.gif" alt="" name="imgpos5" width="7" height="10" id="imgpos5" /></td> 132 <td><a href="javascript:;" onclick="changeImagePos(5);this.blur();return false;" title="<?php echo $BL['be_cnt_pos5i'] ?>"><img src="img/button/image_pos5.gif" alt="" width="15" height="15" border="0" /></a></td> 133 <td><img src="img/leer.gif" alt="" name="imgpos6" width="7" height="10" id="imgpos6" /></td> 134 <td><a href="javascript:;" onclick="changeImagePos(6);this.blur();return false;" title="<?php echo $BL['be_cnt_pos6i'] ?>"><img src="img/button/image_pos6.gif" alt="" width="15" height="15" border="0" /></a></td> 135 <td><img src="img/leer.gif" alt="" name="imgpos7" width="7" height="10" id="imgpos7" /></td> 136 <td><a href="javascript:;" onclick="changeImagePos(7);this.blur();return false;" title="<?php echo $BL['be_cnt_pos7i'] ?>"><img src="img/button/image_pos7.gif" alt="" width="15" height="15" border="0" /></a></td> 137 <td><img src="img/leer.gif" alt="" name="imgpos8" width="7" height="10" id="imgpos8" /></td> 138 <td><a href="javascript:;" onclick="changeImagePos(8);this.blur();return false;" title="<?php echo $BL['be_cnt_pos8i'] ?>"><img src="img/button/image_pos8.gif" alt="" width="15" height="15" border="0" /></a></td> 139 <td><img src="img/leer.gif" alt="" name="imgpos9" width="7" height="10" id="imgpos9" /></td> 140 <td><a href="javascript:;" onclick="changeImagePos(9);this.blur();return false;" title="<?php echo $BL['be_cnt_pos9i'] ?>"><img src="img/button/image_pos9.gif" alt="" width="15" height="15" border="0" /></a></td> 141 </tr> 142 </table><script language="JavaScript" type="text/javascript"> 143 <!-- 144 changeImagePos(<?php echo intval($content["image_pos"]); ?>); 145 //--> 146 </script></td> 147 </tr> 148 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr> 149 <tr> 150 <td align="right" class="chatlist"><?php echo $BL['be_cnt_maxw'] ?>: </td> 151 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 152 <tr> 153 <td><input name="cimage_width" type="text" class="f11b" id="cimage_width" style="width: 50px;" size="4" maxlength="4" onkeyup="if(!parseInt(this.value)) this.value='';" value="<?php echo empty($content["image_width"]) ? $template_default['article']['image_default_width'] : $content["image_width"] ?>" /></td> 154 <td class="chatlist"> <?php echo $BL['be_cnt_maxh'] ?>: </td> 155 156 <td><input name="cimage_height" type="text" class="f11b" id="cimage_height" style="width: 50px;" size="4" maxlength="4" onkeyup="if(!parseInt(this.value)) this.value='';" value="<?php echo empty($content["image_height"]) ? $template_default['article']['image_default_height'] : $content["image_height"] ?>" /></td> 157 <td class="chatlist"> px </td> 158 159 <td><input type="checkbox" name="cimage_crop" id="cimage_crop" value="1" <?php is_checked(1, $content['cimage']['cimage_crop']); ?> /></td> 160 <td class="v10"><label for="cimage_crop" class="checkbox"><?php echo $BL['be_image_crop'] ?></label></td> 161 162 </tr> 163 </table></td> </tr> 164 165 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr> 166 167 <tr> 168 <td align="right" class="chatlist"><?php echo $BL['be_cnt_behavior'] ?>: </td> 169 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 170 <tr> 171 <td><input name="cimage_zoom" type="checkbox" id="cimage_zoom" value="1" <?php is_checked(1, empty($content["image_zoom"]) ? 0 : 1); ?> /></td> 172 <td class="v10"><label for="cimage_zoom" class="checkbox"><?php echo $BL['be_cnt_enlarge'] ?></label></td> 173 174 <td> </td> 175 <td><input name="cimage_lightbox" type="checkbox" id="cimage_lightbox" value="1" <?php is_checked(1, empty($content['cimage']['cimage_lightbox']) ? 0 : 1); ?> onchange="if(this.checked){getObjectById('cimage_zoom').checked=true;}" /></td> 176 <td class="v10"><label for="cimage_lightbox" class="checkbox"><?php echo $BL['be_cnt_lightbox'] ?></label></td> 177 178 <td> </td> 179 <td><input name="cimage_nocaption" type="checkbox" id="cimage_nocaption" value="1" <?php is_checked(1, empty($content['cimage']['cimage_nocaption']) ? 0 : 1); ?> /></td> 180 <td class="v10"><label for="cimage_nocaption" class="checkbox"><?php echo $BL['be_cnt_imglist_nocaption'] ?></label></td> 181 182 </tr> 183 </table> 184 </td> 185 </tr> 186 187 188 189 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr> 190 <tr> 191 <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="13" /><?php echo $BL['be_cnt_caption'] ?>: </td> 192 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 193 <tr> 194 <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> 195 <td valign="top"><img src="img/leer.gif" alt="" width="15" height="1" /></td> 196 <td valign="top"><?php 197 198 if(isset($content["image_hash"])) { 199 $thumb_image = get_cached_image( 200 array( "target_ext" => $content["image_ext"], 201 "image_name" => $content["image_hash"] . '.' . $content["image_ext"], 202 "thumb_name" => md5($content["image_hash"].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"]) 203 ) 204 ); 205 206 if($thumb_image != false) { 207 echo '<img src="'.PHPWCMS_IMAGES . $thumb_image[0] .'" border="0" '.$thumb_image[3].'>'; 208 } 209 } 210 211 ?></td> 212 </tr> 213 </table></td> 214 </tr> 215 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr> 216 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" /></td></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 |