<?php include mayi_tpl('inc_header'); ?><link rel="Stylesheet" type="text/css" href="template/css/new.dialog.css" /><link rel="stylesheet" type="text/css" href="template/css/new.my.css" /><link href='../template/global/magic-check.css' rel='stylesheet' type='text/css'><script language="javascript" src="template/jquery.172.min.js"></script><script language="javascript" src="template/javascript.js"></script><script language="javascript">
function check_sub(){
	if (document.form1.gname.value=="") {
		alert('请填写活动标题');
		document.form1.gname.focus();
		return false;
	}
	if (document.form1.gaddress.value=="") {
		alert('请填写活动地点！');
		document.form1.gaddress.focus();
		return false;
	}
	if (document.form1.meetdate.value=="") {
		alert('请选择集合时间！');
		document.form1.meetdate.focus();
		return false;
	}
	if (document.form1.enddate.value=="") {
		alert('请选择结束时间！');
		document.form1.enddate.focus();
		return false;
	}
	if (document.form1.des.value=="") {
		alert('请填写简短说明！');
		document.form1.des.focus();
		return false;
	}
	return true;
}
</script><link rel="stylesheet" href="../include/datepicker/ui.css"><script type="text/javascript" src="template/jquery.172.min.js"></script><script type="text/javascript" src="../include/datepicker/datepicker.js"></script><script language='javascript'>
$(function(){
	$("#meetdate").datepicker();
	$("#enddate").datepicker();
});
</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"><div class='location'><?=$location?></div><div class="content-main"><div class="content-main-inner"><div class="pwrap setting-userinfo"><div class="pbody">
<div class="cleafix pagetab-wrap"><ul class="pagetab">
<li><a href="javascript:;" onClick="window.location.href='?m=avatar'" <?php if($m == 'avatar'){?>class="current"<?php }?>><span>店铺logo</span></a></li>
<li><a href="javascript:;" onClick="window.location.href='?m=shop&ac=base'" <?php if($m == 'base'){?>class="current"<?php }?>><span><?php echo $if_corp != 1 ? '申请开通店铺网站' : '店铺资料'; ?></span></a></li>
<li><a href="javascript:;" onClick="window.location.href='?m=shop&ac=template'" <?php if($ac == 'template'){?>class="current"<?php }?>><span>装修店铺</span></a></li>
<li><a href="javascript:;" onClick="window.location.href='?m=comment'" <?php if($m == 'comment'){?>class="current"<?php }?>><span>店铺点评</span></a></li>
<li><a href="javascript:;" onClick="window.location.href='?m=album'" <?php if($m == 'album'){?>class="current"<?php }?>><span>店铺相册</span></a></li>
<li><a href="javascript:;" onClick="window.location.href='?m=document'"<?php if($m == 'document'){?>class="current"<?php }?>><span>店铺新闻</span></a></li>
<?php if(ifplugin('goods')){?><li><a href="javascript:;" onClick="window.location.href='?m=goods'"<?php if($m == 'goods'){?>class="current"<?php }?>><span>店铺商品</span></a></li><?php }?>
<?php if(ifplugin('group')){?><li><a href="javascript:;" onClick="window.location.href='?m=group'"<?php if($m == 'group'){?>class="current"<?php }?>><span>店铺团购</span></a></li><?php }?>
<?php if(ifplugin('coupon')){?><li><a href="javascript:;" onClick="window.location.href='?m=coupon'"<?php if($m == 'coupon'){?>class="current"<?php }?>><span>店铺优惠券</span></a></li><?php }?>
</ul></div><div class="cleafix pagetab-wrap smallnav"><ul class="pagetab"><li><a href="?m=group&ac=list" ><span>已发起团购</span></a></li><li><a href="?m=group&ac=signin"><span>报名管理</span></a></li><li><a class="current addnew" href="?m=group&ac=detail"><span>发起团购</span></a></li></ul></div><div id="msg_success"></div><div id="msg_error"></div><div id="msg_alert"></div><div style="display:none;"><iframe width=0 height=0 src='' id="iframe_area" name="iframe_area"></iframe><iframe width=0 height=0 src='' id="iframe_street" name="iframe_street"></iframe><form method="post" target="iframe_area" id="form_area"></form></div><form action="?m=group&ac=detail" enctype="multipart/form-data" method="post" name="form1" onSubmit="return check_sub();"><?php if(!empty($id)){?><input name="id" value="<?=$id?>" type="hidden"><input name="picture_old" value="<?=$edit['picture']?>" type="hidden"><input name="pre_picture_old" value="<?=$edit['pre_picture']?>" type="hidden"><?php }?><input name="tid" value="<?=$tid?>" type="hidden"><div class="formgroup"><div class="formrow"><h3 class="label"><label>团购名称<font color="red">*</font></label></h3><div class="form-enter"><input name="gname" type="text" class="text" value="<?=$edit['gname']?>" style="width:300px"></div></div><div class="formrow"><h3 class="label">团购分类<font color="red">*</font></h3><div class="form-enter"><?php echo get_groupclass_select('cate_id',$edit['cate_id']); ?></div></div><div class="formrow"><h3 class="label">所属地区<font color="red">*</font></h3><div class="form-enter"><select name="cityid" class="input"><?php echo get_cityoptions($edit['cityid']?$edit['cityid']:$cityid); ?></select></div></div><div class="formrow"><h3 class="label">活动地点<font color="red">*</font></h3><div class="form-enter"><input name="gaddress" value="<?php echo $edit['gaddress']; ?>" class="text" style="width:300px"></div></div><div class="formrow"><h3 class="label">集合时间<font color="red">*</font></h3><div class="form-enter"><input name="meetdate" id="meetdate" readonly value="<?php echo $edit['meetdate']; ?>" class="text"></div></div><div class="formrow"><h3 class="label">结束时间<font color="red">*</font></h3><div class="form-enter"><input name="enddate" id="enddate" readonly value="<?php echo $edit['enddate']; ?>" class="text"></div></div><?php if($edit[pre_picture]){?><div class="formrow"><h3 class="label">原来的图片</h3><div class="form-enter"><?php
                                                echo "<img src=".$mymps_global[SiteUrl]."".$edit[pre_picture]." style='_margin-top:expression(( 180 - this.height ) / 2);' />\r\n";
                                                ?></div></div><?php }?><div class="formrow"><h3 class="label">&nbsp;</h3><div class="form-enter"><script type="text/javascript">var MagicUploadName = 'group_image';</script><div id="ShowMagicUpload"></div><script type="text/javascript" src="../template/global/magic-upload.js"></script></div></div><div class="formrow"><h3 class="label">简短说明<font color="red">*</font></h3><div class="form-enter"><textarea name="des" class="texttarea" style="width:360px; height:100px"><?=$edit['des']?></textarea></div></div><div class="formrow"><h3 class="label">详细说明<font color="red">*</font></h3><?php echo $acontent; ?></div><div class="formrow formrow-action"><h3 class="label">&nbsp;</h3><span class="minbtn-wrap"><span class="btn"><input type="submit" value="提交<?php echo empty($id) ? '发起' : '保存'; ?>" class="button" name="group_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>