category problem
Posted: Sun Nov 21, 2010 10:36 am
Version of script: 2.2
Write your message below:
hello, I would want that how much the staff opens new ticket or visible only authorized categories dall' administrator. Currently all are looked at.
i think modifying this is file /admin/new_ticket.php?
thankyou
Write your message below:
hello, I would want that how much the staff opens new ticket or visible only authorized categories dall' administrator. Currently all are looked at.
i think modifying this is file /admin/new_ticket.php?
Code: Select all
<!-- Department and priority -->
<table border="0" width="100%">
<tr>
<td style="text-align:right" width="150"><?php echo $hesklang['category']; ?>: <font class="important">*</font></td>
<td width="80%"><select name="category">
<?php
if (!empty($_GET['catid']))
{
$_SESSION['as_category'] = intval($_GET['catid']);
}
$sql = 'SELECT * FROM `'.hesk_dbEscape($hesk_settings['db_pfix']).'categories` ORDER BY `cat_order` ASC';
$result = hesk_dbQuery($sql);
while ($row=hesk_dbFetchAssoc($result))
{
if (isset($_SESSION['as_category']) && $_SESSION['as_category'] == $row['id']) {$selected = ' selected="selected"';}
else {$selected = '';}
echo '<option value="'.$row['id'].'"'.$selected.'>'.$row['name'].'</option>';
}
?>
</select></td>
</tr>