<?php include mayi_tpl('inc_header');?><link rel="stylesheet" type="text/css" href="template/css/new.exchange.css"/><script language="javascript" src="template/javascript.js"></script></head><body class="blue"><div class="container"><div id="main" class="main section-setting"><div class="clearfix main-inner"><div class="content"><div class="clearfix content-inner"><?php if($m!='subStore'){?><div class='location'><?=$location?></div><?php }?><div class="content-main"><div class="content-main-inner"><div class="pwrap"><div class="pbody">
<?php if($m!='subStore'){?>
<div class="cleafix pagetab-wrap">
<ul class="pagetab">
<li><a href="javascript:;" onClick="window.location.href='?m=<?=$m?>&storeId=<?=$storeId?>&subType=album'" class="current"><span>店铺相册</span></a></li>
</ul>
</div>
<?php }?>
<div class="cleafix pagetab-wrap smallnav"><ul class="pagetab"><li><a href="?m=<?=$m?>&storeId=<?=$storeId?>&subType=album&ac=list" class="current"><span>店铺相册</span></a></li><li><a class="addnew" href="?m=<?=$m?>&subType=album&storeId=<?=$storeId?>&ac=upload"><span>上传新相片</span></a></li></ul></div>
<div id="msg_success"></div><div id="msg_error"></div><div id="msg_alert"></div><div class="datatablewrap"><?php if($rows_num == 0){?><div class="nodata">您还没有上传相片，<a href="?m=<?=$m?>&storeId=<?=$storeId?>&subType=album&ac=upload">请点此上传 &raquo;</a><br><br><br></div><?php } else {?><div class="albumlist"><ul><?php foreach($album AS $album){?><li class="li"><a href="?m=<?=$m?>&subType=album&storeId=<?=$storeId?>&ac=edit&id=<?=$album['id']?>" class="box"><img src="<?php echo (!strstr($album['prepath'],'http')?$mymps_global['SiteUrl']:'').$album['prepath']?>" border="0"></a><h4 align="center"><font title="<?=$album['title']?>"><?=cutstr($album['title'],16)?></font><br/><a href="?m=<?=$m?>&subType=album&storeId=<?=$storeId?>&ac=edit&id=<?=$album['id']?>" class="editme" title="修改"></a><a href="?m=<?=$m?>&subType=album&storeId=<?=$storeId?>&ac=delete&id=<?=$album['id']?>" onClick="if(!confirm('您确定要删除这张图片吗？一旦删除就不能恢复！'))return false;" class="delme fr" title="删除">&nbsp;</a></h4></li><?php }?></ul></div><div class="clearfix datacontrol"><div class="pagination"><?php echo page2(); ?></div></div><?php }?></div></div><div class="pfoot"><p><b>-</b></p></div></div></div></div></div></div></div></div><?php include mayi_tpl('inc_foot');?></div></body></html>