1rosehip / jplist

jPList jQuery Data Grid Controls is a flexible jQuery plugin for sorting, pagination and filtering of any HTML structure (DIVs, UL/LI, tables, etc).
http://jplist.com
Other
437 stars 177 forks source link

JPLIST Single box for title and description search #177

Closed shariq619 closed 8 years ago

shariq619 commented 8 years ago

I want a single box to search for both title and description in jplist php mysql

                    <div class="text-filter-box">

                        <!--[if lt IE 10]>
                        <div class="jplist-label">Filter by Title:</div>
                        <![endif]-->

                        <input 
                            data-path=".title, .desc" 
                            data-button="#title-search-button"
                            type="text" 
                            value="" 
                            placeholder="Filter by Title" 
                            data-control-type="textbox" 
                            data-control-name="title-filter" 
                            data-control-action="filter"
                        />

                        <button 
                            type="button" 
                            id="title-search-button">
                            <i class="fa fa-search"></i>
                        </button>
                    </div>

Something like this

shariq619 commented 8 years ago

php mysql and html demo jplist jquery data grid controls

shariq619 commented 8 years ago

Is any one to help?

PJanisio commented 8 years ago

Im curious also why this is not working in php and mysql. Tested today and no effects.

@shariq619 did you found a solution?

Related with.

67

1rosehip commented 8 years ago

To achieve it the following control should be changed: https://github.com/no81no/jplist-php-mysql/blob/master/server/controls/textbox.php

For example, $result->query = " (title like ? or description like ?) ";

1rosehip commented 8 years ago

This issue was moved to no81no/jplist-php-mysql#13