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)){
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": ?>
onClick=' return confirm("Are you sure you want to reopen selected tickets?");'>
<?
break;
case "Open":?>
onClick=' return confirm("Are you sure you want to mark selected tickets overdue/stale?");'>
onClick=' return confirm("Are you sure you want to close selected tickets?");'>
<?
break;
default: //search??
?>
onClick=' return confirm("Are you sure you want to close selected tickets?");'>
onClick=' return confirm("Are you sure you want to reopen selected tickets?");'>
<?
}
if($canDelete) {?>
onClick=' return confirm("Are you sure you want to DELETE selected tickets?");'>
<?}?>
<? }
} ?>
--------------------------------------------------
so with this someone should be able to help port the checkbox and the status buttons to the customer side? Thanks a million!