[ 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 // Flash Media Player 32 33 initMootools('1.2'); // We use MooTools here 34 35 if( ! $content["id"] ) { 36 include (PHPWCMS_ROOT.'/include/inc_lib/content/cnt25.takeval.inc.php'); 37 } 38 39 if(empty($fmp_data['fmp_set_skin'])) { 40 $fmp_data['fmp_set_skin'] = 'default'; 41 } 42 if(!isset($fmp_data['fmp_set_skin_html5'])) { 43 $fmp_data['fmp_set_skin_html5'] = ''; 44 } 45 if(!isset($fmp_data['fmp_int_ext_h264'])) { 46 // H.264 47 $fmp_data['fmp_int_ext_h264'] = 0; 48 $fmp_data['fmp_internal_id_h264'] = 0; 49 $fmp_data['fmp_internal_name_h264'] = ''; 50 $fmp_data['fmp_external_file_h264'] = ''; 51 52 // WebM 53 $fmp_data['fmp_int_ext_webm'] = 0; 54 $fmp_data['fmp_internal_id_webm'] = 0; 55 $fmp_data['fmp_internal_name_webm'] = ''; 56 $fmp_data['fmp_external_file_webm'] = ''; 57 58 // Ogg 59 $fmp_data['fmp_int_ext_ogg'] = 0; 60 $fmp_data['fmp_internal_id_ogg'] = 0; 61 $fmp_data['fmp_internal_name_ogg'] = ''; 62 $fmp_data['fmp_external_file_ogg'] = ''; 63 } 64 65 $fmp_data['fmp_player'] = empty($fmp_data['fmp_player']) ? 0 : 1; 66 67 68 ?> 69 <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 70 71 <tr> 72 <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?>: </td> 73 <td><table border="0" cellpadding="0" cellspacing="0" summary="" class="width440"> 74 <tr> 75 <td><select name="fmp_template" id="fmp_template" class="width150"> 76 <?php 77 78 echo '<option value="">'.$BL['be_admin_tmpl_default'].'</option>'.LF; 79 80 // templates for Flash Media Player 81 $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE.'inc_cntpart/flashplayer'); 82 if(is_array($tmpllist) && count($tmpllist)) { 83 foreach($tmpllist as $val) { 84 $selected_val = (isset($fmp_data['fmp_template']) && $val == $fmp_data['fmp_template']) ? ' selected="selected"' : ''; 85 $val = html_specialchars($val); 86 echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF; 87 } 88 } 89 90 ?> 91 </select></td> 92 93 <td width="20%"> </td> 94 95 <td><select name="fmp_width_height" id="fmp_width_height" onchange="setPlayerSize(this)"> 96 97 <option><?php echo $BL['be_flashplayer_selectsize'] ?></option> 98 <option value="200x178">200 x 178 px</option> 99 <option value="320x240">320 x 240 px</option> 100 <option value="380x313">380 x 313 px</option> 101 <option value="425x350">425 x 350 px</option> 102 <option value="450x338">450 x 338 px</option> 103 <option value="500x403">500 x 403 px</option> 104 <option value="640x480">640 x 264 px</option> 105 <option value="640x480">640 x 480 px</option> 106 107 <option value="720x480">HD 720 x 480 px</option> 108 <option value="852x480">HD 852 x 480 px</option> 109 <option value="1280x720">HD 1.280 x 720 px</option> 110 <option value="1920x1080">HD 1.920 x 1.080 px</option> 111 112 </select></td> 113 114 <td> </td> 115 116 <td><input name="fmp_width" type="text" class="width30" id="fmp_width" size="4" maxlength="4" value="<?php echo $fmp_data['fmp_width'] ?>" /></td> 117 <td class="chatlist"> x </td> 118 119 <td><input name="fmp_height" type="text" class="width30" id="fmp_height" size="4" maxlength="4" value="<?php echo $fmp_data['fmp_height'] ?>" /></td> 120 <td class="chatlist"> px</td> 121 122 </tr> 123 </table></td> 124 125 </tr> 126 127 <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 128 129 <tr> 130 <td align="right" class="chatlist" valign="top"><strong><?php echo $BL['be_html5_media'] ?></strong>: </td> 131 132 <td><table border="0" cellpadding="0" cellspacing="0" summary=""> 133 134 <!-- HTML5 Media H.264 --> 135 <tr> 136 <td colspan="3" class="chatlist tdbottom3" align="right"><?php echo $BL['be_media_format'] ?> </td> 137 <td colspan="3" class="v10 tdbottom3 greyed"> <?php echo $BL['be_html5_h264'] ?> — <i>mp4, m4v, mov, m4p, m4a</i></td> 138 </tr> 139 <tr> 140 <td bgcolor="#E7E8EB"><input name="fmp_int_ext_h264" id="fmp_int_ext0_h264" type="radio" value="0" <?php is_checked(0, $fmp_data['fmp_int_ext_h264']); ?> /></td> 141 <td bgcolor="#E7E8EB" class="v10"><label for="fmp_int_ext0_h264"><?php echo $BL['be_cnt_internal'] ?> </label></td> 142 <td> <input name="fmp_internal_id_h264" type="hidden" id="fmp_internal_id_h264" value="<?php echo $fmp_data['fmp_internal_id_h264'] ?>" /></td> 143 <td><input name="fmp_internal_name_h264" type="text" id="fmp_internal_name_h264" class="width300 greyed" value="<?php echo html_specialchars($fmp_data['fmp_internal_name_h264']) ?>" size="40" onfocus="this.blur()" onclick="openFileBrowser('filebrowser.php?opt=12');" /></td> 144 <td><a href="#" title="<?php echo $BL['be_cnt_openmediabrowser'] ?>" onclick="openFileBrowser('filebrowser.php?opt=12');return false;"><img src="img/button/open_image_button.gif" alt="" border="0" hspace="3" /></a></td> 145 <td><a href="#" title="<?php echo $BL['be_cnt_delmedia'] ?>" onclick="getObjectById('fmp_internal_name_h264').value='';getObjectById('fmp_internal_id_h264').value='0';this.blur();return false;"><img src="img/button/del_image_button.gif" alt="" border="0" /></a></td> 146 </tr> 147 <tr><td colspan="6"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 148 <tr> 149 <td bgcolor="#E7E8EB"><input name="fmp_int_ext_h264" id="fmp_int_ext1_h264" type="radio" value="1" <?php is_checked(1, $fmp_data['fmp_int_ext_h264']); ?> /></td> 150 <td bgcolor="#E7E8EB" class="v10"><label for="fmp_int_ext1_h264"><?php echo $BL['be_cnt_external'] ?> </label></td> 151 <td> </td> 152 <td colspan="3"><input name="fmp_external_file_h264" type="text" id="fmp_external_file_h264" class="width300" value="<?php echo html_specialchars($fmp_data['fmp_external_file_h264']) ?>" size="40" /></td> 153 </tr> 154 155 <tr><td colspan="6"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr> 156 157 <!-- HTML5 Media WebM --> 158 <tr> 159 <td colspan="3" class="chatlist tdbottom3" align="right"><?php echo $BL['be_media_format'] ?> </td> 160 <td colspan="3" class="v10 tdbottom3 greyed"> <?php echo $BL['be_html5_webm'] ?> — <i>webm</i></td> 161 </tr> 162 <tr> 163 <td bgcolor="#E7E8EB"><input name="fmp_int_ext_webm" id="fmp_int_ext0_webm" type="radio" value="0" <?php is_checked(0, $fmp_data['fmp_int_ext_webm']); ?> /></td> 164 <td bgcolor="#E7E8EB" class="v10"><label for="fmp_int_ext0_webm"><?php echo $BL['be_cnt_internal'] ?> </label></td> 165 <td> <input name="fmp_internal_id_webm" type="hidden" id="fmp_internal_id_webm" value="<?php echo $fmp_data['fmp_internal_id_webm'] ?>" /></td> 166 <td><input name="fmp_internal_name_webm" type="text" id="fmp_internal_name_webm" class="width300 greyed" value="<?php echo html_specialchars($fmp_data['fmp_internal_name_webm']) ?>" size="40" onfocus="this.blur()" onclick="openFileBrowser('filebrowser.php?opt=13');" /></td> 167 <td><a href="#" title="<?php echo $BL['be_cnt_openmediabrowser'] ?>" onclick="openFileBrowser('filebrowser.php?opt=13');return false;"><img src="img/button/open_image_button.gif" alt="" border="0" hspace="3" /></a></td> 168 <td><a href="#" title="<?php echo $BL['be_cnt_delmedia'] ?>" onclick="getObjectById('fmp_internal_name_webm').value='';getObjectById('fmp_internal_id_webm').value='0';this.blur();return false;"><img src="img/button/del_image_button.gif" alt="" border="0" /></a></td> 169 </tr> 170 <tr><td colspan="6"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 171 <tr> 172 <td bgcolor="#E7E8EB"><input name="fmp_int_ext_webm" id="fmp_int_ext1_webm" type="radio" value="1" <?php is_checked(1, $fmp_data['fmp_int_ext_webm']); ?> /></td> 173 <td bgcolor="#E7E8EB" class="v10"><label for="fmp_int_ext1_webm"><?php echo $BL['be_cnt_external'] ?> </label></td> 174 <td> </td> 175 <td colspan="3"><input name="fmp_external_file_webm" type="text" id="fmp_external_file_webm" class="width300" value="<?php echo html_specialchars($fmp_data['fmp_external_file_webm']) ?>" size="40" /></td> 176 </tr> 177 178 <tr><td colspan="6"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr> 179 180 <!-- HTML5 Media Ogg --> 181 <tr> 182 <td colspan="3" class="chatlist tdbottom3" align="right"><?php echo $BL['be_media_format'] ?> </td> 183 <td colspan="3" class="v10 tdbottom3 greyed"> <?php echo $BL['be_html5_ogg'] ?> — <i>.ogg, .ogv, .oga, .ogx</i></td> 184 </tr> 185 <tr> 186 <td bgcolor="#E7E8EB"><input name="fmp_int_ext_ogg" id="fmp_int_ext0_ogg" type="radio" value="0" <?php is_checked(0, $fmp_data['fmp_int_ext_ogg']); ?> /></td> 187 <td bgcolor="#E7E8EB" class="v10"><label for="fmp_int_ext0_ogg"><?php echo $BL['be_cnt_internal'] ?> </label></td> 188 <td> <input name="fmp_internal_id_ogg" type="hidden" id="fmp_internal_id_ogg" value="<?php echo $fmp_data['fmp_internal_id_ogg'] ?>" /></td> 189 <td><input name="fmp_internal_name_ogg" type="text" id="fmp_internal_name_ogg" class="width300 greyed" value="<?php echo html_specialchars($fmp_data['fmp_internal_name_ogg']) ?>" size="40" onfocus="this.blur()" onclick="openFileBrowser('filebrowser.php?opt=14');" /></td> 190 <td><a href="#" title="<?php echo $BL['be_cnt_openmediabrowser'] ?>" onclick="openFileBrowser('filebrowser.php?opt=14');return false;"><img src="img/button/open_image_button.gif" alt="" border="0" hspace="3" /></a></td> 191 <td><a href="#" title="<?php echo $BL['be_cnt_delmedia'] ?>" onclick="getObjectById('fmp_internal_name_ogg').value='';getObjectById('fmp_internal_id_ogg').value='0';this.blur();return false;"><img src="img/button/del_image_button.gif" alt="" border="0" /></a></td> 192 </tr> 193 <tr><td colspan="6"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 194 <tr> 195 <td bgcolor="#E7E8EB"><input name="fmp_int_ext_ogg" id="fmp_int_ext1_ogg" type="radio" value="1" <?php is_checked(1, $fmp_data['fmp_int_ext_ogg']); ?> /></td> 196 <td bgcolor="#E7E8EB" class="v10"><label for="fmp_int_ext1_ogg"><?php echo $BL['be_cnt_external'] ?> </label></td> 197 <td> </td> 198 <td colspan="3"><input name="fmp_external_file_ogg" type="text" id="fmp_external_file_ogg" class="width300" value="<?php echo html_specialchars($fmp_data['fmp_external_file_ogg']) ?>" size="40" /></td> 199 </tr> 200 201 </table></td> 202 </tr> 203 204 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="12" /></td></tr> 205 <tr><td colspan="2" class="rowspacer0x7" bgcolor="#e7e8eb"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 206 207 <tr> 208 <td align="right" class="chatlist" bgcolor="#e7e8eb"> </td> 209 <td bgcolor="#e7e8eb"><table border="0" cellpadding="0" cellspacing="0" summary=""> 210 <tr> 211 <td><input type="radio" name="fmp_player" id="fmp_player_nvb" value="1"<?php is_checked(1, $fmp_data['fmp_player']) ?> onclick="setPlayer(1);" /></td> 212 <td class="tdtop3 v12" nowrap="nowrap"><label for="fmp_player_nvb"> <strong>NonverBlaster:hover</strong></label></td> 213 214 <td> </td> 215 216 <td><input type="radio" name="fmp_player" id="fmp_player_jw" value="0"<?php is_checked(0, $fmp_data['fmp_player']) ?> onclick="setPlayer(0);" /></td> 217 <td class="tdtop3 v12" nowrap="nowrap"><label for="fmp_player_jw"> <strong>JW Player™</strong></label></td> 218 219 <td width="50%"> </td> 220 </tr> 221 222 <tr class="jw-player"> 223 <td colspan="6"><p style="padding:7px;background-color:#C2EB9A;margin:7px 10px 0 5px"> 224 <?php if(empty($phpwcms['JW_FLV_License'])) { ?> 225 226 <a href="http://www.jeroenwijering.com/?item=JW_Media_Player" target="_blank"><strong>JW Player™</strong></a> 227 is licensed under a non-commercial 228 <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" target="_blank">Creative Commons License</a>. 229 For commercial use you have to 230 <a href="http://www.longtailvideo.com/players/order/" target="_blank">order a special license</a>. 231 232 <?php } else { ?> 233 234 <strong>JW Player™</strong> License: <strong><?php echo html_specialchars($phpwcms['JW_FLV_License']) ?></strong> 235 [<a href="http://www.longtailvideo.com/players/jw-flv-player/" target="_blank">more</a>] 236 237 <?php } ?></p> 238 </td> 239 </tr> 240 241 </table></td> 242 </tr> 243 244 <tr><td colspan="2" class="rowspacer7x0" bgcolor="#e7e8eb"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 245 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="7" /></td></tr> 246 247 <tr> 248 <td align="right" class="chatlist" valign="top"><strong><?php echo $BL['be_flash_media'] ?></strong>: </td> 249 250 <td><table border="0" cellpadding="0" cellspacing="0" summary=""> 251 252 <!-- Flash Media Fallback --> 253 <tr> 254 <td colspan="3" class="chatlist tdbottom3" align="right"><?php echo $BL['be_media_format'] ?> </td> 255 <td colspan="3" class="v10 tdbottom3 greyed"> Flash — <i>mp4, mp3, flv, mov, swf, f4v, m4v, jpg, png</i></td> 256 </tr> 257 <tr> 258 <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> 259 <td bgcolor="#E7E8EB" class="v10"><label for="fmp_int_ext0"><?php echo $BL['be_cnt_internal'] ?> </label></td> 260 <td> <input name="fmp_internal_id" type="hidden" id="fmp_internal_id" value="<?php echo $fmp_data['fmp_internal_id'] ?>" /></td> 261 <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> 262 <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> 263 <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> 264 </tr> 265 <tr><td colspan="6"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 266 <tr> 267 <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> 268 <td bgcolor="#E7E8EB" class="v10"><label for="fmp_int_ext1"><?php echo $BL['be_cnt_external'] ?> </label></td> 269 <td> </td> 270 <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> 271 </tr> 272 273 </table></td> 274 </tr> 275 276 <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 277 278 <tr> 279 <td align="right" class="chatlist tdtop3"><?php echo $BL['be_flashplayer_caption'] ?>: </td> 280 <td><textarea name="fmp_caption" cols="40" rows="2" class="width440" id="fmp_caption"><?php echo html_specialchars($fmp_data['fmp_caption']) ?></textarea></td> 281 </tr> 282 283 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3"></td></tr> 284 285 <tr> 286 <td align="right" class="chatlist tdtop3"><?php echo $BL['be_admin_page_link'] ?>: </td> 287 <td><input name="fmp_link" type="text" id="fmp_link" class="width440" value="<?php echo html_specialchars($fmp_data['fmp_link']) ?>" size="40" /></td> 288 </tr> 289 290 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3"></td></tr> 291 292 293 <tr> 294 <td align="right" class="chatlist"><?php echo $BL['be_flashplayer_thumbnail'] ?>: </td> 295 296 <td><table border="0" cellpadding="0" cellspacing="0" summary=""> 297 298 <tr> 299 <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> 300 <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> 301 <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> 302 <input name="fmp_img_id" type="hidden" id="fmp_img_id" value="<?php echo $fmp_data['fmp_img_id'] ?>" /> 303 </td> 304 </tr> 305 306 </table></td> 307 </tr> 308 309 310 <tr><td colspan="2" class="rowspacer10x10"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 311 312 313 <tr> 314 <td align="right" class="chatlist tdtop3"><?php echo $BL['be_settings'] ?>: </td> 315 316 <td><table border="0" cellpadding="0" cellspacing="0" summary="" class="settings"> 317 318 <tr> 319 <td class="chatlist" align="right"><label for="fmp_set_autostart">Autostart: </label></td> 320 <td><input type="checkbox" name="fmp_set_autostart" id="fmp_set_autostart" value="1"<?php is_checked(1, $fmp_data['fmp_set_autostart']) ?> /></td> 321 </tr> 322 <tr class="jw-player"> 323 <td class="chatlist" align="right"><label for="fmp_set_overstretch">Display: </label></td> 324 <td><select name="fmp_set_overstretch" id="fmp_set_overstretch"> 325 326 <option value="uniform"<?php is_selected('uniform', $fmp_data['fmp_set_overstretch']) ?>><?php echo $BL['be_admin_tmpl_default'] ?></option> 327 <option value="exactfit"<?php is_selected('exactfit', $fmp_data['fmp_set_overstretch']) ?>>Stretch disproportionally</option> 328 <option value="none"<?php is_selected('none', $fmp_data['fmp_set_overstretch']) ?>>Show in original dimensions</option> 329 <option value="fill"<?php is_selected('fill', $fmp_data['fmp_set_overstretch']) ?>>Stretch proportionally</option> 330 331 </select></td> 332 </tr> 333 334 <tr> 335 <td class="chatlist" align="right"><label for="fmp_set_skin"><?php echo $BL['be_skin'].' '.$BL['be_html5_media'] ?>: </label></td> 336 <td><select name="fmp_set_skin_html5"> 337 <option value="default"<?php is_selected('', $fmp_data['fmp_set_skin_html5']) ?>><?php echo $BL['be_admin_tmpl_default'] ?></option> 338 <?php 339 // skins for HTML5 Media Player 340 $skins = returnFileListAsArray(PHPWCMS_TEMPLATE.'lib/video-js/skins', 'css'); 341 if(is_array($skins) && count($skins)): 342 foreach($skins as $skin): 343 $skin = cut_ext($skin['filename']); 344 ?> 345 <option value="<?php 346 echo html_specialchars($skin) 347 ?>"<?php is_selected($skin, $fmp_data['fmp_set_skin_html5']) ?>><?php 348 echo html_specialchars(ucwords(str_replace('_', ' ', $skin))) 349 ?></option> 350 <?php 351 endforeach; 352 endif; 353 ?> 354 </select></td> 355 </tr> 356 357 <tr> 358 <td class="chatlist" align="right"><label for="fmp_set_showcontrols">Controlbar: </label></td> 359 <td><select name="fmp_set_showcontrols" id="fmp_set_showcontrols"> 360 361 <option value="bottom"<?php is_selected('bottom', $fmp_data['fmp_set_showcontrols']) ?>><?php echo $BL['be_admin_tmpl_default'] ?></option> 362 <option value="none"<?php is_selected('none', $fmp_data['fmp_set_showcontrols']) ?>><?php echo $BL['be_admin_struct_hide1'] ?></option> 363 <option value="over"<?php is_selected('over', $fmp_data['fmp_set_showcontrols']) ?>><?php echo $BL['over'] ?></option> 364 365 </select> 366 367 <input type="hidden" name="fmp_set_largecontrols" id="fmp_set_largecontrols" value="0" /> 368 <input type="hidden" name="fmp_set_showdigits" id="fmp_set_showdigits" value="0" /> 369 <input type="hidden" name="fmp_set_showeq" id="fmp_set_showeq" value="0" /> 370 <input type="hidden" name="fmp_set_showvolume" id="fmp_set_showvolume" value="0" /> 371 <input type="hidden" name="fmp_set_showdownload" id="fmp_set_showdownload" value="0" /> 372 373 </td> 374 </tr> 375 376 <tr> 377 <td class="chatlist" align="right"><label for="fmp_set_bgcolor"><?php echo $BL['be_background_color'].' '.$BL['be_flash_media'] ?> (HEX): </label></td> 378 <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> 379 </tr> 380 381 <tr> 382 <td class="chatlist" align="right"><label for="fmp_set_color"><?php echo $BL['be_foreground_color'].' '.$BL['be_flash_media'] ?> (HEX): </label></td> 383 <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> 384 </tr> 385 386 <tr class="jw-player"> 387 <td class="chatlist" align="right"><label for="fmp_set_hcolor"><?php echo $BL['be_highlight_color'].' '.$BL['be_flash_media'] ?> (HEX): </label></td> 388 <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> 389 </tr> 390 391 <tr> 392 <td class="chatlist" align="right"><label for="fmp_set_logo"><?php echo $BL['be_media_watermark'].' '.$BL['be_flash_media'].' ('.$BL['be_cnt_pages_cust'].')' ?>: </label></td> 393 <td><input name="fmp_set_logo" type="text" id="fmp_set_logo" class="width200" value="<?php echo html_specialchars($fmp_data['fmp_set_logo']) ?>" size="40" /></td> 394 </tr> 395 396 <tr class="jw-player"> 397 <td class="chatlist" align="right"><label for="fmp_set_skin"><?php echo $BL['be_skin'] ?> JW Player™: </label></td> 398 <td><select name="fmp_set_skin"> 399 <option value="default"<?php is_selected('default', $fmp_data['fmp_set_skin']) ?>><?php echo $BL['be_admin_tmpl_default'] ?></option> 400 <?php 401 // skins for Flash Media Player 402 $skins = returnFileListAsArray(PHPWCMS_TEMPLATE.'lib/jw_media_player/skins', 'swf'); 403 if(is_array($skins) && count($skins)): 404 foreach($skins as $skin): 405 $skin = cut_ext($skin['filename']); 406 ?> 407 <option value="<?php 408 echo html_specialchars($skin) 409 ?>"<?php is_selected($skin, $fmp_data['fmp_set_skin']) ?>><?php 410 echo html_specialchars(ucwords(str_replace('_', ' ', $skin))) 411 ?></option> 412 <?php 413 endforeach; 414 endif; 415 ?> 416 </select></td> 417 </tr> 418 419 </table></td> 420 </tr> 421 422 <tr> 423 <td colspan="2" class="rowspacer7x0"><script type="text/javascript"> 424 var selected_player = <?php echo $fmp_data['fmp_player'] ?>; 425 var tr_jw_player = null; 426 427 function setIdName(file_id, file_name, file_type) { 428 if(file_id == null) file_id=0; 429 if(file_name == null) file_name=''; 430 if(file_type == 6 || file_type == null) { 431 $('fmp_internal_id').value = file_id; 432 $('fmp_internal_name').value = file_name; 433 } else if(file_type == 12) { // H.264 434 $('fmp_internal_id_h264').value = file_id; 435 $('fmp_internal_name_h264').value = file_name; 436 } else if(file_type == 13) { // WebM 437 $('fmp_internal_id_webm').value = file_id; 438 $('fmp_internal_name_webm').value = file_name; 439 } else if(file_type == 14) { // Ogg 440 $('fmp_internal_id_ogg').value = file_id; 441 $('fmp_internal_name_ogg').value = file_name; 442 } 443 } 444 function setImgIdName(file_id, file_name) { 445 if(file_id == null) file_id=0; 446 if(file_name == null) file_name=''; 447 $('fmp_img_id').value = file_id; 448 $('fmp_img_name').value = file_name; 449 } 450 function setPlayerSize(sval) { 451 var indx = sval.selectedIndex; 452 if(indx > 0) { 453 var val = sval.options[indx].value.split('x'); 454 $('fmp_width').value = parseInt(val[0]); 455 $('fmp_height').value = parseInt(val[1]); 456 } 457 sval.options[0].selected = true; 458 sval.blur(); 459 } 460 function setPlayer(val) { 461 selected_player = val ? 1 : 0; 462 switchPlayer(); 463 } 464 var switchPlayer = function() { 465 if(tr_jw_player === null) { 466 tr_jw_player = $('articlecontent').getElements('tr.jw-player'); 467 } 468 if(selected_player === 0) { 469 tr_jw_player.each(function(el){el.removeProperty('style')}); 470 } else { 471 tr_jw_player.each(function(el){el.setStyle('display', 'none')}); 472 } 473 } 474 window.addEvent('domready', switchPlayer); 475 </script></td> 476 </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 |