123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- <?php /*a:3:{s:62:"/data/web/mall.valimart.net/app/admin/view/message/mobile.html";i:1657785098;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.html";i:1657785098;s:66:"/data/web/mall.valimart.net/app/admin/view/public/admin_items.html";i:1657785098;}*/ ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
- <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
- <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
- <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
- <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
- <script type="text/javascript">
- var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
- var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
- var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
- var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
- var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
- </script>
- </head>
- <body>
- <div id="append_parent"></div>
- <div id="ajaxwaitid"></div>
- <div class="page">
- <div class="fixed-bar">
- <div class="item-title">
- <div class="subject">
- <h3><?php echo htmlentities(lang('ds_message')); ?></h3>
- <h5></h5>
- </div>
- <?php if($admin_item): ?>
- <ul class="tab-base ds-row">
- <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
- <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </ul>
- <?php endif; ?>
- </div>
- </div>
- <form method="post">
- <table class="ds-default-table">
- <tbody>
- <tr>
- <td class="required w120"><?php echo htmlentities(lang('smscf_sign')); ?></td>
- <td class="vatop rowform">
- <input type="text" name="smscf_sign" id="smscf_sign" value="<?php echo htmlentities($list_config['smscf_sign']); ?>" class="w200"/>
- </td>
- <td class="vatop tips"><?php echo htmlentities(lang('smscf_sign_tips')); ?></td>
- </tr>
- <tr>
- <td class="required w120"><?php echo htmlentities(lang('smscf_type')); ?></td>
- <td class="vatop rowform">
- <select id="smscf_type" name="smscf_type">
- <option value="wj" <?php if($list_config['smscf_type']=='wj'): ?>selected<?php endif; ?>><?php echo htmlentities(lang('smscf_type_wj')); ?></option>
- <option value="ali" <?php if($list_config['smscf_type']=='ali'): ?>selected<?php endif; ?>><?php echo htmlentities(lang('smscf_type_ali')); ?></option>
- <option value="ten" <?php if($list_config['smscf_type']=='ten'): ?>selected<?php endif; ?>><?php echo htmlentities(lang('smscf_type_ten')); ?></option>
- </select>
- </td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="noborder smscf_type_wj" <?php if($list_config['smscf_type']!='wj'): ?>style="display:none"<?php endif; ?>>
- <td class="required w120"><?php echo htmlentities(lang('smscf_wj_username')); ?></td>
- <td class="vatop rowform">
- <input type="text" name="smscf_wj_username" id="smscf_wj_username" value="<?php echo htmlentities($list_config['smscf_wj_username']); ?>" class="w200"/>
- </td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="noborder smscf_type_wj" <?php if($list_config['smscf_type']!='wj'): ?>style="display:none"<?php endif; ?>>
- <td class="required w120"><?php echo htmlentities(lang('smscf_wj_key')); ?></td>
- <td class="vatop rowform">
- <input type="text" name="smscf_wj_key" id="smscf_wj_key" value="<?php echo htmlentities($list_config['smscf_wj_key']); ?>" class="w200"/>
- <a href="http://sms.webchinese.com.cn/" target="_blank" class="btn btn-blue btn-mini"><?php echo htmlentities(lang('ds_apply')); ?></a>
- </td>
- <td class="vatop tips"></td>
- </tr>
- <?php if(!(empty($smscf_num) || (($smscf_num instanceof \think\Collection || $smscf_num instanceof \think\Paginator ) && $smscf_num->isEmpty()))): ?>
- <tr class="noborder">
- <td class="required w120"><?php echo htmlentities(lang('smscf_num')); ?></td>
- <td><?php echo htmlentities($smscf_num); ?></td>
- <td class="vatop tips"></td>
- </tr>
- <?php endif; ?>
- <tr class="noborder smscf_type_ali" <?php if($list_config['smscf_type']!='ali'): ?>style="display:none"<?php endif; ?>>
- <td class="required w120"><?php echo htmlentities(lang('smscf_ali_id')); ?></td>
- <td class="vatop rowform">
- <input type="text" name="smscf_ali_id" id="smscf_ali_id" value="<?php echo htmlentities($list_config['smscf_ali_id']); ?>" class="w200"/>
- <a href="https://www.aliyun.com/product/sms" target="_blank" class="btn btn-blue btn-mini"><?php echo htmlentities(lang('ds_apply')); ?></a>
- </td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="noborder smscf_type_ali" <?php if($list_config['smscf_type']!='ali'): ?>style="display:none"<?php endif; ?>>
- <td class="required w120"><?php echo htmlentities(lang('smscf_ali_secret')); ?></td>
- <td class="vatop rowform">
- <input type="text" name="smscf_ali_secret" id="smscf_ali_secret" value="<?php echo htmlentities($list_config['smscf_ali_secret']); ?>" class="w200"/>
- </td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="noborder smscf_type_ten" <?php if($list_config['smscf_type']!='ten'): ?>style="display:none"<?php endif; ?>>
- <td class="required w120"><?php echo htmlentities(lang('smscf_ten_id')); ?></td>
- <td class="vatop rowform">
- <input type="text" name="smscf_ten_id" id="smscf_ten_id" value="<?php echo htmlentities($list_config['smscf_ten_id']); ?>" class="w200"/>
- <a href="https://cloud.tencent.com/product/sms" target="_blank" class="btn btn-blue btn-mini"><?php echo htmlentities(lang('ds_apply')); ?></a>
- </td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="noborder smscf_type_ten" <?php if($list_config['smscf_type']!='ten'): ?>style="display:none"<?php endif; ?>>
- <td class="required w120"><?php echo htmlentities(lang('smscf_ten_secret')); ?></td>
- <td class="vatop rowform">
- <input type="text" name="smscf_ten_secret" id="smscf_ten_secret" value="<?php echo htmlentities($list_config['smscf_ten_secret']); ?>" class="w200"/>
- </td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="noborder">
- <td class="required w120"><?php echo htmlentities(lang('sms_register')); ?></td>
- <td class="vatop rowform">
- <div class="onoff">
- <label for="sms_register_show1" class="cb-enable <?php if($list_config['sms_register'] == 1): ?>selected<?php endif; ?>"><?php echo htmlentities(lang('ds_yes')); ?></label>
- <label for="sms_register_show0" class="cb-disable <?php if($list_config['sms_register'] == 0): ?>selected<?php endif; ?>"><?php echo htmlentities(lang('ds_no')); ?></label>
- <input id="sms_register_show1" name="sms_register" value="1" type="radio" <?php if($list_config['sms_register'] == 1): ?> checked="checked"<?php endif; ?>>
- <input id="sms_register_show0" name="sms_register" value="0" type="radio" <?php if($list_config['sms_register'] == 0): ?> checked="checked"<?php endif; ?>>
- </div>
- </td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="noborder">
- <td class="required"><?php echo htmlentities(lang('sms_login')); ?></td>
- <td class="vatop rowform">
- <div class="onoff">
- <label for="sms_login_show1" class="cb-enable <?php if($list_config['sms_login'] == 1): ?>selected<?php endif; ?>"><?php echo htmlentities(lang('ds_yes')); ?></label>
- <label for="sms_login_show0" class="cb-disable <?php if($list_config['sms_login'] == 0): ?>selected<?php endif; ?>"><?php echo htmlentities(lang('ds_no')); ?></label>
- <input id="sms_login_show1" name="sms_login" value="1" type="radio" <?php if($list_config['sms_login'] == 1): ?> checked="checked"<?php endif; ?>>
- <input id="sms_login_show0" name="sms_login" value="0" type="radio" <?php if($list_config['sms_login'] == 0): ?> checked="checked"<?php endif; ?>>
- </div>
- </td>
- </tr>
- <tr class="noborder">
- <td class="required"><?php echo htmlentities(lang('sms_password')); ?></td>
- <td class="vatop rowform">
- <div class="onoff">
- <label for="sms_password_show1" class="cb-enable <?php if($list_config['sms_password'] == 1): ?>selected<?php endif; ?>"><?php echo htmlentities(lang('ds_yes')); ?></label>
- <label for="sms_password_show0" class="cb-disable <?php if($list_config['sms_password'] == 0): ?>selected<?php endif; ?>"><?php echo htmlentities(lang('ds_no')); ?></label>
- <input id="sms_password_show1" name="sms_password" value="1" type="radio" <?php if($list_config['sms_password'] == 1): ?> checked="checked"<?php endif; ?>>
- <input id="sms_password_show0" name="sms_password" value="0" type="radio" <?php if($list_config['sms_password'] == 0): ?> checked="checked"<?php endif; ?>>
- </div>
- </td>
- </tr>
- <tr class="noborder">
- <td class="required w120"><?php echo htmlentities(lang('test_mobile_address')); ?></td>
- <td class="vatop rowform">
- <input type="text" name="mobile_test" id="mobile_test" value="" class="w200"/>
- <input type="button" value="<?php echo htmlentities(lang('test_mail')); ?>" name="send_test_mobile" class="btn btn-small" id="send_test_mobile" >
- </td>
- </tr>
- <tr class="noborder smscf_type_ali" <?php if($list_config['smscf_type']!='ali'): ?>style="display:none"<?php endif; ?>>
- <td class="required w120"><?php echo htmlentities(lang('ali_template_code')); ?></td>
- <td class="vatop rowform">
- <input type="text" name="ali_template_code" id="ali_template_code" value="" class="w200"/>
- </td>
- </tr>
- <tr class="noborder smscf_type_ali" <?php if($list_config['smscf_type']!='ali'): ?>style="display:none"<?php endif; ?>>
- <td class="required w120"><?php echo htmlentities(lang('ali_template_content')); ?></td>
- <td class="vatop rowform">
- <textarea name="ali_template_content" id="ali_template_content" class="w200"></textarea>
- </td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="noborder smscf_type_ali" <?php if($list_config['smscf_type']!='ali'): ?>style="display:none"<?php endif; ?>>
- <td class="required w120"><?php echo htmlentities(lang('ali_template_param')); ?></td>
- <td class="vatop rowform">
- <textarea name="ali_template_param" id="ali_template_param" class="w200"></textarea>
- </td>
- <td class="vatop tips"><?php echo htmlentities(lang('ali_template_param_tips')); ?></td>
- </tr>
- <tr class="noborder smscf_type_ten" <?php if($list_config['smscf_type']!='ten'): ?>style="display:none"<?php endif; ?>>
- <td class="required w120"><?php echo htmlentities(lang('ten_template_code')); ?></td>
- <td class="vatop rowform">
- <input type="text" name="ten_template_code" id="ten_template_code" value="" class="w200"/>
- </td>
- </tr>
- <tr class="noborder smscf_type_ten" <?php if($list_config['smscf_type']!='ten'): ?>style="display:none"<?php endif; ?>>
- <td class="required w120"><?php echo htmlentities(lang('ten_template_content')); ?></td>
- <td class="vatop rowform">
- <textarea name="ten_template_content" id="ten_template_content" class="w200"></textarea>
- </td>
- <td class="vatop tips"></td>
- </tr>
- <tr class="noborder smscf_type_ten" <?php if($list_config['smscf_type']!='ten'): ?>style="display:none"<?php endif; ?>>
- <td class="required w120"><?php echo htmlentities(lang('ten_template_param')); ?></td>
- <td class="vatop rowform">
- <textarea name="ten_template_param" id="ten_template_param" class="w200"></textarea>
- </td>
- <td class="vatop tips"><?php echo htmlentities(lang('ten_template_param_tips')); ?></td>
- </tr>
- <tr class="noborder smscf_type_wj" <?php if($list_config['smscf_type']!='wj'): ?>style="display:none"<?php endif; ?>>
- <td class="required w120"><?php echo htmlentities(lang('test_mobile_content')); ?></td>
- <td class="vatop rowform">
- <textarea name="mobile_test_content" id="mobile_test_content" class="w200"></textarea>
- </td>
- </tr>
- </tbody>
- <tfoot>
- <tr class="tfoot">
- <td></td>
- <td colspan="15"><input class="btn" type="submit" value="<?php echo htmlentities(lang('ds_submit')); ?>"/></td>
- </tr>
- </tfoot>
- </table>
- </form>
- </div>
- <script>
- $(document).ready(function(){
- $('#send_test_mobile').click(function(){
- $.ajax({
- type:'POST',
- url:"<?php echo url('Message/mobile_testing'); ?>",
- data:{
- 'smscf_sign':$('#smscf_sign').val(),
- 'smscf_type':$('#smscf_type').val(),
- 'smscf_ali_secret':$('#smscf_ali_secret').val(),
- 'smscf_ali_id':$('#smscf_ali_id').val(),
- 'ali_template_content':$('#ali_template_content').val(),
- 'ali_template_param':$('#ali_template_param').val(),
- 'ali_template_code':$('#ali_template_code').val(),
- 'smscf_ten_secret':$('#smscf_ten_secret').val(),
- 'smscf_ten_id':$('#smscf_ten_id').val(),
- 'ten_template_content':$('#ten_template_content').val(),
- 'ten_template_param':$('#ten_template_param').val(),
- 'ten_template_code':$('#ten_template_code').val(),
- 'mobile_test_content':$('#mobile_test_content').val(),
- 'smscf_wj_username':$('#smscf_wj_username').val(),
- 'smscf_wj_key':$('#smscf_wj_key').val(),
- 'mobile_test':$('#mobile_test').val()
- },
- error:function(html){
- layer.alert('<?php echo htmlentities(lang('ds_common_op_fail')); ?>');
- },
- success:function(html){
- if(html.msg){
- layer.alert(html.msg);
- }
- },
- dataType:'json'
- });
- });
- $('#smscf_type').change(function(){
- if($(this).val()=='wj'){
- $('.smscf_type_ali').hide()
- $('.smscf_type_wj').show()
- $('.smscf_type_ten').hide()
- }
- if($(this).val()=='ali'){
- $('.smscf_type_ali').show()
- $('.smscf_type_wj').hide()
- $('.smscf_type_ten').hide()
- }
- if($(this).val()=='ten'){
- $('.smscf_type_ali').hide()
- $('.smscf_type_wj').hide()
- $('.smscf_type_ten').show()
- }
- })
- });
- </script>
|