Advertisement
k-joseph

Untitled

Jun 27th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.73 KB | None | 0 0
  1. <script type="text/javascript">
  2. var jq = jQuery;
  3.  
  4.  
  5. jq( document ).ready(function() {
  6. jq( "#date_filter_title" ).click(function() {
  7. jq( "#date_filter_options" ).toggle();
  8. });
  9.  
  10. jq( "#date_filter_options" ).click(function(e) {
  11. jq( "#date_filter_options" ).hide();
  12. var txt = jq(e.target).text();
  13. jq("#date_filter_title").text(txt);
  14. });
  15. });
  16.  
  17. </script>
  18.  
  19. <style type="text/css">
  20. .chart-search-input {
  21. background: #3f3d74;
  22. text-align: left;
  23. color: white;
  24. padding: 20px 30px;
  25. -moz-border-radius: 5px;
  26. -webkit-border-radius: 5px;
  27. -o-border-radius: 5px;
  28. -ms-border-radius: 5px;
  29. -khtml-border-radius: 5px;
  30. border-radius: 5px;
  31. }
  32. .chart_search_form_text_input {
  33. min-width: 82% !important;
  34. }
  35. .inline {
  36. display: inline-block;
  37. }
  38. .chart_search_form_button {
  39. margin-left: 30px;
  40. }
  41. .form_label_style {
  42. margin-bottom: 10px !important;
  43. }
  44. .filter_options {
  45. display: none;
  46. background: white;
  47. width: 90px;
  48. padding: 13px;
  49. position: absolute;
  50. border: 1px solid black;
  51. left:242px;
  52. }
  53. .date_filter_title {
  54. display: inline-block;
  55. white-space: nowrap;
  56. background-color: #ddd;
  57. background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ccc));
  58. background-image: -webkit-linear-gradient(top, #eee, #ccc);
  59. background-image: -moz-linear-gradient(top, #eee, #ccc);
  60. background-image: -ms-linear-gradient(top, #eee, #ccc);
  61. background-image: -o-linear-gradient(top, #eee, #ccc);
  62. background-image: linear-gradient(top, #eee, #ccc);
  63. border: 1px solid #777;
  64. padding: 0 1.5em;
  65. margin: 0.5em 0;
  66. font: bold 1em/2em Arial, Helvetica;
  67. text-decoration: none;
  68. color: #333;
  69. text-shadow: 0 1px 0 rgba(255,255,255,.8);
  70. -moz-border-radius: .2em;
  71. -webkit-border-radius: .2em;
  72. border-radius: .2em;
  73. -moz-box-shadow: 0 0 1px 1px rgba(255,255,255,.8) inset, 0 1px 0 rgba(0,0,0,.3);
  74. -webkit-box-shadow: 0 0 1px 1px rgba(255,255,255,.8) inset, 0 1px 0 rgba(0,0,0,.3);
  75. box-shadow: 0 0 1px 1px rgba(255,255,255,.8) inset, 0 1px 0 rgba(0,0,0,.3);
  76. }
  77. .date_filter_title:hover
  78. {
  79. background-color: #eee;
  80. background-image: -webkit-gradient(linear, left top, left bottom, from(#fafafa), to(#ddd));
  81. background-image: -webkit-linear-gradient(top, #fafafa, #ddd);
  82. background-image: -moz-linear-gradient(top, #fafafa, #ddd);
  83. background-image: -ms-linear-gradient(top, #fafafa, #ddd);
  84. background-image: -o-linear-gradient(top, #fafafa, #ddd);
  85. background-image: linear-gradient(top, #fafafa, #ddd);
  86. cursor: pointer;
  87. }
  88.  
  89. .date_filter_title:active
  90. {
  91. -moz-box-shadow: 0 0 4px 2px rgba(0,0,0,.3) inset;
  92. -webkit-box-shadow: 0 0 4px 2px rgba(0,0,0,.3) inset;
  93. box-shadow: 0 0 4px 2px rgba(0,0,0,.3) inset;
  94. position: relative;
  95. top: 1px;
  96. }
  97. .date_filter_title:after {
  98. content:' ↓'
  99. }
  100. .single_filter_option {
  101. display: block;
  102. cursor: pointer;
  103. }
  104.  
  105. .demo-container {
  106. box-sizing: border-box;
  107. width: 400px;
  108. height: 300px;
  109. padding: 20px 15px 15px 15px;
  110. margin: 15px auto 30px auto;
  111. border: 1px solid #ddd;
  112. background: #fff;
  113. background: linear-gradient(#f6f6f6 0, #fff 50px);
  114. background: -o-linear-gradient(#f6f6f6 0, #fff 50px);
  115. background: -ms-linear-gradient(#f6f6f6 0, #fff 50px);
  116. background: -moz-linear-gradient(#f6f6f6 0, #fff 50px);
  117. background: -webkit-linear-gradient(#f6f6f6 0, #fff 50px);
  118. box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  119. -o-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  120. -ms-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  121. -moz-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  122. -webkit-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  123. }
  124.  
  125. .demo-placeholder {
  126. width: 100%;
  127. height: 100%;
  128. font-size: 14px;
  129. line-height: 1.2em;
  130. }
  131.  
  132. .legend, .legend div {
  133. display: none;
  134. }
  135.  
  136. .bold {
  137. font-weight: bold;
  138. }
  139.  
  140. </style>
  141.  
  142. <article id="search-box">
  143. <section>
  144. <div class="chart-search-wrapper">
  145. <form class="chart-search-form">
  146. <div class="chart-search-input">
  147. <div class="chart_search_form_inputs">
  148. <input type="text" name="patientId" value=${patientId} hidden>
  149. <input type="text" id="searchText" name="phrase" class="chart_search_form_text_input inline ui-autocomplete-input" placeholder="${ ui.message("chartsearch.messageInSearchField") }" size="40">
  150. <input type="submit" id="searchBtn" class="button inline chart_search_form_button" value="search"/>
  151. </div>
  152. <div class="filters_section">
  153. <div class="dropdown">
  154. <div class="inside_categories_filter">
  155. <span class="dropdown-name" id="categories_label">
  156. <a href="#" class="filter_method">Categories</script></a>
  157. <i class="icon-sort-down" id="icon-arrow-dropdown"></i>
  158. </span>
  159. <div class="filter_categories">
  160. <a href="">Select All</a><span><label class="align_to_right"><a href="">Clear</a></label></span>
  161. <br /><hr />
  162.  
  163. <% if (facets) { %>
  164. <% facets.each { facet -> %>
  165. <input class="category_check" type="checkbox" name="categories" value="${facet.getName}" >${facet.getName} (${facet.getCount})<br />
  166. <%}%>
  167. <%}%>
  168.  
  169.  
  170. <hr />
  171. <input id="submit_selected_categories" type="submit" value="OK" ><a href="#" class="align_to_right">Cancel</a>
  172. </div>
  173. </div>
  174. </div>
  175. <div class="dropdown">
  176. <div class="inside_categories_filter">
  177. <span class="dropdown-name" id="time_label">
  178. <a href="#" class="filter_method" id="time_anchor">Any Time</a>
  179. <i class="icon-sort-down" id="icon-arrow-dropdown"></i>
  180. </span>
  181. <div class="filter_categories">
  182. <hr />
  183. <a class="single_filter_option" onclick="time_filter(1, 'Last Day')">Last Day</a>
  184. <a class="single_filter_option" onclick="time_filter(7, 'Last Week')">Last Week</a>
  185. <a class="single_filter_option" onclick="time_filter(14, 'Last 2 Weeks')">Last 2 Weeks</a>
  186. <a class="single_filter_option" onclick="time_filter(31, 'Last Month')">Last Month</a>
  187. <a class="single_filter_option" onclick="time_filter(93, 'Last 3 Months')">Last 3 Months</a>
  188. <a class="single_filter_option" onclick="time_filter(183, 'Last 6 Months')">Last 6 Months</a>
  189. <a class="single_filter_option" onclick="time_filter(365, 'Last Year')">Last Year</a>
  190. <a class="single_filter_option" onclick="refresh_data()">Any Time</a>
  191. </div>
  192. </div>
  193. </div>
  194. <div class="dropdown">
  195. <div class="inside_categories_filter">
  196. <span class="dropdown-name" id="categories_label">
  197. <a href="#" class="filter_method" id="location_anchor">All Locations</a>
  198. <i class="icon-sort-down" id="icon-arrow-dropdown"></i>
  199. </span>
  200. <div class="filter_categories" id="locationOptions">
  201.  
  202. </div>
  203. </div>
  204. </div>
  205. <div class="dropdown">
  206. <div class="inside_categories_filter">
  207. <span class="dropdown-name" id="categories_label">
  208. <a href="#" class="filter_method" id="provider_anchor">All Providers</a>
  209. <i class="icon-sort-down" id="icon-arrow-dropdown"></i>
  210. </span>
  211. <div class="filter_categories" id="providersOptions">
  212.  
  213. </div>
  214. </div>
  215. </div>
  216. <div class="dropdown">
  217. <div class="inside_categories_filter">
  218. <span class="dropdown-name" id="categories_label">
  219. <a href="#" class="filter_method" id="dataType_anchor">All Data Types</a>
  220. <i class="icon-sort-down" id="icon-arrow-dropdown"></i>
  221. </span>
  222. <div class="filter_categories" id="datatypesOptions">
  223.  
  224. </div>
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. ${ ui.includeFragment("chartsearch", "main_results") }
  230. </form>
  231. </div>
  232. </section>
  233. </article>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement