Changing priority values
Posted: Fri Jul 06, 2007 11:02 pm
Script URL: www.prodjparty.com/ssl
Version of script: .94
Hosting company: Yahoo
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: Change Priority - Priority - Custom fields
Write your message below:
I currently am making a lot of modifications to Hesk and have everything almost complete, the one thing that is stumping me is I am needing to change the priority values... What I am needing it to do is instead of giving a priority of High- Med- Low I need it to read "Visa, MasterCard.. etc" which I already have done, the drop down menu now reads correctly... the problem is when I submit the form and check it in the admin side, the Credit Card type field is blank.. Basically what I have done is changed all the wording from Priority to Credit Card type in the lang file, it is just a big hack job... heres the code I changed in index.php
And this is what I changed in admin_ticket.php:
What am I missing? it is passing the information to the DB correct, and I added the extra "4" value to the DB, and it is posting it to the DB fine, but when I view the submitted ticket as admin or the client, the credit card type comes up blank... Any information would be greatly appreciated!
Version of script: .94
Hosting company: Yahoo
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: Change Priority - Priority - Custom fields
Write your message below:
I currently am making a lot of modifications to Hesk and have everything almost complete, the one thing that is stumping me is I am needing to change the priority values... What I am needing it to do is instead of giving a priority of High- Med- Low I need it to read "Visa, MasterCard.. etc" which I already have done, the drop down menu now reads correctly... the problem is when I submit the form and check it in the admin side, the Credit Card type field is blank.. Basically what I have done is changed all the wording from Priority to Credit Card type in the lang file, it is just a big hack job... heres the code I changed in index.php
Code: Select all
<td align="right" width="150"><?php echo $hesklang['priority']; ?>:<font class="important">*</font></td>
<td align="left" width="600"><select name="priority">
<option value="1" <?php if($_SESSION['c_priority']==1) {echo 'selected';} ?>>Visa</option>
<option value="2" <?php if($_SESSION['c_priority']==2) {echo 'selected';} ?>>MasterCard</option>
<option value="3" <?php if($_SESSION['c_priority']==3) {echo 'selected';} ?>>American Express</option>
<option value="4" <?php if($_SESSION['c_priority']==4) {echo 'selected';} ?>>Discover</option>
</select>
Code: Select all
<td class="white">'.$hesklang['priority'].': </td>
<td class="white">';
if ($ticket['priority']==1) {echo '<font class="medium">'.$hesklang['Visa'].'</font>';}
elseif ($ticket['priority']==2) {echo '<font class="medium">'.$hesklang['MasterCard'].'</font>';}
elseif ($ticket['priority']==3) {echo '<font class="medium">'.$hesklang['AmericanExpress'].'</font>';}
elseif ($ticket['priority']==4) {echo '<font class="medium">'.$hesklang['Discover'].'</font>';}
else {echo $hesklang['low'];}