[ 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 // Flash Media Player 32 33 if( ! $content["id"] ) { 34 35 include (PHPWCMS_ROOT.'/include/inc_lib/content/cnt25.takeval.inc.php'); 36 } 37 38 if(empty($fmp_data['fmp_set_skin'])) { 39 $fmp_data['fmp_set_skin'] = 'default'; 40 } 41 42 43 ?> 44 <tr><td colspan="2" class="rowspacer0x10"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 45 46 <!-- Template selection --> 47 <tr> 48 <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?>: </td> 49 <td><table border="0" cellpadding="0" cellspacing="0" summary="" class="width440"> 50 <tr> 51 <td><select name="fmp_template" id="fmp_template" class="width150"> 52 <?php 53 54 echo '<option value="">'.$BL['be_admin_tmpl_default'].'</option>'.LF; 55 56 // templates for Flash Media Player 57 $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE.'inc_cntpart/flashplayer'); 58 if(is_array($tmpllist) && count($tmpllist)) { 59 foreach($tmpllist as $val) { 60 $selected_val = (isset($fmp_data['fmp_template']) && $val == $fmp_data['fmp_template']) ? ' selected="selected"' : ''; 61 $val = html_specialchars($val); 62 echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; 63 } 64 } 65 66 ?> 67 </select></td> 68 69 <td width="20%"> </td> 70 71 <td><select name="fmp_width_height" id="fmp_width_height" onchange="setPlayerSize(this)"> 72 73 <option><?php echo $BL['be_flashplayer_selectsize'] ?></option> 74 <option value="200x178">200 x 178 px</option> 75 <option value="320x240">320 x 240 px</option> 76 <option value="380x313">380 x 313 px</option> 77 <option value="425x350">425 x 350 px</option> 78 <option value="450x338">450 x 338 px</option> 79 <option value="500x403">500 x 403 px</option> 80 <option value="640x480">640 x 480 px</option> 81 82 </select></td> 83 84 <td> </td> 85 86 <td><input name="fmp_width" type="text" class="width30" id="fmp_width" size="4" maxlength="4" value="<?php echo $fmp_data['fmp_width'] ?>" /></td> 87 <td class="chatlist"> x </td> 88 89 <td><input name="fmp_height" type="text" class="width30" id="fmp_height" size="4" maxlength="4" value="<?php echo $fmp_data['fmp_height'] ?>" /></td> 90 <td class="chatlist"> px</td> 91 92 </tr> 93 </table></td> 94 95 </tr> 96 97 98 <tr><td colspan="2" class="rowspacer10x10"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 99 100 101 102 <!-- internal/external selection --> 103 <tr> 104 <td align="right" class="chatlist tdtop6"> <br /><?php echo $BL['be_cnt_source'] ?>: </td> 105 106 <td><table border="0" cellpadding="0" cellspacing="0" summary=""> 107 <tr> 108 <td colspan="3"> </td> 109 <td colspan="3" class="v10 tdbottom3 greyed"> <i>MP3, FLV, SWF, JPG, PNG, GIF</i></td> 110 </tr> 111 112 <tr> 113 <td bgcolor="#E7E8EB"><input name="fmp_int_ext" id="fmp_int_ext0" type="radio" value="0" <?php is_checked(0, $fmp_data['fmp_int_ext']); ?> /></td> 114 <td bgcolor="#E7E8EB" class="v10"><label for="fmp_int_ext0"><?php echo $BL['be_cnt_internal'] ?> </label></td> 115 <td> <input name="fmp_internal_id" type="hidden" id="fmp_internal_id" value="<?php echo $fmp_data['fmp_internal_id'] ?>" /></td> 116 <td><input name="fmp_internal_name" type="text" id="fmp_internal_name" class="width300 greyed" value="<?php echo html_specialchars($fmp_data['fmp_internal_name']) ?>" size="40" onfocus="this.blur()" onclick="openFileBrowser('filebrowser.php?opt=6');" /></td> 117 <td><a href="#" title="<?php echo $BL['be_cnt_openmediabrowser'] ?>" onclick="openFileBrowser('filebrowser.php?opt=6');return false;"><img src="img/button/open_image_button.gif" alt="" border="0" hspace="3" /></a></td> 118 <td><a href="#" title="<?php echo $BL['be_cnt_delmedia'] ?>" onclick="getObjectById('fmp_internal_name').value='';getObjectById('fmp_internal_id').value='0';this.blur();return false;"><img src="img/button/del_image_button.gif" alt="" border="0" /></a></td> 119 </tr> 120 <tr> 121 <td colspan="6"><img src="img/leer.gif" alt="" width="1" height="3" /></td> 122 </tr> 123 <tr> 124 <td bgcolor="#E7E8EB"><input name="fmp_int_ext" id="fmp_int_ext1" type="radio" value="1" <?php is_checked(1, $fmp_data['fmp_int_ext']); ?> /></td> 125 <td bgcolor="#E7E8EB" class="v10"><label for="fmp_int_ext1"><?php echo $BL['be_cnt_external'] ?> </label></td> 126 <td> </td> 127 <td colspan="3"><input name="fmp_external_file" type="text" id="fmp_external_file" class="width300" value="<?php echo html_specialchars($fmp_data['fmp_external_file']) ?>" size="40" /></td> 128 </tr> 129 </table></td> 130 </tr> 131 132 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6"></td></tr> 133 134 <tr> 135 <td align="right" class="chatlist tdtop3"><?php echo $BL['be_flashplayer_caption'] ?>: </td> 136 <td><textarea name="fmp_caption" cols="40" rows="2" wrap="off" class="width440" id="fmp_caption"><?php echo html_specialchars($fmp_data['fmp_caption']) ?></textarea></td> 137 </tr> 138 139 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3"></td></tr> 140 141 <tr> 142 <td align="right" class="chatlist tdtop3"><?php echo $BL['be_admin_page_link'] ?>: </td> 143 <td><input name="fmp_link" type="text" id="fmp_link" class="width440" value="<?php echo html_specialchars($fmp_data['fmp_link']) ?>" size="40" /></td> 144 </tr> 145 146 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3"></td></tr> 147 148 149 <tr> 150 <td align="right" class="chatlist"><?php echo $BL['be_flashplayer_thumbnail'] ?>: </td> 151 152 <td><table border="0" cellpadding="0" cellspacing="0" summary=""> 153 154 <tr> 155 <td><input name="fmp_img_name" type="text" id="fmp_img_name" class="width300 greyed" value="<?php echo html_specialchars($fmp_data['fmp_img_name']) ?>" size="40" onfocus="this.blur()" onclick="openFileBrowser('filebrowser.php?opt=7');" /></td> 156 <td><a href="#" title="<?php echo $BL['be_cnt_openmediabrowser'] ?>" onclick="openFileBrowser('filebrowser.php?opt=7');return false;"><img src="img/button/open_image_button.gif" alt="" border="0" hspace="3" /></a></td> 157 <td><a href="#" title="<?php echo $BL['be_cnt_delmedia'] ?>" onclick="getObjectById('fmp_img_name').value='';getObjectById('fmp_img_id').value='0';this.blur();return false;"><img src="img/button/del_image_button.gif" alt="" border="0" /></a> 158 <input name="fmp_img_id" type="hidden" id="fmp_img_id" value="<?php echo $fmp_data['fmp_img_id'] ?>" /> 159 </td> 160 </tr> 161 162 </table></td> 163 </tr> 164 165 166 <tr><td colspan="2" class="rowspacer10x10"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 167 168 169 <tr> 170 <td align="right" class="chatlist tdtop3"><?php echo $BL['be_settings'] ?>: </td> 171 172 <td><table border="0" cellpadding="0" cellspacing="0" summary="" class="settings"> 173 174 <tr> 175 <td class="chatlist" align="right"><label for="fmp_set_autostart">Autostart: </label></td> 176 <td><input type="checkbox" name="fmp_set_autostart" id="fmp_set_autostart" value="1"<?php is_checked(1, $fmp_data['fmp_set_autostart']) ?> /></td> 177 </tr> 178 <!-- 179 <tr> 180 <td class="chatlist" align="right"><label for="fmp_set_autohidecontrol">Autohide control bar: </label></td> 181 <td><input type="checkbox" name="fmp_set_autohidecontrol" id="fmp_set_autohidecontrol" value="1"<?php is_checked(1, $fmp_data['fmp_set_autohidecontrol']) ?> /></td> 182 </tr> 183 //--> 184 <tr> 185 <td class="chatlist" align="right"><label for="fmp_set_overstretch">Display: </label></td> 186 <td><select name="fmp_set_overstretch" id="fmp_set_overstretch"> 187 188 <option value="uniform"<?php is_selected('uniform', $fmp_data['fmp_set_overstretch']) ?>><?php echo $BL['be_admin_tmpl_default'] ?></option> 189 <option value="exactfit"<?php is_selected('exactfit', $fmp_data['fmp_set_overstretch']) ?>>Stretch disproportionally</option> 190 <option value="none"<?php is_selected('none', $fmp_data['fmp_set_overstretch']) ?>>Show in original dimensions</option> 191 <option value="fill"<?php is_selected('fill', $fmp_data['fmp_set_overstretch']) ?>>Stretch proportionally</option> 192 193 </select></td> 194 </tr> 195 196 <tr> 197 <td class="chatlist" align="right"><label for="fmp_set_showcontrols">Controlbar: </label></td> 198 <td><select name="fmp_set_showcontrols" id="fmp_set_showcontrols"> 199 200 <option value="bottom"<?php is_selected('bottom', $fmp_data['fmp_set_showcontrols']) ?>><?php echo $BL['be_admin_page_bottom'] ?> (<?php echo $BL['be_admin_tmpl_default'] ?>)</option> 201 <option value="none"<?php is_selected('none', $fmp_data['fmp_set_showcontrols']) ?>><?php echo $BL['be_admin_struct_hide1'] ?></option> 202 <option value="over"<?php is_selected('over', $fmp_data['fmp_set_showcontrols']) ?>><?php echo $BL['over'] ?></option> 203 204 </select> 205 206 207 <!--<input type="checkbox" name="fmp_set_showcontrols" id="fmp_set_showcontrols" value="1"<?php is_checked(1, $fmp_data['fmp_set_showcontrols']) ?> />--> 208 209 <input type="hidden" name="fmp_set_largecontrols" id="fmp_set_largecontrols" value="0" /> 210 <input type="hidden" name="fmp_set_showdigits" id="fmp_set_showdigits" value="0" /> 211 <input type="hidden" name="fmp_set_showeq" id="fmp_set_showeq" value="0" /> 212 <input type="hidden" name="fmp_set_showvolume" id="fmp_set_showvolume" value="0" /> 213 <input type="hidden" name="fmp_set_showdownload" id="fmp_set_showdownload" value="0" /> 214 215 </td> 216 </tr> 217 <!-- 218 <tr> 219 <td class="chatlist" align="right"><label for="fmp_set_largecontrols">Large controls: </label></td> 220 <td><input type="checkbox" name="fmp_set_largecontrols" id="fmp_set_largecontrols" value="1"<?php is_checked(1, $fmp_data['fmp_set_largecontrols']) ?> /></td> 221 </tr> 222 223 <tr> 224 <td class="chatlist" align="right"><label for="fmp_set_showdigits">Show digits: </label></td> 225 <td><input type="checkbox" name="fmp_set_showdigits" id="fmp_set_showdigits" value="1"<?php is_checked(1, $fmp_data['fmp_set_showdigits']) ?> /></td> 226 </tr> 227 228 <tr> 229 <td class="chatlist" align="right"><label for="fmp_set_showeq">Show equalizer: </label></td> 230 <td><input type="checkbox" name="fmp_set_showeq" id="fmp_set_showeq" value="1"<?php is_checked(1, $fmp_data['fmp_set_showeq']) ?> /></td> 231 </tr> 232 233 <tr> 234 <td class="chatlist" align="right"><label for="fmp_set_showvolume">Show volume: </label></td> 235 <td><input type="checkbox" name="fmp_set_showvolume" id="fmp_set_showvolume" value="1"<?php is_checked(1, $fmp_data['fmp_set_showvolume']) ?> /></td> 236 </tr> 237 238 <tr> 239 <td class="chatlist" align="right"><label for="fmp_set_showdownload">Show download button: </label></td> 240 <td><input type="checkbox" name="fmp_set_showdownload" id="fmp_set_showdownload" value="1"<?php is_checked(1, $fmp_data['fmp_set_showdownload']) ?> /></td> 241 </tr> 242 //--> 243 <tr> 244 <td class="chatlist" align="right"><label for="fmp_set_bgcolor">Background color (#FFFFFF): </label></td> 245 <td><input name="fmp_set_bgcolor" type="text" id="fmp_set_bgcolor" class="width75" value="<?php echo html_specialchars($fmp_data['fmp_set_bgcolor']) ?>" size="40" maxlength="7" /></td> 246 </tr> 247 248 <tr> 249 <td class="chatlist" align="right"><label for="fmp_set_color">Front color (#000000): </label></td> 250 <td><input name="fmp_set_color" type="text" id="fmp_set_color" class="width75" value="<?php echo html_specialchars($fmp_data['fmp_set_color']) ?>" size="40" maxlength="7" /></td> 251 </tr> 252 253 <tr> 254 <td class="chatlist" align="right"><label for="fmp_set_hcolor">Highlight color (#000000): </label></td> 255 <td><input name="fmp_set_hcolor" type="text" id="fmp_set_hcolor" class="width75" value="<?php echo html_specialchars($fmp_data['fmp_set_hcolor']) ?>" size="40" maxlength="7" /></td> 256 </tr> 257 258 <tr> 259 <td class="chatlist" align="right"><label for="fmp_set_logo">Watermark logo (path): </label></td> 260 <td><input name="fmp_set_logo" type="text" id="fmp_set_logo" class="width250" value="<?php echo html_specialchars($fmp_data['fmp_set_logo']) ?>" size="40" /></td> 261 </tr> 262 263 <tr> 264 <td class="chatlist" align="right"><label for="fmp_set_flashversion">Flash version (7 >= only): </label></td> 265 <td><input name="fmp_set_flashversion" type="text" id="fmp_set_flashversion" class="width75" value="<?php echo html_specialchars($fmp_data['fmp_set_flashversion']) ?>" size="40" maxlength="10" /></td> 266 </tr> 267 268 <tr> 269 <td class="chatlist" align="right"><label for="fmp_set_skin">Skin: </label></td> 270 <td><select name="fmp_set_skin"> 271 <option value="default"<?php is_selected('default', $fmp_data['fmp_set_skin']) ?>><?php echo $BL['be_admin_tmpl_default'] ?></option> 272 <?php 273 // skins for Flash Media Player 274 $skins = returnFileListAsArray(PHPWCMS_TEMPLATE.'jw_media_player/skins', 'swf'); 275 if(is_array($skins) && count($skins)): 276 foreach($skins as $skin): 277 $skin = cut_ext($skin['filename']); 278 ?> 279 <option value="<?php 280 echo html_specialchars($skin) 281 ?>"<?php is_selected($skin, $fmp_data['fmp_set_skin']) ?>><?php 282 echo html_specialchars(ucwords(str_replace('_', ' ', $skin))) 283 ?></option> 284 <?php 285 endforeach; 286 endif; 287 ?> 288 </select></td> 289 </tr> 290 291 </table></td> 292 </tr> 293 294 <tr><td colspan="2" class="rowspacer7x0"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 295 296 <tr> 297 <td colspan="2" style="padding:0 10px 0 10px;background-color:#C2EB9A;"> 298 <?php if(empty($phpwcms['JW_FLV_License'])) { ?> 299 <p><strong>Licensing JW Media Player</strong></p> 300 <p> 301 <a href="http://www.jeroenwijering.com/?item=JW_Media_Player" target="_blank"><strong>The player itself</strong></a> 302 (used as as plugin inside of <strong>phpwcms</strong>) is licensed under a 303 <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/" target="_blank"><strong>Creative Commons License</strong></a>. 304 <strong style="color:#cc3300">It allows you to use and modify the script for noncommercial purposes.</strong> 305 For commercial use, the author Jeroen Wijering distribute licenses of the script for <strong>15 EUR</strong>. 306 For more info and instant ordering, please 307 <a href="http://www.jeroenwijering.com/?order=form" target="_blank"><strong>advance to his online order page</strong></a>! 308 <strong>Please - respect copyrights!</strong> 309 </p> 310 <?php } else { ?> 311 <p> 312 JW FLV Media Player License: <strong><?php echo html_specialchars($phpwcms['JW_FLV_License']) ?></strong> 313 [<a href="http://www.longtailvideo.com/players/jw-flv-player/" target="_blank">more</a>] 314 </p> 315 <?php } ?> 316 </td> 317 </tr> 318 319 <tr> 320 <td colspan="2" class="rowspacer0x0"><script type="text/javascript"> 321 322 <!-- 323 function setIdName(file_id, file_name) { 324 if(file_id == null) file_id=0; 325 if(file_name == null) file_name=''; 326 getObjectById('fmp_internal_id').value = file_id; 327 getObjectById('fmp_internal_name').value = file_name; 328 } 329 function setImgIdName(file_id, file_name) { 330 if(file_id == null) file_id=0; 331 if(file_name == null) file_name=''; 332 getObjectById('fmp_img_id').value = file_id; 333 getObjectById('fmp_img_name').value = file_name; 334 } 335 function setPlayerSize(sval) { 336 var indx = sval.selectedIndex; 337 if(indx > 0) { 338 var val = sval.options[indx].value.split('x'); 339 getObjectById('fmp_width').value = parseInt(val[0]); 340 getObjectById('fmp_height').value = parseInt(val[1]); 341 } 342 sval.options[0].selected = true; 343 sval.blur(); 344 } 345 //--> 346 </script></td> 347 </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 |