> >
 

*

: * />
: * />
: * />
'; } elseif (hesk_dbNumRows($res) < 1) { /* No public categories, set it to default one */ echo ''; } else { /* List available categories */ $is_table = 1; ?> '; $is_table = 1; } ?>
'; } ?> $v) { if ($v['use'] && $v['place']==0) { if ($print_table == 0) { echo '
: *
: *
'; $print_table = 1; } $v['req'] = $v['req'] ? '*' : ''; if ($v['type'] == 'checkbox') { $k_value = array(); if (isset($_SESSION["c_$k"]) && is_array($_SESSION["c_$k"])) { foreach ($_SESSION["c_$k"] as $myCB) { $k_value[] = stripslashes(hesk_input($myCB)); } } } elseif (isset($_SESSION["c_$k"])) { $k_value = stripslashes(hesk_input($_SESSION["c_$k"])); } else { $k_value = ''; } switch ($v['type']) { /* Radio box */ case 'radio': echo ' '; break; /* Select drop-down box */ case 'select': $cls = in_array($k,$_SESSION['iserror']) ? ' class="isError" ' : ''; echo ' '; break; /* Checkbox */ case 'checkbox': echo ' '; break; /* Large text box */ case 'textarea': $size = explode('#',$v['value']); $size[0] = empty($size[0]) ? 5 : intval($size[0]); $size[1] = empty($size[1]) ? 30 : intval($size[1]); $cls = in_array($k,$_SESSION['iserror']) ? ' class="isError" ' : ''; echo ' '; break; /* Default text input */ default: if (strlen($k_value) != 0) { $v['value'] = $k_value; } $cls = in_array($k,$_SESSION['iserror']) ? ' class="isError" ' : ''; echo ' '; } } } /* If table was started we need to close it */ if ($print_table) { echo '
'.$v['name'].': '.$v['req'].' '; $options = explode('#HESK#',$v['value']); $cls = in_array($k,$_SESSION['iserror']) ? ' class="isError" ' : ''; foreach ($options as $option) { if (strlen($k_value) == 0 || $k_value == $option) { $k_value = $option; $checked = 'checked="checked"'; } else { $checked = ''; } echo '
'; } echo '
'.$v['name'].': '.$v['req'].'
'.$v['name'].': '.$v['req'].' '; $options = explode('#HESK#',$v['value']); $cls = in_array($k,$_SESSION['iserror']) ? ' class="isError" ' : ''; foreach ($options as $option) { if (in_array($option,$k_value)) { $checked = 'checked="checked"'; } else { $checked = ''; } echo '
'; } echo '
'.$v['name'].': '.$v['req'].'
'.$v['name'].': '.$v['req'].'
'; $print_table = 0; } ?>
: * />
: *
$v) { if ($v['use'] && $v['place']) { if ($print_table == 0) { echo '
'; $print_table = 1; } $v['req'] = $v['req'] ? '*' : ''; if ($v['type'] == 'checkbox') { $k_value = array(); if (isset($_SESSION["c_$k"]) && is_array($_SESSION["c_$k"])) { foreach ($_SESSION["c_$k"] as $myCB) { $k_value[] = stripslashes(hesk_input($myCB)); } } } elseif (isset($_SESSION["c_$k"])) { $k_value = stripslashes(hesk_input($_SESSION["c_$k"])); } else { $k_value = ''; } switch ($v['type']) { /* Radio box */ case 'radio': echo ' '; break; /* Select drop-down box */ case 'select': $cls = in_array($k,$_SESSION['iserror']) ? ' class="isError" ' : ''; echo ' '; break; /* Checkbox */ case 'checkbox': echo ' '; break; /* Large text box */ case 'textarea': $size = explode('#',$v['value']); $size[0] = empty($size[0]) ? 5 : intval($size[0]); $size[1] = empty($size[1]) ? 30 : intval($size[1]); $cls = in_array($k,$_SESSION['iserror']) ? ' class="isError" ' : ''; echo ' '; break; /* Default text input */ default: if (strlen($k_value) != 0) { $v['value'] = $k_value; } $cls = in_array($k,$_SESSION['iserror']) ? ' class="isError" ' : ''; echo ' '; } } } /* If table was started we need to close it */ if ($print_table) { echo '
'.$v['name'].': '.$v['req'].' '; $options = explode('#HESK#',$v['value']); $cls = in_array($k,$_SESSION['iserror']) ? ' class="isError" ' : ''; foreach ($options as $option) { if (strlen($k_value) == 0 || $k_value == $option) { $k_value = $option; $checked = 'checked="checked"'; } else { $checked = ''; } echo '
'; } echo '
'.$v['name'].': '.$v['req'].'
'.$v['name'].': '.$v['req'].' '; $options = explode('#HESK#',$v['value']); $cls = in_array($k,$_SESSION['iserror']) ? ' class="isError" ' : ''; foreach ($options as $option) { if (in_array($option,$k_value)) { $checked = 'checked="checked"'; } else { $checked = ''; } echo '
'; } echo '
'.$v['name'].': '.$v['req'].'
'.$v['name'].': '.$v['req'].'
'; $print_table = 0; } ?>
:
'; } ?>
* '; ?>
 
* '.$hesklang['vrfy']; } else { $cls = in_array('mysecnum',$_SESSION['iserror']) ? ' class="isError" ' : ''; echo $hesklang['sec_enter'].'
 
'.$hesklang['sec_img'].' '. ''.$hesklang['reload'].''. '
 
'; } ?>
  • .
  • .
:

 
 
 
 
 
 
>
 


 
 


 

 

»

 

 

 

 

 

 

 

$hesklang['open'], 1 => $hesklang['wait_staff_reply'], 2 => $hesklang['wait_cust_reply'], 3 => $hesklang['closed'], 4 => $hesklang['in_progress'], 5 => $hesklang['on_hold'], ); /* Get ticket(s) from database */ require(HESK_PATH . 'inc/database.inc.php'); hesk_dbConnect(); /* Remind for open tickets only? */ $open_sql = $hesk_settings['open_only'] ? "`status` != '3' AND " : ''; /* SQL code for getting tickets */ $sql = 'SELECT * FROM `'.hesk_dbEscape($hesk_settings['db_pfix']).'tickets` WHERE '.$open_sql.' '.hesk_dbFormatEmail($email); /* Show open tickets on top */ $sql .= ' ORDER BY `status` ASC, `lastchange` DESC '; $res = hesk_dbQuery($sql); $num = hesk_dbNumRows($res); if ($num < 1) { if ($hesk_settings['open_only']) { hesk_process_messages($hesklang['noopen'],'ticket.php?remind=1&e='.$email); } else { hesk_process_messages($hesklang['tid_not_found'],'ticket.php?remind=1&e='.$email); } } $tid_list = ''; $name = ''; $email_param = $hesk_settings['email_view_ticket'] ? '&e='.rawurlencode($email) : ''; while ($my_ticket=hesk_dbFetchAssoc($res)) { $name = $name ? $name : $my_ticket['name']; $tid_list .= " $hesklang[trackID]: $my_ticket[trackid] $hesklang[subject]: ".html_entity_decode($my_ticket['subject'])." $hesklang[status]: ".$my_status[$my_ticket['status']]." $hesk_settings[hesk_url]/ticket.php?track=$my_ticket[trackid]$email_param "; } /* Get e-mail message for customer */ $msg = hesk_getEmailMessage('forgot_ticket_id','',0,0,1); $msg = str_replace('%%NAME%%',$name,$msg); $msg = str_replace('%%NUM%%',$num,$msg); $msg = str_replace('%%LIST_TICKETS%%',$tid_list,$msg); $msg = str_replace('%%SITE_TITLE%%',$hesk_settings['site_title'],$msg); $msg = str_replace('%%SITE_URL%%',$hesk_settings['site_url'],$msg); $subject = hesk_getEmailSubject('forgot_ticket_id'); /* Send e-mail */ hesk_mail($email, $subject, $msg); /* Show success message */ $tmp = ''.$hesklang['tid_sent'].'!'; $tmp .= '
 
'.$hesklang['tid_sent2'].'.'; $tmp .= '
 
'.$hesklang['check_spambox']; hesk_process_messages($tmp,'ticket.php?e='.$email,'SUCCESS'); exit(); /* Print header */ $hesk_settings['tmp_title'] = $hesk_settings['hesk_title'] . ' - ' . $hesklang['tid_sent']; require_once(HESK_PATH . 'inc/header.inc.php'); ?>
> >