[ 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 // Reference 32 33 if(!isset($content['reference'])) { 34 35 $content['reference']["text"] = ''; 36 $content["reference"]['tmpl'] = ''; 37 $content['reference']["select"] = array(); 38 $content['reference']["list"] = array(); 39 $content['reference']["caption"] = ''; 40 $content['reference']["zoom"] = 0; 41 $content['reference']["width"] = ''; 42 $content['reference']["height"] = ''; 43 $content['reference']["border"] = ''; 44 $content['reference']["pos"] = 0; 45 $content['reference']["blockwidth"] = ''; 46 $content['reference']["blockheight"] = ''; 47 $content['reference']["space"] = ''; 48 $content['reference']["listborder"] = ''; 49 $content["reference"]["basis"] = 0; 50 51 } 52 53 $imgx=0; 54 $img_thumbs = ''; 55 56 ?> 57 <tr> 58 <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template'] ?>: </td> 59 <td><select name="creference_tmpl" id="creference_tmpl" class="f11b"> 60 <?php 61 // templates for Reference 62 $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE.'inc_cntpart/reference'); 63 if(is_array($tmpllist) && count($tmpllist)) { 64 foreach($tmpllist as $val) { 65 $vals = ''; 66 if($val == $content["reference"]['tmpl']) $vals= ' selected="selected"'; 67 $val = htmlspecialchars($val); 68 echo '<option value="'.$val.'"'.$vals.'>'.$val."</option>\n"; 69 } 70 } 71 72 ?> 73 </select></td></tr> 74 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10"></td></tr> 75 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr> 76 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="7"></td></tr> 77 78 <tr> 79 <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="13"><?php echo $BL['be_cnt_plaintext'] ?>: </td> 80 <td valign="top"><textarea name="creference_text" rows="15" wrap="VIRTUAL" class="f11" id="creference_text" style="width: 440px"><?php echo $content['reference']["text"] ?></textarea></td> 81 </tr> 82 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8"></td></tr> 83 <tr> 84 <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="13"><?php echo $BL['be_cnt_image'] ?>: </td> 85 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 86 <tr> 87 <td valign="top"><select name="cimage_list[]" size="<?php echo (count($content['reference']["select"]))?(count($content['reference']["select"])+5):5; ?>" multiple class="f11" id="cimage_list" style="width: 300px;"> 88 <?php 89 if(is_array($content['reference']["list"]) && count($content['reference']["list"])) { 90 91 foreach($content['reference']["list"] as $key => $value) { 92 93 $thumb_image = get_cached_image( 94 array( "target_ext" => $content['reference']["list"][$key][3], 95 "image_name" => $content['reference']["list"][$key][2] . '.' . $content['reference']["list"][$key][3], 96 "thumb_name" => md5( $content['reference']["list"][$key][2]. 97 $phpwcms["img_list_width"]. 98 $phpwcms["img_list_height"]. 99 $phpwcms["sharpen_level"] 100 ) ) ); 101 102 if($thumb_image != false) { 103 104 echo "<option value=\"".$content['reference']["list"][$key][0]."\">"; 105 $img_name = html_specialchars($content['reference']["list"][$key][1]); 106 echo $img_name."</option>\n"; 107 108 if($imgx == 4) { 109 $img_thumbs .= '<br><img src="img/leer.gif" alt="" border="0" width="1" height="2"><br>'; 110 $imgx = 0; 111 } 112 if($imgx) { 113 $img_thumbs .= '<img src="img/leer.gif" alt="" border="0" width="2" height="1">'; 114 } 115 $img_thumbs .= '<img src="'.PHPWCMS_IMAGES . $thumb_image[0] .'" border="0" '.$thumb_image[3].' alt="'.$img_name.'" title="'.$img_name.'">'; 116 117 $imgx++; 118 119 } 120 121 } 122 123 } 124 ?> 125 </select></td> 126 <td valign="top"><img src="img/leer.gif" alt="" width="5" height="1"></td> <!-- browser_image.php //--> 127 <td valign="top"><a href="javascript:;" title="<?php echo $BL['be_cnt_openimagebrowser'] ?>" onclick="tmt_winOpen('filebrowser.php?opt=3&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 /> 128 <img src="img/leer.gif" alt="" width="1" height="4"><br /> 129 <a href="javascript:;" 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:;" 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 /> 130 <img src="img/leer.gif" alt="" width="1" height="4"><br /> 131 <a href="javascript:;" 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> 132 </tr> 133 </table><?php 134 135 if($img_thumbs) { 136 echo '<table border="0" cellspacing="0" cellpadding="0"> 137 <tr><td style="padding-bottom:3px;"><img src="img/leer.gif" width="1" height="5"><br>'.$img_thumbs.'</td></tr> 138 </table>'; 139 } 140 141 ?></td> 142 </tr> 143 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5"></td></tr> 144 <tr> 145 <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="13"><?php echo $BL['be_cnt_caption'] ?>: </td> 146 <td valign="top"><textarea name="creference_caption" cols="40" rows="<?php echo (count($content['reference']["list"])) ? (count($content['reference']["list"]) + 4) : 5 ?>" wrap="off" class="f11" id="creference_caption" style="width:440px"><?php echo html_specialchars($content['reference']["caption"]) ?></textarea></td> 147 </tr> 148 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5"></td></tr> 149 <tr> 150 <td align="right" class="chatlist"><?php echo $BL['be_cnt_reference_zoom'] ?>: </td> 151 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#E7E8EB" summary=""> 152 <tr> 153 <td><input name="creference_zoom" type="checkbox" id="creference_zoom" value="1" <?php is_checked(1, $content['reference']["zoom"]); ?>></td> 154 <td class="v10"> <?php echo $BL['be_cnt_enlarge'] ?> </td> 155 </tr> 156 </table></td> 157 </tr> 158 159 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8"></td></tr> 160 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr> 161 <tr><td><img src="img/leer.gif" alt="" width="1" height="22"></td><td class="chatlist"><strong><?php echo $BL['be_cnt_reference_largetext']; ?>:</strong></td></tr> 162 <tr> 163 <td align="right" class="chatlist"><?php echo $BL['be_cnt_maxw'] ?>: </td> 164 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 165 <tr> 166 <td><input name="creference_width" type="text" class="f11b" id="creference_width" style="width: 50px;" size="5" maxlength="5" onKeyUp="if(!parseInt(this.value*1)) this.value='';" value="<?php echo $content['reference']["width"] ?>"></td> 167 <td class="chatlist"> <?php echo $BL['be_cnt_maxh'] ?>: </td> 168 <td><input name="creference_height" type="text" class="f11b" id="creference_height" style="width: 50px;" size="5" maxlength="5" onKeyUp="if(!parseInt(this.value*1)) this.value='';" value="<?php echo $content['reference']["height"] ?>"></td> 169 <td class="chatlist"> px <?php echo $BL['be_cnt_reference_border'] ?>: </td> 170 <td><input name="creference_border" type="text" class="f11b" id="creference_border" style="width: 30px;" size="3" maxlength="3" onKeyUp="if(!parseInt(this.value*1)) this.value='0';" value="<?php echo $content['reference']["border"] ?>"></td> 171 </tr> 172 </table></td> 173 </tr> 174 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8"></td></tr> 175 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr> 176 <tr><td><img src="img/leer.gif" alt="" width="1" height="22"></td><td class="chatlist"><strong><?php echo $BL['be_cnt_reference_aligntext'] ?>:</strong></td></tr> 177 <tr> 178 <td align="right" class="chatlist"><?php echo $BL['be_cnt_reference_basis'] ?>: </td> 179 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 180 <tr> 181 <td bgcolor="#E7E8EB"><input name="creference_basis" type="radio" value="0" <?php is_checked(0, $content["reference"]["basis"]); ?>></td> 182 <td class="v10" bgcolor="#E7E8EB"><?php echo $BL['be_cnt_reference_horizontal'] ?> </td> 183 <td bgcolor="#E7E8EB"><input name="creference_basis" type="radio" value="1" <?php is_checked(1, $content["reference"]["basis"]); ?>></td> 184 <td class="v10" bgcolor="#E7E8EB"><?php echo $BL['be_cnt_reference_vertical'] ?> </td> 185 <td class="chatlist"> </td> 186 <td><select name="creference_pos" class="f10" id="creference_pos"> 187 <option value="0" <?php is_selected(0, $content['reference']["pos"]) ?>><?php echo $BL['be_cnt_default'] ?></option> 188 <option value="1" <?php is_selected(1, $content['reference']["pos"]) ?>><?php echo $BL['be_cnt_left'].', '.$BL['be_admin_page_top'] ?></option> 189 <option value="2" <?php is_selected(2, $content['reference']["pos"]) ?>><?php echo $BL['be_cnt_left'].', '.$BL['be_cnt_reference_middle'] ?></option> 190 <option value="3" <?php is_selected(3, $content['reference']["pos"]) ?>><?php echo $BL['be_cnt_left'].', '.$BL['be_admin_page_bottom'] ?></option> 191 <option value="4" <?php is_selected(4, $content['reference']["pos"]) ?>><?php echo $BL['be_cnt_center'].', '.$BL['be_admin_page_top'] ?></option> 192 <option value="5" <?php is_selected(5, $content['reference']["pos"]) ?>><?php echo $BL['be_cnt_center'].',. '.$BL['be_cnt_reference_middle'] ?></option> 193 <option value="6" <?php is_selected(6, $content['reference']["pos"]) ?>><?php echo $BL['be_cnt_center'].', '.$BL['be_admin_page_bottom'] ?></option> 194 <option value="7" <?php is_selected(7, $content['reference']["pos"]) ?>><?php echo $BL['be_cnt_right'].', '.$BL['be_admin_page_top'] ?></option> 195 <option value="8" <?php is_selected(8, $content['reference']["pos"]) ?>><?php echo $BL['be_cnt_right'].', '.$BL['be_cnt_reference_middle'] ?></option> 196 <option value="9" <?php is_selected(9, $content['reference']["pos"]) ?>><?php echo $BL['be_cnt_right'].', '.$BL['be_admin_page_bottom'] ?></option> 197 </select></td> 198 </tr> 199 </table></td> 200 </tr> 201 202 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5"></td></tr> 203 <tr> 204 <td align="right" class="chatlist"><?php echo $BL['be_cnt_reference_block'] ?>: </td> 205 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 206 <tr> 207 208 <td><input name="creference_blockwidth" type="text" class="f11b" id="creference_blockwidth" style="width: 50px;" size="5" maxlength="5" onKeyUp="if(!parseInt(this.value*1)) this.value='';" value="<?php echo $content['reference']["blockwidth"] ?>"></td> 209 <td class="chatlist"> x </td> 210 <td><input name="creference_blockheight" type="text" class="f11b" id="creference_blockheight" style="width: 50px;" size="5" maxlength="5" onKeyUp="if(!parseInt(this.value*1)) this.value='';" value="<?php echo $content['reference']["blockheight"] ?>"></td> 211 <td class="chatlist"> px <?php echo $BL['be_cnt_imagespace'] ?>: </td> 212 <td><input name="creference_space" type="text" class="f11b" id="creference_space" style="width: 50px;" size="2" maxlength="2" onKeyUp="if(!parseInt(this.value*1)) this.value='0';" value="<?php echo $content['reference']["space"] ?>"></td> 213 <td class="chatlist"> px <?php echo $BL['be_cnt_reference_border'] ?>: </td> 214 <td><input name="creference_listborder" type="text" class="f11b" id="creference_listborder" style="width: 30px;" size="3" maxlength="3" onKeyUp="if(!parseInt(this.value*1)) this.value='0';" value="<?php echo $content['reference']["listborder"] ?>"></td> 215 </tr> 216 </table></td> 217 </tr> 218 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10"></td></tr> 219 <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr> 220 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3"></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 |