Advertisement
bowenac

Untitled

Jan 24th, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.99 KB | None | 0 0
  1. <?php
  2. // this file contains the contents of the popup window
  3. ?>
  4. <style type="text/css">
  5. label{
  6.     margin-right:50px;
  7. }
  8. </style>
  9. <script>
  10. function showOptions() {
  11.     var optionValue = jQuery('select[name=shortcodeOptions]').val()    
  12.     alert(optionValue);
  13.     jQuery('.sc_options').css('display','none');
  14.     jQuery('.'+optionValue+'').css('display','block');
  15.     tb_show("Choose a Shortcode", "#TB_inline?height=300&amp;width=400&amp;inlineId=" + optionValue + "");
  16. }
  17. </script>
  18. <div id="shortcode_list" style="display:none">
  19. <label for="select">
  20. <span>Choose a shortcode</span>
  21. </label>
  22. <select name="shortcodeOptions" onchange="showOptions();">
  23. <option selected>Select a shortcode</option>
  24. <option value="alert_div">Alert</option>
  25. <option value="button_div">Button</option>
  26. </select>
  27. </div>
  28. <div id="options_wrapper" style="display:none">
  29. <div id="alert_div" style="display:none">
  30. <div class="sc_options alert_div">
  31. <div>
  32.     <label for="alert">Content</label>
  33.     <input id="test" value=""/>
  34. </br>
  35.     <label for="type">Type</label>
  36.     <select id="alert_type">
  37.     <option>general</option>
  38.     <option>error</option>
  39.     <option>success</option>
  40.     <option>notice</option>
  41.     </select>
  42. </div>
  43. <div>
  44.     <input type="button" value="Save" id="alert_save"/>
  45. </div>
  46. </div>
  47. </div>
  48. <div id="button_div" style="display:none">
  49. <div class="sc_options button_div">
  50. <div>
  51. <label for="color">Color</label>
  52. <input type="text" value="#bada55" class="button-color-field" />
  53. </br>
  54. <label for="link">Button Text</label>
  55. <input type="text" value="" class="button-text-field" />
  56. </br>
  57. <label for="link">Link</label>
  58. <input type="text" value="" class="button-link-field" />
  59. </br>
  60. <label for="color">Size</label>
  61. <select id="button_size">
  62. <option>large</option>
  63. <option>small</option>
  64. </select>
  65. </br>
  66. <label for="color">Target</label>
  67. <select id="button_target">
  68. <option>_blank</option>
  69. <option>_self</option>
  70. </select>
  71. </div>
  72. <div>
  73.     <input type="button" value="Save Button" id="button_save"/>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement