Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <td>'.$hesklang['ticket_status'].': </td>
- <td>';
- $random=rand(10000,99999);
- $status_options = array(
- 0 => '<option value="0">'.$hesklang['open'].'</option>',
- 1 => '<option value="1">'.$hesklang['wait_reply'].'</option>',
- 2 => '<option value="2">'.$hesklang['replied'].'</option>',
- 3 => '<option value="3">'.$hesklang['closed'].'</option>',
- );
- switch ($ticket['status'])
- {
- case 0:
- echo '<font class="open">'.$hesklang['open'].'</font> [<a
- href="change_status.php?track='.$trackingID.'&s=3&Refresh='.$random.'&token='.hesk_token_echo(0).'">'.$hesklang['close_action'].'</a>]';
- unset($status_options[0]);
- break;
- case 1:
- echo '<font class="waitingreply">'.$hesklang['wait_reply'].'</font> [<a
- href="change_status.php?track='.$trackingID.'&s=3&Refresh='.$random.'&token='.hesk_token_echo(0).'">'.$hesklang['close_action'].'</a>]';
- unset($status_options[1]);
- break;
- case 2:
- echo '<font class="replied">'.$hesklang['replied'].'</font> [<a
- href="change_status.php?track='.$trackingID.'&s=3&Refresh='.$random.'&token='.hesk_token_echo(0).'">'.$hesklang['close_action'].'</a>]';
- unset($status_options[2]);
- break;
- case 4:
- echo '<font class="inprogress">'.$hesklang['in_progress'].'</font> [<a
- href="change_status.php?track='.$trackingID.'&s=3&Refresh='.$random.'&token='.hesk_token_echo(0).'">'.$hesklang['close_action'].'</a>]';
- unset($status_options[4]);
- break;
- case 5:
- echo '<font class="onhold">'.$hesklang['on_hold'].'</font> [<a
- href="change_status.php?track='.$trackingID.'&s=3&Refresh='.$random.'&token='.hesk_token_echo(0).'">'.$hesklang['close_action'].'</a>]';
- unset($status_options[5]);
- break;
- default:
- echo '<font class="resolved">'.$hesklang['closed'].'</font> [<a
- href="change_status.php?track='.$trackingID.'&s=1&Refresh='.$random.'&token='.hesk_token_echo(0).'">'.$hesklang['open_action'].'</a>]';
- unset($status_options[3]);
- }
- echo '
- </td>
- <td style="text-align:right">
- <form style="margin-bottom:0;" action="change_status.php" method="post">
- <i>'.$hesklang['chngstatus'].'</i>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement