Problem with priority.

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Stephan1992
Posts: 25
Joined: Tue Oct 12, 2010 3:16 pm

Problem with priority.

Post by Stephan1992 »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hey there. I changed my admin_ticket.php from Priority:, to Deadline: .
In there i added Tommorrow, Today, Monday/Friday. It works fine.
When i try to display the Deadline though, I get Deadline: 7
Which means I chose Friday, but it just displays Case number.
Why is this ?

Here is my code:
<admin_ticket.php>

Code: Select all

	echo '
    </td>
	</tr>
	<tr>

	</tr>
	<tr>
	</tr>
	<td>
    	<form style="margin-bottom:0;" action="priority.php" method="post">';

        $options = array(
        	1 => '<option value="1">'.$hesklang['high'].'</option>',
            2 => '<option value="2">'.$hesklang['medium'].'</option>',
			3 => '<option value="3">'.$hesklang['day1'].'</option]',
			4 => '<option value="4">'.$hesklang['day2'].'</option]',
			5 => '<option value="5">'.$hesklang['day3'].'</option]',
			6 => '<option value="6">'.$hesklang['day4'].'</option]',
			7 => '<option value="7">'.$hesklang['day5'].'</option]',			
        );
?><?php 
echo '<tr>'.$hesklang['priority'].':';
echo $ticket[priority];

	?>
	</td>
priority.php

Code: Select all

{
	hesk_error("$hesklang[int_error]: $hesklang[trackID_not_found].");
}

$options = array(
	1 => '<font class="important">'.$hesklang['high'].'</font>',
	2 => '<font class="medium">'.$hesklang['medium'].'</font>',
	3 => $hesklang['day1'],
	4 => $hesklang['day2'],
	5 => $hesklang['day3'],
	6 => $hesklang['day4'],
	7 => $hesklang['day5'],
);
Post Reply