style_import.tpl.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <form action="?m=template&c=style&a=import" method="post" id="myform" enctype="multipart/form-data">
  7. <div>
  8. <table width="100%" class="table_form">
  9. <tr>
  10. <th width="80"><?php echo L('mode')?>:</th>
  11. <td class="y-bg"><input type="radio" name="type" value="1" checked /> <?php echo L('upload_file')?> <input type="radio" name="type" value="2"/> <?php echo L('enter_coad')?></td>
  12. </tr>
  13. <tbody id="upfile">
  14. <tr>
  15. <th width="80"><?php echo L('upload_file')?>:</th>
  16. <td class="y-bg"><input type="file" class="input-text" name="file"/> <?php echo L('only_allowed_to_upload_txt_files')?></td>
  17. </tr>
  18. </tbody>
  19. <tbody id="code" style="display: none">
  20. <tr>
  21. <th width="80" valign="top"><?php echo L('enter_coad')?>:</th>
  22. <td class="y-bg"><textarea name="code" style="width:386px;height:178px;"></textarea></td>
  23. </tr>
  24. </tbody>
  25. </table>
  26. <div class="bk15"></div>
  27. <input type="submit" class="dialog" id="dosubmit" name="dosubmit" value="<?php echo L('submit')?>" />
  28. </div>
  29. </form>
  30. </div>
  31. <script type="text/javascript">
  32. <!--
  33. $(function(){$("input[type='radio'][name='type']").click(function(){
  34. if ($(this).val()==1) {
  35. $('#upfile').show();
  36. $('#code').hide();
  37. } else{
  38. $('#code').show();
  39. $('#upfile').hide();
  40. }
  41. })})
  42. //-->
  43. </script>
  44. </body>
  45. </html>