group_detail.tpl.php 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <?php include mymps_tpl('inc_header'); ?>
  2. <link rel="Stylesheet" type="text/css" href="template/css/new.dialog.css" />
  3. <link rel="stylesheet" type="text/css" href="template/css/new.my.css" />
  4. <script language="javascript" src="template/javascript.js"></script>
  5. <script language="javascript">
  6. function check_sub(){
  7. if (document.form1.gname.value=="") {
  8. alert('请填写活动标题');
  9. document.form1.gname.focus();
  10. return false;
  11. }
  12. if (document.form1.gaddress.value=="") {
  13. alert('请填写活动地点!');
  14. document.form1.gaddress.focus();
  15. return false;
  16. }
  17. if (document.form1.meetdate.value=="") {
  18. alert('请选择集合时间!');
  19. document.form1.meetdate.focus();
  20. return false;
  21. }
  22. if (document.form1.enddate.value=="") {
  23. alert('请选择结束时间!');
  24. document.form1.enddate.focus();
  25. return false;
  26. }
  27. if (document.form1.des.value=="") {
  28. alert('请填写简短说明!');
  29. document.form1.des.focus();
  30. return false;
  31. }
  32. return true;
  33. }
  34. </script>
  35. <link rel="stylesheet" href="../include/datepicker/ui.css">
  36. <script type="text/javascript" src="template/jquery.172.min.js"></script>
  37. <script type="text/javascript" src="../include/datepicker/datepicker.js"></script>
  38. <script language='javascript'>
  39. $(function(){
  40. $("#meetdate").datepicker();
  41. $("#enddate").datepicker();
  42. });
  43. </script>
  44. </head>
  45. <body class="<?php echo $mymps_global['cfg_tpl_dir']; ?>">
  46. <div class="container">
  47. <?php include mymps_tpl('inc_head'); ?>
  48. <div id="main" class="main section-setting">
  49. <div class="clearfix main-inner">
  50. <div class="content">
  51. <div class="clearfix content-inner">
  52. <div class="content-main">
  53. <div class="content-main-inner">
  54. <div class="pwrap setting-userinfo">
  55. <div class="phead"><div class="phead-inner"><div class="phead-inner">
  56. <h3 class="ptitle"><span><?php echo $id ? '修改' : '发起'?>团购</span></h3>
  57. <p class="pextra"><a href="?m=group&type=corp"><span>&laquo; 返回我发起的团购</span></a></p>
  58. </div></div></div>
  59. <div class="pbody">
  60. <div id="msg_success"></div>
  61. <div id="msg_error"></div>
  62. <div id="msg_alert"></div>
  63. <div style="display:none;">
  64. <iframe width=0 height=0 src='' id="iframe_area" name="iframe_area"></iframe>
  65. <iframe width=0 height=0 src='' id="iframe_street" name="iframe_street"></iframe>
  66. <form method="post" target="iframe_area" id="form_area"></form>
  67. </div>
  68. <form action="?m=group&ac=detail&type=corp" enctype="multipart/form-data" method="post" name="form1" onSubmit="return check_sub();">
  69. <?php if(!empty($id)){?>
  70. <input name="id" value="<?=$id?>" type="hidden">
  71. <input name="picture_old" value="<?=$edit['picture']?>" type="hidden">
  72. <input name="pre_picture_old" value="<?=$edit['pre_picture']?>" type="hidden">
  73. <?php }?>
  74. <input name="tid" value="<?=$tid?>" type="hidden">
  75. <div class="formgroup">
  76. <div class="formrow">
  77. <h3 class="label"><label>团购名称<font color="red">*</font></label></h3>
  78. <div class="form-enter">
  79. <input name="gname" type="text" class="text" value="<?=$edit['gname']?>" style="width:300px">
  80. </div>
  81. </div>
  82. <div class="formrow">
  83. <h3 class="label">团购分类<font color="red">*</font></h3>
  84. <div class="form-enter">
  85. <?php echo get_groupclass_select('cate_id',$edit['cate_id']); ?>
  86. </div>
  87. </div>
  88. <div class="formrow">
  89. <h3 class="label">所属地区<font color="red">*</font></h3>
  90. <div class="form-enter">
  91. <select name="areaid" class="input">
  92. <?=cat_list('area',0,$edit['areaid'])?>
  93. </select>
  94. </div>
  95. </div>
  96. <div class="formrow">
  97. <h3 class="label">活动地点<font color="red">*</font></h3>
  98. <div class="form-enter">
  99. <input name="gaddress" value="<?php echo $edit['gaddress']; ?>" class="text" style="width:300px">
  100. </div>
  101. </div>
  102. <div class="formrow">
  103. <h3 class="label">集合时间<font color="red">*</font></h3>
  104. <div class="form-enter">
  105. <input name="meetdate" id="meetdate" readonly value="<?php echo $edit['meetdate']; ?>" class="text">
  106. </div>
  107. </div>
  108. <div class="formrow">
  109. <h3 class="label">结束时间<font color="red">*</font></h3>
  110. <div class="form-enter">
  111. <input name="enddate" id="enddate" readonly value="<?php echo $edit['enddate']; ?>" class="text">
  112. </div>
  113. </div>
  114. <?php if($edit[pre_picture]){?>
  115. <div class="formrow">
  116. <h3 class="label">原来的图片</h3>
  117. <div class="form-enter">
  118. <?php
  119. echo "<img src=".$mymps_global[SiteUrl]."".$edit[pre_picture]." style='_margin-top:expression(( 180 - this.height ) / 2);' />\r\n";
  120. ?>
  121. </div>
  122. </div>
  123. <?php }?>
  124. <div class="formrow">
  125. <h3 class="label"><?php echo $id ? '更新' : '上传'; ?>图片</h3>
  126. <div class="form-enter">
  127. <input type="file" name="group_image" size="30" id="litpic">
  128. </div>
  129. </div>
  130. <div class="formrow">
  131. <h3 class="label">简短说明<font color="red">*</font></h3>
  132. <div class="form-enter">
  133. <textarea name="des" class="texttarea" style="width:360px; height:100px"><?=$edit['des']?></textarea>
  134. </div>
  135. </div>
  136. <div class="formrow">
  137. <h3 class="label">详细说明<font color="red">*</font></h3>
  138. <?php echo $acontent; ?>
  139. </div>
  140. <div class="formrow formrow-action">
  141. <span class="minbtn-wrap"><span class="btn"><input type="submit" value="提交<?php echo empty($id) ? '发起' : '保存'; ?>" class="button" name="group_submit" /></span></span>
  142. </div>
  143. </div>
  144. </form>
  145. </div>
  146. <div class="pfoot"><p><b>-</b></p></div>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. </div>
  152. <?php include mymps_tpl('inc_sidebar'); ?>
  153. </div>
  154. </div>
  155. <?php include mymps_tpl('inc_foot'); ?>
  156. </div>
  157. </body>
  158. </html>