- Edited
It doesnt work :(
first, in my ./view.php i have only this:
<?php
//We are now using tickets.php but we need to keep view.php for backward compatibility
require('tickets.php');
?>
I can find your second code at the ./tickets.php but not at the ./view.php
It doesn't matter with this code or without, your first code looks very beautiful ( you have it from ./include/staff/viewticket.inc.php
<div style="margin-top: 3px;">
<label for="ticket_status"><b>Ticket Status:</b></label>
<?
$checked=isset($info)?'checked':''; //Staff must explicitly check the box to change status..
if($ticket->isOpen()){?>
<input type="checkbox" name="ticket_status" value="Close" <?=$checked?> > Close on Reply
<?}else{ ?>
<input type="checkbox" name="ticket_status" value="Reopen" <?=$checked?> > Reopen on Reply
<?}?>
</div>
but it can not close the ticket, sorry