123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- defined('IN_ADMIN') or exit('No permission resources.');
- $show_header = 1;
- include $this->admin_tpl('header', 'admin');
- ?>
- <form method="post" action="?m=formguide&c=formguide&a=setting" id="myform" name="myform">
- <table width="100%" cellpadding="0" cellspacing="1" class="table_form">
- <tr>
- <th width="130"><?php echo L('allows_more_ip')?>:</th>
- <td><input type='radio' name='setting[allowmultisubmit]' value='1' <?php if($allowmultisubmit == 1) {?>checked<?php }?>> <?php echo L('yes')?>
- <input type='radio' name='setting[allowmultisubmit]' value='0' <?php if($allowmultisubmit == 0) {?>checked<?php }?>> <?php echo L('no')?></td>
- </tr>
- <tr id="setting" style="<?php if ($allowmultisubmit == 0) {?>dispaly:none<?php }?>">
- <th width="130"><?php echo L('interval')?>:</th>
- <td><input type="text" value="<?php echo $interval?>" name="setting[interval]" size="10" class="input-text"> <?php echo L('minute')?></td>
- </tr>
- <tr>
- <th><?php echo L('allowunreg')?>:</th>
- <td><input type='radio' name='setting[allowunreg]' value='1' <?php if($allowunreg == 1) {?>checked<?php }?>> <?php echo L('yes')?>
- <input type='radio' name='setting[allowunreg]' value='0' <?php if($allowunreg == 0) {?>checked<?php }?>> <?php echo L('no')?></td>
- </tr>
- <tr>
- <th><?php echo L('mailmessage')?>:</th>
- <td><textarea cols="50" rows="6" id="mailmessage" name="setting[mailmessage]"><?php echo $mailmessage?></textarea></td>
- </tr>
- <tr style="display:none">
- <td> </td>
- <td><input type="submit" name="dosubmit" id="dosubmit" class="dialog" value=" <?php echo L('ok')?> "> <input type="reset" class="dialog" value=" <?php echo L('clear')?> "></td>
- </tr>
- </table>
- </form>
- </body>
- </html>
- <script type="text/javascript">
- $("input:radio[name='setting[allowmultisubmit]']").click(function (){
- if($("input:radio[name='setting[allowmultisubmit]'][checked]").val()==0) {
- $("#setting").hide();
- } else if($("input:radio[name='setting[allowmultisubmit]'][checked]").val()==1) {
- $("#setting").show();
- }
- });
- </script>
|