<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array(); 
$fields = array();
?><html>
<head>
<title>文档管理 - 会员中心 - <?php echo $cfg_webname; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script type="text/javascript">
  function viewArc(aid){
	  window.open("<?php echo $GLOBALS['cfg_phpurl']; ?>/view.php?aid="+aid);
  }
  function editArc(aid,channelid){
	  top.location = "archives_do.php?dopost=edit&channelid="+channelid+"&aid="+aid;
  }
    function leigo(cid,channelid,did){
	  this.location = "content_list.php?channelid="+channelid+"&mtypesid="+cid+"&zzzdisplayz="+did;
  }
  function delArc(aid){
	  if(window.confirm('你确定要删除该歌曲吗?')) location="archives_do.php?aid="+aid+"&dopost=delArc";
  }
</script>
<script type="text/javascript" language="javascript">
function submitYouFrom(path){
addeditformm.action=path;
addeditformm.submit();
}
</script>
</head>
<link href="/templets/default/diary/css.css" rel="stylesheet" type="text/css">
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" style="background-color=transparent">
<table width="284" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="370" width="284" align="right">
      <table border="0" width="278"  cellspacing="0" cellpadding="0" height="370">
        <tr> 
          <td height="19">　</td>
        </tr>
        <tr> 
          <td valign="top"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="table10">
                            <tr> 
<td align="center" style="font-size: 9pt; font-family: Verdana; color: #000000; letter-spacing: 1pt; word-break: break-all" background="/templets/default/diary/img/bg_line.gif" valign="top">

<table width="272" border="0" cellpadding="0" cellspacing="0" height="100%">
                                  <tr bordercolor="DDE7AB">
                                    <td width="2"></td>
                                    <td width="2"></td>
                                    <td width="149"><font color="#51300C"> 歌名</font></td>
                                    <td width="100"><font color="#00ACF0">歌手</font></td>
                                    <td width="10">                                      
                                      <font color="#800000">管</font>                                      
                                    </td>
                                    <td width="10"> 
                                         <font color="#800080">理</font>
                                    </td>
                                    <td width="1"> <font color="#1242CC"> <img border="0" src="/templets/default/diary/img/20-1.gif" width="1" height="20"></font></td>
                                  </tr>
<?php
$atts = array();
$atts['tagname'] = 'datalist';
$blockValue = $this->refObj->GetArcList($atts,$this->refObj,$fields); 
if(is_array($blockValue)){
foreach( $blockValue as $key=>$fields )
{
?>
<tr bordercolor="DDE7AB">
<td></td>
<td></td>
<td><font color="#51300C"> <?php echo mb_substr($fields['title'],0,15,'utf-8'); ?></font></td>
<td><font color="#00ACF0"><?php echo $fields['writer']; ?></font></td>
<td><span style="cursor:pointer;color:#800000" onclick="addeditform.style.display='block';document.getElementById('title').value = '<?php echo $fields['title']; ?>';document.getElementById('writer').value = '<?php echo $fields['writer']; ?>';document.getElementById('description').value = '<?php echo $fields['description']; ?>';document.getElementById('aid').value = '<?php echo $fields['id']; ?>';document.getElementById('formurl').value = 'archives_edit.php';">修</span></td>
<td><a href="javascript:delArc(<?php echo $fields['id']?>);"><font color="#51300C">删</font></a>
</td>
<td> <font color="#1242CC"> <img border="0" src="/templets/default/diary/img/20-1.gif" width="1" height="20"></font></td>
</tr>
<?php
}
}?>
</table>

<table width="98%" border="0" cellspacing="0" cellpadding="0" id="table13">
<tr> 
<td align="center"><span style="cursor:pointer;color:purple" onclick="addeditform.style.display='block';">增加歌曲</span> &nbsp;&nbsp;<?php
$atts = array();
$atts['tagname'] = 'pagelist';
$atts['listsize'] = '5';
 echo $this->refObj->GetPageList($atts,$this->refObj,$fields); 
?>

</td>
</tr>
</table>
                                
</td>
</tr>
</table>
            
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<div id="addeditform" name="addeditform" style="display:none;background:#ddd;z-index:300;position:absolute;left:0px;top:50px;padding:10px;">   
<form language="javascript"  name="addeditformm" method="post">
<input type="hidden" id="dopost" name="dopost" value="save" />
<input type="hidden" name="channelid" value="<?php echo $channelid; ?>" />
<input type="hidden" name="aid" id="aid" value="" />
<input type="hidden" name="formurl" id="formurl" value="archives_add.php" />
              <table border="0" width="95%" cellspacing="0" cellpadding="0" align="center">
                <tr> 
                  <td width="71"> 
                    <p align="center"><b><font color="#FF0000">音乐增加：</font></b>
                  </td>
                  <td width="188" height="15"><font color="#FF0000"> 只能加mid、mp3与WMA的3种格式.</font></td>
                </tr>
                <tr> 
                  <td width="71"> 
                    <p align="right"><b><font color="#00ACF0">歌曲名称：</font></b>
                  </td>
                  <td width="188" height="15"> 
                    <input name="title" type="text" class="input01" id="title" size="20">
                  </td>
                </tr>
                <tr> 
                  <td width="71"> 
                    <p align="right"><b><font color="#00ACF0">歌手姓名：</font></b>
                  </td>
                  <td width="188" height="15"> 
                    <input name="writer" type="text" class="input01" id="writer" size="20">
                  </td>
                </tr>
                <tr> 
                  <td width="71"> 
                    <p align="right"><b><font color="#00ACF0">歌曲地址：</font></b>
                  </td>
                  <td width="188" height="15"> 
                    <input name="description" type="text" class="input01" id="description" size="30">
<input name="tags" type="hidden" id="tags" size="30" class="intxt" style="width:400px;"/>
<input type='hidden' name='typeid' value='6000' />
<input type='hidden' name='mtypesid' value='0' /></td>
</tr>
                <tr> 
                  <td width="71"> 
                    <input name="userid" type="hidden" id="userid" value="1757">
                  </td>
                  <td width="188" height="15"> 
<input name="Submit" type="button" class="button1" value=" 提 交 " onclick="submitYouFrom(formurl.value);">&nbsp;<input name="Submit1" type="reset" class="button1" value=" 重 设 ">&nbsp;<input onclick="addeditform.style.display='none';" name="Submit1" type="reset" class="button1" value=" 取 消 ">
                  </td>
                </tr>
                <tr> 
                  <td colspan="2" background="/templets/default/diary/linebg2.gif" height="1"><img border="0" src="/templets/default/diary/linebg2.gif" width="4" height="1"></td>
                </tr>
              </table>
</form></div>
</body>
</html>