|
From: OryNider <ory...@us...> - 2008-03-07 03:27:01
|
Update of /cvsroot/mxbb/mx_radio/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29322/templates/subSilver Modified Files: mx_player.tpl Removed Files: mx_playerg.tpl Log Message: --- mx_playerg.tpl DELETED --- Index: mx_player.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_radio/templates/subSilver/mx_player.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mx_player.tpl 28 Feb 2008 06:26:36 -0000 1.2 --- mx_player.tpl 7 Mar 2008 03:26:26 -0000 1.3 *************** *** 10,120 **** <!-- Then load MX-Publisher template *.css definition for mx, located in the the portal template folder --> <link rel="stylesheet" href="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}{T_MXBB_STYLESHEET}" type="text/css" /> - <CENTER><u><h2><title>{SITENAME} :: {L_TITLE}</title></h2></u></CENTER> - <!-- ENDIF --> <STYLE type=text/css> ! BODY { ! PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BACKGROUND-REPEAT: repeat-x; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #CEDEDF; ! } ! .ad_row { ! BORDER-TOP: #6699cc 1px solid; HEIGHT: 79px; BACKGROUND-COLOR: #becfdf ! } ! .center_row { ! BORDER-TOP: #ffffff 1px solid; BACKGROUND-IMAGE: url({IMG_IFRAME_BG}); BORDER-BOTTOM: #6699cc 1px solid; BACKGROUND-REPEAT: repeat-x ! } ! .quick_links { ! FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #ffffff; TEXT-INDENT: 5px; BACKGROUND-COLOR: #666666; TEXT-DECORATION: none ! } ! .quick_links A:link { ! COLOR: #ffffff; TEXT-DECORATION: none ! } ! .quick_links A:visited { ! COLOR: #ffffff; TEXT-DECORATION: none ! } ! .quick_links A:hover { ! COLOR: #ffffff; TEXT-DECORATION: none ! } ! .gateway { ! BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; WIDTH: 308px; BORDER-BOTTOM: #cccccc 1px solid; HEIGHT: 258px ! } ! .banner_468 { ! BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; WIDTH: 474px; BORDER-BOTTOM: #cccccc 1px solid; HEIGHT: 66px ! } ! .sendfriend { ! FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #7a95af; HEIGHT: 15px ! } ! .sendfriend A:link { ! COLOR: #000000; TEXT-DECORATION: none ! } ! .sendfriend A:visited { ! COLOR: #000000; TEXT-DECORATION: none ! } ! .sendfriend A:hover { ! COLOR: #000000; TEXT-DECORATION: none ! } ! .iframe { ! BORDER-RIGHT: #becfdf 1px solid; BORDER-TOP: #becfdf 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 11px; BORDER-LEFT: #becfdf 1px solid; COLOR: #004881; BORDER-BOTTOM: #becfdf 1px solid ! } ! .menu { ! BORDER-TOP: #becfdf 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #becfdf 1px solid; BACKGROUND-COLOR: #ebeff3 ! } ! .menu A:link { ! DISPLAY: block; COLOR: #004881; PADDING-TOP: 5px; POSITION: relative; HEIGHT: 20px; TEXT-DECORATION: none ! } ! .menu A:visited { ! DISPLAY: block; COLOR: #004881; PADDING-TOP: 5px; POSITION: relative; HEIGHT: 20px; TEXT-DECORATION: none ! } ! .menu A:hover { ! DISPLAY: block; PADDING-TOP: 5px; POSITION: relative; HEIGHT: 20px; BACKGROUND-COLOR: #ffffff ! } ! .menu_right { ! BORDER-RIGHT: #becfdf 1px solid; BORDER-TOP: #becfdf 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #becfdf 1px solid; BACKGROUND-COLOR: #ebeff3 ! } ! .menu_right A:link { ! DISPLAY: block; COLOR: #004881; PADDING-TOP: 5px; POSITION: relative; HEIGHT: 20px; TEXT-DECORATION: none ! } ! .menu_right A:visited { ! DISPLAY: block; COLOR: #004881; PADDING-TOP: 5px; POSITION: relative; HEIGHT: 20px; TEXT-DECORATION: none ! } ! .menu_right A:hover { ! DISPLAY: block; COLOR: #004881; PADDING-TOP: 5px; POSITION: relative; HEIGHT: 20px; BACKGROUND-COLOR: #ffffff; TEXT-DECORATION: none ! } </STYLE> ! <!-- IF SHOW_HEADER --> </HEAD> <BODY> <!-- ENDIF --> - <TABLE cellSpacing="0" cellPadding="0" width="{BLOCK_SIZE}" border="0" class="forumline" style="border-top:none;"> - <TBODY> <TR> ! <TD vAlign=center align=middle> ! <TABLE class=gateway cellSpacing=0 cellPadding=0 width="100%" ! bgColor=#ffffff border=0> ! <TBODY> ! <TR> ! <TD vAlign=center align=middle> ! ! <TABLE cellSpacing=0 cellPadding=0 width="{PLAYER_SIZE}" border=0> ! <TBODY> ! <TR> ! <TD> ! <SCRIPT language=JavaScript src="{JS_ADX}" ! type=text/javascript></SCRIPT> ! <SCRIPT language=JavaScript type=text/javascript> ! <!-- ! document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"332\" height=\"287\">"); ! document.writeln("<param name=movie value=\"{FLASH_FILE}\">"); ! document.writeln("<param name=quality value=high>"); ! document.writeln("<embed src=\"{FLASH_FILE}\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"332\" height=\"287\">"); ! document.writeln("</embed>"); ! document.writeln("</object>"); ! ! //--> ! </SCRIPT> ! <NOSCRIPT><A href="http://ads.airamericaradio.com/adclick.php?n=a226628a" ! target=_blank><IMG alt="" src="{IMG_ADVIEW}" ! border=0></A></NOSCRIPT> </TD></TR></TBODY></TABLE> ! </TD></TR></TBODY></TABLE></TD></TR> <TR> ! <TD align=middle> <!-- Check Media Player Version --> <SCRIPT LANGUAGE="JavaScript"> --- 10,43 ---- <!-- Then load MX-Publisher template *.css definition for mx, located in the the portal template folder --> <link rel="stylesheet" href="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}{T_MXBB_STYLESHEET}" type="text/css" /> <STYLE type=text/css> ! BODY { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND-IMAGE: url({IMG_IFRAME_BG}); PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BACKGROUND-REPEAT: repeat-x; FONT-FAMILY: Helvetica, Arial, sans-serif; BACKGROUND-COLOR: #CEDEDF; } </STYLE> ! <title>{SITENAME} :: {L_TITLE}</title> ! <SCRIPT language=JavaScript src="{JS_ADX}" type=text/javascript></SCRIPT> </HEAD> <BODY> + <TABLE class="main" align="left" valign="top" cellSpacing="1" cellPadding="1" width="100%" style="border-top:none; border-left:none; border-right:none;"> + <!-- ELSE --> + <STYLE type=text/css> + BODY { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-FAMILY: Helvetica, Arial, sans-serif; } + </STYLE> + <SCRIPT language=JavaScript src="{JS_ADX}" type=text/javascript></SCRIPT> + <TABLE cellSpacing="0" cellPadding="0" width="{BLOCK_SIZE}" background="{IMG_IFRAME_BG}" border="0" class="forumline" style="border-top:none;"> <!-- ENDIF --> <TR> ! <TD width="{PLAYER_SIZE}" class="row2" align="center" valign="top"> ! <!-- IF S_IS_FLASH --> ! <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="{PLAYER_SIZE}" height="287">"); ! <param name="movie" value="{FLASH_FILE}"> ! <param name="quality" value="high"> ! <embed src="{FLASH_FILE}" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="{PLAYER_SIZE}" height="287"></embed> ! </object> ! <!-- ELSE --> ! <iframe width="{PLAYER_SIZE}" height="270" id="myiframe" name="myiframe" src="{GATEWAY_FILE}" scrolling="no" style="width:{BLOCK_SIZE}px;height:270px;border:1px dotted #BEBEBE;"></iframe> ! <!-- ENDIF --> ! </TD> ! </TR> <TR> ! <TD width="{PLAYER_SIZE}" class="row2" align="center" valign="top"> <!-- Check Media Player Version --> <SCRIPT LANGUAGE="JavaScript"> *************** *** 124,127 **** --- 47,51 ---- var Unix; var Linux; + var cType = '{MIMETYPE}'; Win = navigator.userAgent.indexOf("Win") > -1; *************** *** 131,241 **** ! if (Mac) ! { ! ! if ( navigator.appName == "Netscape" ){ ! //Netscape code ! document.write (' <Embed id="wmp" name="wmp" type="audio/mpeg"'); ! document.write (' pluginspage="http://www.microsoft.com/windows/windowsmedia/"'); ! document.write (' filename="{STATION_STREAM}"'); ! document.write (' src="{STATION_STREAM}"'); ! document.write (' Name=MediaPlayer'); ! document.write (' ShowControls=1'); ! document.write (' ShowDisplay=1'); ! document.write (' ShowStatusBar=1'); ! document.write (' AUTOSTART=1'); ! document.write (' width=332'); ! document.write (' height=64>'); ! document.write (' </Embed>'); } ! ! if ( navigator.appName != "Netscape" ){ ! document.write(' <embed id="wmp" name="wmp" type="audio/mpeg" width="332" height="64" ShowTracker="0" ShowDisplay="0" ShowGotoBar="0" ShowStatusBar="1" ShowCaptioning="0" AUTOSTART="1" src="{STATION_STREAM}" ></embed>'); } } ! if (Win) ! { ! if ( navigator.appName != "Netscape" ){ ! WMP7 = new ActiveXObject('WMPlayer.OCX'); ! } ! ! // Windows Media Player 7 Code ! if ( WMP7 ) ! { ! ! document.write ('<OBJECT ID=MediaPlayer '); ! document.write (' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'); ! document.write (' standby="Loading Microsoft Windows Media Player components..."'); ! document.write (' TYPE="application/x-oleobject" width="332" height="64">'); ! document.write ('<PARAM NAME="url" VALUE="{STATION_STREAM}">'); ! document.write ('<PARAM NAME="AutoStart" VALUE="true">'); ! document.write ('<PARAM NAME="ShowControls" VALUE="1">'); ! document.write ('<PARAM NAME="uiMode" VALUE="mini">'); ! ! document.write (' <Embed type="application/x-mplayer2"'); ! document.write (' pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"'); ! document.write (' filename="{STATION_STREAM}"'); ! document.write (' src="{STATION_STREAM}"'); ! document.write (' Name="MediaPlayer"'); ! document.write (' ShowControls="1"'); ! document.write (' ShowDisplay="1"'); ! document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="true"'); ! document.write (' width="332"'); ! document.write (' height="64">'); ! document.write (' </embed>'); ! ! document.write ('</OBJECT>'); ! ! ! } ! ! // Windows Media Player 6.4 Code ! else ! ! { ! ! //IE Code ! document.write ('<OBJECT ID=MediaPlayer '); ! document.write (' CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'); ! document.write (' CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 '); ! document.write (' standby="Loading Microsoft Windows Media Player components..."'); ! document.write (' TYPE="application/x-oleobject" width="332" height="64">'); ! document.write (' <PARAM NAME="FileName" VALUE="{STATION_STREAM}">'); ! document.write ('<PARAM NAME="url" VALUE="{STATION_STREAM}"> '); ! document.write ('<PARAM NAME="AutoStart" VALUE="1">'); ! document.write ('<PARAM NAME="ShowControls" VALUE="1">'); ! ! //Firefox code ! document.write (' <Embed type="application/x-mplayer2"'); ! document.write (' pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"'); ! document.write (' filename="{STATION_STREAM}"'); ! document.write (' src="{STATION_STREAM}"'); ! document.write (' Name="MediaPlayer"'); ! document.write (' ShowControls="1"'); ! document.write (' ShowDisplay="1"'); ! document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="true"'); ! document.write (' width="332"'); ! document.write (' height="64">'); ! document.write (' </embed>'); ! ! document.write ('</OBJECT>'); ! ! } ! } ! else ! { ! document.write(' <embed type="audio/mpeg" width="332" height="64" AUTOSTART="1" filename="{STATION_STREAM}" src="{STATION_STREAM}" ></embed>'); } - </SCRIPT> </TD></TR> ! <TR class=sendfriend> ! <TD align=right> ! </TD></TR></TBODY></TABLE> <iframe width="350" height="1" id="myiframe" name="myiframe" src="{S_UPDATE_RADIO}" scrolling="no" style="width:350px;height:0px;border:0px"></iframe> <!-- IF SHOW_HEADER --> --- 55,195 ---- ! if (Mac) { ! if ( navigator.appName == "Netscape" ) { ! //Netscape code ! document.write (' <Embed id="wmp" name="wmp" type="{MIMETYPE}"'); ! document.write (' pluginspage="http://www.microsoft.com/windows/windowsmedia/"'); ! document.write (' filename="{STATION_STREAM}"'); ! document.write (' src="{STATION_STREAM}"'); ! document.write (' Name=MediaPlayer'); ! document.write (' ShowControls=1'); ! document.write (' ShowDisplay=1'); ! document.write (' ShowStatusBar=1'); ! document.write (' AUTOSTART=1'); ! document.write (' width={PLAYER_SIZE}'); ! document.write (' height=64>'); ! document.write (' </Embed>'); ! } else { ! document.write(' <embed id="wmp" name="wmp" type="{MIMETYPE}" width="{PLAYER_SIZE}" height="64" ShowTracker="0" ShowDisplay="0" ShowGotoBar="0" ShowStatusBar="1" ShowCaptioning="0" AUTOSTART="1" src="{STATION_STREAM}" ></embed>'); ! } } ! if (Win){ ! if ( navigator.appName != "Netscape" ) { ! WMP7 = new ActiveXObject('WMPlayer.OCX'); ! } ! // Windows Media Player 7 Code ! if (WMP7) { ! if(cType == "audio/aacp") { ! document.write ('<OBJECT ID=MediaPlayer '); ! document.write (' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'); ! document.write (' standby="Loading Microsoft Windows Media Player components..."'); ! document.write (' TYPE="application/x-oleobject" width="{PLAYER_SIZE}" height="64">'); ! document.write ('<PARAM NAME="url" VALUE="{STATION_STREAM}">'); ! document.write ('<PARAM NAME="AutoStart" VALUE="true">'); ! document.write ('<PARAM NAME="ShowControls" VALUE="1">'); ! document.write ('<PARAM NAME="uiMode" VALUE="mini">'); ! document.write (' <Embed type="application/x-ms-wmp"'); ! document.write (' pluginspage="http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe"'); ! document.write (' filename="{STATION_STREAM}"'); ! document.write (' src="{STATION_STREAM}"'); ! document.write (' Name="MediaPlayer"'); ! document.write (' ShowControls="1"'); ! document.write (' ShowDisplay="1"'); ! document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="true"'); ! document.write (' width="{PLAYER_SIZE}"'); ! document.write (' height="64">'); ! document.write (' </embed>'); ! document.write ('</OBJECT>');; ! } else { ! document.write ('<OBJECT ID=MediaPlayer '); ! document.write (' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'); ! document.write (' standby="Loading Microsoft Windows Media Player components..."'); ! document.write (' TYPE="application/x-oleobject" width="{PLAYER_SIZE}" height="64">'); ! document.write ('<PARAM NAME="url" VALUE="{STATION_STREAM}">'); ! document.write ('<PARAM NAME="AutoStart" VALUE="true">'); ! document.write ('<PARAM NAME="ShowControls" VALUE="1">'); ! document.write ('<PARAM NAME="uiMode" VALUE="mini">'); + document.write (' <Embed type="application/x-mplayer2"'); + document.write (' pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"'); + document.write (' filename="{STATION_STREAM}"'); + document.write (' src="{STATION_STREAM}"'); + document.write (' Name="MediaPlayer"'); + document.write (' ShowControls="1"'); + document.write (' ShowDisplay="1"'); + document.write (' ShowStatusBar="1"'); + document.write (' AUTOSTART="true"'); + document.write (' width="{PLAYER_SIZE}"'); + document.write (' height="64">'); + document.write (' </embed>'); + document.write ('</OBJECT>');; + } + } + // Windows Media Player 6.4 Code + else + { + if(cType == "audio/aacp") { + //IE Code + document.write ('<OBJECT ID=MediaPlayer '); + document.write (' CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'); + document.write (' CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 '); + document.write (' standby="Loading Microsoft Windows Media Player components..."'); + document.write (' TYPE="application/x-oleobject" width="{PLAYER_SIZE}" height="64">'); + document.write (' <PARAM NAME="FileName" VALUE="{STATION_STREAM}">'); + document.write ('<PARAM NAME="url" VALUE="{STATION_STREAM}"> '); + document.write ('<PARAM NAME="AutoStart" VALUE="1">'); + document.write ('<PARAM NAME="ShowControls" VALUE="1">'); + //Firefox code + document.write (' <Embed type="application/x-ms-wmp"'); + document.write (' pluginspage="http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe"'); + document.write (' filename="{STATION_STREAM}"'); + document.write (' src="{STATION_STREAM}"'); + document.write (' Name="MediaPlayer"'); + document.write (' ShowControls="1"'); + document.write (' ShowDisplay="1"'); + document.write (' ShowStatusBar="1"'); + document.write (' AUTOSTART="true"'); + document.write (' width="{PLAYER_SIZE}"'); + document.write (' height="64">'); + document.write (' </embed>'); + document.write ('</OBJECT>'); + } else { + //IE Code + document.write ('<OBJECT ID=MediaPlayer '); + document.write (' CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'); + document.write (' CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 '); + document.write (' standby="Loading Microsoft Windows Media Player components..."'); + document.write (' TYPE="application/x-oleobject" width="{PLAYER_SIZE}" height="64">'); + document.write (' <PARAM NAME="FileName" VALUE="{STATION_STREAM}">'); + document.write ('<PARAM NAME="url" VALUE="{STATION_STREAM}"> '); + document.write ('<PARAM NAME="AutoStart" VALUE="1">'); + document.write ('<PARAM NAME="ShowControls" VALUE="1">'); + //Firefox code + document.write (' <Embed type="application/x-mplayer2"'); + document.write (' pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"'); + document.write (' filename="{STATION_STREAM}"'); + document.write (' src="{STATION_STREAM}"'); + document.write (' Name="MediaPlayer"'); + document.write (' ShowControls="1"'); + document.write (' ShowDisplay="1"'); + document.write (' ShowStatusBar="1"'); + document.write (' AUTOSTART="true"'); + document.write (' width="{PLAYER_SIZE}"'); + document.write (' height="64">'); + document.write (' </embed>'); + document.write ('</OBJECT>'); + } + } + } else { + document.write(' <embed type="{MIMETYPE}" width="{PLAYER_SIZE}" height="64" AUTOSTART="1" filename="{STATION_STREAM}" src="{STATION_STREAM}" ></embed>'); } </SCRIPT> </TD></TR> ! </TABLE> <iframe width="350" height="1" id="myiframe" name="myiframe" src="{S_UPDATE_RADIO}" scrolling="no" style="width:350px;height:0px;border:0px"></iframe> <!-- IF SHOW_HEADER --> |