".$lang_label["del_incid_ok"].""; audit_db($id_author_inc,$REMOTE_ADDR,"Incident deleted","User ".$id_usuario." deleted incident #".$id_inc); } else { audit_db($id_author_inc,$REMOTE_ADDR,"ACL Forbidden","User ".$_SESSION["id_usuario"]." try to delete incident"); echo "
ID"; echo " | ".$lang_label["status"]; echo " | ".$lang_label["incident"]; echo " | ".$lang_label["priority"]; echo " | ".$lang_label["group"]; echo " | ".$lang_label["updated_at"]; echo " | ".$lang_label["source"]; echo " | ".$lang_label["in_openedby"]; echo " | ".$lang_label["delete"]; $color = 1; while ($row2=mysql_fetch_array($result2)){ $id_group = $row2["id_grupo"]; if (give_acl($id_usuario, $id_group, "IR") ==1){ if ($color == 1){ $tdcolor = "datos"; $color = 0; } else { $tdcolor = "datos2"; $color = 1; } $note_number = dame_numero_notas($row2["id_incidencia"]); 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,25); 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 $lang_label["informative"]; break; case 1: echo $lang_label["low"]; break; case 2: echo $lang_label["medium"]; break; case 3: echo $lang_label["serious"]; break; case 4: echo $lang_label["very_serious"]; break; case 10: echo $lang_label["maintenance"]; break; */ echo " | ".dame_nombre_grupo($row2["id_grupo"]); echo " | ".$row2["actualizacion"]; echo " | ".$row2["origen"]; echo " | ".dame_nombre_real($row2["id_usuario"])."".substr($row2["id_usuario"], 0, 8)." | "; $id_author_inc = $row2["id_usuario"]; if ((give_acl($id_usuario, $id_group, "IM") ==1) OR ($_SESSION["id_usuario"] == $id_author_inc) ){ // Only incident owners or incident manager // from this group can delete incidents echo ""; } } } echo " |
" ; } if (give_acl($_SESSION["id_usuario"], 0, "IW")==1) { echo " | ||||||||
"; echo ""; } echo " |