setting.tpl.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. $show_header = 1;
  4. include $this->admin_tpl('header', 'admin');
  5. ?>
  6. <form method="post" action="?m=formguide&c=formguide&a=setting" id="myform" name="myform">
  7. <table width="100%" cellpadding="0" cellspacing="1" class="table_form">
  8. <tr>
  9. <th width="130"><?php echo L('allows_more_ip')?>:</th>
  10. <td><input type='radio' name='setting[allowmultisubmit]' value='1' <?php if($allowmultisubmit == 1) {?>checked<?php }?>> <?php echo L('yes')?>&nbsp;&nbsp;&nbsp;&nbsp;
  11. <input type='radio' name='setting[allowmultisubmit]' value='0' <?php if($allowmultisubmit == 0) {?>checked<?php }?>> <?php echo L('no')?></td>
  12. </tr>
  13. <tr id="setting" style="<?php if ($allowmultisubmit == 0) {?>dispaly:none<?php }?>">
  14. <th width="130"><?php echo L('interval')?>:</th>
  15. <td><input type="text" value="<?php echo $interval?>" name="setting[interval]" size="10" class="input-text"> <?php echo L('minute')?></td>
  16. </tr>
  17. <tr>
  18. <th><?php echo L('allowunreg')?>:</th>
  19. <td><input type='radio' name='setting[allowunreg]' value='1' <?php if($allowunreg == 1) {?>checked<?php }?>> <?php echo L('yes')?>&nbsp;&nbsp;&nbsp;&nbsp;
  20. <input type='radio' name='setting[allowunreg]' value='0' <?php if($allowunreg == 0) {?>checked<?php }?>> <?php echo L('no')?></td>
  21. </tr>
  22. <tr>
  23. <th><?php echo L('mailmessage')?>:</th>
  24. <td><textarea cols="50" rows="6" id="mailmessage" name="setting[mailmessage]"><?php echo $mailmessage?></textarea></td>
  25. </tr>
  26. <tr style="display:none">
  27. <td>&nbsp;</td>
  28. <td><input type="submit" name="dosubmit" id="dosubmit" class="dialog" value=" <?php echo L('ok')?> ">&nbsp;<input type="reset" class="dialog" value=" <?php echo L('clear')?> "></td>
  29. </tr>
  30. </table>
  31. </form>
  32. </body>
  33. </html>
  34. <script type="text/javascript">
  35. $("input:radio[name='setting[allowmultisubmit]']").click(function (){
  36. if($("input:radio[name='setting[allowmultisubmit]'][checked]").val()==0) {
  37. $("#setting").hide();
  38. } else if($("input:radio[name='setting[allowmultisubmit]'][checked]").val()==1) {
  39. $("#setting").show();
  40. }
  41. });
  42. </script>