tatdat171

search-form

Jul 3rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.69 KB | None | 0 0
  1. <form method="get" class="searchform" action="<?php echo home_url( '/tim-kiem'); ?>" >
  2.                                  <input type="text" style="width: 50%;float: left;" class="form-control form-text field s" name="s" value="<?php _e('Tìm kiếm chuyen muc 1', '') ?>" onfocus="if (this.value == '<?php _e('Tìm kiếm chuyen muc 1', '') ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Tìm kiếm chuyen muc 1', '') ?>';}" />
  3.                                  <input style="display:none" name="cat" value="1"/> <!--Điền idCate vào value để search-->
  4.                                  <input type="submit" class="search-submit btn" style="margin-left: 5px;background-color: green;color: white;" name="submit" value="Tìm" />
  5.                                 </form>
Add Comment
Please, Sign In to add comment