";
echo "
".$row2["id_incidencia"]."";
// Check for attachments in this incident
$result3=mysql_query("SELECT * FROM tattachment WHERE id_incidencia = ".$row2["id_incidencia"]);
mysql_fetch_array($result3);
if (mysql_affected_rows() > 0)
echo ' ';
// Tipo de estado (Type)
// 0 - Abierta / Sin notas (Open, no notes)
// 1 - Abierta / Notas anyadidas (Open with notes)
// 2 - Descartada (not valid)
// 3 - Caducada (out of date)
// 13 - Cerrada (closed)
// Verify if the status changes
if (($row2["estado"] == 0) && ($note_number >0 )){
$row2["estado"] = 1;
}
echo " | ";
switch ($row2["estado"]) {
case 0: echo "";
break;
case 1: echo "";
break;
case 2: echo "";
break;
case 3: echo "";
break;
case 13: echo "";
break;
}
echo " | ".substr(salida_limpia($row2["titulo"]),0,45);
echo " | ";
switch ( $row2["prioridad"] ){
case 0: echo ""."".""; break;
case 1: echo ""."".""; break;
case 2: echo ""."".""; break;
case 3: echo ""."".""; break;
case 4: echo ""."".""; break;
case 10: echo ""."".""; break;
}
/*
case 0: echo __('Informative'); break;
case 1: echo __('Low'); break;
case 2: echo __('Medium'); break;
case 3: echo __('Serious'); break;
case 4: echo __('Very Serious'); break;
case 10: echo __('Maintenance'); break;
*/
echo " | ";
$id_grupo = $row2["id_grupo"];
echo '';
echo " | ".human_time_comparation($row2["actualizacion"]);
echo " | ".$row2["origen"];
echo " | ".$row2["id_usuario"]." | ";
$id_author_inc = $row2["id_usuario"];
if (give_acl ($config['id_user'], $id_group, "IM") || $config["id_user"] == $id_author_inc) {
// Only incident owners or incident manager
// from this group can delete incidents
echo " | ";
}
}
}
echo "