[ Index ] |
PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09) |
[Summary view] [Print] [Text view]
1 <?php 2 /************************************************************************************* 3 Copyright notice 4 5 (c) 2002-2009 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 //images 32 33 $caption_box = ''; 34 $img_thumbs = ''; 35 $imgx = 0; 36 37 if(empty($template_default['imagegallery_default_column'])) { 38 $template_default['imagegallery_default_column'] = 1; 39 } else { 40 $template_default['imagegallery_default_column'] = intval($template_default['imagegallery_default_column']); 41 if(empty($template_default['imagegallery_default_column'])) { 42 $template_default['imagegallery_default_column'] = 1; 43 } 44 } 45 46 $template_default['imagegallery_default_width'] = isset($template_default['imagegallery_default_width']) ? $template_default['imagegallery_default_width'] : '' ; 47 $template_default['imagegallery_default_height'] = isset($template_default['imagegallery_default_height']) ? $template_default['imagegallery_default_height'] : '' ; 48 $template_default['imagegallery_default_space'] = isset($template_default['imagegallery_default_space']) ? $template_default['imagegallery_default_space'] : '' ; 49 50 if(!isset($content['image_list'])) { 51 52 $content['image_list'] = array( 53 54 'pos' => 0, 55 'width' => $template_default['imagegallery_default_width'], 56 'height' => $template_default['imagegallery_default_height'], 57 'col' => $template_default['imagegallery_default_column'], 58 'space' => $template_default['imagegallery_default_space'], 59 'zoom' => 0, 60 'caption' => '', 61 'lightbox' => 0, 62 'nocaption' => 0, 63 'crop' => 0, 64 'random' => 0 65 66 ); 67 68 } 69 70 ?><tr> 71 <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="13"><?php echo $BL['be_cnt_image'] ?>: </td> 72 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 73 <tr> 74 <td valign="top"><select name="cimage_list[]" size="<?php echo isset($content["image_list"]) && count($content["image_list"]) ? count($content["image_list"])+5 : 5 ?>" multiple class="f11" id="cimage_list" style="width: 300px;"> 75 <?php 76 if(isset($content['image_list']['images']) && is_array($content['image_list']['images']) && count($content['image_list']['images'])) { 77 78 // browse images and list available 79 // will be visible only when aceessible 80 foreach($content['image_list']['images'] as $key => $value) { 81 82 $caption_box .= html_specialchars($content['image_list']['images'][$key][6])."\n"; 83 84 // 0 :1 :2 :3 :4 :5 :6 :7 :8 85 // dbid:filename:hash:extension:width:height:caption:position:zoom 86 $thumb_image = get_cached_image( 87 array( "target_ext" => $content['image_list']['images'][$key][3], 88 "image_name" => $content['image_list']['images'][$key][2] . '.' . $content['image_list']['images'][$key][3], 89 "thumb_name" => md5( $content['image_list']['images'][$key][2]. 90 $phpwcms["img_list_width"]. 91 $phpwcms["img_list_height"]. 92 $phpwcms["sharpen_level"] 93 ) 94 ) 95 ); 96 97 if($thumb_image != false) { 98 99 // image found 100 echo '<option value="' . $content['image_list']['images'][$key][0] . '">'; 101 $img_name = html_specialchars($content['image_list']['images'][$key][1]); 102 echo $img_name . "</option>\n"; 103 104 if($imgx == 4) { 105 $img_thumbs .= '<br><img src="img/leer.gif" alt="" border="0" width="1" height="2"><br>'; 106 $imgx = 0; 107 } 108 if($imgx) { 109 $img_thumbs .= '<img src="img/leer.gif" alt="" border="0" width="2" height="1">'; 110 } 111 $img_thumbs .= '<img src="'.PHPWCMS_IMAGES . $thumb_image[0] .'" border="0" '.$thumb_image[3].' alt="'.$img_name.'" title="'.$img_name.'">'; 112 113 $imgx++; 114 } 115 116 } 117 118 } 119 120 ?> 121 </select></td> 122 <td valign="top"><img src="img/leer.gif" alt="" width="5" height="1"></td> 123 <td valign="top"><a href="javascript:;" title="<?php echo $BL['be_cnt_openimagebrowser'] ?>" 124 onclick="tmt_winOpen('filebrowser.php?opt=1&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><br /><img src="img/leer.gif" alt="" width="1" height="4"><br /><a href="javascript:;" 125 title="<?php echo $BL['be_cnt_sortup'] ?>" onclick="moveOptionUp(document.articlecontent.cimage_list);"><img src="img/button/image_pos_up.gif" alt="" width="10" height="9" border="0"></a><a href="javascript:;" 126 title="<?php echo $BL['be_cnt_sortdown'] ?>" onclick="moveOptionDown(document.articlecontent.cimage_list);"><img src="img/button/image_pos_down.gif" alt="" width="10" height="9" border="0"></a><br /><img src="img/leer.gif" alt="" width="1" height="4"><br /><a href="javascript:;" 127 onclick="removeSelectedOptions(document.articlecontent.cimage_list);" title="<?php echo $BL['be_cnt_delimage'] ?>"><img src="img/button/del_image_button1.gif" alt="" width="20" height="15" border="0"></a></td> 128 </tr> 129 </table><?php 130 131 if($img_thumbs) { 132 echo '<table border="0" cellspacing="0" cellpadding="0"> 133 <tr><td style="padding-bottom:3px;"><img src="img/leer.gif" width="1" height="5"><br>'.$img_thumbs.'</td></tr> 134 </table>'; 135 } 136 137 ?></td> 138 </tr> 139 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5"></td></tr> 140 <tr> 141 <td align="right" class="chatlist"><?php echo $BL['be_cnt_position'] ?>: </td> 142 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 143 <tr> 144 <td><select name="cimage_pos" class="f10" id="cimage_pos" onChange="changeImagePosMenu();"> 145 <option value="0" <?php is_selected(0, $content['image_list']['pos']) ?>><?php echo $BL['be_cnt_pos0'] ?></option> 146 <option value="1" <?php is_selected(1, $content['image_list']['pos']) ?>><?php echo $BL['be_cnt_pos1'] ?></option> 147 <option value="2" <?php is_selected(2, $content['image_list']['pos']) ?>><?php echo $BL['be_cnt_pos2'] ?></option> 148 <option value="3" <?php is_selected(3, $content['image_list']['pos']) ?>><?php echo $BL['be_cnt_pos3'] ?></option> 149 <option value="4" <?php is_selected(4, $content['image_list']['pos']) ?>><?php echo $BL['be_cnt_pos4'] ?></option> 150 <option value="5" <?php is_selected(5, $content['image_list']['pos']) ?>><?php echo $BL['be_cnt_pos5'] ?></option> 151 <option value="6" <?php is_selected(6, $content['image_list']['pos']) ?>><?php echo $BL['be_cnt_pos6'] ?></option> 152 <option value="7" <?php is_selected(7, $content['image_list']['pos']) ?>><?php echo $BL['be_cnt_pos7'] ?></option> 153 </select></td> 154 <td><img src="img/leer.gif" alt="" width="3" height="1"></td> 155 <td><img src="img/symbole/content_selected.gif" alt="" name="imgpos0" width="7" height="10" id="imgpos0"></td> 156 <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> 157 <td><img src="img/leer.gif" alt="" name="imgpos1" width="7" height="10" id="imgpos1"></td> 158 <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> 159 <td><img src="img/leer.gif" alt="" name="imgpos2" width="7" height="10" id="imgpos2"></td> 160 <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> 161 <td><img src="img/leer.gif" alt="" name="imgpos3" width="7" height="10" id="imgpos3"></td> 162 <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> 163 <td><img src="img/leer.gif" alt="" name="imgpos4" width="7" height="10" id="imgpos4"></td> 164 <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> 165 <td><img src="img/leer.gif" alt="" name="imgpos5" width="7" height="10" id="imgpos5"></td> 166 <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> 167 <td><img src="img/leer.gif" alt="" name="imgpos6" width="7" height="10" id="imgpos6"></td> 168 <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> 169 <td><img src="img/leer.gif" alt="" name="imgpos7" width="7" height="10" id="imgpos7"></td> 170 <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> 171 </tr> 172 </table><script language="JavaScript" type="text/javascript"> 173 <!-- 174 changeImagePos(<?php echo intval($content['image_list']['pos']); ?>); 175 //--> 176 </script></td> 177 </tr> 178 179 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5"></td></tr> 180 <tr> 181 <td align="right" class="chatlist"><?php echo $BL['be_cnt_maxw'] ?>: </td> 182 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 183 <tr> 184 <td><input name="cimage_width" type="text" class="f11b" id="cimage_width" style="width: 50px;" size="4" maxlength="4" onKeyUp="if(!parseInt(this.value*1)) this.value='';" value="<?php echo empty($content['image_list']['width']) ? $template_default['imagegallery_default_width'] : $content['image_list']['width']; ?>"></td> 185 <td class="chatlist"> <?php echo $BL['be_cnt_maxh'] ?>: </td> 186 <td><input name="cimage_height" type="text" class="f11b" id="cimage_height" style="width: 50px;" size="4" maxlength="4" onKeyUp="if(!parseInt(this.value*1)) this.value='';" value="<?php echo empty($content['image_list']['height']) ? $template_default['imagegallery_default_height'] : $content['image_list']['height']; ?>"></td> 187 <td class="chatlist"> px </td> 188 189 <td><input type="checkbox" name="cimage_crop" id="cimage_crop" value="1" <?php is_checked(1, $content['image_list']['crop']); ?> /></td> 190 <td class="v10"><label for="cimage_crop" class="checkbox"><?php echo $BL['be_image_crop'] ?></label></td> 191 192 </tr> 193 </table></td> 194 </tr> 195 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5"></td></tr> 196 <tr> 197 <td align="right" class="chatlist"><?php echo $BL['be_cnt_column'] ?>: </td> 198 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 199 <tr> 200 <td><select name="cimage_col" class="f10" id="cimage_col"> 201 <?php 202 203 // list select menu for max image columns 204 for($max_image_col = 1; $max_image_col <= 25; $max_image_col++) { 205 206 echo '<option value="'.$max_image_col.'" '; 207 is_selected($max_image_col, $content['image_list']['col']); 208 echo '>'.$max_image_col."</option>\n"; 209 210 } 211 212 ?> 213 </select></td> 214 <td class="chatlist"> <?php echo $BL['be_cnt_imagespace'] ?>: </td> 215 <td><input name="cimage_space" type="text" class="f11b" id="cimage_space" style="width: 50px;" size="2" maxlength="3" onKeyUp="if(!parseInt(this.value*1)) this.value='';" value="<?php echo empty($content['image_list']['space']) ? $template_default['imagegallery_default_space'] : $content['image_list']['space']; ?>" /></td> 216 <td class="chatlist"> px</td> 217 </tr> 218 </table></td> 219 </tr> 220 221 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8"></td></tr> 222 223 <tr> 224 <td align="right" class="chatlist"><?php echo $BL['be_cnt_behavior'] ?>: </td> 225 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 226 <tr> 227 <td><input name="cimage_zoom" type="checkbox" id="cimage_zoom" value="1" <?php is_checked(1, $content['image_list']['zoom']); ?> /></td> 228 <td class="v10"><label for="cimage_zoom" class="checkbox"><?php echo $BL['be_cnt_enlarge'] ?></label></td> 229 230 <td> </td> 231 <td><input name="cimage_lightbox" type="checkbox" id="cimage_lightbox" value="1" <?php is_checked(1, $content['image_list']['lightbox']); ?> onchange="if(this.checked){getObjectById('cimage_zoom').checked=true;}" /></td> 232 <td class="v10"><label for="cimage_lightbox" class="checkbox"><?php echo $BL['be_cnt_lightbox'] ?></label></td> 233 234 <td> </td> 235 <td><input name="cimage_nocaption" type="checkbox" id="cimage_nocaption" value="1" <?php is_checked(1, $content['image_list']['nocaption']); ?> /></td> 236 <td class="v10"><label for="cimage_nocaption" class="checkbox"><?php echo $BL['be_cnt_imglist_nocaption'] ?></label></td> 237 238 </tr> 239 </table> 240 </td> 241 </tr> 242 243 <tr> 244 <td align="right" class="chatlist"><?php echo $BL['random_image'] ?>: </td> 245 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 246 <tr> 247 <td><input name="cimage_random" type="checkbox" id="cimage_random" value="1" <?php is_checked(1, $content['image_list']['random']); ?> /></td> 248 <td class="v10"><label for="cimage_random" class="checkbox"><?php echo $BL['random_image_from_list'] ?></label></td> 249 </tr> 250 </table> 251 </td> 252 </tr> 253 254 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8"></td></tr> 255 <tr> 256 <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="13"><?php echo $BL['be_cnt_caption'] ?>: </td> 257 <td valign="top"><textarea name="cimage_caption" cols="40" rows="<?php echo (($imgx+2 >= 6) ? $imgx+4 : 6); ?>" wrap="off" class="f11" id="cimage_caption" style="width: 440px;"><?php echo $caption_box; ?></textarea></td> 258 </tr> 259 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8"></td></tr> 260 <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: Wed Dec 30 05:55:15 2009 | Cross-referenced by PHPXref 0.7 |