View Full Version : Adding Search Field
Andy55
10-03-2008, 09:42 AM
I need to add a search field like the one to search Open and Closed, I have got the drop-down box in place and it sends the var to the URL for search but I cannot find out why it will not filter out the ticket that I need. All the tickets are returned and not just XXXX tickets.
jpowers40828
10-03-2008, 12:11 PM
What are you trying to search in? Do you have any code?
Andy55
10-03-2008, 02:25 PM
I am trying to search the source just like the search(filter) for the open and closed fields. So far all I have done was copy the code for the open and closed drop down box and change the VAR's of the box. Now I just cant find where the query takes place so I can add the code
<td>Status is:</td><td>
<select name="status">
<option value='any' selected >Any status</option>
<option value="Open" <?= $_REQUEST['status'] =='Open'?'selected':''?>>Open</option>
<option value="Closed" <?= $_REQUEST['status']=='Closed'?'selected':''?>>Closed</option>
</select>
</td>
<td>Ticket Type:</td><td>
<select name="source">
<option value='any' selected >Any status</option>
<option value="testing" <?= $_REQUEST['source'] =='testing'?'selected':''?>>Testing</option>
<option value="splicing" <?= $_REQUEST['source'] =='splicing'?'selected':''?>>Splicing</option>
</select>
</td>
jpowers40828
10-14-2008, 04:43 PM
The query takes place right above it, starting about line 100 of include/staff/tickets.inc.php