2007-04-18 Raul Mateos <raulofpandora@gmail.com>
* include/pandora.css: removed old "wxx" classes. Change some colours for agent general information tabs. * include/god.css, link.css: minimal changes for case letters. * several .php updated to use the changes in sytles. No new features or functionality changed. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@428 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
6f468708d8
commit
f7f65ef1db
|
@ -1,6 +1,14 @@
|
|||
2007-04-18 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* pandoradb_data.sql, pandoradb.sql: Fixed small warnings.
|
||||
|
||||
* include/pandora.css: removed old "wxx" classes. Change some colours
|
||||
for agent general information tabs.
|
||||
|
||||
* include/god.css, link.css: minimal changes for case letters.
|
||||
|
||||
* several .php updated to use the changes in sytles. No new features or
|
||||
functionality changed.
|
||||
|
||||
2007-04-18 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
|
|
|
@ -31,9 +31,9 @@
|
|||
echo '<table cellpadding="3" cellspacing="3" width="700"><tr>';
|
||||
echo '<th>' . $lang_label["user"] . '</th>';
|
||||
echo '<th>' . $lang_label["action"] . '</th>';
|
||||
echo '<th class="w130">' . $lang_label["date"] . '</th>';
|
||||
echo '<th width="130px">' . $lang_label["date"] . '</th>';
|
||||
echo '<th>' . $lang_label["src_address"] . '</th>';
|
||||
echo '<th class="w200">' . $lang_label["comments"] . '</th></tr>';
|
||||
echo '<th width="200px">' . $lang_label["comments"] . '</th></tr>';
|
||||
|
||||
// Skip offset records
|
||||
$query1="SELECT * FROM tsesion WHERE (TO_DAYS(fecha) > TO_DAYS(NOW()) - 7) AND ID_usuario = '" . $nick . "' ORDER BY fecha DESC limit 15";
|
||||
|
|
|
@ -94,11 +94,11 @@
|
|||
// table header
|
||||
echo '<table cellpadding="3" cellspacing="3" width=700>';
|
||||
echo '<tr>';
|
||||
echo '<th class="w70">'.$lang_label["user"].'</th>';
|
||||
echo '<th width="80px">'.$lang_label["user"].'</th>';
|
||||
echo '<th>'.$lang_label["action"].'</th>';
|
||||
echo '<th class="w130">'.$lang_label["date"].'</th>';
|
||||
echo '<th class="w100">'.$lang_label["src_address"].'</th>';
|
||||
echo '<th class="w200">'.$lang_label["comments"].'</th>';
|
||||
echo '<th width="130px">'.$lang_label["date"].'</th>';
|
||||
echo '<th width="100px">'.$lang_label["src_address"].'</th>';
|
||||
echo '<th width="200px">'.$lang_label["comments"].'</th>';
|
||||
|
||||
// Skip offset records
|
||||
$query1="SELECT * FROM tsesion ".$tipo_log_select." ORDER BY fecha DESC";
|
||||
|
|
|
@ -16,10 +16,11 @@ if ( (give_acl($id_user, 0, "LM")==1)){
|
|||
$descripcion= entrada_limpia($_POST["descripcion"]);
|
||||
$sql_update ="UPDATE talerta SET nombre = '".$nombre."', comando = '".$comando."', descripcion = '".$descripcion."' WHERE id_alerta= '".$id_alerta."'";
|
||||
$result=mysql_query($sql_update);
|
||||
if (! $result)
|
||||
if (! $result) {
|
||||
echo "<h3 class='error'>".$lang_label["update_alert_no"]."</h3>";
|
||||
else
|
||||
} else {
|
||||
echo "<h3 class='suc'>".$lang_label["update_alert_ok"]."</h3>";
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_POST["crear_alerta"])){ // if create alert
|
||||
|
@ -50,9 +51,9 @@ if ( (give_acl($id_user, 0, "LM")==1)){
|
|||
echo "<h2>".$lang_label["alert_config"]."</h2>";
|
||||
echo "<h3>".$lang_label["alert_defined2"]."<a href='help/".$help_code."/chap3.php#3221' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h3>";
|
||||
echo "<table width='500' cellpadding='3' cellspacing='3'>";
|
||||
echo "<th class='w100'>".$lang_label["alertname"];
|
||||
echo "<th>".$lang_label["description"];
|
||||
echo "<th>".$lang_label["delete"];
|
||||
echo "<th width='100px'>".$lang_label["alertname"]."</th>";
|
||||
echo "<th>".$lang_label["description"]."</th>";
|
||||
echo "<th>".$lang_label["delete"]."</th>";
|
||||
$color=1;
|
||||
$sql1='SELECT * FROM talerta ORDER BY nombre';
|
||||
$result=mysql_query($sql1);
|
||||
|
@ -65,9 +66,9 @@ if ( (give_acl($id_user, 0, "LM")==1)){
|
|||
$tdcolor = "datos2";
|
||||
$color = 1;
|
||||
}
|
||||
echo "<tr><td class='$tdcolor'><b><a href='index.php?sec=galertas&sec2=godmode/alertas/configurar_alerta&id_alerta=".$row["id_alerta"]."'>".$row["nombre"]."</a></b>";
|
||||
echo "<td class='$tdcolor'>".$row["descripcion"];
|
||||
echo "<td class='$tdcolor' align='center'><a href='index.php?sec=gagente&sec2=godmode/alertas/modificar_alerta&borrar_alerta=".$row["id_alerta"]."' onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) return false;'><img border='0' src='images/cross.png'></a>";
|
||||
echo "<tr><td class='$tdcolor'><b><a href='index.php?sec=galertas&sec2=godmode/alertas/configurar_alerta&id_alerta=".$row["id_alerta"]."'>".$row["nombre"]."</a></b></td>";
|
||||
echo "<td class='$tdcolor'>".$row["descripcion"]."</td>";
|
||||
echo "<td class='$tdcolor' align='center'><a href='index.php?sec=gagente&sec2=godmode/alertas/modificar_alerta&borrar_alerta=".$row["id_alerta"]."' onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) return false;'><img border='0' src='images/cross.png'></a></td></tr>";
|
||||
}
|
||||
|
||||
echo "<tr><td colspan='3'><div class='raya'></div></td></tr>";
|
||||
|
@ -79,7 +80,7 @@ if ( (give_acl($id_user, 0, "LM")==1)){
|
|||
|
||||
} // End page
|
||||
else {
|
||||
audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
}
|
||||
audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access Alert Management");
|
||||
require ("general/noaccess.php");
|
||||
}
|
||||
?>
|
|
@ -121,7 +121,7 @@ if (comprueba_login() == 0)
|
|||
<form name="db_audit" method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_audit">
|
||||
<table width='300' border='0'>
|
||||
<tr><td class='datos'>
|
||||
<select name="date_purge" class="w255">
|
||||
<select name="date_purge" width="255px">
|
||||
<option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_audit_90day"] ?>
|
||||
<option value="<?php echo $month ?>"><?php echo $lang_label["purge_audit_30day"] ?>
|
||||
<option value="<?php echo $week2 ?>"><?php echo $lang_label["purge_audit_14day"] ?>
|
||||
|
|
|
@ -104,7 +104,7 @@ if (comprueba_login() == 0)
|
|||
<form name="db_audit" method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_event">
|
||||
<table width='300' border='0'>
|
||||
<tr><td class='datos'>
|
||||
<select name="date_purge" class="w255">
|
||||
<select name="date_purge" width="255px">
|
||||
<option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_event_90day"] ?>
|
||||
<option value="<?php echo $month ?>"><?php echo $lang_label["purge_event_30day"] ?>
|
||||
<option value="<?php echo $week2 ?>"><?php echo $lang_label["purge_event_14day"] ?>
|
||||
|
|
|
@ -229,7 +229,7 @@ if (comprueba_login() == 0)
|
|||
<h3><?php echo $lang_label["purge_data"] ?></h3>
|
||||
<table width=300 border=0>
|
||||
<tr><td>
|
||||
<select name="date_purge" class="w255">
|
||||
<select name="date_purge" width="255px">
|
||||
<option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_90day"] ?>
|
||||
<option value="<?php echo $month ?>"><?php echo $lang_label["purge_30day"] ?>
|
||||
<option value="<?php echo $week2 ?>"><?php echo $lang_label["purge_14day"] ?>
|
||||
|
|
|
@ -69,8 +69,8 @@ if (comprueba_login() == 0) {
|
|||
echo '<form name="servers" method="POST" action="index.php?sec=gserver&sec2=godmode/servers/modificar_server&update=1">';
|
||||
echo "<table cellpadding='3' cellspacing='3' width='450'>";
|
||||
echo "<tr><td class='lb' rowspan='3' width='5'>";
|
||||
echo "<td class='datos'>".$lang_label["name"]."</td><td class='datos'><input type='text' name='name' value='".$name."' class='w200'>";
|
||||
echo "<tr><td class='datos2'>".$lang_label['ip_address']."</td><td class='datos2'><input type='text' name='address' value='".$address."' class='w200'>";
|
||||
echo "<td class='datos'>".$lang_label["name"]."</td><td class='datos'><input type='text' name='name' value='".$name."' width="200px">";
|
||||
echo "<tr><td class='datos2'>".$lang_label['ip_address']."</td><td class='datos2'><input type='text' name='address' value='".$address."' width="200px">";
|
||||
echo "<tr><td class='datos'>".$lang_label['description']."<td class='datos'><input type='text' name='description' value='".$description."'><input type='hidden' name='server' value='".entrada_limpia($_GET["server"])."'></input>";
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -88,8 +88,8 @@ if (comprueba_login() == 0)
|
|||
echo "<h2>".$lang_label["setup_screen"]."</h2>";
|
||||
echo "<h3>".$lang_label["link_management"]."<a href='help/".$help_code."/chap9.php#9' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h3>";
|
||||
echo "<table cellpadding=3 cellspacing=3>";
|
||||
echo "<th class='w180'>".$lang_label["link_name"];
|
||||
echo "<th class='w80'>".$lang_label["delete"];
|
||||
echo "<th width='180px'>".$lang_label["link_name"];
|
||||
echo "<th width='80px'>".$lang_label["delete"];
|
||||
$sql1='SELECT * FROM tlink ORDER BY name';
|
||||
$result=mysql_query($sql1);
|
||||
$color=1;
|
||||
|
|
|
@ -29,12 +29,13 @@ if (comprueba_login() == 0)
|
|||
<h2><?php echo $lang_label["user_management"] ?></h2>
|
||||
<h3><?php echo $lang_label["users"] ?><a href="help/<?php echo $help_code; ?>/chap2.php#22" target="_help" class="help"> <span><?php echo $lang_label["help"]; ?></span></a></h3>
|
||||
|
||||
<table cellpadding=3 cellspacing=3 width=550>
|
||||
<th class="w80"><?php echo $lang_label["user_ID"]?>
|
||||
<th><?php echo $lang_label["last_contact"]?>
|
||||
<th><?php echo $lang_label["profile"]?>
|
||||
<th><?php echo $lang_label["name"]?>
|
||||
<th width=30><?php echo $lang_label["delete"]?>
|
||||
<table cellpadding="3" cellspacing="3" width="700">
|
||||
<th width="80px"><?php echo $lang_label["user_ID"]?>
|
||||
<th width="155px"><?php echo $lang_label["last_contact"]?>
|
||||
<th width="45px"><?php echo $lang_label["profile"]?>
|
||||
<th width="120px"><?php echo $lang_label["name"]?>
|
||||
<th><?php echo $lang_label["description"]?>
|
||||
<th width="30px"><?php echo $lang_label["delete"]?>
|
||||
|
||||
<?php
|
||||
$query1="SELECT * FROM tusuario";
|
||||
|
@ -47,9 +48,10 @@ $fecha_registro = "";
|
|||
$color=1;
|
||||
|
||||
while ($rowdup=mysql_fetch_array($resq1)){
|
||||
$nombre=$rowdup["id_usuario"];
|
||||
$nivel =$rowdup["nivel"];
|
||||
$comentarios =$rowdup["nombre_real"];
|
||||
$name=$rowdup["id_usuario"];
|
||||
$nivel=$rowdup["nivel"];
|
||||
$real_name=$rowdup["nombre_real"];
|
||||
$comments=$rowdup["comentarios"];
|
||||
$fecha_registro =$rowdup["fecha_registro"];
|
||||
if ($color == 1){
|
||||
$tdcolor = "datos";
|
||||
|
@ -60,7 +62,7 @@ while ($rowdup=mysql_fetch_array($resq1)){
|
|||
$color = 1;
|
||||
}
|
||||
echo "<tr><td class='$tdcolor'>";
|
||||
echo "<a href='index.php?sec=gusuarios&sec2=godmode/usuarios/configurar_usuarios&id_usuario_mio=".$nombre."'><b>".$nombre."</b></a>";
|
||||
echo "<a href='index.php?sec=gusuarios&sec2=godmode/usuarios/configurar_usuarios&id_usuario_mio=".$nombre."'><b>".$name."</b></a>";
|
||||
echo "<td class='$tdcolor'>".$fecha_registro;
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($nivel == 1)
|
||||
|
@ -68,7 +70,7 @@ while ($rowdup=mysql_fetch_array($resq1)){
|
|||
else
|
||||
echo "<img src='images/user_green.png'>";
|
||||
|
||||
$sql1='SELECT * FROM tusuario_perfil WHERE id_usuario = "'.$nombre.'"';
|
||||
$sql1='SELECT * FROM tusuario_perfil WHERE id_usuario = "'.$name.'"';
|
||||
$result=mysql_query($sql1);
|
||||
echo "<a href='#' class='tip'> <span>";
|
||||
if (mysql_num_rows($result)){
|
||||
|
@ -80,11 +82,12 @@ while ($rowdup=mysql_fetch_array($resq1)){
|
|||
else { echo $lang_label["no_profile"]; }
|
||||
echo "</span></a>";
|
||||
|
||||
echo "<td class='$tdcolor'>".$comentarios;
|
||||
echo "<td class='$tdcolor' width='100'>".substr($real_name,0,16)."</td>";
|
||||
echo "<td class='$tdcolor'>".$comments."</td>";
|
||||
echo "<td class='$tdcolor' align='center'><a href='index.php?sec=gagente&sec2=godmode/usuarios/lista_usuarios&borrar_usuario=".$nombre."' onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) return false;'><img border='0' src='images/cross.png'></a>";
|
||||
}
|
||||
echo "<tr><td colspan='5'><div class='raya'></div></td></tr>";
|
||||
echo "<tr><td colspan='5' align='right'>";
|
||||
echo "<tr><td colspan='6'><div class='raya'></div></td></tr>";
|
||||
echo "<tr><td colspan='6' align='right'>";
|
||||
echo "<form method=post action='index.php?sec=gusuarios&sec2=godmode/usuarios/configurar_usuarios&alta=1'>";
|
||||
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create_user"]."'>";
|
||||
echo "</form></td></tr></table>";
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
}
|
||||
div#menug {
|
||||
background-color: #f5f5dc;
|
||||
border: 1px solid #dAdBdC;
|
||||
border: 1px solid #dadbdc;
|
||||
width: 155px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
}
|
||||
div#menul {
|
||||
background-color: #e9f3d2;
|
||||
border: 1px solid #dAdBdC;
|
||||
border: 1px solid #dadbdc;
|
||||
width: 155px;
|
||||
}
|
||||
div.linkli>ul {
|
||||
|
|
|
@ -276,7 +276,6 @@ td.datos_jus, td.datos2_jus {
|
|||
height: 20px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.f10, .w155f10, #ip {
|
||||
font-size: 10px;
|
||||
text-align: center;
|
||||
|
@ -354,37 +353,16 @@ td.datosf9i, td.datos2f9i {
|
|||
padding-top: 2px;
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
.w30 {
|
||||
width: 30px;
|
||||
}
|
||||
.w45 {
|
||||
width: 45px;
|
||||
}
|
||||
.w70 {
|
||||
width: 70px;
|
||||
}
|
||||
.w80 {
|
||||
width: 80px;
|
||||
}
|
||||
.w90datos {
|
||||
width: 90px;
|
||||
}
|
||||
.w100 {
|
||||
width: 100px;
|
||||
}
|
||||
.w120 {
|
||||
width: 120px;
|
||||
}
|
||||
.w130 {
|
||||
width: 130px;
|
||||
}
|
||||
.w135, .w135datos, .w35datos2 {
|
||||
.w135 {
|
||||
width: 135px;
|
||||
}
|
||||
.w140 {
|
||||
width: 140px;
|
||||
}
|
||||
.w155, .w155f10 {
|
||||
.w155 {
|
||||
width: 155px;
|
||||
}
|
||||
.top, .top_red, .bgt, .f9l30t, td.datost, td.datos2t {
|
||||
|
@ -396,18 +374,6 @@ td.datosf9i, td.datos2f9i {
|
|||
.bot, .titb, td.datosb {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
.w200 {
|
||||
width: 200px;
|
||||
}
|
||||
.w255 {
|
||||
width: 255px;
|
||||
}
|
||||
.w540 {
|
||||
width: 540px;
|
||||
}
|
||||
.w550 {
|
||||
width: 550px;
|
||||
}
|
||||
.msg {
|
||||
margin-top: 15px;
|
||||
text-align: justify;
|
||||
|
@ -507,10 +473,10 @@ div.data_box {
|
|||
}
|
||||
#menu_tab li a, #menu_tab li.nomn a
|
||||
{
|
||||
background: #0FB800;
|
||||
background: #d4ddc6;
|
||||
padding: 2px 10px 2px 10px;
|
||||
color: #fff;
|
||||
border: 1px solid #0D9D00;
|
||||
color: #333;
|
||||
border-left: 1px solid #fff;
|
||||
font-weight: bold;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
@ -524,7 +490,7 @@ div.data_box {
|
|||
#menu_tab li.nomn:hover a,
|
||||
#menu_tab li:hover ul a:hover
|
||||
{
|
||||
background: #25DB00;
|
||||
background: #cde0ad;
|
||||
}
|
||||
#menu_tab li:hover a
|
||||
{
|
||||
|
@ -550,10 +516,9 @@ div.data_box {
|
|||
}
|
||||
#menu_tab_left li a, #menu_tab_left li.nomn a
|
||||
{
|
||||
background: #D84437;
|
||||
background: #999;
|
||||
padding: 2px 10px 2px 10px;
|
||||
color: #fff;
|
||||
border: 1px solid #C43E32;
|
||||
font-weight: bold;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ if (comprueba_login() == 0) {
|
|||
<ul class='mn'>
|
||||
<li class='nomn'>";
|
||||
echo "<li class='nomn'>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente'><img src='images/bricks.png' class='top' border=0> ".dame_nombre_agente($id_agente)." - ".$lang_label["view_mode"]."</A>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente'><img src='images/bricks.png' class='top' border=0> ".dame_nombre_agente($id_agente)." - ".$lang_label["view_mode"]."</a>";
|
||||
echo "</li>";
|
||||
echo "</ul></div>";
|
||||
|
||||
|
@ -63,7 +63,7 @@ if (comprueba_login() == 0) {
|
|||
echo "<div id='menu_tab'><ul class='mn'>";
|
||||
if (give_acl($id_usuario,$id_grupo, "AW") == 1){
|
||||
// Manage agent
|
||||
echo "<li class='nomn'><a href='index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente=$id_agente'><img src='images/setup.gif' width='16' class='top' border=0> ".$lang_label["Manage"]." </A>";
|
||||
echo "<li class='nomn'><a href='index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente=$id_agente'><img src='images/setup.gif' width='16' class='top' border=0> ".$lang_label["Manage"]." </a>";
|
||||
echo "</li>";
|
||||
}
|
||||
// Main view
|
||||
|
@ -78,7 +78,7 @@ if (comprueba_login() == 0) {
|
|||
|
||||
// Alerts
|
||||
echo "<li class='nomn'>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=alert'><img src='images/bell.png' class='top' border=0> ".$lang_label["Alerts"]." </A>";
|
||||
echo "<a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=alert'><img src='images/bell.png' class='top' border=0> ".$lang_label["Alerts"]." </a>";
|
||||
echo "</li>";
|
||||
|
||||
// Go to group view
|
||||
|
|
|
@ -211,7 +211,7 @@ echo '<td class="datos2"><b>'.$lang_label["updated_at"].'</b>';
|
|||
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' class='w200'>";
|
||||
echo "<select name='usuario_form' width='200px'>";
|
||||
echo "<option value='".$usuario."'>".$usuario." - ".dame_nombre_real($usuario);
|
||||
$sql1='SELECT * FROM tusuario ORDER BY id_usuario';
|
||||
$result=mysql_query($sql1);
|
||||
|
@ -231,10 +231,13 @@ else {
|
|||
// 3 - Caducada / Outdated
|
||||
// 13 - Cerrada / Closed
|
||||
|
||||
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">';
|
||||
else
|
||||
echo '<td class="datos"><b>'.$lang_label["status"].'</b><td class="datos"><select disabled name="estado_form" class="w135">';
|
||||
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">';
|
||||
} else {
|
||||
echo '<td class="datos"><b>'.$lang_label["status"].'</b>
|
||||
<td class="datos"><select disabled name="estado_form" class="w135">';
|
||||
}
|
||||
|
||||
switch ( $estado ){
|
||||
case 0: echo '<option value="0">'.$lang_label["in_state_0"]; break;
|
||||
|
@ -252,26 +255,31 @@ echo '<option value="13">'.$lang_label["in_state_13"];
|
|||
echo '</select>';
|
||||
|
||||
// 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 class="datos2"><select name="origen_form" class="w135">';
|
||||
else
|
||||
echo '<tr><td class="datos2"><b>'.$lang_label["source"].'</b><td class="datos2"><select disabled name="origen_form" class="w135">';
|
||||
|
||||
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">';
|
||||
} else {
|
||||
echo '<tr><td class="datos2"><b>'.$lang_label["source"].'</b></td>
|
||||
<td class="datos2"><select disabled name="origen_form" class="w135">';
|
||||
}
|
||||
// Fill combobox with source (origen)
|
||||
if ($origen != "")
|
||||
echo "<option value='".$origen."'>".$origen;
|
||||
$sql1='SELECT * FROM torigen ORDER BY origen';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row2=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row2["origen"]."'>".$row2["origen"];
|
||||
echo "<option value='".$row2["origen"]."'>".$row2["origen"]."</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
|
||||
// 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 class="datos2"><select name="grupo_form" class="w135">';
|
||||
else
|
||||
echo '<td class="datos2"><b>'.$lang_label["group"].'</b><td class="datos2"><select disabled name="grupo_form" class="w135">';
|
||||
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">';
|
||||
} else {
|
||||
echo '<td class="datos2"><b>'.$lang_label["group"].'</b></td>
|
||||
<td class="datos2"><select disabled name="grupo_form" class="w135">';
|
||||
}
|
||||
if ($id_grupo != 0)
|
||||
echo "<option value='".$id_grupo."'>".$grupo;
|
||||
$sql1='SELECT * FROM tgrupo ORDER BY nombre';
|
||||
|
@ -282,10 +290,13 @@ while ($row=mysql_fetch_array($result)){
|
|||
}
|
||||
|
||||
echo '</select><tr>';
|
||||
if ((give_acl($iduser_temp, $id_grupo, "IM")==1) OR ($usuario == $iduser_temp))
|
||||
echo '<td class="datos"><b>'.$lang_label["priority"].'</b><td class="datos"><select name="prioridad_form" class="w135">';
|
||||
else
|
||||
echo '<td class="datos"><b>'.$lang_label["priority"].'</b><td class="datos"><select disabled name="prioridad_form" class="w135">';
|
||||
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">';
|
||||
} else {
|
||||
echo '<td class="datos"><b>'.$lang_label["priority"].'</b></td>
|
||||
<td class="datos"><select disabled name="prioridad_form" class="w135">';
|
||||
}
|
||||
|
||||
switch ( $prioridad ){
|
||||
case 0: echo '<option value="0">'.$lang_label["informative"]; break;
|
||||
|
@ -303,14 +314,22 @@ echo '<option value="3">'.$lang_label["serious"];
|
|||
echo '<option value="4">'.$lang_label["very_serious"];
|
||||
echo '<option value="10">'.$lang_label["maintenance"];
|
||||
|
||||
echo "<td class='datos'><b>Creator</b><td class='datos'>".$id_creator." ( <i>".dame_nombre_real($id_creator)." </i>)";
|
||||
echo "<td class='datos'><b>Creator</b>
|
||||
<td class='datos'>".$id_creator." ( <i>".dame_nombre_real($id_creator)." </i>)";
|
||||
|
||||
if ((give_acl($iduser_temp, $id_grupo, "IM")==1) OR ($usuario == $iduser_temp))
|
||||
echo '</select><tr><td class="datos2" colspan="4"><textarea name="descripcion" rows="15" cols="85">';
|
||||
else
|
||||
echo '</select><tr><td class="datos2" colspan="4"><textarea readonly name="descripcion" rows="15" cols="85">';
|
||||
if (isset($texto)) {echo $texto;}
|
||||
echo "</textarea>";
|
||||
if ((give_acl($iduser_temp, $id_grupo, "IM")==1) OR ($usuario == $iduser_temp)) {
|
||||
echo '</select>
|
||||
<tr><td class="datos2" colspan="4">
|
||||
<textarea name="descripcion" rows="15" cols="85">';
|
||||
} else {
|
||||
echo '</select>
|
||||
<tr><td class="datos2" colspan="4">
|
||||
<textarea readonly name="descripcion" rows="15" cols="85">';
|
||||
}
|
||||
if (isset($texto)) {
|
||||
echo $texto;
|
||||
}
|
||||
echo "</textarea></td></tr>";
|
||||
|
||||
echo '<tr><td colspan="5"><div class="raya"></div></td></tr>';
|
||||
echo "<tr><td colspan='5' align='right'>";
|
||||
|
@ -331,22 +350,32 @@ echo "</form>";
|
|||
|
||||
if ($creacion_incidente == 0){
|
||||
echo "<tr><td colspan='7' style='text-align: right;'>";
|
||||
echo '<form method="post" action="index.php?sec=incidencias&sec2=operation/incidents/incident_note&id_inc='.$id_inc.'"><input type="hidden" name="nota" value="add"><input align=right name="addnote" type="submit" class="sub" value="'.$lang_label["add_note"].'"></form>';
|
||||
echo '
|
||||
<form method="post" action="index.php?sec=incidencias&sec2=operation/incidents/incident_note&id_inc='.$id_inc.'">
|
||||
<input type="hidden" name="nota" value="add">
|
||||
<input align=right name="addnote" type="submit" class="sub" value="'.$lang_label["add_note"].'">
|
||||
</form>';
|
||||
}
|
||||
echo "</tr></table><br>";
|
||||
|
||||
if ($creacion_incidente == 0){
|
||||
// Upload control
|
||||
if (give_acl($iduser_temp, $id_grupo, "IW")==1){
|
||||
echo "<table cellpadding=3 cellspacing=3 border=0 width='400'>";
|
||||
echo "<tr><td colspan='3'><b>".$lang_label["attachfile"]."</b>";
|
||||
echo "<tr><td class='lb' rowspan='2' width='5'>";
|
||||
echo '<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">';
|
||||
echo '<input type="file" name="userfile" value="userfile" class="sub" size="40">';
|
||||
echo '<tr><td class="datos2">'.$lang_label["description"].'</td><td class="datos2" colspan=3><input type="text" name="file_description" size=47>';
|
||||
echo '<tr><td colspan="4"><div class="raya"></div></td></tr>';
|
||||
echo '<tr><td colspan="4" style="text-align: right;"><input type="submit" name="upload" value="'.$lang_label["upload"].'" class="sub">';
|
||||
echo '</td></tr></table><br>';
|
||||
echo '
|
||||
<table cellpadding=3 cellspacing=3 border=0 width="400">
|
||||
<tr><td colspan="3"><b>'.$lang_label["attachfile"].'</b>
|
||||
<tr><td class="lb" rowspan="2" width="5">
|
||||
<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">
|
||||
</td></tr>
|
||||
<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><br>';
|
||||
}
|
||||
// ************************************************************
|
||||
// Files attached to this incident
|
||||
|
@ -361,10 +390,11 @@ if ($creacion_incidente == 0){
|
|||
echo "<tr><td>";
|
||||
echo "<h3>".$lang_label["attached_files"]."</h3>";
|
||||
echo "</td></tr><td>";
|
||||
echo "<table width='650'><tr><th class=datos>".$lang_label["filename"];
|
||||
echo "<th class=datos>".$lang_label["description"];
|
||||
echo "<th class=datos>".$lang_label["size"];
|
||||
echo "<th class=datos>".$lang_label["delete"];
|
||||
echo "<table width='650'><tr>
|
||||
<th class=datos>".$lang_label["filename"]."</th>
|
||||
<th class=datos>".$lang_label["description"]."</th>
|
||||
<th class=datos>".$lang_label["size"]."</th>
|
||||
<th class=datos>".$lang_label["delete"]."</th></tr>";
|
||||
|
||||
while ($row=mysql_fetch_array($att_fil)){
|
||||
echo "<tr><td class=datos><a target='_new' href='attachment/pand".$row["id_attachment"]."_".$row["filename"]."'><img src='images/file.gif' border=0 align='middle'> ".$row["filename"]."</a>";
|
||||
|
@ -386,7 +416,7 @@ 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' class='w550'>";
|
||||
echo "<table cellpadding='3' cellspacing='3' border='0' width='550px'>";
|
||||
echo "<tr><td>";
|
||||
echo "<h3>".$lang_label["in_notas_t1"]."</h3>";
|
||||
echo "<table cellpadding='3' cellspacing='3' border='0'>";
|
||||
|
|
|
@ -24,7 +24,9 @@ function create_message($usuario_origen, $usuario_destino, $subject, $mensaje){
|
|||
$ahora=date("Y/m/d H:i:s");
|
||||
require ("include/config.php");
|
||||
require ("include/languages/language_".$language_code.".php");
|
||||
$sql='INSERT INTO tmensajes (id_usuario_origen, id_usuario_destino, subject, mensaje, timestamp) VALUES ("'.$usuario_origen.'", "'.$usuario_destino.'", "'.$subject.'", "'.$mensaje.'","'.$ahora.'")';
|
||||
$sql='
|
||||
INSERT INTO tmensajes (id_usuario_origen, id_usuario_destino, subject, mensaje, timestamp)
|
||||
VALUES ("'.$usuario_origen.'", "'.$usuario_destino.'", "'.$subject.'", "'.$mensaje.'","'.$ahora.'")';
|
||||
$result=mysql_query($sql);
|
||||
if ($result) echo "<h3 class='suc'>".$lang_label["message_ok"]."</h3>";
|
||||
else echo "<h3 class='error'>".$lang_label["message_no"]."</h3>";
|
||||
|
@ -98,12 +100,12 @@ if (isset($_GET["nuevo"]) || isset($_GET["nuevo_g"])){
|
|||
echo '</td></tr>
|
||||
<tr><td class="datos">'.$lang_label["subject"].':</td><td class="datos">';
|
||||
if (isset($_POST["subject"])) {
|
||||
echo '</b><input name="subject" value="'.$_POST["subject"].'" class="w255">';
|
||||
echo '</b><input name="subject" value="'.$_POST["subject"].'" width="255px">';
|
||||
}
|
||||
else echo '<input name="subject" class="w255">';
|
||||
else echo '<input name="subject" width="255px">';
|
||||
echo '</td></tr>
|
||||
<tr><td class="datos2">'.$lang_label["message"].':</td></tr>
|
||||
<tr><td class="datos" colspan="4"><textarea name="mensaje" rows="10" class="w540">';
|
||||
<tr><td class="datos" colspan="4"><textarea name="mensaje" rows="10" width="540px">';
|
||||
if (isset($_POST["mensaje"])) {
|
||||
echo $_POST["mensaje"];
|
||||
}
|
||||
|
@ -128,9 +130,9 @@ if (isset($_GET["nuevo"]) || isset($_GET["nuevo_g"])){
|
|||
|
||||
echo '</select>';
|
||||
echo '</td></tr>
|
||||
<tr><td class="datos">'.$lang_label["subject"].':</td><td class="datos"><input name="subject" class="w255"></td></tr>
|
||||
<tr><td class="datos">'.$lang_label["subject"].':</td><td class="datos"><input name="subject" width="255px"></td></tr>
|
||||
<tr><td class="datos2">'.$lang_label["message"].':</td></tr>
|
||||
<tr><td class="datos" colspan="4"><textarea name="mensaje" rows="10" class="w540"></textarea></td></tr>
|
||||
<tr><td class="datos" colspan="4"><textarea name="mensaje" rows="10" width="540px"></textarea></td></tr>
|
||||
<tr><td colspan="2" align="right">
|
||||
<input type="submit" class="sub" name="send_mes" value="'.$lang_label["send_mes"].'"></form></td></tr>';
|
||||
}
|
||||
|
@ -155,7 +157,13 @@ else {
|
|||
$resultado3=mysql_query($sql3);
|
||||
$color=1;
|
||||
if (mysql_num_rows($resultado3)) {
|
||||
echo "<table class='w550'><tr><th>".$lang_label["read"]."</th><th>".$lang_label["sender"]."</th><th>".$lang_label["subject"]."</th><th>".$lang_label["timestamp"]."</th><th>".$lang_label["delete"]."</th></tr>";
|
||||
echo "
|
||||
<table width='550px'><tr>
|
||||
<th>".$lang_label["read"]."</th>
|
||||
<th>".$lang_label["sender"]."</th>
|
||||
<th>".$lang_label["subject"]."</th>
|
||||
<th>".$lang_label["timestamp"]."</th>
|
||||
<th>".$lang_label["delete"]."</th></tr>";
|
||||
while ($row3=mysql_fetch_array($resultado3)){
|
||||
if ($color == 1){
|
||||
$tdcolor = "datos";
|
||||
|
@ -166,11 +174,16 @@ else {
|
|||
$color = 1;
|
||||
}
|
||||
echo "<tr>";
|
||||
if ($row3["estado"]==1) echo "<td align='center' class='$tdcolor'><img src='images/read.gif' border=0></td>";
|
||||
else echo "<td align='center' class='$tdcolor'><img src='images/unread.gif' border=0></td>";
|
||||
|
||||
if ($row3["estado"]==1) {
|
||||
echo "<td align='center' class='$tdcolor'>
|
||||
<img src='images/read.gif' border=0></td>";
|
||||
} else {
|
||||
echo "<td align='center' class='$tdcolor'>
|
||||
<img src='images/unread.gif' border=0></td>";
|
||||
}
|
||||
echo "<td class='$tdcolor'>";
|
||||
echo "<b><a href=index.php?sec=usuarios&sec2=operation/users/user_edit&ver=".$row3["id_usuario_origen"].">".$row3["id_usuario_origen"]."</b></td><td class='".$tdcolor."'><a href='index.php?sec=messages&sec2=operation/messages/message&leer=1&id_mensaje=".$row3["id_mensaje"]."'>";
|
||||
echo "<b><a href=index.php?sec=usuarios&sec2=operation/users/user_edit&ver=".$row3["id_usuario_origen"].">".$row3["id_usuario_origen"]."</b></td>
|
||||
<td class='".$tdcolor."'><a href='index.php?sec=messages&sec2=operation/messages/message&leer=1&id_mensaje=".$row3["id_mensaje"]."'>";
|
||||
|
||||
if ($row3["subject"])
|
||||
echo $row3["subject"]."</a>";
|
||||
|
@ -199,7 +212,7 @@ else {
|
|||
<tr><td></td></tr><tr><td class="datos">'.$lang_label["from"].':</td><td class="datos"><b>'.$row4["id_usuario_origen"].'</b></td></tr>
|
||||
<tr><td class="datos2">'.$lang_label["subject"].':</td><td class="datos2"><b>'.$row4["subject"].'</b></td></tr>
|
||||
<tr><td class="datos" colspan="2">'.$lang_label["message"].':</td>
|
||||
<tr><td class="datos2" colspan="2"><textarea name="mensaje" rows="10" class="w540" readonly>'.$row4["mensaje"].'</textarea></td></tr>
|
||||
<tr><td class="datos2" colspan="2"><textarea name="mensaje" rows="10" width="540px" readonly>'.$row4["mensaje"].'</textarea></td></tr>
|
||||
<tr><td colspan="2" align="right">
|
||||
<input type="hidden" name="u_destino" value="'.$row4["id_usuario_origen"].'">
|
||||
<input type="hidden" name="subject" value="Re: '.$row4["subject"].'">
|
||||
|
|
|
@ -195,7 +195,7 @@ if (comprueba_login() == 0) {
|
|||
echo "<th>".$lang_label["SNMP_agent"]."</th>";
|
||||
echo "<th>".$lang_label["customvalue"]."</th>";
|
||||
echo "<th>".$lang_label["id_user"]."</th>";
|
||||
echo "<th class='w130'>".$lang_label["timestamp"]."</th>";
|
||||
echo "<th width ='130px'>".$lang_label["timestamp"]."</th>";
|
||||
echo "<th>".$lang_label["alert"]."</th>";
|
||||
echo "<th>".$lang_label["action"]."</th>";
|
||||
echo "<th class='p10'>";
|
||||
|
|
|
@ -28,10 +28,10 @@ if (comprueba_login() == 0) {
|
|||
<h3><?php echo $lang_label["users"] ?><a href='help/<?php echo $help_code ?>/chap2.php#2' target='_help' class='help'> <span><?php echo $lang_label["help"] ?></span></a></h3>
|
||||
|
||||
<table cellpadding="3" cellspacing="3" width="700">
|
||||
<th class="w80"><?php echo $lang_label["user_ID"]?>
|
||||
<th class="w155"><?php echo $lang_label["last_contact"]?>
|
||||
<th class="w45"><?php echo $lang_label["profile"]?>
|
||||
<th class="w120"><?php echo $lang_label["name"]?>
|
||||
<th width="80px"><?php echo $lang_label["user_ID"]?>
|
||||
<th width="155px"><?php echo $lang_label["last_contact"]?>
|
||||
<th width="45px"><?php echo $lang_label["profile"]?>
|
||||
<th width="120px"><?php echo $lang_label["name"]?>
|
||||
<th><?php echo $lang_label["description"]?>
|
||||
|
||||
<?php
|
||||
|
@ -39,9 +39,10 @@ $color = 1;
|
|||
$query1="SELECT * FROM tusuario";
|
||||
$resq1=mysql_query($query1);
|
||||
while ($rowdup=mysql_fetch_array($resq1)){
|
||||
$nombre=$rowdup["id_usuario"];
|
||||
$nivel =$rowdup["nivel"];
|
||||
$comentarios =$rowdup["comentarios"];
|
||||
$name=$rowdup["id_usuario"];
|
||||
$nivel=$rowdup["nivel"];
|
||||
$real_name=$rowdup["nombre_real"];
|
||||
$comments=$rowdup["comentarios"];
|
||||
$fecha_registro =$rowdup["fecha_registro"];
|
||||
if ($color == 1){
|
||||
$tdcolor = "datos";
|
||||
|
@ -53,14 +54,14 @@ while ($rowdup=mysql_fetch_array($resq1)){
|
|||
$color = 1;
|
||||
$tip = "tip2";
|
||||
}
|
||||
echo "<tr><td class='$tdcolor'><a href='index.php?sec=usuarios&sec2=operation/users/user_edit&ver=".$nombre."'><b>".$nombre."</b></a>";
|
||||
echo "<tr><td class='$tdcolor'><a href='index.php?sec=usuarios&sec2=operation/users/user_edit&ver=".$nombre."'><b>".$name."</b></a>";
|
||||
echo "<td class='$tdcolor'><font size=1>".$fecha_registro."</font>";
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($nivel == 1)
|
||||
echo "<img src='images/user_suit.png'>";
|
||||
else
|
||||
echo "<img src='images/user_green.png'>";
|
||||
$sql1='SELECT * FROM tusuario_perfil WHERE id_usuario = "'.$nombre.'"';
|
||||
$sql1='SELECT * FROM tusuario_perfil WHERE id_usuario = "'.$name.'"';
|
||||
$result=mysql_query($sql1);
|
||||
echo "<a href='#' class='$tip'> <span>";
|
||||
if (mysql_num_rows($result)){
|
||||
|
@ -71,8 +72,8 @@ while ($rowdup=mysql_fetch_array($resq1)){
|
|||
}
|
||||
else { echo $lang_label["no_profile"]; }
|
||||
echo "</span></a>";
|
||||
echo "<td class='$tdcolor' width='100'>".substr($rowdup["nombre_real"],0,16);
|
||||
echo "<td class='$tdcolor'>".$comentarios;
|
||||
echo "<td class='$tdcolor' width='100'>".substr($real_name,0,16)."</td>";
|
||||
echo "<td class='$tdcolor'>".$comments."</td>";
|
||||
}
|
||||
|
||||
echo "<tr><td colspan='5'><div class='raya'></div></td></tr></table><br>";
|
||||
|
|
Loading…
Reference in New Issue