index.html.php 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. /**
  3. * The index view file of sms module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
  6. * @license LGPL (http://www.gnu.org/licenses/lgpl.html)
  7. * @author Yidong Wang <yidong@cnezsoft.com>
  8. * @package sms
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include $this->app->getModuleRoot() . 'message/view/header.html.php';?>
  14. <div id='mainContent' class='main-content'>
  15. <div class='center-block'>
  16. <div class='main-header'>
  17. <h2><?php echo $lang->sms->common;?><h2>
  18. </div>
  19. <form method='post' target='hiddenwin'>
  20. <table class='table table-form'>
  21. <tr>
  22. <th class='w-120px'><?php echo $lang->sms->turnon?></th>
  23. <td><?php echo html::radio('turnon', $lang->sms->turnonList, empty($smsConfig->turnon) ? 0 : $smsConfig->turnon)?></td>
  24. <td></td>
  25. </tr>
  26. <tr>
  27. <th><?php echo $lang->sms->debug?></th>
  28. <td><?php echo html::radio('debug', $lang->sms->turnonList, empty($smsConfig->debug) ? 0 : $smsConfig->debug)?></td>
  29. </tr>
  30. <tr>
  31. <th><?php echo $lang->sms->method?></th>
  32. <td><?php echo html::radio('method', $lang->sms->methodList, empty($smsConfig->method) ? 'get' : $smsConfig->method)?></td>
  33. </tr>
  34. <tr>
  35. <th><?php echo $lang->sms->url?></th>
  36. <td><?php echo html::input('url', empty($smsConfig->url) ? '' : $smsConfig->url, "class='form-control'")?></td>
  37. </tr>
  38. <tr>
  39. <th><?php echo $lang->sms->encode?></th>
  40. <td><?php echo html::input('encode', empty($smsConfig->encode) ? 'utf-8' : $smsConfig->encode, "class='form-control'")?></td>
  41. </tr>
  42. <tr>
  43. <th><?php echo $lang->sms->mobile?></th>
  44. <td><?php echo html::input('mobile', empty($smsConfig->mobile) ? '' : $smsConfig->mobile, "class='form-control'")?></td>
  45. </tr>
  46. <tr>
  47. <th><?php echo $lang->sms->delimiter?></th>
  48. <td><?php echo html::input('delimiter', empty($smsConfig->delimiter) ? '' : $smsConfig->delimiter, "class='form-control'")?></td>
  49. </tr>
  50. <tr>
  51. <th><?php echo $lang->sms->content?></th>
  52. <td><?php echo html::input('content', empty($smsConfig->content) ? '' : $smsConfig->content, "class='form-control'")?></td>
  53. </tr>
  54. <tr>
  55. <th><?php echo $lang->sms->signature?></th>
  56. <td><?php echo html::input('signature', empty($smsConfig->signature) ? '' : $smsConfig->signature, "class='form-control'")?></td>
  57. </tr>
  58. <tr>
  59. <th><?php echo $lang->sms->successCall?></th>
  60. <td><?php echo html::input('successcall', empty($smsConfig->successcall) ? '' : $smsConfig->successcall, "class='form-control'")?></td>
  61. </tr>
  62. <tr class='otherItems'>
  63. <th><?php echo $lang->sms->otherItems;?></th>
  64. <td colspan='2'>
  65. <table class='table table-form'>
  66. <?php if(!empty($smsConfig->params)):?>
  67. <?php foreach($smsConfig->params as $key => $value):?>
  68. <tr>
  69. <td><?php echo html::input('key[]', $key, "class='form-control'")?></td>
  70. <td><?php echo html::input('value[]', $value, "class='form-control'")?></td>
  71. </tr>
  72. <?php endforeach;?>
  73. <?php endif;?>
  74. <?php for($i = 1; $i <= 5; $i++):?>
  75. <tr>
  76. <td><?php echo html::input('key[]', '', "class='form-control' placeholder='{$lang->sms->key}'")?></td>
  77. <td><?php echo html::input('value[]', '', "class='form-control' placeholder='{$lang->sms->value}'")?></td>
  78. </tr>
  79. <?php endfor;?>
  80. </table>
  81. </td>
  82. </tr>
  83. <tr class='text-center form-actions'>
  84. <td colspan='3'>
  85. <?php
  86. echo html::submitButton();
  87. if(common::hasPriv('sms', 'reset')) echo html::linkButton($lang->sms->reset, inlink('reset'), 'self', '', 'btn btn-wide');
  88. if(common::hasPriv('sms', 'test')) echo html::a(inlink('test'), $lang->sms->test, 'hiddenwin', "class='btn btn-wide'");
  89. ?>
  90. </td>
  91. </tr>
  92. </table>
  93. </div>
  94. </form>
  95. </div>
  96. </div>
  97. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>