index.tpl.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header','admin');
  4. ?>
  5. <div class="pad_10">
  6. <div class="table-list">
  7. <form name="smsform" action="" method="get" >
  8. <input type="hidden" value="sms" name="m">
  9. <input type="hidden" value="sms" name="c">
  10. <input type="hidden" value="init" name="a">
  11. <input type="hidden" value="<?php echo $_GET['menuid']?>" name="menuid">
  12. <div class="explain-col search-form">
  13. <?php echo get_smsnotice();?>
  14. </div>
  15. </form>
  16. <div class="btn text-l">
  17. <?php if(!empty($this->smsapi->userid)) {?>
  18. <span class="font-fixh green"><?php echo L('account')?></span> : <span class="font-fixh"><?php echo $this->smsapi->userid?></span> , <span class="font-fixh green"><?php echo L('smsnumber')?></span> : </span><span class="font-fixh"><?php echo $smsinfo_arr['surplus']?></span> <span class="font-fixh green"><?php echo L('item')?></span>
  19. <?php } else {?>
  20. <span class="font-fixh green">未绑定平台账户,请点击<a href="index.php?m=sms&c=sms&a=sms_setting&menuid=1539&pc_hash=<?php echo $_GET['pc_hash'];?>"><span class="font-fixh">平台设置</span></a>绑定。</span>
  21. <?php }?>
  22. </div><br>
  23. <div class="btn text-l">
  24. <span class="font-fixh green">当前服务器IP为 : <span class="font-fixh"><?php echo $_SERVER["SERVER_ADDR"];?></span> <?php if(!empty($smsinfo_arr['allow_send_ip']) &&!in_array($_SERVER["SERVER_ADDR"],$smsinfo_arr['allow_send_ip'])) echo '当前服务器所在IP不允许发送短信';?>
  25. </div>
  26. <br>
  27. <table width="100%" cellspacing="0">
  28. <thead>
  29. <tr>
  30. <th width="5%" align="center"><?php echo L('product_id')?></th>
  31. <th width="20%" align="left"><?php echo L('product_name')?></th>
  32. <th width="30%" align="left"><?php echo L('product_description')?></th>
  33. <th width="10%" align="left"><?php echo L('totalnum')?></th>
  34. <th width="10%" align="left"><?php echo L('give_away')?></th>
  35. <th width="10%" align="left"><?php echo L('product_price').L('yuan')?></th>
  36. <th width="10%" align="left"><?php echo L('buy')?></th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. <?php if(is_array($smsprice_arr)) foreach($smsprice_arr as $k=>$v) {?>
  41. <tr>
  42. <td width="10%" align="center"><?php echo $v['productid']?></td>
  43. <td width="10%" align="left"><?php echo $v['name']?></td>
  44. <td width="10%" align="left"><?php echo $v['description']?></td>
  45. <td width="10%" align="left"><?php echo $v['totalnum']?></td>
  46. <td width="10%" align="left"><?php echo $v['give_away']?></td>
  47. <td width="10%" align="left"><?php echo $v['price']?></td>
  48. <td width="10%" align="left"><a href="<?php echo $this->smsapi->get_buyurl($v['productid']);?>" target="_blank"><?php echo L('buy')?></a></td>
  49. </tr>
  50. <?php }?>
  51. </tbody>
  52. </table>
  53. <div class="explain-col search-form">
  54. 开启会员注册短信验证方法:后台->用户->会员模块配置->手机强制验证方式 选择 <font color="red">是</font>
  55. </div>
  56. </div>
  57. </div>
  58. <br>
  59. <br>
  60. <br>
  61. <br>
  62. </body>
  63. </html>