/** * How to display the widget on the screen. */ function widget($args, $instance) { extract($args); $gsc_search_engine_id = get_option('gsc_search_engine_id'); /* Get variables from the widget settings. */ $display_results_option = $instance['display_results_option']; $hide_widget_format = isset($instance['hide_widget_format']) ? $instance['hide_widget_format'] : false; /* Before widget (defined by themes). */ if (!$hide_widget_format) { echo $before_widget; } display_search_box($display_results_option); /* After widget (defined by themes). */ if (!$hide_widget_format) { echo $after_widget; } }
<form role="search" class="form" method="get" id="searchform" action="<?php echo home_url('/'); ?> "> <div class="input-group"> <label class="sr-only" for="s"><?php _e('Search for:', 'shoestrap'); ?> </label> <?php display_search_box(DISPLAY_RESULTS_IN_UNDER_SEARCH_BOX); ?> <!--input type="search" value="<?php if (is_search()) { echo get_search_query(); } ?> " name="s" id="s" class="form-control" placeholder="<?php _e('Search', 'shoestrap'); ?> <?php bloginfo('name'); ?> "--> <span class="input-group-btn"> <button type="submit" id="searchsubmit" class="btn btn-default"><i class="el-icon-search"></i></button> </span> </div> </form>
$my_vlan->set_location($_POST["location"]); $my_vlan->set_assigned_to($_POST["assign"]); $my_vlan->set_notes($_POST["notes"]); $my_vlan->set_vlan_distinguisher($_POST['distinguish']); if ($my_vlan->update()) { echo "<meta http-equiv=\"REFRESH\" content=\"0;url=" . $_SERVER['SCRIPT_NAME'] . "?tab=" . $_GET['tab'] . "&pluginID=" . $_GET['pluginID'] . "&className=" . $_GET['className'] . "&family=vlan&v_id=" . $v_id . "&success=update\">"; } } } } else { echo "<div id='report'>"; //create a button to toggle advance searches echo "<div id='toggle'><a onclick='toggle_search()'><p><input type='button' value='Open Advance Report'></p><p style='display:none'><input type='button' value='Close Advance Report'></p></a></div>"; echo "<div id='report_filter'>"; //display search box display_search_box("report_search", "Advance Report"); echo $string; //go through the database to report echo "</div>"; $IP_Search = new IP_Database(); $family = 4; if (isset($_GET['report'])) { $family = $_GET['report']; } //if the report is being searched if ($_GET['report_search']) { //set the data $title = $_GET['title']; $str_tag = $_GET['tags']; //turn the tags back into an array while (strpos($str_tag, ", ")) {
function display_publication($query, $pageNum = 1) { global $config; global $db; $count_sql = 'SELECT COUNT(id) AS c FROM nz WHERE publication LIKE ' . $db->qstr($query . '%'); $sql = "SELECT * FROM nz WHERE publication LIKE " . $db->qstr($query . '%') . " ORDER BY year"; $q = do_query($query, $count_sql, $sql, $pageNum); display_top($query); display_search_box('publication'); echo '<h2>Showing results for publication "' . $query . '"</h2>'; display_pagination('publication', $q); display_page($q); display_pagination('publication', $q); display_bottom(); }
/** Nav bar search bar replace */ function my_navbar_pre_searchbox() { global $ss_settings; $show_searchbox = $ss_settings['navbar_search']; if ($show_searchbox == '1') { ?> <div class="form-search pull-right navbar-form" style="width:30%; float:right; padding:0; margin:0;"> <?php display_search_box(DISPLAY_RESULTS_AS_POP_UP); ?> </div> <?php } }