12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124 |
- {template '_header'}
- <style>
- .select2 {width: 100%;}
- {if !empty($opensms)}
- .w200 {width:250px;}
- {else}
- .w200 {width: 550px;}
- {/if}
- .w60 {width: 70px; text-align: right;}
- .form-horizontal .form-group {margin-left: 0; margin-right: 0;}
- .table > thead > tr > th {border:none;}
- .is_advanced {display: table-block;}
- #openids_selector .input-group {width: 100%;}
- #openids2_selector .input-group {width: 100%;}
- #openids3_selector .input-group {width: 100%;}
- .is_sms {display: {if !empty($opensms)}table-block{else}none{/if};}
- </style>
-
- <div class="page-heading">
- <h2>消息提醒设置</h2>
- </div>
-
- <div class="alert alert-info">
- <h3>注意:</h3>
- <p>请将公众平台模板消息所在行业选择为:<b> IT科技/互联网|电子商务 其他|其他</b>,所选行业不一致将会导致模板消息不可用。</p>
- <p>点击模板消息后方的开关按钮<img src="../addons/ewei_shopv2/static/images/on-off.png" />即可<b>开启模板消息</b>,无需进行额外设置。</p>
- <p>如需进行消息推送<b>个性化消息</b>,<a href="{php echo webUrl('sysset/tmessage')}" title="模板消息库">点击进入自定义消息库</a>{if $opensms},<a href="{php echo webUrl('sysset/sms')}" title="短信消息库">点击进入短信消息库</a>{/if}</p>
- </div>
-
- <form action="" method="post" class="form-horizontal form-validate" enctype="multipart/form-data" >
-
- <table class="table table-responsive">
- <thead>
- <th>卖家通知</th>
- <th class="w200">模板消息</th>
- <th class="w60"></th>
- <th class="w200 is_sms">短信模板</th>
- <th class="w60 is_sms"></th>
- </thead>
- <tbody>
- <tr>
- <td>订单付款通知</td>
- <td>
- <select class="select2 is_advanced" name="data[saler_pay_template]">
- <option value=''>[默认]订单付款通知</option>
- {loop $template_group['saler_pay'] $template_val}
- <option value="{$template_val['id']}" {if $data['saler_pay_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[saler_pay_close_advanced]" value="{php echo intval($data['saler_pay_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="saler_pay" type="checkbox" value="{php echo intval($data['saler_pay_close_advanced'])}" {if empty($data['saler_pay_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[saler_pay_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['saler_pay_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[saler_pay_close_sms]" value="{php echo intval($data['saler_pay_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['saler_pay_close_sms'])}" {if empty($data['saler_pay_close_sms'])}checked{/if}/>
- </td>
- </tr>
- <tr>
- <td style="vertical-align: top;">选择通知人-<br/>订单付款通知</td>
- <td colspan="{if !empty($opensms)}4{else}2{/if}" class="colstd">
- {php echo tpl_selector('openids',array('key'=>'openid','text'=>'nickname', 'thumb'=>'avatar','multi'=>1,'placeholder'=>'昵称/姓名/手机号','buttontext'=>'选择通知人', 'items'=>$salers,'url'=>webUrl('member/query') ))}
- <span class='help-block'>订单生成后以模板消息的方式商家通知,可以指定多个人,如果不填写则不通知</span>
- </td>
- <td class="is_default is_sms"></td>
- </tr>
- <tr>
- <td style="vertical-align: top;">填写通知人-<br/>订单付款短信</td>
- <td colspan="{if !empty($opensms)}4{else}2{/if}" class="colstd">
- <textarea class="form-control" name="data[mobile]" style="resize: none; padding: 6px;" rows="3">{$data['mobile']}</textarea>
- <span class='help-block'>订单生成后以短信的方式商家通知,如果不填写则不通知(11位手机号,多个请以英文逗号隔开)</span>
- </td>
- <td class="is_default is_sms"></td>
- </tr>
- <tr>
- <td>订单收货通知</td>
- <td>
- <select class="select2 is_advanced" name="data[saler_finish_template]">
- <option value=''>[默认]订单收货通知</option>
- {loop $template_group['saler_finish'] $template_val}
- <option value="{$template_val['id']}" {if $data['saler_finish_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[saler_finish_close_advanced]" value="{php echo intval($data['saler_finish_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="saler_finish" type="checkbox" value="{php echo intval($data['saler_finish_close_advanced'])}" {if empty($data['saler_finish_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[saler_finish_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['saler_finish_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[saler_finish_close_sms]" value="{php echo intval($data['saler_finish_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['saler_finish_close_sms'])}" {if empty($data['saler_finish_close_sms'])}checked{/if}/>
- </td>
- </tr>
- <tr>
- <td style="vertical-align: top;">选择通知人-<br/>订单收货通知</td>
- <td colspan="{if !empty($opensms)}4{else}2{/if}" class="colstd">
- {php echo tpl_selector('openids2',array('key'=>'openid','text'=>'nickname', 'thumb'=>'avatar','multi'=>1,'placeholder'=>'昵称/姓名/手机号','buttontext'=>'选择通知人', 'items'=>$salers2,'url'=>webUrl('member/query') ))}
- <span class='help-block'>订单生成后以模板消息的方式商家通知,可以指定多个人,如果不填写则不通知</span>
- </td>
- <td class="is_default is_sms"></td>
- </tr>
- <tr>
- <td style="vertical-align: top;">填写通知人-<br/>订单收货短信</td>
- <td colspan="{if !empty($opensms)}4{else}2{/if}" class="colstd">
- <textarea class="form-control" name="data[mobile2]" style="resize: none; padding: 6px;" rows="3">{$data['mobile2']}</textarea>
- <span class='help-block'>订单生成后以短信的方式商家通知,如果不填写则不通知(11位手机号,多个请以英文逗号隔开)</span>
- </td>
- <td class="is_default is_sms"></td>
- </tr>
-
-
-
-
- <tr>
- <td>库存预警通知</td>
- <td>
- <select class="select2 is_advanced" name="data[saler_stockwarn_template]">
- <option value=''>[默认]库存预警通知</option>
- {loop $template_group['saler_stockwarn'] $template_val}
- <option value="{$template_val['id']}" {if $data['saler_stockwarn_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[saler_stockwarn_close_advanced]" value="{php echo intval($data['saler_stockwarn_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="saler_stockwarn" type="checkbox" value="{php echo intval($data['saler_stockwarn_close_advanced'])}" {if empty($data['saler_stockwarn_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[saler_stockwarn_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['saler_stockwarn_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[saler_stockwarn_close_sms]" value="{php echo intval($data['saler_stockwarn_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['saler_stockwarn_close_sms'])}" {if empty($data['saler_stockwarn_close_sms'])}checked{/if}/>
- </td>
- </tr>
- <tr>
- <td style="vertical-align: top;">选择通知人-<br/>订单收货通知</td>
- <td colspan="{if !empty($opensms)}4{else}2{/if}" class="colstd">
- {php echo tpl_selector('openids3',array('key'=>'openid','text'=>'nickname', 'thumb'=>'avatar','multi'=>1,'placeholder'=>'昵称/姓名/手机号','buttontext'=>'选择通知人', 'items'=>$salers3,'url'=>webUrl('member/query') ))}
- <span class='help-block'>订单生成后以模板消息的方式商家通知,可以指定多个人,如果不填写则不通知</span>
- </td>
- <td class="is_default is_sms"></td>
- </tr>
- <tr>
- <td style="vertical-align: top;">填写通知人-<br/>订单收货短信</td>
- <td colspan="{if !empty($opensms)}4{else}2{/if}" class="colstd">
- <textarea class="form-control" name="data[mobile3]" style="resize: none; padding: 6px;" rows="3">{$data['mobile3']}</textarea>
- <span class='help-block'>订单生成后以短信的方式商家通知,如果不填写则不通知(11位手机号,多个请以英文逗号隔开)</span>
- </td>
- <td class="is_default is_sms"></td>
- </tr>
- <tr>
- <td>商品付款通知</td>
- <td>
- <select class="select2 is_advanced" name="data[saler_goodpay_template]">
- <option value=''>[默认]商品付款通知</option>
- {loop $template_group['saler_goodpay'] $template_val}
- <option value="{$template_val['id']}" {if $data['saler_goodpay_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[saler_goodpay_close_advanced]" value="{php echo intval($data['saler_goodpay_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="saler_goodpay" type="checkbox" value="{php echo intval($data['saler_goodpay_close_advanced'])}" {if empty($data['saler_goodpay_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[saler_goodpay_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['saler_goodpay_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[saler_goodpay_close_sms]" value="{php echo intval($data['saler_goodpay_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['saler_goodpay_close_sms'])}" {if empty($data['saler_goodpay_close_sms'])}checked{/if}/>
- </td>
- </tr>
- </tbody>
- </table>
-
- <div class="form-group splitter"></div>
-
- <table class="table table-responsive">
- <thead>
- <th>买家通知 - 订单通知</th>
- <th class="w200">模板消息</th>
- <th class="w60 is_advanced"><!--<input class="js-switch small checkall" data-type="tpl-advanced" type="checkbox" />--></th>
- <th class="w200 is_sms">短信模板</th>
- <th class="w60 is_sms"><input class="js-switch small checkall" data-type="sms" type="checkbox" /></th>
- </thead>
- <tbody>
- <tr>
- <td>自提订单提交成功通知</td>
- <td>
- <select class="select2 is_advanced" name="data[carrier_template]">
- <option value=''>[默认]自提订单提交成功通知</option>
- {loop $template_group['carrier'] $template_val}
- <option value="{$template_val['id']}" {if $data['carrier_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[carrier_close_advanced]" value="{php echo intval($data['carrier_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="carrier" type="checkbox" value="{php echo intval($data['carrier_close_advanced'])}" {if empty($data['carrier_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[carrier_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['carrier_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[carrier_close_sms]" value="{php echo intval($data['carrier_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['carrier_close_sms'])}" {if empty($data['carrier_close_sms'])}checked{/if}/>
- </td>
- </tr>
- <tr>
- <td>订单取消通知</td>
- <td>
- <select class="select2 is_advanced" name="data[cancel_template]">
- <option value=''>[默认]订单取消通知</option>
- {loop $template_group['cancel'] $template_val}
- <option value="{$template_val['id']}" {if $data['cancel_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[cancel_close_advanced]" value="{php echo intval($data['cancel_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="cancel" type="checkbox" value="{php echo intval($data['cancel_close_advanced'])}" {if empty($data['cancel_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[cancel_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['cancel_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[cancel_close_sms]" value="{php echo intval($data['cancel_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['cancel_close_sms'])}" {if empty($data['cancel_close_sms'])}checked{/if}/>
- </td>
- </tr>
- <tr>
- <td>订单即将取消通知</td>
- <td>
- <select class="select2 is_advanced" name="data[willcancel_template]">
- <option value=''>[默认]订单即将取消通知</option>
- {loop $template_group['willcancel'] $template_val}
- <option value="{$template_val['id']}" {if $data['willcancel_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[willcancel_close_advanced]" value="{php echo intval($data['willcancel_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="willcancel" type="checkbox" value="{php echo intval($data['willcancel_close_advanced'])}" {if empty($data['willcancel_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[willcancel_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['willcancel_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[willcancel_close_sms]" value="{php echo intval($data['willcancel_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['willcancel_close_sms'])}" {if empty($data['willcancel_close_sms'])}checked{/if}/>
- </td>
- </tr>
- <tr>
- <td>订单支付成功通知</td>
- <td>
- <select class="select2 is_advanced" name="data[pay_template]">
- <option value=''>[默认]订单支付成功通知</option>
- {loop $template_group['pay'] $template_val}
- <option value="{$template_val['id']}" {if $data['pay_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[pay_close_advanced]" value="{php echo intval($data['pay_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="pay" type="checkbox" value="{php echo intval($data['pay_close_advanced'])}" {if empty($data['pay_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[pay_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['pay_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[pay_close_sms]" value="{php echo intval($data['pay_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['pay_close_sms'])}" {if empty($data['pay_close_sms'])}checked{/if}/>
- </td>
- </tr>
- <tr>
- <td>订单发货通知</td>
- <td>
- <select class="select2 is_advanced" name="data[send_template]">
- <option value=''>[默认]订单发货通知</option>
- {loop $template_group['send'] $template_val}
- <option value="{$template_val['id']}" {if $data['send_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[send_close_advanced]" value="{php echo intval($data['send_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="send" type="checkbox" value="{php echo intval($data['send_close_advanced'])}" {if empty($data['send_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[send_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['send_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[send_close_sms]" value="{php echo intval($data['send_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['send_close_sms'])}" {if empty($data['send_close_sms'])}checked{/if}/>
- </td>
- </tr>
- <tr>
- <td>自动发货通知<br>(虚拟物品及卡密)</td>
- <td>
- <select class="select2 is_advanced" name="data[virtualsend_template]">
- <option value=''>[默认]自动发货通知</option>
- {loop $template_group['virtualsend'] $template_val}
- <option value="{$template_val['id']}" {if $data['virtualsend_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[virtualsend_close_advanced]" value="{php echo intval($data['virtualsend_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="virtualsend" type="checkbox" value="{php echo intval($data['virtualsend_close_advanced'])}" {if empty($data['virtualsend_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[virtualsend_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['virtualsend_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[virtualsend_close_sms]" value="{php echo intval($data['virtualsend_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['virtualsend_close_sms'])}" {if empty($data['virtualsend_close_sms'])}checked{/if}/>
- </td>
- </tr>
-
- <tr>
- <td>订单状态更新<br>(修改收货地址)(修改价格)</td>
- <td>
- <select class="select2 is_advanced" name="data[orderstatus_template]">
- <option value=''>[默认]订单状态更新</option>
- {loop $template_group['orderstatus'] $template_val}
- <option value="{$template_val['id']}" {if $data['orderstatus_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[orderstatus_close_advanced]" value="{php echo intval($data['orderstatus_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="orderstatus" type="checkbox" value="{php echo intval($data['orderstatus_close_advanced'])}" {if empty($data['orderstatus_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[orderstatus_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['orderstatus_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[orderstatus_close_sms]" value="{php echo intval($data['orderstatus_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['orderstatus_close_sms'])}" {if empty($data['orderstatus_close_sms'])}checked{/if}/>
- </td>
- </tr>
- </tbody>
- </table>
-
- <div class="form-group splitter"></div>
-
- <table class="table table-responsive">
- <thead>
- <th>买家通知 - 退款通知</th>
- <th class="w200">模板消息</th>
- <th class="w60 is_advanced"><!--<input class="js-switch small checkall" data-type="tpl-advanced" type="checkbox" />--></th>
- <th class="w200 is_sms">短信模板</th>
- <th class="w60 is_sms"><input class="js-switch small checkall" data-type="sms" type="checkbox" /></th>
- </thead>
- <tbody>
- <tr>
- <td>退款成功通知</td>
- <td>
- <select class="select2 is_advanced" name="data[refund1_template]">
- <option value=''>[默认]退款成功通知</option>
- {loop $template_group['refund1'] $template_val}
- <option value="{$template_val['id']}" {if $data['refund1_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[refund1_close_advanced]" value="{php echo intval($data['refund1_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="refund1" type="checkbox" value="{php echo intval($data['refund1_close_advanced'])}" {if empty($data['refund1_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[refund1_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['refund1_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[refund1_close_sms]" value="{php echo intval($data['refund1_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['refund1_close_sms'])}" {if empty($data['refund1_close_sms'])}checked{/if}/>
- </td>
- </tr>
- <tr>
- <td>换货成功通知</td>
- <td>
- <select class="select2 is_advanced" name="data[refund3_template]">
- <option value=''>[默认]换货成功通知</option>
- {loop $template_group['refund3'] $template_val}
- <option value="{$template_val['id']}" {if $data['refund3_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[refund3_close_advanced]" value="{php echo intval($data['refund3_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="refund3" type="checkbox" value="{php echo intval($data['refund3_close_advanced'])}" {if empty($data['refund3_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[refund3_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['refund3_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[refund3_close_sms]" value="{php echo intval($data['refund3_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['refund3_close_sms'])}" {if empty($data['refund3_close_sms'])}checked{/if}/>
- </td>
- </tr>
- <tr>
- <td>换货发货通知</td>
- <td>
- <select class="select2 is_advanced" name="data[refund4_template]">
- <option value=''>[默认]换货发货通知</option>
- {loop $template_group['refund4'] $template_val}
- <option value="{$template_val['id']}" {if $data['refund4_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[refund4_close_advanced]" value="{php echo intval($data['refund4_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="refund4" type="checkbox" value="{php echo intval($data['refund4_close_advanced'])}" {if empty($data['refund4_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[refund4_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['refund4_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[refund4_close_sms]" value="{php echo intval($data['refund4_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['refund4_close_sms'])}" {if empty($data['refund4_close_sms'])}checked{/if}/>
- </td>
- </tr>
- <tr>
- <td>退款申请驳回通知</td>
- <td>
- <select class="select2 is_advanced" name="data[refund2_template]">
- <option value=''>[默认]退款申请驳回通知</option>
- {loop $template_group['refund2'] $template_val}
- <option value="{$template_val['id']}" {if $data['refund2_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[refund2_close_advanced]" value="{php echo intval($data['refund2_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="refund2" type="checkbox" value="{php echo intval($data['refund2_close_advanced'])}" {if empty($data['refund2_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[refund2_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['refund2_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[refund2_close_sms]" value="{php echo intval($data['refund2_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['refund2_close_sms'])}" {if empty($data['refund2_close_sms'])}checked{/if}/>
- </td>
- </tr>
- </tbody>
- </table>
-
- <div class="form-group splitter"></div>
-
- <table class="table table-responsive">
- <thead>
- <th>买家通知 - 支付通知</th>
- <th class="w200">模板消息</th>
- <th class="w60 is_advanced"><!--<input class="js-switch small checkall" data-type="tpl-advanced" type="checkbox" />--></th>
- <th class="w200 is_sms">短信模板</th>
- <th class="w60 is_sms"><input class="js-switch small checkall" data-type="sms" type="checkbox" /></th>
- </thead>
- <tbody>
- <tr>
- <td>充值成功通知</td>
- <td>
- <select class="select2 is_advanced" name="data[recharge_ok_template]">
- <option value=''>[默认]充值成功通知</option>
- {loop $template_group['recharge_ok'] $template_val}
- <option value="{$template_val['id']}" {if $data['recharge_ok_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[recharge_ok_close_advanced]" value="{php echo intval($data['recharge_ok_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="recharge_ok" type="checkbox" value="{php echo intval($data['recharge_ok_close_advanced'])}" {if empty($data['recharge_ok_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[recharge_ok_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['recharge_ok_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[recharge_ok_close_sms]" value="{php echo intval($data['recharge_ok_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['recharge_ok_close_sms'])}" {if empty($data['recharge_ok_close_sms'])}checked{/if}/>
- </td>
- </tr>
- <tr>
- <td>提现成功通知</td>
- <td>
- <select class="select2 is_advanced" name="data[withdraw_ok_template]">
- <option value=''>[默认]提现成功通知</option>
- {loop $template_group['withdraw_ok'] $template_val}
- <option value="{$template_val['id']}" {if $data['withdraw_ok_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[withdraw_ok_close_advanced]" value="{php echo intval($data['withdraw_ok_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="withdraw_ok" type="checkbox" value="{php echo intval($data['withdraw_ok_close_advanced'])}" {if empty($data['withdraw_ok_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[withdraw_ok_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['withdraw_ok_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[withdraw_ok_close_sms]" value="{php echo intval($data['withdraw_ok_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['withdraw_ok_close_sms'])}" {if empty($data['withdraw_ok_close_sms'])}checked{/if}/>
- </td>
- </tr>
- <tr>
- <td>充值成功通知(后台管理员手动)</td>
- <td>
- <select class="select2 is_advanced" name="data[backrecharge_ok_template]">
- <option value=''>[默认]充值成功通知</option>
- {loop $template_group['backrecharge_ok'] $template_val}
- <option value="{$template_val['id']}" {if $data['backrecharge_ok_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[backrecharge_ok_close_advanced]" value="{php echo intval($data['backrecharge_ok_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="backrecharge_ok" type="checkbox" value="{php echo intval($data['backrecharge_ok_close_advanced'])}" {if empty($data['backrecharge_ok_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[backrecharge_ok_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['backrecharge_ok_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[backrecharge_ok_close_sms]" value="{php echo intval($data['backrecharge_ok_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['backrecharge_ok_close_sms'])}" {if empty($data['backrecharge_ok_close_sms'])}checked{/if}/>
- </td>
- </tr>
- <tr>
- <td>积分变动提醒</td>
- <td>
- <select class="select2 is_advanced" name="data[backpoint_ok_template]">
- <option value=''>[默认]积分变动提醒</option>
- {loop $template_group['backpoint_ok'] $template_val}
- <option value="{$template_val['id']}" {if $data['backpoint_ok_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[backpoint_ok_close_advanced]" value="{php echo intval($data['backpoint_ok_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="backpoint_ok" type="checkbox" value="{php echo intval($data['backpoint_ok_close_advanced'])}" {if empty($data['backpoint_ok_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[backpoint_ok_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['backpoint_ok_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[backpoint_ok_close_sms]" value="{php echo intval($data['backpoint_ok_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['backpoint_ok_close_sms'])}" {if empty($data['backpoint_ok_close_sms'])}checked{/if}/>
- </td>
- </tr>
- </tbody>
- </table>
-
- <div class="form-group splitter"></div>
-
- <table class="table table-responsive">
- <thead>
- <th>买家通知 - 会员通知</th>
-
- <th class="w200">模板消息</th>
- <th class="w60 is_advanced"><!--<input class="js-switch small checkall" data-type="tpl-advanced" type="checkbox" />--></th>
- <th class="w200 is_sms">短信模板</th>
- <th class="w60 is_sms"><input class="js-switch small checkall" data-type="sms" type="checkbox" /></th>
- </thead>
- <tbody>
- <tr>
- <td>会员升级通知<br>(业务处理通知)</td>
- <td>
- <select class="select2 is_advanced" name="data[upgrade_template]">
- <option value=''>[默认]会员升级通知</option>
- {loop $template_group['upgrade'] $template_val}
- <option value="{$template_val['id']}" {if $data['upgrade_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[upgrade_close_advanced]" value="{php echo intval($data['upgrade_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="upgrade" type="checkbox" value="{php echo intval($data['upgrade_close_advanced'])}" {if empty($data['upgrade_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[upgrade_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['upgrade_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[upgrade_close_sms]" value="{php echo intval($data['upgrade_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['upgrade_close_sms'])}" {if empty($data['upgrade_close_sms'])}checked{/if}/>
- </td>
- </tr>
- </tbody>
- </table>
-
- <table class="table table-responsive">
- <thead>
- <th>o2o - 门店店员通知</th>
-
- <th class="w200">模板消息</th>
- <th class="w60 is_advanced"><!--<input class="js-switch small checkall" data-type="tpl-advanced" type="checkbox" />--></th>
- <th class="w200 is_sms">短信模板</th>
- <th class="w60 is_sms"><input class="js-switch small checkall" data-type="sms" type="checkbox" /></th>
- </thead>
- <tbody>
- <tr>
- <td>记次时商品核销通知</td>
- <td>
- <select class="select2 is_advanced" name="data[o2o_sverify_template]">
- <option value=''>[默认]记次时商品核销通知</option>
- {loop $template_group['o2o_sverify'] $template_val}
- <option value="{$template_val['id']}" {if $data['o2o_sverify_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[o2o_sverify_close_advanced]" value="{php echo intval($data['o2o_sverify_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="o2o_sverify" type="checkbox" value="{php echo intval($data['o2o_sverify_close_advanced'])}" {if empty($data['o2o_sverify_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[o2o_sverify_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['o2o_sverify_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[o2o_sverify_close_sms]" value="{php echo intval($data['o2o_sverify_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['o2o_sverify_close_sms'])}" {if empty($data['o2o_sverify_close_sms'])}checked{/if}/>
- </td>
- </tr>
-
- {if p('newstore')}
- <tr>
- <td>商品预约通知</td>
- <td>
- <select class="select2 is_advanced" name="data[o2o_snorder_template]">
- <option value=''>[默认]商品预约通知</option>
- {loop $template_group['o2o_snorder'] $template_val}
- <option value="{$template_val['id']}" {if $data['o2o_snorder_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[o2o_snorder_close_advanced]" value="{php echo intval($data['o2o_snorder_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="o2o_snorder" type="checkbox" value="{php echo intval($data['o2o_snorder_close_advanced'])}" {if empty($data['o2o_snorder_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[o2o_snorder_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['o2o_snorder_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[o2o_snorder_close_sms]" value="{php echo intval($data['o2o_snorder_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['o2o_snorder_close_sms'])}" {if empty($data['o2o_snorder_close_sms'])}checked{/if}/>
- </td>
- </tr>
- {/if}
- </tbody>
- </table>
-
-
- <table class="table table-responsive">
- <thead>
- <th>o2o - 买家通知</th>
-
- <th class="w200">模板消息</th>
- <th class="w60 is_advanced"><!--<input class="js-switch small checkall" data-type="tpl-advanced" type="checkbox" />--></th>
- <th class="w200 is_sms">短信模板</th>
- <th class="w60 is_sms"><input class="js-switch small checkall" data-type="sms" type="checkbox" /></th>
- </thead>
- <tbody>
- <tr>
- <td>记次时商品核销通知</td>
- <td>
- <select class="select2 is_advanced" name="data[o2o_bverify_template]">
- <option value=''>[默认]记次时商品核销通知</option>
- {loop $template_group['o2o_bverify'] $template_val}
- <option value="{$template_val['id']}" {if $data['o2o_bverify_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[o2o_bverify_close_advanced]" value="{php echo intval($data['o2o_bverify_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="o2o_bverify" type="checkbox" value="{php echo intval($data['o2o_bverify_close_advanced'])}" {if empty($data['o2o_bverify_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[o2o_bverify_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['o2o_bverify_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[o2o_bverify_close_sms]" value="{php echo intval($data['o2o_bverify_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['o2o_bverify_close_sms'])}" {if empty($data['o2o_bverify_close_sms'])}checked{/if}/>
- </td>
- </tr>
-
- {if p('newstore')}
- <tr>
- <td>商品预约成功通知</td>
- <td>
- <select class="select2 is_advanced" name="data[o2o_bnorder_template]">
- <option value=''>[默认]商品预约成功通知</option>
- {loop $template_group['o2o_bnorder'] $template_val}
- <option value="{$template_val['id']}" {if $data['o2o_bnorder_template'] == $template_val['id'] }selected{/if}>{$template_val['title']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_advanced">
- <label class="notice-default">
- <input type="hidden" name="data[o2o_bnorder_close_advanced]" value="{php echo intval($data['o2o_bnorder_close_advanced'])}" />
- <input class="js-switch small checkone" data-type="tpl-advanced" data-tag="o2o_bnorder" type="checkbox" value="{php echo intval($data['o2o_bnorder_close_advanced'])}" {if empty($data['o2o_bnorder_close_advanced'])}checked{/if}/>
- </label>
- <label style="display: none;">
- <img src="../addons/ewei_shopv2/static/images/loading.gif" width="20" alt=""/>
- </label>
- </td>
- <td class="is_sms">
- <select class="select2" name="data[o2o_bnorder_sms]">
- <option value=''>从短信消息库中选择</option>
- {loop $template_sms $template_val}
- <option value="{$template_val['id']}" {if $data['o2o_bnorder_sms'] == $template_val['id'] }selected{/if}>{$template_val['name']}</option>
- {/loop}
- </select>
- </td>
- <td style="text-align: right;" class="is_sms">
- <input type="hidden" name="data[o2o_bnorder_close_sms]" value="{php echo intval($data['o2o_bnorder_close_sms'])}" />
- <input class="js-switch small checkone" data-type="sms" type="checkbox" value="{php echo intval($data['o2o_bnorder_close_sms'])}" {if empty($data['o2o_bnorder_close_sms'])}checked{/if}/>
- </td>
- </tr>
- {/if}
- </tbody>
- </table>
-
- <div class="form-group splitter"></div>
-
- <div class="form-group">
- <div class="col-sm-12 col-xs-12" style="text-align: right;">
- {ifp 'sysset.notice.edit'}
- <input type="submit" value="提交" class="btn btn-primary" />
-
- {/if}
- </div>
- </div>
- </form>
-
- <script>
- $(function () {
-
- var sms = {if !empty($opensms)}true{else}false{/if};
-
- $(".is_advanced").show();
- $(".w60").css('width', '70px');
- if (sms){
- $(".w200").css('width', '250px');
- }else{
- $(".w200").css('width', '550px');
- $(".colstd").attr('colspan',2);
- }
-
-
- $(".js-switch").not(".checkhi").click(function () {
- var next = $(this).next();
- if(next.hasClass('checked')){
- $(this).val("1").prev().val("0");
- }else{
- $(this).val("0").prev().val("1");
- }
- });
-
- $(".checkhi").click(function () {
- var trueval = $(this).prev().data('true');
- var falseval = $(this).prev().data('false');
- var next = $(this).next();
- if(next.hasClass('checked')){
- $(this).val("1").prev().val(trueval);
- }else{
- $(this).val("0").prev().val(falseval);
- }
- });
-
- $(".checkall").click(function () {
- var type = $(this).data('type');
- var val = $(this).val();
- if(val==0){
- $(this).closest(".table").find(".checkone[data-type='"+type+"']").attr("checked","false").val("1").next().removeClass("checked").prev().prev().val("1");
- }else{
- $(this).closest(".table").find(".checkone[data-type='"+type+"']").attr("checked","true").val("0").next().addClass("checked").prev().prev().val("0");
- }
- });
-
- //开启通知
- $(".checkone").click(function () {
- var _this =$(this);
- var type = _this.data('type');
- var val = _this.val();
-
- var tag = _this.data('tag');
- var stop = _this.data('stop');
-
- if(stop==1)
- {
- return;
- }
-
- //判断是否开启模板通知
- if(tag != '' && val==1&&type=='tpl-advanced') {
- $(this).data('stop', 1);
- $(this).parent().hide().next().show();
-
- var data = {
- 'tag': tag,
- checked:val
- };
- //申请微信模板,并将模板ID更新至数据库.
- $.ajax({
- url: "{php echo webUrl('sysset/settemplateid')}",
- type:'get',
- dataType:'json',
- timeout : 3000, //超时时间设置,单位毫秒
- data:data,
- success:function(ret){
- var _this = $(".checkone[data-tag='"+ret.result.tag+"']");
- if (ret.result.status == '0') {
- this.value=0;
- _this.prev().val(1);
- _this.next().removeClass('checked');
-
- console.log(ret.result.messages);
- alert(ret.result.messages);
- }
-
- $(_this).data('stop', 0);
- $(_this).parent().show().next().hide();
- },
- error: function(XMLHttpRequest, textStatus, errorThrown) {
- $(".table").each(function () {
- var _this = $(this);
- _this.find(".checkone[data-type='tpl-advanced']").each(function () {
- $(this).data('stop', 0);
- $(this).parent().show().next().hide();
- });
- });
- }
- });
- }
-
-
- var type = $(this).data('type');
- var val = $(this).val();
- if(val==0){
- $(this).attr("checked","false").val("1").next().removeClass("checked");
- $(this).closest(".table").find(".checkall[data-type='"+type+"']").val("1").attr("checked","false").next().removeClass("checked");
- }else{
- $(this).attr("checked","true").val("0").next().addClass("checked");
- var all = true;
- $(this).closest(".table").find(".checkone[data-type='"+type+"']").each(function () {
- var val = $(this).val();
- if(val!='on' && val==1){
- all = false;
- return;
- }
- });
- if(all){
- $(this).closest(".table").find(".checkall[data-type='"+type+"']").val("0").attr("checked","true").next().addClass("checked");
- }
- }
-
- });
-
- $(".table").each(function () {
- var _this = $(this);
- var all_tpl_normal = true;
- var all_tpl_advanced = true;
- var all_sms = true;
- _this.find(".checkone[data-type='tpl-advanced']").each(function () {
- var val = $(this).val();
- if(val!='on' && val==1){
- all_tpl_advanced = false;
- return;
- }
- });
- _this.find(".checkone[data-type='sms']").each(function () {
- var val = $(this).val();
- if(val!='on' && val==1){
- all_sms = false;
- return;
- }
- });
- if(all_tpl_normal){
- _this.find(".checkall[data-type='tpl-normal']").val("0").attr("checked","true").next().addClass("checked");
- }
- if(all_tpl_advanced){
- _this.find(".checkall[data-type='tpl-advanced']").val("0").attr("checked","true").next().addClass("checked");
- }
- if(all_sms){
- _this.find(".checkall[data-type='sms']").val("0").attr("checked","true").next().addClass("checked");
- }
- });
-
- })
- </script>
-
- {template '_footer'}
|