Make WordPress Core

Ticket #54106: 54106.txt

File 54106.txt, 1.2 KB (added by msolution, 5 years ago)

A simple WordPress admin panel, which i was required to make the form method as get. It has a walker class listing items, the search form is what im talking about, after too many searches

Line 
1<!-- https://core.trac.wordpress.org/ticket/54106 -->
2<div id="poststuff">
3<div id="post-body" class="metabox-holder columns-1">
4<div id="post-body-content">
5
6        <form name="form1" id="form1" method="get" action="<?php echo remove_query_arg(array('call', 'id' ));?>">
7        <?php wp_nonce_field('list-items'); ?>
8        <input type="hidden" name="filter_results" value="1"/>
9        <input type="hidden" name="call" value="search"/>
10
11        <p class="search-box">
12        <label class="screen-reader-text" for="post-search-input"><?php _e('Search:','list_lang');?></label>
13        <input type="search" id="post-search-input" data-search="<?php echo esc_attr( $searchtxt ); ?>" name="search" value="<?php echo esc_attr( $searchtxt ); ?>" />
14        <input type="submit" name="" id="search-submit" class="button" value="Search"  />
15        </p>
16       <div class="tablenav">
17        <div class="alignleft actions" style="margin-right:10px">
18                        <select name="bulkq" id="bulkselect">
19                        <option value="noaction" ><?php _e('Bulk Actions', 'list_lang'); ?></option>
20                        ...
21                        </select>
22
23                <div class="tablenav-pages"></div>
24
25        <!-- WP Walker -->
26        ...
27        </form>
28</div><!-- /post-body-content -->
29</div><!-- /post-body -->
30<br class="clear" />
31</div><!-- /poststuff -->
32