Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

status checkbox and buttons on customer side???

From what i can tell these pieces of the code are used in creating the checkbox and status buttons to change the status of a ticket on the admin side (includes/staff/tickets.inc.php) and would like a bit of help porting it to the customers side (includes/client/tickets.inc.php). Thanks!

--------------------------------------------------

$status=null;
switch(strtolower($_REQUEST['status'])){
case 'open':
$status='Open';
break;
case 'closed':
$status='Closed';
break;
case 'overdue':
$status='Open';
$showoverdue=true;
$results_type='Overdue Tickets';
break;
case 'assigned':
$status='Open';
$staffId=$thisuser->getId();
break;
default:
if(!$search)
$status='Open';
}

--------------------------------------------------

//STATUS
if($status){
$qwhere.=' AND status='.db_input($status);
}

--------------------------------------------------

$qselect = 'SELECT ticket.ticket_id,lock_id,ticketID,ticket.dept_id,ticket.staff_id,subject,name,email,dept_name '.
',status,source,isoverdue,ticket.created,pri.*';

--------------------------------------------------

$canDelete=$canClose=false;
$canDelete=$thisuser->canDeleteTickets();
$canClose=$thisuser->canCloseTickets();

--------------------------------------------------

onSubmit="return checkbox_checker(this,1,0)

--------------------------------------------------

" >

--------------------------------------------------

<?if($canDelete || $canClose) {?>
 
<?}?>

--------------------------------------------------

<?if($canDelete || $canClose) {?>

" onClick="highLight(this.value,this.checked);">

<?}?>

--------------------------------------------------

<?if($canDelete || $canClose) { ?>
Select:
All 
None 
Toggle 
<?}?>

--------------------------------------------------

<? if($canClose or $canDelete) { ?>


<?
//If the user can close the ticket...mass reopen is allowed.
//If they can delete tickets...they are allowed to close--reopen..etc.
switch ($status) {
case "Closed": ?>

<?
break;
case "Open":?>


<?
break;
default: //search??
?>


<?
}
if($canDelete) {?>

<?}?>

<? }
} ?>

--------------------------------------------------

so with this someone should be able to help port the checkbox and the status buttons to the customer side? Thanks a million!
Sign In or Register to comment.