<!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>微信公众平台源码,微信机器人源码,微信自动回复源码 iMicms多用户微信营销系统</title>
<meta http-equiv="MSThemeCompatible" content="Yes" />
<link rel="stylesheet" type="text/css" href="{iMicms::RES}/css/style_2_common.css?BPm" />
<script src="{iMicms::RES}/js/common.js" type="text/javascript"></script>
<link href="{iMicms::RES}/css/style.css" rel="stylesheet" type="text/css" />
 <script src="{iMicms::STATICS}/jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak={iMicms::$apikey}"></script>
 <link rel="stylesheet" type="text/css" href="{iMicms::RES}/css/cymain.css" />
 <script src="/tpl/static/artDialog/jquery.artDialog.js?skin=default"></script>
<script src="/tpl/static/artDialog/plugins/iframeTools.js"></script>



<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>-->
<script type="text/javascript" src="/tpl/User/default/common/js/select/js/jquery.js"></script>
<script type="text/javascript" src="/tpl/static/audioplayer/inc/jquery.jplayer.min.js"></script>
    <script type="text/javascript" src="/tpl/static/audioplayer/inc/jquery.mb.miniPlayer.js"></script>
    <link rel="stylesheet" type="text/css" href="/tpl/static/audioplayer/css/miniplayer.css" title="style" media="screen"/>
    <script type="text/javascript">
        $(function () {

            $(".audio").mb_miniPlayer({
                width: 200,
                inLine: false,
                onEnd: playNext
            });

            function playNext(player) {
                var players = $(".audio");
                document.playerIDX = player.idx + 1 <= players.length - 1 ? player.idx + 1 : 0;
                players.eq(document.playerIDX).mb_miniPlayer_play();
            }
			

			
			
        });
		
    </script>

</head>
<body style="background:#fff">
<script>
function changeFolder(v){
	window.location.href="?g=User&m=Attachment&a=index&type={iMicms:$type}&folder="+v;
}
function changeColor(v){
	if(v != 'all'){
		window.location.href="?g=User&m=Attachment&a=index&type={iMicms:$type}&folder={iMicms:$_GET['folder']|default='canyin'}&color="+v;
	}else{
		window.location.href="?g=User&m=Attachment&a=index&type={iMicms:$type}&folder={iMicms:$_GET['folder']|default='canyin'}";
	}
}
</script>
<!--tab start-->
<div class="tab">
<ul>
<li class="<if condition="$type eq 'my'">current</if> tabli" id="tab0"><a href="{iMicms::U('Attachment/my',array('type'=>'my'))}">我的素材</a></li>

</ul>
</div>
<!--tab end-->
<div style="margin:10px 20px;">

<div>
<?php
if ($type!='my'){
?>

<?php
}else{
?>
<table class="ListProduct" border="0" cellSpacing="0" cellPadding="0" width="100%">
<thead>
<tr>
<th>文件</th>
<th>时间</th>
<th>选择</th>
</tr>
</thead>
<volist name="list" id="item">
<tr><td>
<?php
$classStr="audio {skin:'blue'}";
if (strpos($item['url'],'.mp3')){
	echo '<a style="width:220px;float:left" class="'.$classStr.'" href="'.$item['url'].'">'.$item['name'].'</a>';
}else {
	echo '<img src="'.$item['url'].'" width="120" />';
}
?>
</td><td>{iMicms:$item.time|date='Y-m-d',###}</td><td>&nbsp;&nbsp;<a href="###" onclick="returnHomepage('{iMicms:$item.url}')">选中</a>&nbsp;<a href="{iMicms::U('Attachment/delete',array('id'=>$item['id']))}">删除</a></td></tr>
</volist>
</table>
<div class="footactions" style="padding-left:10px">
  <div class="pages">{iMicms:$page}</div>
</div>
<?php
}
?>

</div>
</div>
<div style="clear:both;height:30px;"></div>

<script>
var domid=art.dialog.data('domid');
// 返回数据到主页面
function returnHomepage(url){
	var origin = artDialog.open.origin;
	var dom = origin.document.getElementById(domid);
	var domsrcid=domid+'_src';

	if(origin.document.getElementById(domsrcid)){
	origin.document.getElementById(domsrcid).src=url;
	}
	
	dom.value=url;
	setTimeout("art.dialog.close()", 100 )
}
</script>

</body>
</html>