|
@@ -21,13 +21,49 @@
|
|
|
<input type="hidden" name="type_id" value="<?php echo $output['id'];?>"/>
|
|
|
<table class="table tb-type2">
|
|
|
<tbody>
|
|
|
+
|
|
|
+ <tr class="noborder">
|
|
|
+ <td class="required" colspan="2"><label class="validation hb_name" for="type_name">红包名称:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="noborder">
|
|
|
+ <td width="200"><input type="text" id="type_name" name="type_name" class="hb_input" value="<?php echo isset($output['data'])? $output['data']['type_name'] : '';?>"></td>
|
|
|
+ <td class=" vatop tips"></td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr class="noborder">
|
|
|
+ <td class="required" colspan="2"><label class="validation hb_name" for="pass_name">发送者:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td><input type="text" id="pass_name" name="pass_name" class="hb_input" value="<?php echo isset($output['data'])? $output['data'][''] : '';?>"></td>
|
|
|
+ <td class="vatop tips"></td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr class="noborder">
|
|
|
+ <td><label class="hb_name" for="pass_msg">祝福语:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td><input type="text" id="pass_msg" name="pass_msg" class="hb_input" value="<?php echo isset($output['data'])? $output['data']['type_name'] : '';?>"></td>
|
|
|
+ <td class="vatop tips"></td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
<tr class="noborder">
|
|
|
- <td class="required" colspan="2"><label class="validation" for="type_name">红包名称</label></td>
|
|
|
+ <td class="required" colspan="2"><label class="validation hb_name" for="h5">H5链接:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td><input type="text" id="h5" name="h5" class="hb_input" value="<?php echo isset($output['data'])? $output['data']['type_name'] : '';?>"></td>
|
|
|
+ <td class="vatop tips"></td>
|
|
|
</tr>
|
|
|
+
|
|
|
+
|
|
|
<tr class="noborder">
|
|
|
- <td class="vatop rowform"><input type="text" id="type_name" name="type_name" class="txt" value="<?php echo isset($output['data'])? $output['data']['type_name'] : '';?>"></td>
|
|
|
+ <td class="required" colspan="2"><label class="validation hb_name" for="h5_url">链接参数:</label></td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td><input type="text" id="h5_url" name="h5_url" class="hb_input" value="<?php echo isset($output['data'])? $output['data']['type_name'] : '';?>"></td>
|
|
|
<td class="vatop tips"></td>
|
|
|
</tr>
|
|
|
+
|
|
|
<tr class="noborder">
|
|
|
<td class="required" colspan="2"><label class="validation" for="send_type">发放方式</label></td>
|
|
|
</tr>
|
|
@@ -40,6 +76,7 @@
|
|
|
<tr class="noborder">
|
|
|
<td class="required" colspan="2"><label>上传CSV文件</label></td>
|
|
|
</tr>
|
|
|
+
|
|
|
<tr class="noborder">
|
|
|
<td class="vatop rowform">
|
|
|
<span class="type-file-box">
|
|
@@ -48,6 +85,8 @@
|
|
|
</td>
|
|
|
<td class="vatop tips"></td>
|
|
|
</tr>
|
|
|
+
|
|
|
+
|
|
|
<tr class="noborder">
|
|
|
<td class="required" colspan="2"><label class="validation" for="send_start_date">开始发放时间</label></td>
|
|
|
</tr>
|
|
@@ -101,6 +140,10 @@
|
|
|
$("#send_end_date").datepicker();
|
|
|
$("#use_start_date").datepicker();
|
|
|
$("#use_end_date").datepicker();
|
|
|
+ $("#pass_name").datepicker();
|
|
|
+ $("#h5").datepicker();
|
|
|
+ $("#h5_url").datepicker();
|
|
|
+
|
|
|
$("#type_form").validate({
|
|
|
errorPlacement: function(error, element){
|
|
|
error.appendTo(element.parent().parent().prev().find('td:first'));
|
|
@@ -124,11 +167,23 @@
|
|
|
use_end_date: {
|
|
|
required : true,
|
|
|
date : false
|
|
|
+ },
|
|
|
+ _name: {
|
|
|
+ required : true,
|
|
|
+ date : false
|
|
|
+ },
|
|
|
+ h5: {
|
|
|
+ required : true,
|
|
|
+ date : false
|
|
|
+ },
|
|
|
+ h5_url: {
|
|
|
+ required : true,
|
|
|
+ date : false
|
|
|
}
|
|
|
},
|
|
|
messages : {
|
|
|
type_name: {
|
|
|
- required : '红包类型名称不能为空'
|
|
|
+ required : '红包名称不能为空'
|
|
|
},
|
|
|
send_start_date: {
|
|
|
required : '开始发放时间不能为空'
|
|
@@ -141,10 +196,20 @@
|
|
|
},
|
|
|
use_end_date: {
|
|
|
required : '结束使用时间不能为空'
|
|
|
+ },
|
|
|
+ pass_name: {
|
|
|
+ required : '发送者不能为空'
|
|
|
+ },
|
|
|
+ h5: {
|
|
|
+ required : 'h5链接不能为空'
|
|
|
+ },
|
|
|
+ h5_url: {
|
|
|
+ required : '链接参数不能为空'
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
+
|
|
|
$(function(){
|
|
|
var textButton="<input type='text' name='textfield' id='textfield1' class='type-file-text' /><input type='button' name='button' id='button1' value='' class='type-file-button' />"
|
|
|
$(textButton).insertBefore("#bonus_file");
|