overlay_filter.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <div class="overlay_simple overlay_filter invisible">
  2. <header class="overlay_simple_header">
  3. <span><?=_('Filter')?></span>
  4. </header>
  5. <div class="overlay_simple_body">
  6. <form id="addfilter">
  7. <input type="hidden" id="filterid" name="id">
  8. <div class="overlay_filter_label" style="margin-bottom:10px;text-align:right;margin-top:6px;float:left;width:50%"><?=_('Word or phrase to filter')?>&nbsp;&nbsp;&nbsp;</div>
  9. <div style="margin-bottom:10px;float:left;width:50%">
  10. <input type="text" name="phrase" class="overlay_filter_word textfield" style="margin:0;width:100%" id="filtertext">
  11. </div>
  12. <div class="overlay_filter_label" style="margin-bottom:10px;text-align:right;margin-top:6px;float:left;width:50%"><?=_('Expires in')?>&nbsp;&nbsp;&nbsp;</div>
  13. <div style="margin-bottom:10px;float:left;width:50%">
  14. <select name="expires_in" class="selectbox">
  15. <option value selected><?=_('Never')?></option>
  16. <option value="1800">30 <?=_('minutes')?></option>
  17. <option value="3600">1 <?=_('hour')?></option>
  18. <option value="21600">6 <?=_('hours')?></option>
  19. <option value="43200">12 <?=_('hours')?></option>
  20. <option value="86400">1 <?=_('day')?></option>
  21. <option value="604800">1 <?=_('week')?></option>
  22. </select>
  23. </div>
  24. <div class="overlay_filter_label" style="margin-bottom:10px;width:100%;text-align:center"><?=_('Filter in the following timelines')?></div>
  25. <div style="margin-bottom:10px;float:left;width:50%">
  26. <input type="checkbox" class="checkbox" name="context[]" value="home" id="checkbox_home">
  27. <label for="checkbox_home"><?=_('Home')?></label><br/>
  28. <input type="checkbox" class="checkbox" name="context[]" value="notifications" id="checkbox_notifications">
  29. <label for="checkbox_notifications"><?=_('Notifications')?></label>
  30. </div>
  31. <div style="margin-bottom:10px;float:left;width:50%">
  32. <input type="checkbox" class="checkbox" name="context[]" value="public" id="checkbox_public">
  33. <label for="checkbox_public"><?=_('Public')?></label><br/>
  34. <input type="checkbox" class="checkbox" name="context[]" value="thread" id="checkbox_thread">
  35. <label for="checkbox_thread"><?=_('Thread')?></label>
  36. </div>
  37. <div style="margin-bottom:20px;width:100%">
  38. <div class="switch" style="margin:0;float:left">
  39. <input type="checkbox" name="irreversible" value="1" id="filter_irreversible">
  40. <div class="switch-btn">
  41. <span></span>
  42. </div>
  43. </div>
  44. <label for="filter_irreversible" style="margin-left:5px;vertical-align:sub"><?=_('Filter posts irreversible')?></label>
  45. </div>
  46. <div style="margin-bottom:10px;width:100%">
  47. <div class="switch" style="margin:0;float:left">
  48. <input type="checkbox" name="whole_word" value="1" id="filter_whole_word">
  49. <div class="switch-btn">
  50. <span></span>
  51. </div>
  52. </div>
  53. <label for="whole_word" style="margin-left:5px;vertical-align:sub"><?=_('Whole word')?></label>
  54. </div>
  55. </form>
  56. <span style="visibility:hidden">-</span>
  57. <div class="overlay_simple_controls">
  58. <button class="overlay_filter_ok toot_button" style="float:right"><div class="toot_button_label"><i class="fa fa-fw fa-check"></i><span><?=_('Ok')?></span></div></button>
  59. <a href="javascript:$('.close_button').click();void(0)" class="overlay_filter_cancel halcyon_link" style="float:right;margin-top:5px;margin-right:10px"><i class="fa fa-times"></i> <?=_('Cancel')?></a>
  60. </div>
  61. </div>
  62. </div>
  63. <style>
  64. .select {
  65. width:calc(100% - 2px);
  66. margin:-10px;
  67. }
  68. </style>