$def with(type,connectState)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>music</title>
		<link href="/static/style/music.css" type="text/css" rel="stylesheet" />
		<script src="/static/js/jquery-1.7.1.min.js" type="text/javascript"></script>
		<script type="text/javascript" src="/static/js/jquery.artDialog.source.js?skin=aero"></script>
		<script src="/static/js/music.js" type="text/javascript"></script>
		<script src="/static/js/drop_down_menu.js" type="text/javascript"></script>
		<script src="/static/js/plantform.js" type="text/javascript"></script>
		<script type="text/javascript">
			var setRingFlag = false;
			//设为铃声是否可以操作 false:否，true:是
			var listFlag = false;
			//播放列表和删除是否可以操�?false:否，true:是
			var delFlag = false;
			//播放列表和删除是否可以操�?false:否，true:是
			var checkedLen = 0;
			var loadType = "$type";
			var connectState = "$connectState"

			var WEBSMS_DEL_SMS = '$trans("WEBSMS_DEL_SMS")';
			var WEBSMS_DEL_SMS_OR_NOT = '$trans("WEBSMS_DEL_SMS_OR_NOT")';
			var WebMusic_FileTypeNotCorrect = '$trans("WebMusic_FileTypeNotCorrect")';
			var WebMusic_FileTypeNotCorrect2 = '$trans("WebMusic_FileTypeNotCorrect2")';
			var WebMusic_FileLoadFailed = '$trans("WebMusic_FileLoadFailed")';
			var PB_BUTTON_OK = '$trans("PB_BUTTON_OK")';
			var PBMainView_WEB_CANCEL = '$trans("PBMainView_WEB_CANCEL")';

			$$(function() {
				$$(":checkbox").each(function() {
					$$(this)[0].checked = false;
				})
				if (connectState == 'True')
					$$('.operateUl li[rel=needAdd]').removeClass('disabled');
				$$('.playListCustomTitle').hide()
				$$('.playListSystemTitle').hide()
				$$('div.serDiv img').click(function() {
					var data = $$('#musicSer').val()
					if(data != '')
					{
						$$('#musicSer').val('');
						$$("#musicSer").trigger('keyup');
					}
				})
			})
			
			$$(function KeyDownFunction(){
				if (typeof window.event != 'undefined'){  
					document.onkeydown = function(){  
						var type = event.srcElement.type;  
						var code = event.keyCode;  
						return ((code != 8 && code != 13) ||  
								(type == 'text' && code != 13 ) ||  
								(type == 'textarea') ||  
								(type == 'submit' && code == 13))  
						}  
					}
				else{
					document.onkeypress = function(e){  
						var type = e.target.localName.toLowerCase();  
						var code = e.keyCode;  
						if ((code != 8 && code != 13) ||  
							(type == 'input' && code != 13 ) ||  
							(type == 'textarea') ||  
							(type == 'submit' && code == 13)) {  
							return true;  
						}
						else{  
							return false ;  
						}  
					}  
				} 
			})

		</script>
	</head>
	<body style="overflow:hidden" oncontextmenu="return false" onselectstart="return false" onkeydown="KeyDownFunction()">
		<div id="musicListWrap">
			<div class="operateBar">
				<div class = "ckDefault">
					<input id="musicCheck" type="checkbox" class="allCheck" />
					<span class="showAllCheck"></span>
				</div>
				<ul id="sddm" class="operateUl">
					<li class="disabled" rel ="needAdd" id="liMenu">
						<a id="addMusic"><em class="addIcon"></em>$trans("WebMusic_ADDMusic")</a>
					</li>
					<li class="disabled" rel="needDel" id="liDelete">
						<a id="delete">$trans("WebMusic_DEL_MUSIC")<em class=""></em></a>
					</li>
					<li class="disabled" rel="needDel" id="liExpo">
						<a id="expo">$trans("WebMusic_DEL_Export")<em class=""></em></a>
					</li>
					<li class="disabled" rel="needRing" id="liMenu" id="liMenu">
						<a id="liSubMenu" href="#" onmouseover="mopen('ringList2',setRingFlag)" onmouseout="mclosetime()">$trans("MusicView_TopLeftPanel_SetAlarm")<em class="dropDownIcon"></em></a>
						<div id="ringList2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
							<a href="#" rel="1" ringType="IsRingtone">$trans("WebMusic_Set_Ringtone")</a>
							<a href="#" rel="2" ringType="IsNotification">$trans("WebMusic_Set_Notification")</a>
							<a href="#" rel="4" ringType="IsAlarm">$trans("WebMusic_Set_Alarm")</a>
						</div>
					</li>
				</ul>
				<ul class="operaterefresh">
					<li class="disabled" id="refresh" rel="addFlag"></li>
				</ul>
				<div class="serDiv">
					<input type="text" class="musicSer" id="musicSer" name="musicSer"/>
					<img src="/static/imgs/clear__.png"/>
				</div>
			</div>
			<table width="100%" class="playListTable" border="0" cellpadding="0" cellspacing="0">
				<thead>
					<tr class="tit">
						<th width="5%"></td><th width="10%"></th><th width="30%">$trans("WebMusic_List_Title")</td> <th width="5%"></th><th width="10%">$trans("WebMusic_List_Time")</td> <th width="15%">$trans("WebMusic_List_Artist")</td> <th width="25%">$trans("WebMusic_List_Album")</td>
					</tr>
				</thead>
			</table>
			<div class="wrapAuto">
				<!-- Classification 1 start  -->
				<table width="100%" border="0" cellpadding="0" cellspacing="0" id="music">
					<tbody>
						<tr>
							<td class='playListCustomTitle'>
							<table width="100%" class="classification" border="0" cellpadding="0" cellspacing="0">
								<tbody>
									<tr>
										<td>
										<div class="selectAll subClasses" style="padding-left: 3px;">
											<a class=""></a>
											<input type="checkbox" />
										</div>&nbsp;$trans("WebMusic_SelfDef") </td>
									</tr>
								</tbody>
							</table></td>
						</tr>
						<tr>
							<td class='playListCustomParent' id='listParent' style="padding-left: 3px;"></td>
						</tr>
					</tbody>
				</table>
				<!-- Classification 1 end  -->

				<!-- Classification 2 start  -->
				<table width="100%" border="0" cellpadding="0" cellspacing="0" id="system">
					<tbody>
						<tr>
							<td class='playListSystemTitle'>
							<table class="classification" width="100%" border="0" cellpadding="0" cellspacing="0">
								<tbody>
									<tr>
										<td>
										<div class="selectAll subClasses" style="padding-left: 3px;">
											<a class=""></a>
											<input type="checkbox" />
										</div>&nbsp;$trans("WebMusic_SysDef") </td>
									</tr>
								</tbody>
							</table></td>
						</tr>
						<tr>
							<td class='playListSystemParent' id='listParent' style="padding-left: 3px;"></td>
						</tr>
					</tbody>
				</table>
			</div>
			<!-- Classification 2 end  -->
		</div>

		<input type="hidden" id="HP" index="" state=0 />
		<embed id="wmplayer" type="application/x-mplayer2" name="wmplayer" width=0 height=0 volume=100 URL="" autoStart="false">
		<script language="javascript">
			var timer;
			//var that;
			$$('#wmplayer').uiMode = "invisible";
		</script>
		
		

	</body>
</html>
