<?php include mayi_tpl('inc_header');?><link rel="stylesheet" type="text/css" href="template/css/new.exchange.css"/><link href='../template/global/magic-check.css' rel='stylesheet' type='text/css'><script language="javascript" src="template/javascript.js"></script><script language="javascript" src="template/jquery.172.min.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'" <?php if($m == 'album'){?>class="current"<?php }?>><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"><span>店铺相册</span></a></li><li><a class="addnew <?php if($ac == 'upload') echo 'current'; ?>" href="?m=<?=$m?>&storeId=<?=$storeId?>&subType=album&ac=upload" ><span>上传新相片</span></a></li><?php if($ac == 'edit'){?><li><a href="?m=<?=$m?>&storeId=<?=$storeId?>&subType=album&ac=edit&id=<?=$id?>" class="current"><span>编辑相片</span></a></li><?php }?></ul></div>
<div id="msg_success"></div><div id="msg_error"></div><div id="msg_alert"></div><form method="post" name="form1" action="?m=<?=$m?>&storeId=<?=$storeId?>&subType=album&ac=<?=$ac?>" enctype="multipart/form-data" <?php if($ac == 'upload'){?>onSubmit="return AlbumSubmit();"<?php }?>><?php if($ac == 'edit'){?><input name="id" value="<?=$edit['id']?>" type="hidden"><input name="path" value="<?=$edit['path']?>" type="hidden"><input name="prepath" value="<?=$edit['prepath']?>" type="hidden"><?php }?>
<div class="alertmsg">请勿上传带电话、微信等联系方式的图片，多次违规者将被永久封号！</div>
<div class="formgroup section-setting"><div class="formrow"><h3 class="label"></h3><div class="form-enter"><input name="title" placeholder="相片标题" type="text" class="text" value="<?=$edit['title']?>"/></div></div><div class="clear10"></div><?php if($ac == 'edit' && $edit['prepath'] != ''){?><script type="text/javascript">var oldimg = '<?=$edit['prepath']?>';</script><?php }?><div class="formrow"><div class="form-enter"><script type="text/javascript">var MagicUploadName='album_up';</script><div id="ShowMagicUpload"></div><div class="clear10"></div><div class="magic-notice"> 请确保图片清晰。图片格式为 jpg,gif,png ，不超过 <?=$mymps_global[cfg_upimg_size]?>KB 。<br/> 在上传过程中，如果长时间停止，请取消重传；或将图片缩小后重传。 </div><script type="text/javascript" src="../template/global/magic-upload.js"></script></div></div><div class="clear10"></div><div class="formrow formrow-action"><span class="minbtn-wrap"><span class="btn"><input type="submit" value="<?php echo $ac == 'edit' ? '提交修改' : '上 传'; ?>" class="button" name="album_submit" /></span></span></div></div></form></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>