2007-06-07 Raul Mateos <raulofpandora@gmail.com>
* operation/agentes/status_monitor.php, estado_alertas.php, operation/incidents/*.php, operation/events/events.php: Closed html tags. Updated with new table style. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@492 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
30371366d5
commit
f3e821d585
|
@ -226,9 +226,8 @@ if (isset($_GET["id_agente"])){
|
|||
} //end while
|
||||
if (isset($string)) {
|
||||
echo "<td class='f9' style='padding-left: 30px;'>";
|
||||
echo "<img src='images/dot_red.gif'> - ".$lang_label["fired"];
|
||||
echo " </td>";
|
||||
echo "<td>";
|
||||
echo "<img src='images/dot_red.gif'> - ".$lang_label["fired"]."</td>";
|
||||
echo "<td class='f9' style='padding-left: 30px;'>";
|
||||
echo "<img src='images/dot_green.gif'> - ".$lang_label["not_fired"];
|
||||
echo "</td></tr></table>";
|
||||
echo "<br>";
|
||||
|
|
|
@ -42,7 +42,7 @@ if (comprueba_login() == 0) {
|
|||
} else {
|
||||
echo "<form method='post' action='index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=60'>";
|
||||
}
|
||||
echo "<table cellspacing='4' cellpadding='4' width=650 class='databox'>";
|
||||
echo "<table cellspacing='4' cellpadding='4' width='600' class='databox'>";
|
||||
echo "<tr><td valign='middle'>".$lang_label["group"]."</td>";
|
||||
echo "<td valign='middle'>";
|
||||
echo "<select name='ag_group' onChange='javascript:this.form.submit();' class='w130'>";
|
||||
|
@ -66,11 +66,9 @@ if (comprueba_login() == 0) {
|
|||
sec2=operation/agentes/status_monitor&refr=60'>";
|
||||
}
|
||||
|
||||
echo "<td> </td>";
|
||||
echo "<td>";
|
||||
echo "<img src='images/b_green.gif'> - ".$lang_label["green_light"]."</td>
|
||||
<td> </td>";
|
||||
echo "<td>";
|
||||
echo "<td class='f9' style='padding-left: 10px;'>";
|
||||
echo "<img src='images/b_green.gif'> - ".$lang_label["green_light"]."</td>";
|
||||
echo "<td class='f9' style='padding-left: 10px;'>";
|
||||
echo "<img src='images/b_red.gif'> - ".$lang_label["red_light"]."</td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
@ -81,7 +79,7 @@ if (comprueba_login() == 0) {
|
|||
if ( isset($ag_modulename)){
|
||||
echo "<option>".$ag_modulename."</option>";
|
||||
}
|
||||
echo "<option>ALL</option>";
|
||||
echo "<option>".$lang_label["all"]."</option>";
|
||||
$sql='SELECT DISTINCT nombre
|
||||
FROM tagente_modulo
|
||||
WHERE (id_tipo_modulo = 2)
|
||||
|
@ -112,7 +110,7 @@ if (comprueba_login() == 0) {
|
|||
$color =1;
|
||||
$result=mysql_query($sql);
|
||||
if (mysql_num_rows($result)){
|
||||
while ($row=mysql_fetch_array($result)){ //while there are agents
|
||||
while ($row=mysql_fetch_array($result)){ //while there are agents
|
||||
if ($row["disabled"] == 0) {
|
||||
if ((isset($ag_modulename)) && ($ag_modulename != "ALL"))
|
||||
$query_gen='SELECT * FROM tagente_modulo
|
||||
|
@ -190,7 +188,8 @@ if (comprueba_login() == 0) {
|
|||
}
|
||||
}
|
||||
if (isset($string)) {
|
||||
echo "<table cellpadding='4' cellspacing='4' width='750' class='databox'>
|
||||
echo "
|
||||
<table cellpadding='4' cellspacing='4' width='750' class='databox'>
|
||||
<tr>
|
||||
<th>
|
||||
<th>".$lang_label["agent"]."</th>
|
||||
|
|
|
@ -160,10 +160,27 @@ if (isset($_POST["event"]))
|
|||
$event = entrada_limpia($_POST["event"]);
|
||||
|
||||
echo "<h2>".$lang_label["events"]." > ".$lang_label["event_main_view"]."<a href='help/".$help_code."/chap5.php#5' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo "<table cellpadding='4' cellspacing='4'><tr>";
|
||||
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox'>";
|
||||
echo "<tr>";
|
||||
echo "<td colspan='2' valign='top'>";
|
||||
echo "<h3>".$lang_label["filter"]."</h3>";
|
||||
echo "</td>";
|
||||
echo "<td rowspan='4' class='f9' style='padding-left: 30px; line-height: 17px; vertical-align: top;'>";
|
||||
echo "<h3>".$lang_label["status"]."</h3>";
|
||||
echo "<img src='images/dot_green.gif'> - ".$lang_label["validated_event"];
|
||||
echo "<br>";
|
||||
echo "<img src='images/dot_red.gif'> - ".$lang_label["not_validated_event"];
|
||||
echo "</td>";
|
||||
echo "<td rowspan='4' class='f9' style='padding-left: 30px; line-height: 17px; vertical-align: top;'>";
|
||||
echo "<h3>".$lang_label["action"]."</h3>";
|
||||
echo "<img src='images/ok.png'> - ".$lang_label["validate_event"];
|
||||
echo "<br>";
|
||||
echo "<img src='images/cross.png'> - ".$lang_label["delete_event"];
|
||||
echo "<br>";
|
||||
echo "<img src='images/page_lightning.png'> - ".$lang_label["create_incident"];
|
||||
echo "</td></tr>";
|
||||
echo "<form method='post' action='index.php?sec=eventos&sec2=operation/events/events&refr=60'>";
|
||||
echo "<td>".$lang_label["group"]."</td>";
|
||||
echo "<tr><td>".$lang_label["group"]."</td>";
|
||||
echo "<td>";
|
||||
echo "<select name='ev_group' onChange='javascript:this.form.submit();' class='w130'>";
|
||||
if ( $ev_group > 1 ){
|
||||
|
@ -172,16 +189,7 @@ if ( $ev_group > 1 ){
|
|||
echo "<option value=1>".dame_nombre_grupo(1)."</option>";
|
||||
list_group ($id_user);
|
||||
echo "</select>";
|
||||
echo "<td class='f9' style='padding-left: 30px; line-height: 17px; vertical-align: top;'>";
|
||||
echo "<img src='images/dot_green.gif'> - ".$lang_label["validated_event"];
|
||||
echo "<br>";
|
||||
echo "<img src='images/dot_red.gif'> - ".$lang_label["not_validated_event"];
|
||||
echo "</td>";
|
||||
echo "<td class='f9' style='padding-left: 30px; line-height: 17px; vertical-align: top;'>";
|
||||
echo "<img src='images/ok.png'> - ".$lang_label["validate_event"];
|
||||
echo "<br>";
|
||||
echo "<img src='images/cross.png'> - ".$lang_label["delete_event"];
|
||||
echo "</td>";
|
||||
|
||||
echo "<tr><td valign='middle'>".$lang_label["events"]."</td>";
|
||||
echo "<td><form method='post' action='index.php?sec=eventos&sec2=operation/events/events&refr=60'>";
|
||||
echo "<select name='event' onChange='javascript:this.form.submit();' class='w155'>";
|
||||
|
|
|
@ -194,7 +194,7 @@ if (isset($_POST['operacion'])){
|
|||
|
||||
?>
|
||||
<form name='visualizacion' method='POST' action='index.php?sec=incidencias&sec2=operation/incidents/incident'>
|
||||
<table border="0" cellpadding=3 cellspacing=3>
|
||||
<table class="databox" cellpadding="4" cellspacing="4">
|
||||
<tr>
|
||||
<td valign="middle">
|
||||
<h3><?php echo $lang_label["filter"]; ?></h3>
|
||||
|
@ -214,23 +214,24 @@ if (isset($_POST['operacion'])){
|
|||
$estado = $_POST["estado"];
|
||||
echo "<option value='".$estado."'>";
|
||||
switch ($estado){
|
||||
case -1: echo $lang_label["all_inc"]; break;
|
||||
case 0: echo $lang_label["opened_inc"]; break;
|
||||
case 13: echo $lang_label["closed_inc"]; break;
|
||||
case 2: echo $lang_label["rej_inc"]; break;
|
||||
case 3: echo $lang_label["exp_inc"]; break;
|
||||
case -1: echo $lang_label["all_inc"]."</option>"; break;
|
||||
case 0: echo $lang_label["opened_inc"]."</option>"; break;
|
||||
case 13: echo $lang_label["closed_inc"]."</option>"; break;
|
||||
case 2: echo $lang_label["rej_inc"]."</option>"; break;
|
||||
case 3: echo $lang_label["exp_inc"]."</option>"; break;
|
||||
}
|
||||
}
|
||||
|
||||
echo "<option value='-1'>".$lang_label["all_inc"];
|
||||
echo "<option value='0'>".$lang_label["opened_inc"];
|
||||
echo "<option value='13'>".$lang_label["closed_inc"];
|
||||
echo "<option value='2'>".$lang_label["rej_inc"];
|
||||
echo "<option value='3'>".$lang_label["exp_inc"];
|
||||
echo "<option value='-1'>".$lang_label["all_inc"]."</option>";
|
||||
echo "<option value='0'>".$lang_label["opened_inc"]."</option>";
|
||||
echo "<option value='13'>".$lang_label["closed_inc"]."</option>";
|
||||
echo "<option value='2'>".$lang_label["rej_inc"]."</option>";
|
||||
echo "<option value='3'>".$lang_label["exp_inc"]."</option>";
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
<td valign="middle"><noscript><input type="submit" class="sub" value="<?php echo $lang_label["show"] ?>" border="0"></noscript>
|
||||
<td valign="middle">
|
||||
<noscript><input type="submit" class="sub" value="<?php echo $lang_label["show"] ?>" border="0"></noscript>
|
||||
</td>
|
||||
<td rowspan="5" class="f9" style="padding-left: 30px; vertical-align: top;">
|
||||
<h3><?php echo $lang_label["status"] ?></h3>
|
||||
|
@ -268,38 +269,45 @@ if ((isset($_GET["prioridad"])) OR (isset($_GET["prioridad"]))){
|
|||
case 10: echo $lang_label["maintenance"]; break;
|
||||
}
|
||||
}
|
||||
echo "<option value='-1'>".$lang_label["all"]." ".$lang_label["priority"]; // al priorities (default)
|
||||
echo '<option value="0">'.$lang_label["informative"];
|
||||
echo '<option value="1">'.$lang_label["low"];
|
||||
echo '<option value="2">'.$lang_label["medium"];
|
||||
echo '<option value="3">'.$lang_label["serious"];
|
||||
echo '<option value="4">'.$lang_label["very_serious"];
|
||||
echo '<option value="10">'.$lang_label["maintenance"];
|
||||
echo "</select></td><td valign='middle><noscript>";
|
||||
echo "<input type='submit' class='sub' value='".$lang_label["show"]."' border='0'></noscript>";
|
||||
echo "<option value='-1'>".$lang_label["all"]." ".$lang_label["priority"]."</option>"; // al priorities (default)
|
||||
echo '<option value="0">'.$lang_label["informative"]."</option>";
|
||||
echo '<option value="1">'.$lang_label["low"]."</option>";
|
||||
echo '<option value="2">'.$lang_label["medium"]."</option>";
|
||||
echo '<option value="3">'.$lang_label["serious"]."</option>";
|
||||
echo '<option value="4">'.$lang_label["very_serious"]."</option>";
|
||||
echo '<option value="10">'.$lang_label["maintenance"]."</option>";
|
||||
echo "</select></td>
|
||||
<td valign='middle>
|
||||
<noscript>
|
||||
<input type='submit' class='sub' value='".$lang_label["show"]."' border='0'>
|
||||
</noscript>";
|
||||
echo "</td>";
|
||||
echo '<tr><td><select name="grupo" onChange="javascript:this.form.submit();" class="w155">';
|
||||
|
||||
if ((isset($_GET["grupo"])) OR (isset($_GET["grupo"]))){
|
||||
if ((isset($_GET["grupo"])) OR (isset($_GET["grupo"]))){
|
||||
if (isset($_GET["grupo"]))
|
||||
$grupo = $_GET["grupo"];
|
||||
if (isset($_POST["grupo"]))
|
||||
$grupo = $_POST["grupo"];
|
||||
echo "<option value=".$grupo.">";
|
||||
|
||||
if ($grupo == -1)
|
||||
if ($grupo == -1) {
|
||||
echo $lang_label["all"]." ".$lang_label["groups"]; // all groups (default)
|
||||
else
|
||||
} else {
|
||||
echo dame_nombre_grupo($grupo);
|
||||
}
|
||||
echo "</option>";
|
||||
}
|
||||
echo "<option value='-1'>".$lang_label["all"]." ".$lang_label["groups"]; // all groups (default)
|
||||
echo "<option value='-1'>".$lang_label["all"]." ".$lang_label["groups"]."</option>"; // all groups (default)
|
||||
$sql2="SELECT * FROM tgrupo";
|
||||
$result2=mysql_query($sql2);
|
||||
while ($row2=mysql_fetch_array($result2)){
|
||||
echo "<option value=".$row2["id_grupo"].">".$row2["nombre"];
|
||||
echo "<option value=".$row2["id_grupo"].">".$row2["nombre"]."</option>";
|
||||
}
|
||||
|
||||
echo "</select></td><td valign='middle'><noscript><input type='submit' class='sub' value='".$lang_label["show"]."' border='0'></noscript></td>";
|
||||
echo "</select></td>
|
||||
<td valign='middle'>
|
||||
<noscript><input type='submit' class='sub' value='".$lang_label["show"]."' border='0'></noscript>
|
||||
</td>";
|
||||
|
||||
// Pass search parameters for possible future filter searching by user
|
||||
if (isset($_GET["usuario"]))
|
||||
|
@ -322,6 +330,11 @@ $row2_count = mysql_fetch_array($result2_count);
|
|||
|
||||
if ($row2_count[0] <= 0 ) {
|
||||
echo '<div class="nf">'.$lang_label["no_incidents"].'</div><br></table>';
|
||||
echo "<table>";
|
||||
echo "<tr><td>";
|
||||
echo "<form method='post' action='index.php?sec=incidencias&sec2=operation/incidents/incident_detail&insert_form'>";
|
||||
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create_incident"]."'></form>";
|
||||
echo "</td></tr></table>";
|
||||
} else {
|
||||
// TOTAL incidents
|
||||
$total_incidentes = $row2_count[0];
|
||||
|
@ -346,17 +359,17 @@ if ($row2_count[0] <= 0 ) {
|
|||
echo '<br>';
|
||||
// Show headers
|
||||
|
||||
echo "<table cellpadding='3' cellspacing='3' width='770'>";
|
||||
echo "<table cellpadding='4' cellspacing='4' width='750' class='databox'>";
|
||||
echo "<tr>";
|
||||
echo "<th width='43'>ID";
|
||||
echo "<th>".$lang_label["status"];
|
||||
echo "<th width='165'>".$lang_label["incident"];
|
||||
echo "<th width='50'>".$lang_label["priority"];
|
||||
echo "<th>".$lang_label["group"];
|
||||
echo "<th width='150'>".$lang_label["updated_at"];
|
||||
echo "<th>".$lang_label["source"];
|
||||
echo "<th width='75'>".$lang_label["in_openedby"];
|
||||
echo "<th>".$lang_label["delete"];
|
||||
echo "<th width='43'>ID</th>";
|
||||
echo "<th>".$lang_label["status"]."</th>";
|
||||
echo "<th width='165'>".$lang_label["incident"]."</th>";
|
||||
echo "<th width='50'>".$lang_label["priority"]."</th>";
|
||||
echo "<th>".$lang_label["group"]."</th>";
|
||||
echo "<th width='150'>".$lang_label["updated_at"]."</th>";
|
||||
echo "<th>".$lang_label["source"]."</th>";
|
||||
echo "<th width='75'>".$lang_label["in_openedby"]."</th>";
|
||||
echo "<th>".$lang_label["delete"]."</th>";
|
||||
$color = 1;
|
||||
|
||||
while ($row2=mysql_fetch_array($result2)){
|
||||
|
@ -372,7 +385,8 @@ if ($row2_count[0] <= 0 ) {
|
|||
}
|
||||
$note_number = dame_numero_notas($row2["id_incidencia"]);
|
||||
echo "<tr>";
|
||||
echo "<td class='$tdcolor' align='center'><a href='index.php?sec=incidencias&sec2=operation/incidents/incident_detail&id=".$row2["id_incidencia"]."'>".$row2["id_incidencia"]."</a>";
|
||||
echo "<td class='$tdcolor' align='center'>
|
||||
<a href='index.php?sec=incidencias&sec2=operation/incidents/incident_detail&id=".$row2["id_incidencia"]."'>".$row2["id_incidencia"]."</a>";
|
||||
|
||||
// Check for attachments in this incident
|
||||
$result3=mysql_query("SELECT * FROM tattachment WHERE id_incidencia = ".$row2["id_incidencia"]);
|
||||
|
@ -434,14 +448,15 @@ if ($row2_count[0] <= 0 ) {
|
|||
}
|
||||
}
|
||||
}
|
||||
echo "<tr><td colspan='9'><div class='raya'></div>" ;
|
||||
echo "</tr></table>";
|
||||
if (give_acl($_SESSION["id_usuario"], 0, "IW")==1) {
|
||||
echo "<table width='750px'>";
|
||||
echo "<tr><td align='right'>";
|
||||
echo "<form method='post' action='index.php?sec=incidencias&sec2=operation/incidents/incident_detail&insert_form'>";
|
||||
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create_incident"]."'></form>";
|
||||
}
|
||||
echo "</td></tr></table>";
|
||||
|
||||
if (give_acl($_SESSION["id_usuario"], 0, "IW")==1) {
|
||||
echo "<tr><td align='right' colspan='9'>";
|
||||
echo "<form method='post' action='index.php?sec=incidencias&sec2=operation/incidents/incident_detail&insert_form'>";
|
||||
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create_incident"]."'></form>";
|
||||
}
|
||||
echo "</td></tr></table>";
|
||||
|
||||
?>
|
|
@ -74,7 +74,8 @@ if (isset($_GET["id"])){
|
|||
$nota = entrada_limpia($_POST["nota"]);
|
||||
$id_usuario=$_SESSION["id_usuario"];
|
||||
|
||||
$sql1 = "INSERT INTO tnota (id_usuario,timestamp,nota) VALUES ('".$id_usuario."','".$timestamp."','".$nota."')";
|
||||
$sql1 = "INSERT INTO tnota (id_usuario,timestamp,nota)
|
||||
VALUES ('".$id_usuario."','".$timestamp."','".$nota."')";
|
||||
$res1=mysql_query($sql1);
|
||||
if ($res1) { echo "<h3 class='suc'>".$lang_label["create_note_ok"]."</h3>"; }
|
||||
|
||||
|
@ -202,9 +203,10 @@ if (isset($id_inc)) {
|
|||
} else {
|
||||
echo $lang_label["create_incident"]."<a href='help/".$help_code."/chap4.php#41' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
}
|
||||
echo '<table cellpadding=3 cellspacing=3 border=0 width=600>';
|
||||
echo '<table cellpadding="4" cellspacing="4" class="databox" width="600">';
|
||||
if ((give_acl($iduser_temp, $id_grupo, "IM")==1) OR ($usuario == $iduser_temp)) {
|
||||
echo '<tr><td class="lb" rowspan="6" width="5"><td class="datos"><b>'.$lang_label["incident"].'</b><td colspan=3 class="datos"><input type="text" name="titulo" size=70 value="'.$titulo.'">';
|
||||
echo '<tr><td class="datos"><b>'.$lang_label["incident"].'</b></td>
|
||||
<td colspan=3 class="datos"><input type="text" name="titulo" size=70 value="'.$titulo.'">';
|
||||
} else {
|
||||
echo '<tr><td class="datos"><b>'.$lang_label["incident"].'</b><td colspan=3 class="datos"><input type="text" name="titulo" size=70 value="'.$titulo.'" readonly>';
|
||||
}
|
||||
|
@ -215,7 +217,7 @@ echo "<td class='datos2'><i>".$actualizacion."</i>";
|
|||
echo '<tr><td class="datos"><b>'.$lang_label["in_openedby"].'</b><td class="datos">';
|
||||
if ((give_acl($id_user, $id_grupo, "IM")==1) OR ($usuario == $id_user)) {
|
||||
echo "<select name='usuario_form' width='200px'>";
|
||||
echo "<option value='".$usuario."'>".$usuario." - ".dame_nombre_real($usuario);
|
||||
echo "<option value='".$usuario."'>".$usuario." - ".dame_nombre_real($usuario)."</option>";
|
||||
$sql1='SELECT * FROM tusuario ORDER BY id_usuario';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row2=mysql_fetch_array($result)){
|
||||
|
@ -236,10 +238,12 @@ else {
|
|||
|
||||
if ((give_acl($iduser_temp, $id_grupo, "IM")==1) OR ($usuario == $iduser_temp)) {
|
||||
echo '<td class="datos"><b>'.$lang_label["status"].'</b>
|
||||
<td class="datos"><select name="estado_form" class="w135">';
|
||||
<td class="datos">
|
||||
<select name="estado_form" class="w135">';
|
||||
} else {
|
||||
echo '<td class="datos"><b>'.$lang_label["status"].'</b>
|
||||
<td class="datos"><select disabled name="estado_form" class="w135">';
|
||||
<td class="datos">
|
||||
<select disabled name="estado_form" class="w135">';
|
||||
}
|
||||
|
||||
switch ( $estado ){
|
||||
|
@ -255,15 +259,17 @@ echo '<option value="0">'.$lang_label["in_state_0"];
|
|||
echo '<option value="2">'.$lang_label["in_state_2"];
|
||||
echo '<option value="3">'.$lang_label["in_state_3"];
|
||||
echo '<option value="13">'.$lang_label["in_state_13"];
|
||||
echo '</select>';
|
||||
echo '</select></td>';
|
||||
|
||||
// Only owner could change source or user with Incident management privileges
|
||||
if ((give_acl($iduser_temp, $id_grupo, "IM")==1) OR ($usuario == $iduser_temp)) {
|
||||
echo '<tr><td class="datos2"><b>'.$lang_label["source"].'</b></td>
|
||||
<td class="datos2"><select name="origen_form" class="w135">';
|
||||
<td class="datos2">
|
||||
<select name="origen_form" class="w135">';
|
||||
} else {
|
||||
echo '<tr><td class="datos2"><b>'.$lang_label["source"].'</b></td>
|
||||
<td class="datos2"><select disabled name="origen_form" class="w135">';
|
||||
<td class="datos2">
|
||||
<select disabled name="origen_form" class="w135">';
|
||||
}
|
||||
// Fill combobox with source (origen)
|
||||
if ($origen != "")
|
||||
|
@ -273,15 +279,17 @@ $result=mysql_query($sql1);
|
|||
while ($row2=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row2["origen"]."'>".$row2["origen"]."</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
echo "</select></td>";
|
||||
|
||||
// Group combo
|
||||
if ((give_acl($iduser_temp, $id_grupo, "IM")==1) OR ($usuario == $iduser_temp)) {
|
||||
echo '<td class="datos2"><b>'.$lang_label["group"].'</b></td>
|
||||
<td class="datos2"><select name="grupo_form" class="w135">';
|
||||
<td class="datos2">
|
||||
<select name="grupo_form" class="w135">';
|
||||
} else {
|
||||
echo '<td class="datos2"><b>'.$lang_label["group"].'</b></td>
|
||||
<td class="datos2"><select disabled name="grupo_form" class="w135">';
|
||||
<td class="datos2">
|
||||
<select disabled name="grupo_form" class="w135">';
|
||||
}
|
||||
if ($id_grupo != 0)
|
||||
echo "<option value='".$id_grupo."'>".$grupo;
|
||||
|
@ -292,7 +300,7 @@ while ($row=mysql_fetch_array($result)){
|
|||
echo "<option value='".$row["id_grupo"]."'>".$row["nombre"]."</option>";
|
||||
}
|
||||
|
||||
echo '</select><tr>';
|
||||
echo '</select></td></tr><tr>';
|
||||
if ((give_acl($iduser_temp, $id_grupo, "IM")==1) OR ($usuario == $iduser_temp)) {
|
||||
echo '<td class="datos"><b>'.$lang_label["priority"].'</b></td>
|
||||
<td class="datos"><select name="prioridad_form" class="w135">';
|
||||
|
@ -302,20 +310,20 @@ if ((give_acl($iduser_temp, $id_grupo, "IM")==1) OR ($usuario == $iduser_temp))
|
|||
}
|
||||
|
||||
switch ( $prioridad ){
|
||||
case 0: echo '<option value="0">'.$lang_label["informative"]; break;
|
||||
case 1: echo '<option value="1">'.$lang_label["low"]; break;
|
||||
case 2: echo '<option value="2">'.$lang_label["medium"]; break;
|
||||
case 3: echo '<option value="3">'.$lang_label["serious"]; break;
|
||||
case 4: echo '<option value="4">'.$lang_label["very_serious"]; break;
|
||||
case 10: echo '<option value="10">'.$lang_label["maintenance"]; break;
|
||||
case 0: echo '<option value="0">'.$lang_label["informative"].'</option>'; break;
|
||||
case 1: echo '<option value="1">'.$lang_label["low"].'</option>'; break;
|
||||
case 2: echo '<option value="2">'.$lang_label["medium"].'</option>'; break;
|
||||
case 3: echo '<option value="3">'.$lang_label["serious"].'</option>'; break;
|
||||
case 4: echo '<option value="4">'.$lang_label["very_serious"].'</option>'; break;
|
||||
case 10: echo '<option value="10">'.$lang_label["maintenance"].'</option>'; break;
|
||||
}
|
||||
|
||||
echo '<option value="0">'.$lang_label["informative"];
|
||||
echo '<option value="1">'.$lang_label["low"];
|
||||
echo '<option value="2">'.$lang_label["medium"];
|
||||
echo '<option value="3">'.$lang_label["serious"];
|
||||
echo '<option value="4">'.$lang_label["very_serious"];
|
||||
echo '<option value="10">'.$lang_label["maintenance"];
|
||||
echo '<option value="0">'.$lang_label["informative"].'</option>';
|
||||
echo '<option value="1">'.$lang_label["low"].'</option>';
|
||||
echo '<option value="2">'.$lang_label["medium"].'</option>';
|
||||
echo '<option value="3">'.$lang_label["serious"].'</option>';
|
||||
echo '<option value="4">'.$lang_label["very_serious"].'</option>';
|
||||
echo '<option value="10">'.$lang_label["maintenance"].'</option>';
|
||||
|
||||
echo "<td class='datos'><b>Creator</b>
|
||||
<td class='datos'>".$id_creator." ( <i>".dame_nombre_real($id_creator)." </i>)";
|
||||
|
@ -334,8 +342,8 @@ if (isset($texto)) {
|
|||
}
|
||||
echo "</textarea></td></tr>";
|
||||
|
||||
echo '<tr><td colspan="5"><div class="raya"></div></td></tr>';
|
||||
echo "<tr><td colspan='5' align='right'>";
|
||||
echo '</table><table width="600px">';
|
||||
echo "<tr><td align='right'>";
|
||||
// Only if user is the used who opened incident or (s)he is admin
|
||||
|
||||
$iduser_temp=$_SESSION['id_usuario'];
|
||||
|
@ -366,8 +374,8 @@ if ($creacion_incidente == 0){
|
|||
if (give_acl($iduser_temp, $id_grupo, "IW")==1){
|
||||
echo '
|
||||
<h3>'.$lang_label["attachfile"].'</h3>
|
||||
<table cellpadding=3 cellspacing=3 border=0 width="400">
|
||||
<tr><td class="lb" rowspan="2" width="5">
|
||||
<table cellpadding="4" cellspacing="3" class="databox" width="400">
|
||||
<tr>
|
||||
<td class="datos">'.$lang_label["filename"].'</td>
|
||||
<td class="datos"><form method="post" action="index.php?sec=incidencias&sec2=operation/incidents/incident_detail&id='.$id_inc.'&upload_file=1" enctype="multipart/form-data">
|
||||
<input type="file" name="userfile" value="userfile" class="sub" size="40">
|
||||
|
@ -375,9 +383,11 @@ if ($creacion_incidente == 0){
|
|||
<tr><td class="datos2">'.$lang_label["description"].'</td>
|
||||
<td class="datos2" colspan="3">
|
||||
<input type="text" name="file_description" size="47">
|
||||
<tr><td colspan="4"><div class="raya"></div></td></tr>
|
||||
<tr><td colspan="4" style="text-align: right;">
|
||||
<input type="submit" name="upload" value="'.$lang_label["upload"].'" class="sub">
|
||||
</td></tr>
|
||||
</table>
|
||||
<table width="400px">
|
||||
<tr><td style="text-align: right;">
|
||||
<input type="submit" name="upload" value="'.$lang_label["upload"].'" class="sub wand">
|
||||
</td></tr></table><br>';
|
||||
}
|
||||
// ************************************************************
|
||||
|
@ -389,7 +399,7 @@ if ($creacion_incidente == 0){
|
|||
|
||||
if (mysql_num_rows($att_fil))
|
||||
{
|
||||
echo "<table cellpadding='3' cellspacing='3' border='0' width='650'>";
|
||||
echo "<table cellpadding='4' cellspacing='4' class='data_box' width='650'>";
|
||||
echo "<tr><td>";
|
||||
echo "<h3>".$lang_label["attached_files"]."</h3>";
|
||||
echo "</td></tr><td>";
|
||||
|
@ -409,7 +419,7 @@ if ($creacion_incidente == 0){
|
|||
}
|
||||
|
||||
}
|
||||
echo "<tr><td colspan='4'><div class='raya'></div></td></tr></table></table><br>";
|
||||
echo "</td></tr></table></table><br>";
|
||||
}
|
||||
// ********************************************************************
|
||||
// Notes
|
||||
|
@ -419,10 +429,10 @@ if ($creacion_incidente == 0){
|
|||
$res4=mysql_query($sql4);
|
||||
while ($row2=mysql_fetch_array($res4)){
|
||||
if ($cabecera == 0) { // Show head only one time
|
||||
echo "<table cellpadding='3' cellspacing='3' border='0' width='550px'>";
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox' width='550px'>";
|
||||
echo "<tr><td>";
|
||||
echo "<h3>".$lang_label["in_notas_t1"]."</h3>";
|
||||
echo "<table cellpadding='3' cellspacing='3' border='0'>";
|
||||
echo "<table cellpadding='' cellspacing='3' border='0'>";
|
||||
echo "<tr><td>";
|
||||
$cabecera = 1;
|
||||
}
|
||||
|
|
|
@ -24,20 +24,23 @@ require("include/config.php");
|
|||
if (comprueba_login() == 0) {
|
||||
|
||||
$id_inc = $_GET["id_inc"];
|
||||
$ahora=date("Y/m/d H:i:s");
|
||||
$now=date("Y/m/d H:i:s");
|
||||
|
||||
// Create Note
|
||||
echo "<h2>".$lang_label["incident_manag"]."</h2>";
|
||||
echo "<h3>".$lang_label["note_title"]." #".$id_inc."<a href='help/".$help_code."/chap3.php#331' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h3>";
|
||||
echo "<table cellpadding=3 cellspacing=3 border=0><form name='nota' method='post' action='index.php?sec=incidencias&sec2=operation/incidents/incident_detail&insertar_nota=1&id=".$id_inc."'>";
|
||||
echo "<tr><td class='lb' rowspan='2' width='5'><td class='datos'><b>".$lang_label["date"]."</b>";
|
||||
echo "<td class='datos'>".$ahora;
|
||||
echo "<input type='hidden' name='timestamp' value='".$ahora."'>";
|
||||
echo "<h2>".$lang_label["incident_manag"]." > ";
|
||||
echo $lang_label["note_title"]." #".$id_inc."<a href='help/".$help_code."/chap3.php#331' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox' width='550px'>
|
||||
<form name='nota' method='post' action='index.php?sec=incidencias&sec2=operation/incidents/incident_detail&insertar_nota=1&id=".$id_inc."'>";
|
||||
echo "<tr><td class='datos'><b>".$lang_label["date"]."</b>";
|
||||
echo "<td class='datos'>".$now."</td>";
|
||||
echo "<input type='hidden' name='timestamp' value='".$now."'>";
|
||||
echo "<input type='hidden' name='id_inc' value='".$id_inc."'>";
|
||||
echo '<tr><td colspan="3" class="datos2"><textarea name="nota" rows="20" cols="85">';
|
||||
echo '<tr><td colspan="3" class="datos2"><textarea name="nota" rows="20" cols="80">';
|
||||
echo '</textarea>';
|
||||
echo '<tr><td colspan="3"><div class="raya"></div></td></tr>';
|
||||
echo '<tr><td colspan="3" align="right"><input name="addnote" type="submit" class="sub" value="'.$lang_label["add"].'">';
|
||||
echo '</td></tr>';
|
||||
echo '</table><table width="550">';
|
||||
echo '<tr><td align="right">
|
||||
<input name="addnote" type="submit" class="sub wand" value="'.$lang_label["add"].'">';
|
||||
echo '</table>';
|
||||
|
||||
} // end page
|
|
@ -29,9 +29,8 @@ echo "<div style='width:645'>";
|
|||
echo "<div style='float:right;'><img src='images/pulpo_lupa.gif' class='bot' align='left'></div>";
|
||||
?>
|
||||
<div style='float:left;'>
|
||||
<table width="500" cellpadding="3" cellspacing="3">
|
||||
<table width="500" cellpadding="4" cellspacing="4" class='databox'>
|
||||
<form name="busqueda" method="post" action="index.php?sec=incidencias&sec2=operation/incidents/incident">
|
||||
<td class='lb' rowspan="4" width="5">
|
||||
<tr>
|
||||
<td class="datos"><?php echo $lang_label["user"] ?>
|
||||
<td class="datos">
|
||||
|
@ -48,7 +47,8 @@ echo "<div style='float:right;'><img src='images/pulpo_lupa.gif' class='bot' ali
|
|||
<tr><td class="datos2"><?php echo $lang_label["free_text_search"] ?>
|
||||
<td class="datos2"><input type="text" size="45" name="texto"></tr>
|
||||
<tr><td class="datos" colspan="2"><i><?php echo $lang_label["free_text_search_msg"] ?></i></td></tr>
|
||||
<tr><td colspan='3'><div class='raya'></div></td></tr>
|
||||
</table>
|
||||
<table width="500">
|
||||
<tr><td align="right" colspan="3">
|
||||
<?php echo "<input name='uptbutton' type='submit' class='sub search' value='".$lang_label["search"]."'>"; ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue