template_setting.tpl.php 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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=poster&c=space&a=public_tempate_setting" name="myform" id="myform">
  7. <table class="table_form" width="100%" cellspacing="0">
  8. <tbody>
  9. <tr>
  10. <th width="200"><strong><?php echo L('template_file_name')?>:</strong></th>
  11. <td><?php echo $template?><input type="hidden" value="<?php echo $template?>" name="template"></td>
  12. </tr>
  13. <tr>
  14. <th><strong><?php echo L('name_cn')?>:</strong></th>
  15. <td><input type="text" size="20" value="<?php echo $info['name']?>" name="info[name]"></td>
  16. </tr>
  17. <tr>
  18. <th><strong><?php echo L('show_this_param')?>:</strong></th>
  19. <td><label><input type="radio" value="align"<?php if ($info['align']=='align'){?> checked<?php }?> name="info[align]" onclick="$('#choose_select').show();"> <?php echo L('lightbox')?></label> <label><input type="radio" value="scroll"<?php if ($info['align']=='scroll'){?> checked<?php }?> name="info[align]" onclick="$('#choose_select').show();"> <?php echo L('rolling')?></label></td>
  20. </tr>
  21. <tr id="choose_select" style="display:<?php if ($info['align']=='') {?>none<?php }?>">
  22. <th><strong><?php echo L('this_param_selected')?>:</strong></th>
  23. <td><label><input type="radio" value="1" name="info[select]"<?php if(!isset($info) || $info['select']==1) {?> checked<?php }?>> <?php echo L('yes')?></label> <label><input type="radio" value="0" name="info[select]"<?php if(!isset($info) || $info['select']==0) {?> checked<?php }?>> <?php echo L('no')?></label></td>
  24. </tr>
  25. <tr>
  26. <th><strong><?php echo L('is_set_space')?>:</strong></th>
  27. <td><input type="radio" value="1" name="info[padding]"<?php if(!isset($info) || $info['padding']==1) {?> checked<?php }?>> <?php echo L('yes')?> <input type="radio" value="0" name="info[padding]"<?php if(!isset($info) || $info['padding']==0) {?> checked<?php }?>> <?php echo L('no')?></td>
  28. </tr>
  29. <tr>
  30. <th><strong><?php echo L('is_set_size')?>:</strong></th>
  31. <td><input type="radio" value="1" name="info[size]"<?php if(!isset($info) || $info['size']==1) {?> checked<?php }?>> <?php echo L('yes')?> <input type="radio" value="0" name="info[size]"<?php if(!isset($info) || $info['size']==0) {?> checked<?php }?>> <?php echo L('no')?></td>
  32. </tr>
  33. <tr>
  34. <th><strong><?php echo L('space_poster')?>:</strong></th>
  35. <td><input type="radio" value="1" name="info[option]"<?php if(!isset($info) || $info['option']==1) {?> checked<?php }?>> <?php echo L('all_list')?> <input type="radio" value="0" name="info[option]"<?php if(!isset($info) || $info['option']==0) {?> checked<?php }?>> <?php echo L('only_one')?></td>
  36. </tr>
  37. <tr>
  38. <th><strong><?php echo L('is_used_type')?>:</strong></th>
  39. <td><label><input type="checkbox" value="images" name="info[type][]"<?php if (is_array($info['type']) && in_array('images', $info['type'])) {?> checked<?php }?>> <?php echo L('photo')?></label> <label><input type="checkbox" value="flash" name="info[type][]"<?php if (is_array($info['type']) && in_array('flash', $info['type'])) {?> checked<?php }?>> <?php echo L('flash')?></label> <label><input type="checkbox" value="text" name="info[type][]"<?php if (is_array($info['type']) && in_array('text', $info['type'])) {?> checked<?php }?>> <?php echo L('title')?></label></td>
  40. </tr>
  41. <tr>
  42. <th><strong><?php echo L('max_add_param')?>:</strong></th>
  43. <td><input type="text" size="10" value="<?php echo $info['num']?>" name="info[num]"></td>
  44. </tr>
  45. </tbody>
  46. </table>
  47. <div class="bk15" ><?php if ($info['iscore']) {?><input type="hidden" name="info[iscore]" value="1"><?php } else {?>
  48. <input type="submit" name="dosubmit" id="dosubmit" class="dialog" value=" <?php echo L('ok')?> " >&nbsp;<input type="reset" value=" <?php echo L('clear')?> " class='dialog'><?php }?>
  49. </div>
  50. </form>
  51. </body>
  52. </html>