Thank you so much. That is exactly what I needed.
On the show tickets portion of the main page, there is a ""Billable" heading with a check box that says "Display only Billable Tickets" When this checkbox is selected, only tickets with the custom10 field value of "Yes" will be shown.
For thoes that are interested this is exactly what I modified.
In Show_search_form.inc.php I added
Code: Select all
<tr>
<td class="borderTop"><b>Billable</b>: </td>
<td class="borderTop"><label><input type="checkbox" name="billable" value="1" <?php if ($billable[1]) echo 'checked="checked"'; ?> /> Display Billable Tickets Only</label></td>
<td width="33%"> </td>
</tr>
Under
Code: Select all
<td width="33%"> </td>
</tr>
<tr>
<td width="34%"><label><input type="radio" name="g" value="category" <?php if ($group == 'category') {echo 'checked="checked"';} ?> /> <?php echo $hesklang['category']; ?></label></td>
<td width="33%"> </td>
</tr>
</table>
</td>
In Print_tickets.inc.php
I changed
Code: Select all
/* Archived */
if (!empty($_GET['archive']))
{
$archive[1]=1;
$sql .= '`archive`=\'1\' AND ';
}
To
Code: Select all
/* Billable */
if (!empty($_GET['billable']))
{
$billable[1]=1;
$sql .= '`custom10`=\'Yes\' AND ';
}