First, thanks to osticket, i have implemented in my site and all are working well.
But, i was crazy to find out how to set department accourding staff dept when create a new ticket..i have 3 staff and 4 department.
please help, Is there a simple way to set the Department to a default when creating a new ticket in the Staff interface according to staff department on osticket system?
<td align="left"><b>Departement</b></td>
<td>
<select name="deptId">
<option value="" selected >Select Department</option>
<?
$services= db_query('SELECT dept_id,dept_name FROM '.DEPT_TABLE.' ORDER BY dept_name');
while (list($deptId,$dept) = db_fetch_row($services)){
$selected = ($info==$deptId)?'selected':''; ?>
<option value="<?=$deptId?>"<?=$selected?>><?=$dept?></option>
<?
}?>
</select>
<font class="error"><b>*</b> <?=$errors?></font>
</td>
any help will appreciated
Regards