Hi every one!
The problem that i have is:
i would like to know how can i mark a ticket when the user has responsed it, i mean, not have to open each ticket to see if no response.
For mark i would like paint some cell (like ticket id) of a diferent color.
that´s is similar the field "priority" function
for this, i think i would need rescue the value of "is_answerd" in ticket table, and if the value is 1 the cell will be painted, but if is 0 the field will be white.
i hope someone could understand and help me! tanks
-.-
Hola a todos!
El dilema ante el que me encuentro es el siguiente:
me gustaría saber como marcar un ticket cuando el usuario lo ha respondido, es decir, que no se tenga que abrir cada ticket para saber si hay respuesta.
Por marca me gustaría pintar algun campo (por ejemplo ticketid) de un color diferente, siendo el funcionamiento similar al campo "prioridad".
Para esto, seria rescatar de la bd el valor de is_answerd(tabla ticket) y si el valor es 1 que el campo sea pintado y si es 0 que se quede en blanco...
espero que me haya dado a entender...y mas aun que alguien me pueda ayudar...
saludos y gracias
EDIT:
Edit:
i´m try to make work the next php code
<?php
$class = "row1";
$total=0;
if($tickets_res && ($num=db_num_rows($tickets_res))):
while ($row = db_fetch_array($tickets_res)) {
$tag=$row?'assigned':'openticket';
$flag=null;
if($row){
$flag='locked';
$ger_flag='bloqueado';
}
elseif($row){
$flag='assigned';
$ger_flag='asignado';
}
elseif($row){
$flag='overdue';
$ger_flag='vencido';
}
$tid=$row;
$subject = Format:($row,40);
if(!strcasecmp($row,'open') && !$row && !$row) {
$tid=sprintf('<b>%s</b>',$tid);
//$subject=sprintf('<b>%s</b>',Format:($row,40)); // Making the subject bold is too much for the eye
}
?>
that supouse to do:
only embolden the ticket that the user has responded, (blue) and those who had not replied leave it in plain text (pink)
But it do:
They mark me all ticket id