goods_edit.tpl.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php include mymps_tpl('inc_head');?>
  2. <script language="javascript" src="js/vbm.js"></script>
  3. <script language="javascript">
  4. function check_sub(){
  5. if (document.form1.goodsname.value=="") {
  6. alert('请填写商品名称');
  7. document.form1.goodsname.focus();
  8. return false;
  9. }
  10. if (document.form1.userid.value=="") {
  11. alert('请填写发起商品的会员用户名');
  12. document.form1.userid.focus();
  13. return false;
  14. }
  15. if (document.form1.content.value=="") {
  16. alert('请填写商品详细介绍!');
  17. document.form1.content.focus();
  18. return false;
  19. }
  20. return true;
  21. }
  22. </script>
  23. <style>
  24. .vbm tr{ background:#ffffff}
  25. .altbg1{ background-color:#f1f5f8}
  26. </style>
  27. <form name="form1" action="?part=edit&id=<?=$id?>" method="post" enctype="multipart/form-data" onSubmit="return check_sub();">
  28. <input name="pre_picture" value="<?=$edit['pre_picture']?>" type="hidden">
  29. <input name="picture" value="<?=$edit['picture']?>" type="hidden">
  30. <div id="<?=MPS_SOFTNAME?>">
  31. <table width="100%" cellspacing="0" cellpadding="0" class="vbm">
  32. <tr class="firstr">
  33. <td colspan="2">基本信息</td>
  34. </tr>
  35. <tr>
  36. <td class="altbg1">商品名称:<font color="red">*</font></td>
  37. <td>
  38. <input type="text" name="goodsname" value="<?=$edit['goodsname']?>" class="text" />
  39. </td>
  40. </tr>
  41. <tr>
  42. <td class="altbg1" width="15%">供货商家用户名:<font color="red">*</font></td>
  43. <td width="75%">
  44. <input type="text" name="userid" id="userid" value="<?=$edit['userid']?>" class="text" style="background-color:#eee"/> <font color=red>非必要,请勿修改</font>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td class="altbg1">市场价格:</td>
  49. <td>
  50. <input name="oldprice" value="<?=$edit['oldprice']?>" type="text" class="text" style="width:50px"/> <?php echo $moneytype; ?>
  51. </td>
  52. </tr>
  53. <tr>
  54. <td class="altbg1">优惠价格:</td>
  55. <td>
  56. <input name="nowprice" value="<?=$edit['nowprice']?>" type="text" class="text" style="width:50px"/> <?php echo $moneytype; ?>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td class="altbg1">商品分类:<font color="red">*</font></td>
  61. <td>
  62. <select name="catid">
  63. <option value="">==选择商品所属的分类==</option>
  64. <?=goods_cat_list(0,$edit['catid'])?>
  65. </select>
  66. </td>
  67. </tr>
  68. <tr class="firstr">
  69. <td colspan="2">预览图片</td>
  70. </tr>
  71. <tr>
  72. <td class="altbg1">商品图片:</td>
  73. <td>
  74. <?php
  75. echo "<img src=".$mymps_global[SiteUrl]."".$edit[pre_picture]." style='_margin-top:expression(( 180 - this.height ) / 2);' />\r\n";
  76. ?>
  77. </td>
  78. </tr>
  79. <tr>
  80. <td class="altbg1">更新图片:</td>
  81. <td>
  82. <input type="file" name="goods_image" size="30" id="litpic" onChange="SeePic(document.picview,document.form1.litpic);">
  83. </td>
  84. </tr>
  85. <tr>
  86. <td class="altbg1">预览:</td>
  87. <td>
  88. <img src="template/images/mpview.gif" width="150" id="picview" name="picview" />
  89. </td>
  90. </tr>
  91. <tr class="firstr">
  92. <td colspan="2">附加信息</td>
  93. </tr>
  94. <tr>
  95. <td class="altbg1">赠送礼品:</td>
  96. <td>
  97. <input name="gift" value="<?php if($edit['gift'] == ''){echo '本商品没有赠送礼品';}else{echo $edit['gift'];}?>" class="text">
  98. </td>
  99. </tr>
  100. <tr>
  101. <td class="altbg1">货源情况:</td>
  102. <td>
  103. <input name="huoyuan" type="radio" class="radio" value="1" <?php if($edit['huoyuan'] == 1 || !$id) echo 'checked';?>>有货
  104. <input name="huoyuan" type="radio" class="radio" value="2" <?php if($edit['huoyuan'] != 1) echo 'checked';?>>缺货
  105. </td>
  106. </tr>
  107. <tr>
  108. <td class="altbg1">商品属性:</td>
  109. <td>
  110. <input name="rushi" type="checkbox" class="radio" value="1" <?php if($edit['rushi'] == 1 || !$id) echo 'checked';?>>如实描述
  111. <input name="tuihuan" type="checkbox" class="radio" value="1" <?php if($edit['tuihuan'] == 1 || !$id) echo 'checked';?>>七天退换
  112. <input name="jiayi" type="checkbox" class="radio" value="1" <?php if($edit['jiayi'] == 1 || !$id) echo 'checked';?>>假一赔三
  113. <input name="weixiu" type="checkbox" class="radio" value="1" <?php if($edit['weixiu'] == 1) echo 'checked';?>>30天维修
  114. <input name="fahuo" type="checkbox" class="radio" value="1" <?php if($edit['fahuo'] == 1 || !$id) echo 'checked';?>>闪电发货
  115. <input name="zhengpin" type="checkbox" class="radio" value="1" <?php if($edit['zhengpin'] == 1 || !$id) echo 'checked';?>>正品保障
  116. </td>
  117. </tr>
  118. <tr>
  119. <td class="altbg1">商品状态:</td>
  120. <td>
  121. <input name="onsale" type="checkbox" class="radio" value="1" <?php if($edit['onsale'] == 1) echo 'checked';?>>上架
  122. <input name="tuijian" type="checkbox" class="radio" value="1" <?php if($edit['tuijian'] == 1) echo 'checked';?>>推荐
  123. <input name="remai" type="checkbox" class="radio" value="1" <?php if($edit['remai'] == 1) echo 'checked';?>>热卖
  124. <input name="cuxiao" type="checkbox" class="radio" value="1" <?php if($edit['cuxiao'] == 1) echo 'checked';?>>促销
  125. <input name="baozhang" type="checkbox" class="radio" value="1" <?php if($edit['baozhang'] == 1 || !$id) echo 'checked';?>>加入消费者保障计划
  126. </td>
  127. </tr>
  128. </table>
  129. <div style="margin-top:3px;"><?php echo $acontent; ?></div>
  130. </div>
  131. <div style="padding-left:18%; padding-top:10px; padding-bottom:10px;">
  132. <input type="submit" name="goods_submit" value="提 交" class="mymps large" style="margin-right:15px"/>
  133. <input type="button" onclick="history.back();" value="返回" class="mymps large" />
  134. </div>
  135. </form>
  136. <?php mymps_admin_tpl_global_foot();?>