123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- {Template header}
- <body>
- <div class="warp">
- <div class="title winnone">消息配置 - 修改</div>
- <ul class="setting-UMeditor">
- <div class="datalist">
- <li class="length">
- <em>模板名称:</em>
- <input class="must" value="{$notice['title']}" name="title" type="text" >
- </li>
- <li>
- <em>是否启用:</em>
- <select name="state" class="select class">
- <option value="1" {if $notice['state'] == 1}selected="selected"{/if}>启用</option>
- <option value="2" {if $notice['state'] == 2}selected="selected"{/if}>不启用</option>
- </select>
- </li>
- <li>
- <em>店铺:</em>
- <select name="shop" class="select class">
- {loop usershop() as $val}
- <option value="{$val['id']}" {if $notice['shop'] == $val['id']}selected="selected"{/if}>{$val['shopname']}</option>
- {/loop}
- </select>
- </li>
- <li class="typeemail">
- <em>发送方式:</em>
- <select name="message" class="select class">
- <option value="1" {if $notice['message'] == 1}selected="selected"{/if}>发送邮件</option>
- <option value="2" {if $notice['message'] == 2}selected="selected"{/if}>AE站内信</option>
- <option value="3" {if $notice['message'] == 3}selected="selected"{/if}>TT会话</option>
- </select>
- </li>
- <div class="pttabemail">
- <li class="e1 none">
- <em>Email:</em>
- <select name="email" class="select class">
- {loop $email as $val}
- <option value="{$val['id']}" {if $notice['email'] == $val['id']}selected="selected"{/if}>{$val['smtp_user']}</option>
- {/loop}
- </select>
- </li>
- </div>
- <li class="type">
- <em>模板类型:</em>
- <select name="type" class="select class">
- <option value="1" {if $notice['type'] == 1}selected="selected"{/if}>自动发送</option>
- <option value="2" {if $notice['type'] == 2}selected="selected"{/if}>物流追踪</option>
- <option value="3" {if $notice['type'] == 3}selected="selected"{/if}>营销</option>
- <option value="4" {if $notice['type'] == 4}selected="selected"{/if}>运单号通知</option>
- </select>
- </li>
- </div>
- <div class="pttab">
- <li class="a1 post">
- <em>订单状态:</em>
- <select name="ordertatus" class="select class">
- {loop typeclass(29,$arg) as $val}
- <option value="{$val['id']}" {if $notice['ordertatus'] == $val['id']}selected="selected"{/if}>{if $arg==2}{$val['spare']}{else}{$val['title']}{/if}</option>
- {/loop}
- </select>
- </li>
- <li class="a2 none">
- <em>物流状态:</em>
- <select name="logisticstatus" class="select class">
- <option value="2" {if $notice['logisticstatus'] == 2}selected="selected"{/if}>已取件</option>
- <option value="3" {if $notice['logisticstatus'] == 3}selected="selected"{/if}>在途中</option>
- <option value="4" {if $notice['logisticstatus'] == 4 || $notice['logisticstatus'] == 5}selected="selected"{/if}>即将派送</option>
- <!--<option value="5" {if $notice['logisticstatus'] == 5}selected="selected"{/if}>派送中</option>-->
- <option value="6" {if $notice['logisticstatus'] == 6}selected="selected"{/if}>已签收</option>
- <option value="1" {if $notice['logisticstatus'] == 1}selected="selected"{/if}>派送异常</option>
- </select>
- </li>
- <li class="a3 none">
- <em>发送间隔:</em>
- <input class="must" value="{$notice['repeattime']}" name="repeattime" type="text" >(天)
- </li>
- {if $arg > 1}
- <li class="a1 post">
- <em>替换前内容:</em>
- <input value="{$notice['thq']}" name="thq" type="text" >
- </li>
- <li class="a1 post">
- <em>替换后内容:</em>
- <input value="{$notice['thh']}" name="thh" type="text" >
- </li>
- <li class="a1 post">
- <em>模板对应类型:</em>
- <select name="tab" class="select class">
- <option value="0" {if $notice['tab'] == 0}selected="selected"{/if}>常规</option>
- <option value="1" {if $notice['tab'] == 1}selected="selected"{/if}>金额大于400美元并且无卖家保障</option>
- <option value="4" {if $notice['tab'] == 4}selected="selected"{/if}>Item是1,但Quantity大于等于2并且Bill Address不等于Ship Address</option>
- <option value="2" {if $notice['tab'] == 2}selected="selected"{/if}>Item是1,但Quantity大于等于2</option>
- <option value="3" {if $notice['tab'] == 3}selected="selected"{/if}>Bill Address不等于Ship Address</option>
- </select>
- </li>
- {/if}
- <li class="a4 none">
- <em>服务类型:</em>
- <div class="checkbox">
- <!-- <span><label><input name="checkboxrows" type="checkbox" value=""><font>全选</font></label></span>-->
- <span class="ckrows"><label><input name="express" type="checkbox" value="1" {if stripos($notice['express'],',1,') !== false}checked{/if}><font>其它快递</font></label></span>
- <span class="ckrows"><label><input name="express" id="usps" type="checkbox" value="2" {if stripos($notice['express'],',2,') !== false}checked{/if}><font>USPS</font></label></span>
- </div>
- </li>
- <li class="a4b1 none">
- <em>服务类型:</em>
- <div class="checkbox">
- <!-- <span><label><input name="checkboxrows" type="checkbox" value=""><font>全选</font></label></span>-->
- <span class="ckrows"><label><input name="js" type="checkbox" value="0" {if stripos($notice['js'],',0,') !== false}checked{/if}><font>FIRST CLASS</font></label></span>
- <span class="ckrows"><label><input name="js" type="checkbox" value="1" {if stripos($notice['js'],',1,') !== false}checked{/if}><font>PRIORITY</font></label></span>
- <span class="ckrows"><label><input name="js" type="checkbox" value="2" {if stripos($notice['js'],',2,') !== false}checked{/if}><font>EXPRESS</font></label></span>
- </div>
- </li>
- </div>
- <em class="datalist">
- <li>
- <em>执行时间范围:</em>
- <input id="ktime" class="must" value="{date('Y-m-d',$notice['ktime'])}" name="ktime" type="text" style="width:25%;">
- <i class="time fa fa-calendar fa-lg"></i> 至 <input id="jtime" class="must" value="{date('Y-m-d',$notice['jtime'])}" name="jtime" type="text" style="width:25%;"><i class="time fa fa-calendar fa-lg"></i>
- </li>
- <li class="length words">
- <em style="height:160px;">特定标识符:</em>
- <span><font>$userName</font> - 客户姓名</span>
- <span><font>$firstName</font> - 客户名</span>
- <span><font>$orderid</font> - 订单号</span>
- <span><font>$trackingNumber</font> - 运单号</span>
- <span><font>$expressCompany</font> - 快递公司</span>
- <span><font>$expressWebsite</font> - 快递官网</span>
- <span><font>$contactPerson</font> - 收件人</span>
- <span><font>$mobileNo</font> - 收件人电话</span>
- <span><font>$zip</font> - 收件人邮编</span>
- <span><font>$country</font> - 收件人国家</span>
- <span><font>$province</font> - 收件人州</span>
- <span><font>$city</font> - 收件人城市</span>
- <span><font>$recipientAddress</font> - 收件人地址</span>
- {if $arg > 1}
- <span><font>$Sname</font> - Ship Name</span>
- <span><font>$Bname</font> - Bill Name</span>
- <span><font>$ShipAddress</font> - Ship Address</span>
- <span><font>$BillAddress</font> - Bill Address</span>
- <span><font>$Quantity</font> - Quantity</span>
- <span><font>$parameter</font> - 商品属性</span>
- <span><font>$productTitle</font> - 产品标题</span>
- {/if}
- <span><font>$productInfo</font> - 产品信息</span>
- <span><font>$ProductName</font> - 商品名称</span>
- <span><font>$ProductSKU</font> - 产品SKU</span>
- <span><font>$DeliveryTime</font> - 预计送达时间</span>
- </li>
- {if $arg > 1}
- <li class="length">
- <em>邮件标题:</em>
- <input value="{$notice['emailtitle']}" name="emailtitle" type="text" placeholder="部分设置不需要则留空">
- </li>
- {/if}
- <textarea name="content" class="none"></textarea>
- </em>
- <div style="clear:both;"></div>
- </ul>
- {load_editor('content','-50px','300px',$notice['content']);}
- <input id="hide" type="text" style='opacity: 0'>
- <div class="hidden"><input type="hidden" name="id" value="{$notice['id']}" /></div>
- <div class="button"><font class="produtdata">提 交</font> <font class="fh">关 闭</font></div>
- </div>
- <script>
- $(document).ready(function() {
- var index1 = $("select[name=type]").find("option:selected").val();
- var index2 = $("select[name=message]").find("option:selected").val();
- $(".pttab li").hide(); $(".pttab li").removeClass("post");
- $(".pttabemail li").hide(); $(".pttabemail li").removeClass("post");
- $(".a"+index1).show();$(".a"+index1).addClass("post");
- $(".e"+index2).show();$(".e"+index2).addClass("post");
- if($("#usps").prop("checked"))
- {
- $(".a4b1").show();
- $(".a4b1").addClass("post");
- }
- else
- {
- $(".a4b1").hide();
- $(".a4b1").removeClass("post");
- }
- });
- $(".a4 input").bind("click", function() {
- if($("#usps").prop("checked"))
- {
- $(".a4b1").show();
- $(".a4b1").addClass("post");
- }
- else
- {
- $(".a4b1").hide();
- $(".a4b1").removeClass("post");
- }
- })
- $(".typeemail select").change(function(){
- var index = $(this).find("option:selected").val();
- $(".pttabemail li").hide(); $(".pttabemail li").removeClass("post");
- $(".e"+index).show();$(".e"+index).addClass("post");
- $("select[name=carried]").find("option").first().prop("selected", true);
- });
- $('.words font').click(function(){
- $("#hide").val($(this).html());//这里可以获取动态数据赋值给$("#hide").val()
- $("#hide").select();
- try {var state = document.execCommand("copy");}
- catch(err){var state = false;}
- if(state){
- layx.msg('复制成功!',{dialogIcon:'success'});
- }
- })
- var addedit="/notice/edit/";$(function () { $("#ktime").calendar(); $("#jtime").calendar();$("#marketing").calendar();});</script>
- <script type="text/javascript" src="{$theme}js/time.js"></script>
- {Template footer}
|