neogeo
04-15-2008, 07:45 AM
Hi,
How would I (of very little PHP knowledge) remove the email and ticket source fields.
Although they may be necessary for other people's applications, I want to use OZTicket to track repairs in and out of our business, and it looks like it would do the job nicely, and is very fast.
I don't need the email side of it, and wish to remove these fields.
Regards,
ME
JayDee
04-20-2008, 07:53 PM
Morning NeoGeo!
I changed this faily easily... Probably not the best approach but it works nicly.
I set the email to a defult value, eg: noreply@mybusiness.com.
and used CSS to hide the Table row. This can be done just as simply with the source field as well i would assume. (I Haven't tested code below with the source field.)
Code below located: include/staff/newticket.inc.php
First the Email field.
<tr style="display:none;">
<td align="left" nowrap width="20%">Email Address:</td>
<td>
<input type="text" id="email" name="email" size="25" value="noreply@mybusiness.com">
<font class="error"> <?=$errors['email']?></font>
<? if($cfg->autoRespONNewTicket()) {?>
<input type="checkbox" name="alertuser" <?=(!$errors || $info['alertuser'])? 'checked': ''?>>Send Alert.
<?}?>
</td>
</tr>
Then the source should be changed to:
<tr style="display:none;">
<td align="left"><b>Ticket Source:</b></td>
<td>
<select name="source">
<option value="phone" <?=($info['source']=='phone')?'selected':''?>>Phone</option>
</select>
<font class="error"><b>*</b> <?=$errors['source']?></font>
</td>
</tr>
neogeo
04-20-2008, 09:11 PM
Thanks for the info.
It was very helpful. :D
Thumbs up for you!