2007-06-06 Raul Mateos <raulofpandora@gmail.com>
* godmode/*.php: Closed a lot of unclosed html tags. Updated near all of files with new table style. * godmode/agentes/alert_manager.php: Solved stupid bugs added some days ago due to an unclosed html tag. * images/groups_small/applications.png: New icon for applications group. * pandoradb_data.sql: Updated default applications icon name. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@488 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
f016097c8c
commit
afd7eb2d05
|
@ -1,3 +1,16 @@
|
|||
2007-06-06 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* godmode/*.php: Closed a lot of unclosed html tags. Updated near all of
|
||||
files with new table style.
|
||||
|
||||
* godmode/agentes/alert_manager.php: Solved stupid bugs added some days
|
||||
ago due to an unclosed html tag.
|
||||
|
||||
* images/groups_small/applications.png: New icon for applications group.
|
||||
|
||||
* pandoradb_data.sql: Updated default applications icon name.
|
||||
|
||||
|
||||
2007-06-02 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* include/styles/pandora.css: Updated.
|
||||
|
|
|
@ -60,10 +60,11 @@
|
|||
echo "<a href='help/".$help_code."/chap6.php#6' target='_help' class='help'>
|
||||
<span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo "<form name='query_sel' method='post' action='index.php?sec=godmode&sec2=godmode/admin_access_logs'>";
|
||||
echo "<table border='0'><tr><td valign='middle'>";
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox'>
|
||||
<tr><td>".$lang_label["action"]."</td><td valign='middle'>";
|
||||
echo "<select name='tipo_log' onChange='javascript:this.form.submit();'>";
|
||||
if (isset($tipo_log)) {
|
||||
echo "<option>".$tipo_log. "</option>";
|
||||
echo "<option>".$tipo_log."</option>";
|
||||
}
|
||||
echo "<option value='-1'>".$lang_label["all"]."</option>";
|
||||
$sql3="SELECT DISTINCT (accion) FROM `tsesion`";
|
||||
|
@ -95,7 +96,7 @@
|
|||
pagination ($counter, $url, $offset);
|
||||
echo '<br>';
|
||||
// table header
|
||||
echo '<table cellpadding="3" cellspacing="3" width=700>';
|
||||
echo '<table cellpadding="4" cellspacing="4" width="700" class="databox">';
|
||||
echo '<tr>';
|
||||
echo '<th width="80px">'.$lang_label["user"].'</th>';
|
||||
echo '<th>'.$lang_label["action"].'</th>';
|
||||
|
@ -137,6 +138,6 @@
|
|||
}
|
||||
|
||||
// end table
|
||||
echo "<tr><td colspan='5'><div class='raya'></div></td></tr></table>";
|
||||
echo "</table>";
|
||||
|
||||
?>
|
|
@ -245,7 +245,7 @@ if ($update_alert != 1) {
|
|||
$result2=mysql_query($sql2);
|
||||
while ($row2=mysql_fetch_array($result2)){
|
||||
if ($row2["id_tipo_modulo"] != -1) {
|
||||
$sql1='SELECT nombre FROM ttipo_modulo WHERE id_tipo = '.$row2["id_tipo_modulo"].'</option>';
|
||||
$sql1='SELECT nombre FROM ttipo_modulo WHERE id_tipo = '.$row2["id_tipo_modulo"];
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row2["id_agente_modulo"]."'>".$row["nombre"]."/".$row2["nombre"]."</option>";
|
||||
|
@ -260,7 +260,7 @@ if ($update_alert != 1) {
|
|||
|
||||
// End block only if $creacion_agente != 1;
|
||||
|
||||
echo "</table>";
|
||||
echo "</td></tr></table>";
|
||||
echo '<table width=605>';
|
||||
echo '<tr><td align="right">';
|
||||
if ($update_alert== "1"){
|
||||
|
|
|
@ -252,13 +252,13 @@ if (comprueba_login() == 0)
|
|||
<h2><?php echo $lang_label["agent_conf"] ?> >
|
||||
<?php echo $lang_label["config_manage"]; ?><a href="help/<?php echo $help_code;?>/chap3.php#323" target="_help" class="help"> <span><?php echo $lang_label["help"]; ?></span></a></h2>
|
||||
<form method="post" action="index.php?sec=gagente&sec2=godmode/agentes/manage_config&operacion=1">
|
||||
<table width=450 border=0 cellspacing=3 cellpadding=5>
|
||||
<table width='450' border='0' cellspacing='4' cellpadding='4' class='databox'>
|
||||
<tr>
|
||||
<td class="datost"><b><?php echo $lang_label["source_agent"]; ?></b><br><br>
|
||||
<select name="origen" class="w130">
|
||||
<?php
|
||||
if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ) {
|
||||
echo "<option value=".$_POST["origen"].">".dame_nombre_agente($_POST["origen"]);
|
||||
echo "<option value=".$_POST["origen"].">".dame_nombre_agente($_POST["origen"])."</option>";
|
||||
}
|
||||
// Show combo with agents
|
||||
$sql1='SELECT * FROM tagente order by nombre';
|
||||
|
@ -266,12 +266,12 @@ if (comprueba_login() == 0)
|
|||
while ($row=mysql_fetch_array($result)){
|
||||
if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ){
|
||||
if ( $_POST["origen"] != $row["id_agente"])
|
||||
echo "<option value=".$row["id_agente"].">".$row["nombre"];
|
||||
echo "<option value=".$row["id_agente"].">".$row["nombre"]."</option>";
|
||||
}
|
||||
else
|
||||
echo "<option value=".$row["id_agente"].">".$row["nombre"];
|
||||
echo "<option value=".$row["id_agente"].">".$row["nombre"]."</option>";
|
||||
}
|
||||
echo '</select> <input type=submit name="update_agent" class=sub value="'.$lang_label["get_info"].'"><br><br>';
|
||||
echo '</select> <input type=submit name="update_agent" class="sub upd" value="'.$lang_label["get_info"].'"><br><br>';
|
||||
echo "<b>".$lang_label["modules"]."</b><br><br>";
|
||||
echo "<select name='origen_modulo[]' size=3 multiple=yes class='w130'>";
|
||||
if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ) {
|
||||
|
|
|
@ -110,7 +110,7 @@ if (isset($_POST["ag_group"])){
|
|||
action='index.php?sec=gagente&sec2=godmode/agentes/modificar_agente'>";
|
||||
}
|
||||
|
||||
echo "<table cellpadding='3' cellspacing='3'><tr>";
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox'><tr>";
|
||||
echo "<td>".$lang_label["group"]."</td>";
|
||||
echo "<td valign='middle'>";
|
||||
echo "<select name='ag_group' onChange='javascript:this.form.submit();'
|
||||
|
@ -150,12 +150,12 @@ pagination ($total_events, "index.php?sec=gagente&sec2=godmode/agentes/modificar
|
|||
echo "<div style='height: 20px'> </div>";
|
||||
|
||||
if (mysql_num_rows($result)){
|
||||
echo "<table cellpadding='4' cellspacing='4' width='700'>";
|
||||
echo "<th>".$lang_label["agent_name"];
|
||||
echo "<th>".$lang_label["os"];
|
||||
echo "<th>".$lang_label["group"];
|
||||
echo "<th>".$lang_label["description"];
|
||||
echo "<th>".$lang_label["delete"];
|
||||
echo "<table cellpadding='4' cellspacing='4' width='700' class='databox'>";
|
||||
echo "<th>".$lang_label["agent_name"]."</th>";
|
||||
echo "<th>".$lang_label["os"]."</th>";
|
||||
echo "<th>".$lang_label["group"]."</th>";
|
||||
echo "<th>".$lang_label["description"]."</th>";
|
||||
echo "<th>".$lang_label["delete"]."</th>";
|
||||
$color=1;
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
$id_grupo = $row["id_grupo"];
|
||||
|
@ -189,8 +189,8 @@ if (mysql_num_rows($result)){
|
|||
echo "<img border='0' src='images/cross.png'></a></td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><td colspan='5'><div class='raya'></div></td></tr>";
|
||||
echo "<tr><td align='right' colspan='5'>";
|
||||
echo "</table>";
|
||||
echo "<table width='700'><tr><td align='right'>";
|
||||
} else {
|
||||
echo "<div class='nf'>".$lang_label["no_agent_def"]."</div>";
|
||||
echo " </td></tr><tr><td>";
|
||||
|
|
|
@ -63,9 +63,7 @@ echo "<h2>".$lang_label["alert_config"]." > ";
|
|||
<span>'.$lang_label["help"].'</span></a>';
|
||||
echo "</h2>";
|
||||
?>
|
||||
<table width="500" cellspacing="4" cellpadding="4" class="databox_color">
|
||||
|
||||
<form name="alerta" method="post" action="index.php?sec=galertas&sec2=godmode/alerts/modify_alert&id_alerta=<?php echo $id_alerta ?>">
|
||||
<form name="alerta" method="post" action="index.php?sec=galertas&sec2=godmode/alerts/modify_alert&id_alerta=<?php echo $id_alerta ?>">
|
||||
|
||||
<?php
|
||||
if ($creacion_alerta == 1)
|
||||
|
@ -75,13 +73,15 @@ echo "</h2>";
|
|||
echo "<input type='hidden' name='id_alerta' value='".$id_alerta."'>";
|
||||
}
|
||||
?>
|
||||
|
||||
<tr><td class="datos"><?php echo $lang_label["alertname"] ?>
|
||||
<td class="datos"><input type="text" name="nombre" size=30 value="<?php echo $nombre ?>">
|
||||
|
||||
<table width="500" cellspacing="4" cellpadding="4" class="databox">
|
||||
<tr><td class="datos"><?php echo $lang_label["alertname"] ?></td>
|
||||
<td class="datos">
|
||||
<input type="text" name="nombre" size=30 value="<?php echo $nombre ?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="datos2"><?php echo $lang_label["command"] ?>
|
||||
<td class="datos2"><input type="text" name="comando" size="50" value="<?php echo $comando ?>">
|
||||
<td class="datos2"><?php echo $lang_label["command"] ?></td>
|
||||
<td class="datos2">
|
||||
<input type="text" name="comando" size="50" value="<?php echo $comando ?>">
|
||||
<a href='#' class='tip'> <span>
|
||||
<b>Macros:</b><br>
|
||||
_field1_<br>
|
||||
|
@ -91,19 +91,20 @@ _agent_<br>
|
|||
_timestamp_<br>
|
||||
_data_<br>
|
||||
</span></a>
|
||||
|
||||
<tr><td class="datos"><?php echo $lang_label["description"] ?>
|
||||
</td></tr>
|
||||
<tr><td class="datos"><?php echo $lang_label["description"] ?></td>
|
||||
<td class="datos"><textarea name="descripcion" cols="50" rows="7">
|
||||
<?php echo $descripcion ?>
|
||||
</textarea>
|
||||
</td></tr>
|
||||
</table>
|
||||
<table width=500>
|
||||
<tr><td align="right">
|
||||
<?php
|
||||
if (isset($_GET["creacion"])){
|
||||
echo "<input name='crtbutton' type='submit' class='sub' value='".$lang_label["create"]."'>";
|
||||
echo "<input name='crtbutton' type='submit' class='sub wand' value='".$lang_label["create"]."'>";
|
||||
} else {
|
||||
echo "<input name='uptbutton' type='submit' class='sub' value='".$lang_label["update"]."'>";
|
||||
echo "<input name='uptbutton' type='submit' class='sub upd' value='".$lang_label["update"]."'>";
|
||||
} ?>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -68,11 +68,10 @@ if ( (give_acl($id_user, 0, "LM")==1)){
|
|||
}
|
||||
echo "<tr><td class='$tdcolor'><b><a href='index.php?sec=galertas&sec2=godmode/alerts/configure_alert&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/alerts/modify_alert&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 "<td class='$tdcolor' align='center'><a href='index.php?sec=gagente&sec2=godmode/alerts/modify_alert&borrar_alerta=".$row["id_alerta"]."' onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) return false;'><img border='0' src='images/cross.png'></a></td>";
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
echo "<br>";
|
||||
echo "</tr></table>";
|
||||
echo "<table width=500>";
|
||||
echo "<tr><td align='right'>";
|
||||
echo "<form method=post action='index.php?sec=galertas&sec2=godmode/alerts/configure_alert&creacion=1'>";
|
||||
|
|
|
@ -97,29 +97,29 @@ if (comprueba_login() == 0)
|
|||
echo "<h2>".$lang_label["dbmain_title"]." > ";
|
||||
echo $lang_label["db_purge_audit"]."<a href='help/".$help_code."/chap8.php#841' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
|
||||
echo "<table cellpadding='4' cellspacing='4' border='0'>";
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox'>";
|
||||
echo "<tr><td class='datos'>";
|
||||
$result_t=mysql_query("SELECT COUNT(*) FROM tsesion");
|
||||
$row=mysql_fetch_array($result_t);
|
||||
echo "<b>".$lang_label["total"]."</b>";
|
||||
echo "<td class='datos'>".$row[0]." ".$lang_label["records"];
|
||||
echo "<b>".$lang_label["total"]."</b></td>";
|
||||
echo "<td class='datos'>".$row[0]." ".$lang_label["records"]."</td>";
|
||||
|
||||
echo "<tr>";
|
||||
$result_t=mysql_query("SELECT min(fecha) FROM tsesion");
|
||||
$row=mysql_fetch_array($result_t);
|
||||
echo "<td class='datos2'><b>".$lang_label["first_date"]."</b>";
|
||||
echo "<td class='datos2'>".$row[0];
|
||||
echo "<td class='datos2'><b>".$lang_label["first_date"]."</b></td>";
|
||||
echo "<td class='datos2'>".$row[0]."</td></tr>";
|
||||
|
||||
echo "<tr><td class='datos'>";
|
||||
$result_t=mysql_query("SELECT max(fecha) FROM tsesion");
|
||||
$row=mysql_fetch_array($result_t);
|
||||
echo "<b>".$lang_label["latest_date"]."</b>";
|
||||
echo "<td class='datos'>".$row[0];
|
||||
echo "</table>";
|
||||
echo "<b>".$lang_label["latest_date"]."</b></td>";
|
||||
echo "<td class='datos'>".$row[0]."</td>";
|
||||
echo "</tr></table>";
|
||||
?>
|
||||
<h3><?php echo $lang_label["purge_data"] ?></h3>
|
||||
<form name="db_audit" method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_audit">
|
||||
<table width='300' border='0'>
|
||||
<table width='300' cellpadding='4' cellspacing='4' class='databox'>
|
||||
<tr><td class='datos'>
|
||||
<select name="date_purge" width="255px">
|
||||
<option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_audit_90day"] ?>
|
||||
|
@ -132,7 +132,7 @@ if (comprueba_login() == 0)
|
|||
</select>
|
||||
|
||||
<td class="datos">
|
||||
<input class="sub" type="submit" name="purgedb" value="<?php echo $lang_label["doit"] ?>" onClick="if (!confirm('<?php echo $lang_label["are_you_sure"] ?>')) return false;">
|
||||
<input class="sub wand" type="submit" name="purgedb" value="<?php echo $lang_label["doit"] ?>" onClick="if (!confirm('<?php echo $lang_label["are_you_sure"] ?>')) return false;">
|
||||
|
||||
</table>
|
||||
</form>
|
||||
|
|
|
@ -76,31 +76,31 @@ if (comprueba_login() == 0)
|
|||
echo "<h2>".$lang_label["dbmain_title"]." > ";
|
||||
echo $lang_label["db_purge_event"]."<a href='help/".$help_code."/chap8.php#842' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
|
||||
echo "<table cellpadding='4' cellspacing='4' border='0'>";
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox'>";
|
||||
echo "<tr><td class='datos'>";
|
||||
$result_t=mysql_query("SELECT COUNT(*) FROM tevento");
|
||||
$row=mysql_fetch_array($result_t);
|
||||
echo "<b>".$lang_label["total"]."</b>";
|
||||
echo "<td class='datos'>".$row[0]." ".$lang_label["records"];
|
||||
echo "<td class='datos'>".$row[0]." ".$lang_label["records"]."</td>";
|
||||
|
||||
echo "<tr>";
|
||||
$result_t=mysql_query("SELECT min(timestamp) FROM tevento");
|
||||
$row=mysql_fetch_array($result_t);
|
||||
echo "<td class='datos2'><b>".$lang_label["first_date"]."</b>";
|
||||
echo "<td class='datos2'>".$row[0];
|
||||
echo "<td class='datos2'><b>".$lang_label["first_date"]."</b></td>";
|
||||
echo "<td class='datos2'>".$row[0]."</td></tr>";
|
||||
|
||||
|
||||
echo "<tr><td class='datos'>";
|
||||
$result_t=mysql_query("SELECT max(timestamp) FROM tevento");
|
||||
$row=mysql_fetch_array($result_t);
|
||||
echo "<b>".$lang_label["latest_date"]."</b>";
|
||||
echo "<td class='datos'>".$row[0];
|
||||
echo "<td class='datos'>".$row[0]."</td>";
|
||||
echo "</table>";
|
||||
?>
|
||||
|
||||
<h3><?php echo $lang_label["purge_data"] ?></h3>
|
||||
<form name="db_audit" method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_event">
|
||||
<table width='300' border='0'>
|
||||
<table width='300' cellpadding='4' cellspacing='4' class='databox'>
|
||||
<tr><td class='datos'>
|
||||
<select name="date_purge" width="255px">
|
||||
<option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_event_90day"] ?>
|
||||
|
@ -113,7 +113,7 @@ if (comprueba_login() == 0)
|
|||
</select>
|
||||
|
||||
<td class="datos">
|
||||
<input class="sub" type="submit" name="purgedb" value="<?php echo $lang_label["doit"] ?>" onClick="if (!confirm('<?php echo $lang_label["are_you_sure"] ?>')) return false;">
|
||||
<input class="sub wand" type="submit" name="purgedb" value="<?php echo $lang_label["doit"] ?>" onClick="if (!confirm('<?php echo $lang_label["are_you_sure"] ?>')) return false;">
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -121,7 +121,8 @@ if (comprueba_login() == 0)
|
|||
# Select Agent for further operations.
|
||||
?>
|
||||
<form action='index.php?sec=gdbman&sec2=godmode/db/db_purge' method='post'>
|
||||
<table><tr><td class='datos'>
|
||||
<table class='databox'>
|
||||
<tr><td class='datos'>
|
||||
<select name='agent' class='w130'>
|
||||
|
||||
<?php
|
||||
|
@ -135,7 +136,7 @@ if (comprueba_login() == 0)
|
|||
?>
|
||||
</select>
|
||||
<a href="#" class="tip"> <span><?php echo $help_label["db_purge0"] ?></span></a>
|
||||
<td><input class='sub' type='submit' name='purgedb_ag' value='<?php echo $lang_label["get_data"] ?>'>
|
||||
<td><input class='sub upd' type='submit' name='purgedb_ag' value='<?php echo $lang_label["get_data"] ?>'>
|
||||
<a href="#" class="tip"> <span><?php echo $help_label["db_purge1"] ?></span></a>
|
||||
</table><br>
|
||||
|
||||
|
@ -173,7 +174,7 @@ if (comprueba_login() == 0)
|
|||
|
||||
?>
|
||||
|
||||
<table width=300 border=0>
|
||||
<table width='300' border='0' class='databox' cellspacing='4' cellpadding='4'>
|
||||
<tr><td class=datos>
|
||||
<?php echo $lang_label["rango3"]?>
|
||||
</td>
|
||||
|
@ -225,7 +226,7 @@ if (comprueba_login() == 0)
|
|||
</table>
|
||||
<br>
|
||||
<h3><?php echo $lang_label["purge_data"] ?></h3>
|
||||
<table width=300 border=0>
|
||||
<table width='300' border='0' class='databox' cellspacing='4' cellpadding='4'>
|
||||
<tr><td>
|
||||
<select name="date_purge" width="255px">
|
||||
<option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_90day"] ?>
|
||||
|
@ -236,7 +237,7 @@ if (comprueba_login() == 0)
|
|||
<option value="<?php echo $d1 ?>"><?php echo $lang_label["purge_1day"] ?>
|
||||
</select>
|
||||
|
||||
<td><input class="sub" type="submit" name="purgedb" value="<?php echo $lang_label["doit"] ?>" onClick="if (!confirm('<?php echo $lang_label["are_you_sure"] ?>')) return false;">
|
||||
<td><input class="sub wand" type="submit" name="purgedb" value="<?php echo $lang_label["doit"] ?>" onClick="if (!confirm('<?php echo $lang_label["are_you_sure"] ?>')) return false;">
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ if (comprueba_login() == 0)
|
|||
<h2><?php echo $lang_label["dbmain_title"]; ?> >
|
||||
<?php echo $lang_label["db_refine"]; ?><a href='help/<?php echo $help_code?>/chap8.php#831' target='_help' class='help'> <span><?php echo $lang_label["help"] ?></span></a></h2>
|
||||
<form method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_refine&operacion=1">
|
||||
<table width='500' border='0' cellspacing='3' cellpadding='5'>
|
||||
<table width='500' border='0' cellspacing='4' cellpadding='4' class='databox'>
|
||||
<tr>
|
||||
<td class="datost"><b><?php echo $lang_label["source_agent"]; ?></b><br><br>
|
||||
<select name="origen" class="w130">
|
||||
|
@ -63,12 +63,12 @@ if (comprueba_login() == 0)
|
|||
while ($row=mysql_fetch_array($result)){
|
||||
if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ){
|
||||
if ( $_POST["origen"] != $row["id_agente"])
|
||||
echo "<option value=".$row["id_agente"].">".$row["nombre"];
|
||||
echo "<option value=".$row["id_agente"].">".$row["nombre"]."</option>";
|
||||
}
|
||||
else
|
||||
echo "<option value=".$row["id_agente"].">".$row["nombre"];
|
||||
echo "<option value=".$row["id_agente"].">".$row["nombre"]."</option>";
|
||||
}
|
||||
echo '</select> <input type=submit name="update_agent" class=sub value="'.$lang_label["get_info"].'"><br><br>';
|
||||
echo '</select> <input type=submit name="update_agent" class="sub upd" value="'.$lang_label["get_info"].'"><br><br>';
|
||||
echo "<b>".$lang_label["modules"]."</b><br><br>";
|
||||
echo "<select name='origen_modulo[]' size=5 multiple=yes class='w130'>";
|
||||
if ( (isset($_POST["update_agent"])) AND (isset($_POST["origen"])) ) {
|
||||
|
@ -77,7 +77,7 @@ if (comprueba_login() == 0)
|
|||
$sql1="SELECT * FROM tagente_modulo WHERE id_agente = ".$agente_modulo;
|
||||
$result = mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value=".$row["id_agente_modulo"].">".$row["nombre"];
|
||||
echo "<option value=".$row["id_agente_modulo"].">".$row["nombre"]."</option>";
|
||||
}
|
||||
}
|
||||
echo "</select>";
|
||||
|
@ -88,7 +88,7 @@ if (comprueba_login() == 0)
|
|||
<tr class=datos><td><?php echo $lang_label["max"]; ?><td><input type="text" name="max" size=4 value=0>
|
||||
<tr><td></td></tr>
|
||||
<tr><td class="bot" colspan="2" align="right">
|
||||
<input type=submit name="eliminar" class=sub value="<?php echo $lang_label["delete"].'" onClick="if (!confirm("'.$lang_label["are_you_sure"].'")) return false;>'; ?>
|
||||
<input type="submit" name="eliminar" class="sub delete" value="<?php echo $lang_label["delete"].'" onClick="if (!confirm("'.$lang_label["are_you_sure"].'")) return false;>'; ?>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
|
|
|
@ -159,7 +159,7 @@ if (comprueba_login() == 0){
|
|||
echo "<ul class='mn'><li><a href='index.php?sec=gdbman&sec2=godmode/db/db_info' class='mn'>".$lang_label["db_info"]."</a></li></ul></div>";
|
||||
|
||||
if (isset($_GET["sec2"]) && $_GET["sec2"] == "godmode/db/db_purge"){
|
||||
echo "<div class='arrowg'>";
|
||||
echo "<div class='arrowgs'>";
|
||||
}
|
||||
else echo "<div class='arrowg'>";
|
||||
echo "<ul class='mn'><li><a href='index.php?sec=gdbman&sec2=godmode/db/db_purge' class='mn'>".$lang_label["db_purge"]."</a></li></ul></div>";
|
||||
|
|
|
@ -78,7 +78,7 @@ if (isset($_GET["delete"])){ // if delete
|
|||
echo "<h2>".$lang_label["module_management"]." > ";
|
||||
echo $lang_label["network_component_group_management"]."</h2>";
|
||||
|
||||
echo "<table cellpadding=4 cellspacing=4 width=550>";
|
||||
echo "<table cellpadding='4' cellspacing='4' width='550' class='databox'>";
|
||||
echo "<th>".$lang_label["name"]."</th>";
|
||||
echo "<th>".$lang_label["parent"]."</th>";
|
||||
echo "<th>".$lang_label["delete"]."</th>";
|
||||
|
@ -96,7 +96,7 @@ while ($row=mysql_fetch_array($result)){
|
|||
}
|
||||
echo "<tr>
|
||||
<td class='$tdcolor'>
|
||||
<b><a href='index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups_form&edit=1&id_sg=".$row["id_sg"]."'>".$row["name"]."</A></B>
|
||||
<b><a href='index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups_form&edit=1&id_sg=".$row["id_sg"]."'>".$row["name"]."</a></b>
|
||||
</td>
|
||||
<td class='$tdcolor'>
|
||||
".give_network_component_group_name ($row["parent"])."
|
||||
|
@ -110,8 +110,9 @@ while ($row=mysql_fetch_array($result)){
|
|||
</tr>";
|
||||
|
||||
}
|
||||
echo "<tr><td colspan='3'><div class='raya'></div></td></tr>";
|
||||
echo "<tr><td colspan='3' align='right'>";
|
||||
echo "</table>";
|
||||
echo '<table width="550">';
|
||||
echo '<tr><td align="right">';
|
||||
echo "<form method=post action='index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups_form&create=1'>";
|
||||
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create"]."'>";
|
||||
echo "</form></td></tr></table>";
|
||||
|
|
|
@ -50,20 +50,20 @@ if (isset($_GET["edit"])){ // Edit mode
|
|||
}
|
||||
|
||||
echo "<h2>".$lang_label["network_component_group_management"]."</h2>";
|
||||
echo '<table width="500" cellspacing="4" cellpadding="4">';
|
||||
echo '<table width="500" cellspacing="4" cellpadding="4" class="databox">';
|
||||
|
||||
// Different Form url if it's a create or if it's a update form
|
||||
if ($id_sg != -1)
|
||||
echo "<form name='snmp_c' method='post' action='http://pandora.localhost/index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups&update=1&id_sg=$id_sg'>";
|
||||
echo "<form name='snmp_c' method='post' action='index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups&update=1&id_sg=$id_sg'>";
|
||||
else
|
||||
echo "<form name='snmp_c' method='post' action='http://pandora.localhost/index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups&create=1'>";
|
||||
echo "<form name='snmp_c' method='post' action='index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups&create=1'>";
|
||||
|
||||
echo "<tr><td class='lb' rowspan='3' width='3'>";
|
||||
echo "<td class='datos'>".$lang_label["name"];
|
||||
echo "<td class='datos'><input type='text' name='name' size=30 value='$name'>";
|
||||
echo "<tr>";
|
||||
echo "<td class='datos'>".$lang_label["name"]."</td>";
|
||||
echo "<td class='datos'><input type='text' name='name' size=30 value='$name'></td>";
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td class='datos2'>".$lang_label["parent"];
|
||||
echo "<td class='datos2'>".$lang_label["parent"]."</td>";
|
||||
echo "<td class='datos2'>";
|
||||
echo "<select name='parent'>";
|
||||
echo "<option value='$parent'>".give_network_component_group_name($parent);
|
||||
|
@ -73,15 +73,15 @@ while ($row=mysql_fetch_array($result))
|
|||
echo "<option value='".$row["id_sg"]."'>".give_network_component_group_name($row["id_sg"]);
|
||||
echo "</select>";
|
||||
|
||||
|
||||
echo " <tr><td colspan='3'><div class='raya'></div></td></tr>
|
||||
<tr><td colspan='3' align='right'>";
|
||||
echo "</td></tr><table>";
|
||||
echo '<table width="500">';
|
||||
echo '<tr><td align="right">';
|
||||
|
||||
if ($id_sg == -1)
|
||||
echo "<input name='crtbutton' type='submit' class='sub wand' value='".$lang_label["create"]."'>";
|
||||
else
|
||||
echo "<input name='uptbutton' type='submit' class='sub upd' value='".$lang_label["update"]."'>";
|
||||
|
||||
echo "</form></table>";
|
||||
echo "</form></td></tr></table>";
|
||||
|
||||
?>
|
|
@ -166,7 +166,7 @@ else
|
|||
echo "<form method='POST' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components'>";
|
||||
|
||||
|
||||
echo "<table cellpadding='3' cellspacing='3'><tr>";
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox'><tr>";
|
||||
echo "<td>".$lang_label["group"]."</td>";
|
||||
echo "<td valign='middle'>";
|
||||
echo "<select name='ncgroup' onChange='javascript:this.form.submit();'>";
|
||||
|
@ -180,7 +180,7 @@ while ($row = mysql_fetch_array ($result))
|
|||
echo "</select>";
|
||||
echo "<td valign='middle'>";
|
||||
echo "<noscript><input name='uptbutton' type='submit' class='sub' value='".$lang_label["show"]."'></noscript>";
|
||||
echo "</td></form></table><br><br>";
|
||||
echo "</td></form></table><br>";
|
||||
|
||||
if ($ncgroup != 0)
|
||||
$sql1 = "SELECT * FROM tnetwork_component WHERE id_group = $ncgroup";
|
||||
|
@ -189,16 +189,16 @@ else
|
|||
|
||||
$result = mysql_query ($sql1);
|
||||
if ( $row = mysql_num_rows ($result)){
|
||||
echo '<table width="750" cellpadding="4" cellspacing="4">';
|
||||
echo '<table width="750" cellpadding="4" cellspacing="4" class="databox">';
|
||||
echo '<tr>';
|
||||
echo "<th>".$lang_label["module_name"];
|
||||
echo "<th>".$lang_label["type"];
|
||||
echo "<th>".$lang_label["interval"];
|
||||
echo "<th>".$lang_label["description"];
|
||||
echo "<th>".$lang_label["nc.group"];
|
||||
echo "<th>".$lang_label["module_name"]."</th>";
|
||||
echo "<th>".$lang_label["type"]."</th>";
|
||||
echo "<th>".$lang_label["interval"]."</th>";
|
||||
echo "<th>".$lang_label["description"]."</th>";
|
||||
echo "<th>".$lang_label["nc.group"]."</th>";
|
||||
//echo "<th>".$lang_label["module_group"];
|
||||
echo "<th>".$lang_label["max_min"];
|
||||
echo "<th width=50>".$lang_label["action"];
|
||||
echo "<th>".$lang_label["max_min"]."</th>";
|
||||
echo "<th width=50>".$lang_label["action"]."</th>";
|
||||
$color=1;
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
if ($color == 1){
|
||||
|
@ -218,7 +218,7 @@ if ( $row = mysql_num_rows ($result)){
|
|||
$module_group2 = $row["id_module_group"];
|
||||
|
||||
echo "<tr><td class='".$tdcolor."_id'>";
|
||||
echo "<a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components_form&update=1&id_nc=".$row["id_nc"]."'>".$nombre_modulo."</a>";
|
||||
echo "<a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components_form&update=1&id_nc=".$row["id_nc"]."'>".$nombre_modulo."</a></td>";
|
||||
echo "<td class='".$tdcolor."f9'>";
|
||||
if ($id_tipo > 0) {
|
||||
echo "<img src='images/".show_icon_type($id_tipo)."' border=0>";
|
||||
|
@ -228,6 +228,7 @@ if ( $row = mysql_num_rows ($result)){
|
|||
} else {
|
||||
echo "<td class='$tdcolor'> N/A";
|
||||
}
|
||||
echo "</td>";
|
||||
echo "<td class='$tdcolor'>".substr($descripcion,0,30)."</td>";
|
||||
echo "<td class='$tdcolor'>".give_network_component_group_name($id_group)."</td>";
|
||||
//echo "<td class='$tdcolor'>".
|
||||
|
@ -240,10 +241,12 @@ if ( $row = mysql_num_rows ($result)){
|
|||
echo $module_max." / ".$module_min;
|
||||
echo "<td class='$tdcolor' align='center'>";
|
||||
echo "<a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&delete=1&id_nc=".$row["id_nc"]."'>";
|
||||
echo "<img src='images/cross.png' border=0 alt='".$lang_label["delete"]."'></A>";
|
||||
echo "<img src='images/cross.png' border=0 alt='".$lang_label["delete"]."'></a></td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "<tr><td colspan='7'><div class='raya'></div></td></tr>";
|
||||
echo "<tr><td colspan='7' align='right'>";
|
||||
echo "</table>";
|
||||
echo "<table width='750px'>";
|
||||
echo "<tr><td align='right'>";
|
||||
echo "<form method=post action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components_form&create=1'>";
|
||||
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create"]."'>";
|
||||
echo "</form></td></tr></table>";
|
||||
|
|
|
@ -184,44 +184,44 @@ if (isset($_GET["update"])){ // Edit mode
|
|||
}
|
||||
|
||||
echo "<h2>".$lang_label["network_component_management"]."</h2>";
|
||||
echo '<table width="700" cellspacing="4" cellpadding="4">';
|
||||
echo '<table width="700" cellspacing="4" cellpadding="4" class="databox">';
|
||||
|
||||
// Different Form url if it's a create or if it's a update form
|
||||
if ($id_nc != -1)
|
||||
if ($id_nc != -1) {
|
||||
echo "<form name='modulo' method='post' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&update=1&id_nc=$id_nc'>";
|
||||
else
|
||||
} else {
|
||||
echo "<form name='modulo' method='post' action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_components&create=1'>";
|
||||
echo "<tr><td class='lb' rowspan='10' width='3'>";
|
||||
|
||||
}
|
||||
echo "<tr>";
|
||||
echo '<tr><td class="datos2">'.$lang_label["module_name"];
|
||||
echo "<td class='datos2'><input type='text' name='name' size='25' value='$name'>";
|
||||
|
||||
//-- Module type combobox
|
||||
echo "<td class='datos2'>".$lang_label["module_type"];
|
||||
echo "<td class='datos2'>".$lang_label["module_type"]."</td>";
|
||||
echo "<td class='datos2'>";
|
||||
echo '<select name="tipo" onChange="type_change()">';
|
||||
$sql1="SELECT id_tipo, nombre FROM ttipo_modulo WHERE id_tipo != '$type' ORDER BY nombre";
|
||||
$result=mysql_query($sql1);
|
||||
echo "<option value='$type'>". dame_nombre_tipo_modulo($type);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row["id_tipo"]."'>".$row["nombre"];
|
||||
echo "<option value='".$row["id_tipo"]."'>".$row["nombre"]."</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
|
||||
echo "</td></tr>";
|
||||
echo "<tr>";
|
||||
echo "<td class='datos'>".$lang_label["group"];
|
||||
echo "<td class='datos'>".$lang_label["group"]."</td>";
|
||||
echo "<td class='datos'>";
|
||||
echo "<select name='id_group'>";
|
||||
echo "<option value='$id_group'>".give_network_component_group_name($id_group);
|
||||
echo "<option value='$id_group'>".give_network_component_group_name($id_group)."</option>";
|
||||
$sql1 = "SELECT * FROM tnetwork_component_group where id_sg != '$id_group'";
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result))
|
||||
echo "<option value='".$row["id_sg"]."'>".give_network_component_group_name($row["id_sg"]);
|
||||
echo "<option value='".$row["id_sg"]."'>".give_network_component_group_name($row["id_sg"])."</option>";
|
||||
echo "</select>";
|
||||
|
||||
|
||||
echo "<td class='datos'>".$lang_label["module_group"];
|
||||
echo "<td class='datos'>".$lang_label["module_group"]."</td>";
|
||||
echo '<td class="datos">';
|
||||
echo '<select name="id_module_group">';
|
||||
if ($id_nc != -1 )
|
||||
|
@ -229,7 +229,7 @@ if ($id_nc != -1 )
|
|||
$sql1='SELECT * FROM tmodule_group';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result))
|
||||
echo "<option value='".$row["id_mg"]."'>".$row["name"];
|
||||
echo "<option value='".$row["id_mg"]."'>".$row["name"]."</option>";
|
||||
echo "</select>";
|
||||
|
||||
echo "<tr>";
|
||||
|
@ -238,27 +238,34 @@ echo '<td class="datos2">';
|
|||
echo '<input type="text" name="module_interval" size="5" value="'.$module_interval.'">';
|
||||
?>
|
||||
|
||||
<td class="datos2"><?php echo $lang_label["tcp_port"] ?>
|
||||
<td class="datos2"><input type="text" name="tcp_port" size="5" value="<?php echo $tcp_port ?>">
|
||||
|
||||
<tr><td class="datos"><?php echo $lang_label["snmp_oid"] ?>
|
||||
<td class="datos"><input type="text" name="snmp_oid" size="25" value="<?php echo $snmp_oid ?>">
|
||||
|
||||
<td class="datos"><?php echo $lang_label["snmp_community"] ?>
|
||||
<td class="datos"><input type="text" name="snmp_community" size="25" value="<?php echo $snmp_community ?>">
|
||||
|
||||
|
||||
<tr><td class="datos2t"><?php echo $lang_label["tcp_send"] ?>
|
||||
<td class="datos2"><textarea name="tcp_send" cols="20" rows="2"><?php echo $tcp_send ?></textarea>
|
||||
|
||||
<td class="datos2t"><?php echo $lang_label["tcp_rcv"] ?>
|
||||
<td class="datos2"><textarea name="tcp_rcv" cols="20" rows="2"><?php echo $tcp_rcv ?></textarea>
|
||||
|
||||
<tr><td class="datos"><?php echo $lang_label["mindata"] ?>
|
||||
<td class="datos"><input type="text" name="modulo_min" size="5" value="<?php echo $modulo_min ?>">
|
||||
<td class="datos"><?php echo $lang_label["maxdata"] ?>
|
||||
<td class="datos"><input type="text" name="modulo_max" size="5" value="<?php echo $modulo_max ?>">
|
||||
|
||||
<td class="datos2"><?php echo $lang_label["tcp_port"] ?></td>
|
||||
<td class="datos2">
|
||||
<input type="text" name="tcp_port" size="5" value="<?php echo $tcp_port ?>">
|
||||
</td></tr>
|
||||
<tr><td class="datos"><?php echo $lang_label["snmp_oid"] ?></td>
|
||||
<td class="datos">
|
||||
<input type="text" name="snmp_oid" size="25" value="<?php echo $snmp_oid ?>">
|
||||
</td>
|
||||
<td class="datos"><?php echo $lang_label["snmp_community"] ?></td>
|
||||
<td class="datos">
|
||||
<input type="text" name="snmp_community" size="25" value="<?php echo $snmp_community ?>">
|
||||
</td></tr>
|
||||
<tr><td class="datos2t"><?php echo $lang_label["tcp_send"] ?></td>
|
||||
<td class="datos2">
|
||||
<textarea name="tcp_send" cols="20" rows="2"><?php echo $tcp_send ?></textarea>
|
||||
</td>
|
||||
<td class="datos2t"><?php echo $lang_label["tcp_rcv"] ?></td>
|
||||
<td class="datos2">
|
||||
<textarea name="tcp_rcv" cols="20" rows="2"><?php echo $tcp_rcv ?></textarea>
|
||||
</td></tr>
|
||||
<tr><td class="datos"><?php echo $lang_label["mindata"] ?></td>
|
||||
<td class="datos">
|
||||
<input type="text" name="modulo_min" size="5" value="<?php echo $modulo_min ?>">
|
||||
</td>
|
||||
<td class="datos"><?php echo $lang_label["maxdata"] ?></td>
|
||||
<td class="datos">
|
||||
<input type="text" name="modulo_max" size="5" value="<?php echo $modulo_max ?>">
|
||||
</td></tr>
|
||||
<?PHP
|
||||
|
||||
echo '<tr><td class="datos2t">'.$lang_label["comments"];
|
||||
|
@ -266,15 +273,16 @@ echo '<td class="datos2" colspan=3>';
|
|||
echo '<textarea name="descripcion" cols=70 rows=2>';
|
||||
echo $description;
|
||||
echo "</textarea>";
|
||||
echo "<tr><td colspan='5'><div class='raya'></div></td></tr>";
|
||||
echo "<tr>";
|
||||
echo "</td></tr>";
|
||||
echo "</table>";
|
||||
|
||||
echo "<td colspan=5 align='right'>";
|
||||
echo "<table width='700px'>";
|
||||
echo "</tr><td align='right'>";
|
||||
if ($id_nc != "-1")
|
||||
echo '<input name="updbutton" type="submit" class="sub upd" value="'.$lang_label["update"].'">';
|
||||
else
|
||||
echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["add"].'">';
|
||||
echo "</form>";
|
||||
echo "</table>";
|
||||
echo "</td></tr></table>";
|
||||
|
||||
?>
|
||||
|
|
|
@ -49,7 +49,7 @@ $sql1='SELECT * FROM tnetwork_profile ORDER BY name';
|
|||
$result=mysql_query($sql1);
|
||||
$color=0;
|
||||
if (mysql_num_rows($result)) {
|
||||
echo "<table cellpadding=4 cellspacing=4 width=650>";
|
||||
echo "<table cellpadding='4' cellspacing='4' width='650' class='databox'>";
|
||||
echo "<th>".$lang_label["name"]."</th>";
|
||||
echo "<th>".$lang_label["description"]."</th>";
|
||||
echo "<th>".$lang_label["action"]."</th>";
|
||||
|
@ -63,29 +63,31 @@ while ($row=mysql_fetch_array($result)){
|
|||
$tdcolor = "datos2";
|
||||
$color = 1;
|
||||
}
|
||||
echo "<tr>
|
||||
<td class='$tdcolor'>
|
||||
<b><a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np=".$row["id_np"]."'>".$row["name"]."</A></B>
|
||||
</td>
|
||||
<td class='$tdcolor'>
|
||||
".$row["description"]."
|
||||
</td>
|
||||
<td class='$tdcolor' align='center'>
|
||||
<a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates&delete=".$row["id_np"]."'
|
||||
onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\'))
|
||||
return false;'>
|
||||
<img border='0' src='images/cross.png'></a>
|
||||
</td>
|
||||
</tr>";
|
||||
echo "
|
||||
<tr>
|
||||
<td class='$tdcolor'>
|
||||
<b><a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np=".$row["id_np"]."'>".$row["name"]."</a></b>
|
||||
</td>
|
||||
<td class='$tdcolor'>
|
||||
".$row["description"]."
|
||||
</td>
|
||||
<td class='$tdcolor' align='center'>
|
||||
<a href='index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates&delete=".$row["id_np"]."'
|
||||
onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\'))
|
||||
return false;'>
|
||||
<img border='0' src='images/cross.png'></a>
|
||||
</td>
|
||||
</tr>";
|
||||
|
||||
}
|
||||
if (mysql_num_rows($result)) {
|
||||
echo "<tr><td colspan='3'><div class='raya'></div></td></tr>";
|
||||
echo "</table>";
|
||||
} else {
|
||||
echo "<div class='nf'>".$lang_label["no_netprofiles"]."</div>";
|
||||
echo "<table>";
|
||||
|
||||
}
|
||||
echo "<tr><td colspan='3' align='right'>";
|
||||
echo "<table width='650px'>";
|
||||
echo "<tr><td align='right'>";
|
||||
echo "<form method=post action='index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np=-1'>";
|
||||
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create"]."'>";
|
||||
echo "</form></td></tr></table>";
|
||||
|
|
|
@ -102,20 +102,20 @@ if (isset($_GET["update"])){ // Update profile
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
echo "<h2>".$lang_label["network_profile_management"]."</h2>";
|
||||
echo "<table width='550' cellpadding='4' cellspacing='4'>";
|
||||
echo "<h2>".$lang_label["module_management"]." > ";
|
||||
echo $lang_label["network_profile_management"]."</h2>";
|
||||
echo "<table width='550' cellpadding='4' cellspacing='4' class='databox'>";
|
||||
|
||||
if ($id_np == -1)
|
||||
echo '<form name="new_user" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&create=1"><tr><td class="lb" rowspan="4" width="3">';
|
||||
echo '<form name="new_user" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&create=1">';
|
||||
else
|
||||
echo '<form name="user_mod" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&update='.$id_np.'"><tr><td class="lb" rowspan="4" width="3">';
|
||||
echo '<form name="user_mod" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&update='.$id_np.'">';
|
||||
|
||||
echo "<tr><td class='datos'>".$lang_label["name"];
|
||||
echo "<tr><td class='datos'>".$lang_label["name"]."</td>";
|
||||
echo "<td class='datos'>";
|
||||
echo "<input type='text' size=25 name='name' value='$name'>";
|
||||
|
||||
echo "<tr><td class='datos2'>".$lang_label["description"];
|
||||
echo "</td>";
|
||||
echo "<tr><td class='datos2'>".$lang_label["description"]."</td>";
|
||||
echo "<td class='datos2'>";
|
||||
echo "<textarea cols=50 rows=2 name='description'>";
|
||||
if (isset($description)) {
|
||||
|
@ -126,13 +126,13 @@ echo "</td></tr></table>";
|
|||
|
||||
if ($id_np != -1){
|
||||
// Show associated modules, allow to delete, and to add
|
||||
echo '<table width="550" cellpadding="4" cellspacing="4">';
|
||||
echo '<table width="550" cellpadding="4" cellspacing="4" class="databox">';
|
||||
echo '<tr>';
|
||||
echo "<th>".$lang_label["module_name"];
|
||||
echo "<th>".$lang_label["type"];
|
||||
echo "<th>".$lang_label["description"];
|
||||
echo "<th>".$lang_label["nc.group"];
|
||||
echo "<th>X";
|
||||
echo "<th>".$lang_label["module_name"]."</th>";
|
||||
echo "<th>".$lang_label["type"]."</th>";
|
||||
echo "<th>".$lang_label["description"]."</th>";
|
||||
echo "<th>".$lang_label["nc.group"]."</th>";
|
||||
echo "<th>X</th>";
|
||||
$color =0;
|
||||
$sql1 = "SELECT * FROM tnetwork_profile_component where id_np = $id_np";
|
||||
$result = mysql_query ($sql1);
|
||||
|
@ -169,21 +169,20 @@ if ($id_np != -1){
|
|||
echo "</table>";
|
||||
}
|
||||
|
||||
echo "<table width=550>";
|
||||
echo '<tr><td><div class="raya"></div></td></tr>';
|
||||
echo '<tr><td align="right" >';
|
||||
echo "<table width='550'>";
|
||||
echo '<tr><td align="right">';
|
||||
if ($id_np == -1)
|
||||
echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["create"].'">';
|
||||
else
|
||||
echo '<input name="updbutton" type="submit" class="sub upd" value="'.$lang_label["update"].'">';
|
||||
echo "</table>";
|
||||
echo "</td></tr></table>";
|
||||
echo "</form>";
|
||||
|
||||
|
||||
if ($id_np != -1){
|
||||
echo "<h3>"."Add module"."</h3>";
|
||||
echo "<table>";
|
||||
echo '<tr><td valign="top">';
|
||||
echo "<table class='databox'>";
|
||||
echo '<tr><td>';
|
||||
echo '<form name="add_module" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np='.$id_np.'&add_module=1">';
|
||||
$sql1 = "SELECT * FROM tnetwork_component ORDER BY id_group";
|
||||
$result = mysql_query ($sql1);
|
||||
|
@ -195,7 +194,7 @@ if ($id_np != -1){
|
|||
|
||||
echo '<td valign="top">';
|
||||
echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["add"].'">';
|
||||
echo "</table>";
|
||||
echo "</td></tr></table>";
|
||||
echo "</form>";
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ if (give_acl($id_user, 0, "PM")==1) {
|
|||
echo "<h2>".$lang_label["module_management"]." > ";
|
||||
echo $lang_label["defined_modules"]."</h2>";
|
||||
|
||||
echo "<table cellpadding=4 cellspacing=4 width=750>";
|
||||
echo "<table cellpadding='4' cellspacing='4' width='750' class='databox'>";
|
||||
echo "<th>".$lang_label["icon"]."</th>";
|
||||
echo "<th>".$lang_label["name"]."</th>";
|
||||
echo "<th>".$lang_label["type"]."</th>";
|
||||
|
@ -92,16 +92,17 @@ if (give_acl($id_user, 0, "PM")==1) {
|
|||
".$row["descripcion"]."
|
||||
</td>
|
||||
</tr>";
|
||||
|
||||
}
|
||||
echo "<tr><td colspan='4'><div class='raya'></div></td></tr>";
|
||||
echo "<tr><td colspan='4' align='right'>";
|
||||
echo "<form method=post action='index.php?sec=gmodules&
|
||||
sec2=godmode/modules/manage_modules&create=1'>";
|
||||
echo "</table>";
|
||||
|
||||
/* not used yet
|
||||
echo "<table>";
|
||||
echo "<tr><td align='right'><form method=post action='index.php?sec=gmodules&
|
||||
sec2=godmode/modules/manage_modules&create=1'>";
|
||||
|
||||
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create_module"]."'>";
|
||||
echo "</form></td></tr></table>
|
||||
*/
|
||||
echo "</form></td></tr></table>";
|
||||
|
||||
} // Fin pagina
|
||||
else {
|
||||
|
|
|
@ -134,131 +134,161 @@ if (comprueba_login() == 0)
|
|||
);
|
||||
// Form to manage date
|
||||
if (isset ($id_perfil)){ // There are values defined, let's show form with data for INSERT or UPDATE
|
||||
echo "<table width='400' cellpadding='3' cellspacing='3'>";
|
||||
echo "<tr><td class='lb' rowspan='11' width='5'>";
|
||||
echo "<table width='400' cellpadding='4' cellspacing='4' class='databox'>";
|
||||
echo "<tr>";
|
||||
echo "<form method='post' action='index.php?sec=gperfiles&sec2=godmode/profiles/profile_list&update_data'>";
|
||||
echo "<input type=hidden name=id_perfil value='".$id_perfil."'>";
|
||||
echo "<td class=datos>".$lang_label["profile_name"]."<td class=datos><input name='name' type=text size='27' value='".$name."'>";
|
||||
|
||||
echo "<tr><td class=datos2>".$lang_label["incident_view"]."<td class=datos2><input name='incident_view' type=checkbox class='chk' value='1' ";
|
||||
if ($incident_view == 1) echo "checked"; echo ">";
|
||||
|
||||
echo "<tr><td class=datos>".$lang_label["incident_edit"]."<td class=datos><input name='incident_edit' type=checkbox class='chk' value='1' ";
|
||||
if ($incident_edit == 1) echo "checked";echo ">";
|
||||
|
||||
echo "<tr><td class=datos2>".$lang_label["manage_incidents"]."<td class=datos2><input name='incident_management' type=checkbox class='chk' value='1' ";
|
||||
if ($incident_management == 1) echo "checked";echo ">";
|
||||
|
||||
echo "<tr><td class=datos>".$lang_label["view_agents"]."<td class=datos><input name='agent_view' type=checkbox class='chk' value='1' ";
|
||||
if ($agent_view == 1) echo "checked";echo ">";
|
||||
|
||||
echo "<tr><td class=datos2>".$lang_label["agent_edit"]."<td class=datos2><input name='agent_edit' type=checkbox class='chk' value='1' ";
|
||||
if ($agent_edit == 1) echo "checked";echo ">";
|
||||
|
||||
echo "<tr><td class=datos>".$lang_label["alert_edit"]."<td class=datos><input name='alert_edit' type=checkbox class='chk' value='1' ";
|
||||
if ($alert_edit == 1) echo "checked";echo ">";
|
||||
|
||||
echo "<tr><td class=datos2>".$lang_label["manage_users"]."<td class=datos2><input name='user_management' class='chk' type=checkbox value='1' ";
|
||||
if ($user_management == 1) echo "checked";echo ">";
|
||||
|
||||
echo "<tr><td class=datos>".$lang_label["manage_db"]."<td class=datos><input name='db_management' class='chk' type=checkbox value='1' ";
|
||||
if ($db_management == 1) echo "checked";echo ">";
|
||||
|
||||
echo "<tr><td class=datos2>".$lang_label["manage_alerts"]."<td class=datos2><input name='alert_management' class='chk' type=checkbox value='1' ";
|
||||
if ($alert_management == 1) echo "checked";echo ">";
|
||||
|
||||
echo "<tr><td class=datos>".$lang_label["pandora_management"]."<td class=datos><input name='pandora_management' class='chk' type=checkbox value='1' ";
|
||||
if ($pandora_management == 1) echo "checked";echo ">";
|
||||
echo" <tr><td colspan='3'><div class='raya'></div></td></tr>";
|
||||
if (isset($_GET["new_profile"])){
|
||||
echo "<tr><td colspan='3' align='right'><input name='crtbutton' type='submit' class='sub' value='".$lang_label["create"]."'>";
|
||||
}
|
||||
if (isset($_GET["edit_profile"])){
|
||||
echo "<tr><td colspan='3' align='right'><input name='uptbutton' type='submit' class='sub' value='" .$lang_label["update"]."'>";
|
||||
}
|
||||
echo "
|
||||
<td class=datos>".$lang_label["profile_name"]."</td>
|
||||
<td class=datos>
|
||||
<input name='name' type=text size='27' value='".$name."'></td></tr>
|
||||
<tr><td class=datos2>".$lang_label["incident_view"]."</td>
|
||||
<td class=datos2>
|
||||
<input name='incident_view' type=checkbox class='chk' value='1' ";
|
||||
if ($incident_view == 1) echo "checked"; echo "></td></tr>
|
||||
<tr><td class=datos>".$lang_label["incident_edit"]."</td>
|
||||
<td class=datos>
|
||||
<input name='incident_edit' type=checkbox class='chk' value='1' ";
|
||||
if ($incident_edit == 1) echo "checked";echo "></td></tr>
|
||||
<tr><td class=datos2>".$lang_label["manage_incidents"]."</td>
|
||||
<td class=datos2>
|
||||
<input name='incident_management' type=checkbox class='chk' value='1' ";
|
||||
if ($incident_management == 1) echo "checked";echo "></td></tr>
|
||||
<tr><td class=datos>".$lang_label["view_agents"]."</td>
|
||||
<td class=datos>
|
||||
<input name='agent_view' type=checkbox class='chk' value='1' ";
|
||||
if ($agent_view == 1) echo "checked";echo "></td></tr>
|
||||
<tr><td class=datos2>".$lang_label["agent_edit"]."</td>
|
||||
<td class=datos2>
|
||||
<input name='agent_edit' type=checkbox class='chk' value='1' ";
|
||||
if ($agent_edit == 1) echo "checked";echo "></td></tr>
|
||||
<tr><td class=datos>".$lang_label["alert_edit"]."</td>
|
||||
<td class=datos>
|
||||
<input name='alert_edit' type=checkbox class='chk' value='1' ";
|
||||
if ($alert_edit == 1) echo "checked";echo "></td></tr>
|
||||
<tr><td class=datos2>".$lang_label["manage_users"]."</td>
|
||||
<td class=datos2>
|
||||
<input name='user_management' class='chk' type=checkbox value='1' ";
|
||||
if ($user_management == 1) echo "checked";echo "></td></tr>
|
||||
<tr><td class=datos>".$lang_label["manage_db"]."</td>
|
||||
<td class=datos>
|
||||
<input name='db_management' class='chk' type=checkbox value='1' ";
|
||||
if ($db_management == 1) echo "checked";echo "></td></tr>
|
||||
<tr><td class=datos2>".$lang_label["manage_alerts"]."</td>
|
||||
<td class=datos2>
|
||||
<input name='alert_management' class='chk' type=checkbox value='1' ";
|
||||
if ($alert_management == 1) echo "checked";echo "></td></tr>
|
||||
<tr><td class=datos>".$lang_label["pandora_management"]."</td>
|
||||
<td class=datos>
|
||||
<input name='pandora_management' class='chk' type=checkbox value='1' ";
|
||||
if ($pandora_management == 1) echo "checked";echo "></td></tr>
|
||||
";
|
||||
echo "</table>";
|
||||
echo "<table width='400'>";
|
||||
echo "<tr><td align='right'>";
|
||||
|
||||
if (isset($_GET["new_profile"])){
|
||||
echo "
|
||||
<input name='crtbutton' type='submit' class='sub wand' value='".$lang_label["create"]."'>";
|
||||
}
|
||||
if (isset($_GET["edit_profile"])){
|
||||
echo "
|
||||
<input name='uptbutton' type='submit' class='sub upd' value='" .$lang_label["update"]."'>";
|
||||
}
|
||||
echo "</td></tr></table>";
|
||||
|
||||
} else { // View list data
|
||||
$color=1;
|
||||
?>
|
||||
<table cellpadding=3 cellspacing=3 border=0>
|
||||
<table cellpadding='4' cellspacing='4' class='databox' width='750px'>
|
||||
<?php
|
||||
$query_del1="SELECT * FROM tperfil";
|
||||
$resq1=mysql_query($query_del1);
|
||||
echo "<tr>";
|
||||
echo "<th width='180px'><font size=1>".$lang_label["profiles"];
|
||||
echo "<th width='40px'><font size=1>IR<a href='#' class='tipp'> <span>".$help_label["IR"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>IW<a href='#' class='tipp'> <span>".$help_label["IW"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>IM<a href='#' class='tipp'> <span>".$help_label["IM"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>AR<a href='#' class='tipp'> <span>".$help_label["AR"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>AW<a href='#' class='tipp'> <span>".$help_label["AW"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>LW<a href='#' class='tipp'> <span>".$help_label["LW"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>UM<a href='#' class='tipp'> <span>".$help_label["UM"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>DM<a href='#' class='tipp'> <span>".$help_label["DM"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>LM<a href='#' class='tipp'> <span>".$help_label["LM"]."</span></a>";
|
||||
echo "<th width='40px'><font size=1>PM<a href='#' class='tipp'> <span>".$help_label["PM"]."</span></a>";
|
||||
echo "<th width='40px'>".$lang_label["delete"]."</th></tr>";
|
||||
while ($rowdup=mysql_fetch_array($resq1)){
|
||||
$id_perfil = $rowdup["id_perfil"];
|
||||
$nombre=$rowdup["name"];
|
||||
$incident_view = $rowdup["incident_view"];
|
||||
$incident_edit = $rowdup["incident_edit"];
|
||||
$incident_management = $rowdup["incident_management"];
|
||||
$agent_view = $rowdup["agent_view"];
|
||||
$agent_edit =$rowdup["agent_edit"];
|
||||
$alert_edit = $rowdup["alert_edit"];
|
||||
$user_management = $rowdup["user_management"];
|
||||
$db_management = $rowdup["db_management"];
|
||||
$alert_management = $rowdup["alert_management"];
|
||||
$pandora_management = $rowdup["pandora_management"];
|
||||
if ($color == 1){
|
||||
$tdcolor = "datos";
|
||||
$color = 0;
|
||||
}
|
||||
else {
|
||||
$tdcolor = "datos2";
|
||||
$color = 1;
|
||||
}
|
||||
echo "<td class='$tdcolor'><a href='index.php?sec=gperfiles&sec2=godmode/profiles/profile_list&edit_profile=".$id_perfil."'><b>".$nombre."</b></a>";
|
||||
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($incident_view == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($incident_edit == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($incident_management == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($agent_view == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($agent_edit == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($alert_edit == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($user_management == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($db_management == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($alert_management == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($pandora_management == 1) echo "<img src='images/ok.png' border=0>";
|
||||
echo "<td class='$tdcolor' align='center'><a href='index.php?sec=gagente&sec2=godmode/profiles/profile_list&delete_profile=".$id_perfil."' onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) return false;'><img border='0' src='images/cross.png'></a></td></tr>";
|
||||
|
||||
}
|
||||
echo "</div></td></tr>";
|
||||
echo "<tr><td colspan='12'><div class='raya'></div></td></tr>";
|
||||
echo "<tr><td colspan='12' align='right'>";
|
||||
echo "<form method=post action='index.php?sec=gperfiles&sec2=godmode/profiles/profile_list&new_profile=1'>";
|
||||
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create_profile"]."'>";
|
||||
echo "</form></table>";
|
||||
$query_del1="SELECT * FROM tperfil";
|
||||
$resq1=mysql_query($query_del1);
|
||||
echo "<tr>";
|
||||
echo "<th width='180px'><font size=1>".$lang_label["profiles"];
|
||||
echo "</th><th width='40px'>
|
||||
<font size=1>IR<a href='#' class='tipp'> <span>".$help_label["IR"]."</span></a>";
|
||||
echo "</th><th width='40px'>
|
||||
<font size=1>IW<a href='#' class='tipp'> <span>".$help_label["IW"]."</span></a>";
|
||||
echo "</th><th width='40px'>
|
||||
<font size=1>IM<a href='#' class='tipp'> <span>".$help_label["IM"]."</span></a>";
|
||||
echo "</th><th width='40px'>
|
||||
<font size=1>AR<a href='#' class='tipp'> <span>".$help_label["AR"]."</span></a>";
|
||||
echo "</th><th width='40px'>
|
||||
<font size=1>AW<a href='#' class='tipp'> <span>".$help_label["AW"]."</span></a>";
|
||||
echo "</th><th width='40px'>
|
||||
<font size=1>LW<a href='#' class='tipp'> <span>".$help_label["LW"]."</span></a>";
|
||||
echo "</th><th width='40px'>
|
||||
<font size=1>UM<a href='#' class='tipp'> <span>".$help_label["UM"]."</span></a>";
|
||||
echo "</th><th width='40px'>
|
||||
<font size=1>DM<a href='#' class='tipp'> <span>".$help_label["DM"]."</span></a>";
|
||||
echo "</th><th width='40px'>
|
||||
<font size=1>LM<a href='#' class='tipp'> <span>".$help_label["LM"]."</span></a>";
|
||||
echo "</th><th width='40px'>
|
||||
<font size=1>PM<a href='#' class='tipp'> <span>".$help_label["PM"]."</span></a>";
|
||||
echo "</th><th width='40px'>".$lang_label["delete"]."</th></tr>";
|
||||
while ($rowdup=mysql_fetch_array($resq1)){
|
||||
$id_perfil = $rowdup["id_perfil"];
|
||||
$nombre=$rowdup["name"];
|
||||
$incident_view = $rowdup["incident_view"];
|
||||
$incident_edit = $rowdup["incident_edit"];
|
||||
$incident_management = $rowdup["incident_management"];
|
||||
$agent_view = $rowdup["agent_view"];
|
||||
$agent_edit =$rowdup["agent_edit"];
|
||||
$alert_edit = $rowdup["alert_edit"];
|
||||
$user_management = $rowdup["user_management"];
|
||||
$db_management = $rowdup["db_management"];
|
||||
$alert_management = $rowdup["alert_management"];
|
||||
$pandora_management = $rowdup["pandora_management"];
|
||||
if ($color == 1){
|
||||
$tdcolor = "datos";
|
||||
$color = 0;
|
||||
}
|
||||
else {
|
||||
$tdcolor = "datos2";
|
||||
$color = 1;
|
||||
}
|
||||
echo "<td class='$tdcolor'><a href='index.php?sec=gperfiles&sec2=godmode/profiles/profile_list&edit_profile=".$id_perfil."'><b>".$nombre."</b></a>";
|
||||
|
||||
echo "</td><td class='$tdcolor'>";
|
||||
if ($incident_view == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "</td><td class='$tdcolor'>";
|
||||
if ($incident_edit == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "</td><td class='$tdcolor'>";
|
||||
if ($incident_management == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "</td><td class='$tdcolor'>";
|
||||
if ($agent_view == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "</td><td class='$tdcolor'>";
|
||||
if ($agent_edit == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "</td><td class='$tdcolor'>";
|
||||
if ($alert_edit == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "</td><td class='$tdcolor'>";
|
||||
if ($user_management == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "</td><td class='$tdcolor'>";
|
||||
if ($db_management == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "<td class='$tdcolor'>";
|
||||
if ($alert_management == 1) echo "<img src='images/ok.png' border=0>";
|
||||
|
||||
echo "</td><td class='$tdcolor'>";
|
||||
if ($pandora_management == 1) echo "<img src='images/ok.png' border=0>";
|
||||
echo "<td class='$tdcolor' align='center'><a href='index.php?sec=gagente&sec2=godmode/profiles/profile_list&delete_profile=".$id_perfil."' onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) return false;'><img border='0' src='images/cross.png'></a></td></tr>";
|
||||
|
||||
}
|
||||
echo "</table>";
|
||||
echo '</tr></table>';
|
||||
echo '<table width="750">';
|
||||
echo '<tr><td align="right">';
|
||||
echo "<form method=post action='index.php?sec=gperfiles&sec2=godmode/profiles/profile_list&new_profile=1'>";
|
||||
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create_profile"]."'>";
|
||||
echo "</form></table>";
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -154,7 +154,6 @@ echo "</select>";
|
|||
// Incident
|
||||
echo "<tr>";
|
||||
echo "<td class='datos2'>".$lang_label["incident"];
|
||||
echo "<td class='datos2'>";
|
||||
echo "<select name='create_incident'>";
|
||||
if ($type == 1){
|
||||
echo "<option value='1'>".$lang_label["yes"];
|
||||
|
@ -177,9 +176,9 @@ echo "<tr>";
|
|||
|
||||
echo "<td colspan=5 align='right'>";
|
||||
if ($id_rt != "-1")
|
||||
echo '<input name="updbutton" type="submit" class="sub" value="'.$lang_label["update"].'">';
|
||||
echo '<input name="updbutton" type="submit" class="sub upd" value="'.$lang_label["update"].'">';
|
||||
else
|
||||
echo '<input name="crtbutton" type="submit" class="sub" value="'.$lang_label["add"].'">';
|
||||
echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["add"].'">';
|
||||
echo "</form>";
|
||||
echo "</table>";
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ if (comprueba_login() == 0)
|
|||
$id_link = entrada_limpia($_POST["id_link"]);
|
||||
$name = entrada_limpia($_POST["name"]);
|
||||
$link = entrada_limpia($_POST["link"]);
|
||||
$sql_update ="UPDATE tlink SET name = '".$name."', link ='".$link."' WHERE id_link = '".$id_link."'";
|
||||
$sql_update ="UPDATE tlink SET name = '".$name."', link ='".$link."' WHERE id_link = '".$id_link."'";
|
||||
$result=mysql_query($sql_update);
|
||||
if (! $result)
|
||||
echo "<h3 class='error'>".$lang_label["modify_link_no"]."</h3>";
|
||||
|
@ -67,7 +67,7 @@ if (comprueba_login() == 0)
|
|||
// Create link
|
||||
echo "<h2>".$lang_label["setup_screen"]." > ";
|
||||
echo $lang_label["link_management"]."<a href='help/".$help_code."/chap9.php#91' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo '<table class="fon" cellpadding="3" cellspacing="3" width="500">';
|
||||
echo '<table class="databox" cellpadding="4" cellspacing="4" width="500">';
|
||||
echo '<form name="ilink" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/links">';
|
||||
if ($creation_mode == 1)
|
||||
echo "<input type='hidden' name='create' value='1'>";
|
||||
|
@ -77,19 +77,27 @@ if (comprueba_login() == 0)
|
|||
<?php if (isset($id_link)) {echo $id_link;} ?>
|
||||
<?php
|
||||
echo "'>";
|
||||
echo '<tr><td class="lb" rowspan="2" width="5"><td class="datos">'.$lang_label["link_name"].'<td class="datos"><input type="text" name="name" size="35" value="'.$nombre.'">';
|
||||
echo '<tr><td class="datos2">'.$lang_label["link"].'<td class="datos2"><input type="text" name="link" size="35" value="'.$link.'">';
|
||||
echo '<tr><td colspan="5"><div class="raya"></div></td></tr>';
|
||||
echo "<tr><td colspan='3' align='right'><input name='crtbutton' type='submit' class='sub' value='".$lang_label["update"]."'>";
|
||||
echo '</form></table>';
|
||||
echo '<tr>
|
||||
<td class="datos">'.$lang_label["link_name"].'</td>
|
||||
<td class="datos"><input type="text" name="name" size="35" value="'.$nombre.'">';
|
||||
echo '<tr>
|
||||
<td class="datos2">'.$lang_label["link"].'</td>
|
||||
<td class="datos2">
|
||||
<input type="text" name="link" size="35" value="'.$link.'"></td>';
|
||||
echo '</tr>';
|
||||
echo "</table>";
|
||||
echo "<table width='500px'>";
|
||||
echo "<tr><td align='right'>
|
||||
<input name='crtbutton' type='submit' class='sub upd' value='".$lang_label["update"]."'>";
|
||||
echo '</form></td></tr></table>';
|
||||
}
|
||||
|
||||
else { // Main list view for Links editor
|
||||
echo "<h2>".$lang_label["setup_screen"]." > ";
|
||||
echo $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 width='180px'>".$lang_label["link_name"];
|
||||
echo "<th width='80px'>".$lang_label["delete"];
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox'>";
|
||||
echo "<th width='180px'>".$lang_label["link_name"]."</th>";
|
||||
echo "<th width='80px'>".$lang_label["delete"]."</th>";
|
||||
$sql1='SELECT * FROM tlink ORDER BY name';
|
||||
$result=mysql_query($sql1);
|
||||
$color=1;
|
||||
|
@ -102,11 +110,12 @@ if (comprueba_login() == 0)
|
|||
$tdcolor = "datos2";
|
||||
$color = 1;
|
||||
}
|
||||
echo "<tr><td class='$tdcolor'><b><a href='index.php?sec=gsetup&sec2=godmode/setup/links&form_edit=1&id_link=".$row["id_link"]."'>".$row["name"]."</a></b>";
|
||||
echo '<td class="'.$tdcolor.'" align="center"><a href="index.php?sec=gsetup&sec2=godmode/setup/links&id_link='.$row["id_link"].'&borrar='.$row["id_link"].'" 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=gsetup&sec2=godmode/setup/links&form_edit=1&id_link=".$row["id_link"]."'>".$row["name"]."</a></b></td>";
|
||||
echo '<td class="'.$tdcolor.'" align="center"><a href="index.php?sec=gsetup&sec2=godmode/setup/links&id_link='.$row["id_link"].'&borrar='.$row["id_link"].'" onClick="if (!confirm(\' '.$lang_label["are_you_sure"].'\')) return false;"><img border=0 src="images/cross.png"></a></td></tr>';
|
||||
}
|
||||
echo "<tr><td colspan='2'><div class='raya'></div></td>";
|
||||
echo "<tr><td colspan='2' align='right'>";
|
||||
echo "</table>";
|
||||
echo "<table width='290px'>";
|
||||
echo "<tr><td align='right'>";
|
||||
echo "<form method='post' action='index.php?sec=gsetup&sec2=godmode/setup/links&form_add=1'>";
|
||||
echo "<input type='submit' class='sub next' name='form_add' value='".$lang_label["add"]."'>";
|
||||
echo "</form></table>";
|
||||
|
|
|
@ -54,7 +54,7 @@ if (comprueba_login() == 0)
|
|||
echo "<h2>".$lang_label["setup_screen"]." > ";
|
||||
echo $lang_label["general_config"]."<a href='help/".$help_code."/chap9.php#9' target='_help' class='help'> <span>".$lang_label["help"]."</span></a></h2>";
|
||||
echo "<form name='setup' method='POST' action='index.php?sec=gsetup&sec2=godmode/setup/setup&update=1'>";
|
||||
echo '<table width="500" cellpadding="4" cellspacing="4" class="databox_color">';
|
||||
echo '<table width="500" cellpadding="4" cellspacing="4" class="databox">';
|
||||
echo '<tr><td class="datos">'.$lang_label["language_code"].'</td>';
|
||||
echo '<td class="datos"><select name="language_code" onChange="javascript:this.form.submit();" width="180px">';
|
||||
|
||||
|
|
|
@ -156,26 +156,27 @@ if (comprueba_login() == 0)
|
|||
}
|
||||
|
||||
?>
|
||||
<table width='500' cellpadding='3' cellspacing='3'>
|
||||
<table width='500' cellpadding='4' cellspacing='4' class='databox'>
|
||||
<?php
|
||||
if (isset($_GET["alta"]))
|
||||
echo '<form name="new_user" method="post" action="index.php?sec=gusuarios&sec2=godmode/users/configure_user&nuevo_usuario=1"><tr><td class="lb" rowspan="9" width="5">';
|
||||
echo '<form name="new_user" method="post" action="index.php?sec=gusuarios&sec2=godmode/users/configure_user&nuevo_usuario=1">';
|
||||
else
|
||||
echo '<form name="user_mod" method="post" action="index.php?sec=gusuarios&sec2=godmode/users/configure_user&id_usuario_mio='.$id_usuario_mio.'"><tr><td class="lb" rowspan="11" width="5">';
|
||||
echo '<form name="user_mod" method="post" action="index.php?sec=gusuarios&sec2=godmode/users/configure_user&id_usuario_mio='.$id_usuario_mio.'">';
|
||||
?>
|
||||
<td class="datos"><?php echo $lang_label["id_user"] ?>
|
||||
<td class="datos"><input type="text" name="nombre" value="<?php echo $id_usuario_mio ?>">
|
||||
<tr>
|
||||
<td class="datos"><?php echo $lang_label["id_user"] ?></td>
|
||||
<td class="datos"><input type="text" name="nombre" value="<?php echo $id_usuario_mio ?>"></td>
|
||||
<tr><td class="datos2"><?php echo $lang_label["real_name"] ?>
|
||||
<td class="datos2"><input type="text" name="nombre_real" value="<?php echo $nombre_real ?>">
|
||||
<td class="datos2"><input type="text" name="nombre_real" value="<?php echo $nombre_real ?>"></td>
|
||||
<tr><td class="datos"><?php echo $lang_label["password"] ?>
|
||||
<td class="datos"><input type="password" name="pass1" value="<?php echo $password ?>">
|
||||
<tr><td class="datos2"><?php echo $lang_label["password"] ?> - <?php echo $lang_label["confirmation"] ?>
|
||||
<td class="datos2"><input type="password" name="pass2" value="<?php echo $password ?>">
|
||||
<tr><td class="datos">E-Mail
|
||||
<td class="datos"><input type="text" name="direccion" size="40" value="<?php echo $direccion ?>">
|
||||
<tr><td class="datos2"><?php echo $lang_label["telefono"] ?>
|
||||
<td class="datos2"><input type="text" name="telefono" value="<?php echo $telefono ?>">
|
||||
<tr><td class="datos"><?php echo $lang_label["global_profile"] ?>
|
||||
<td class="datos"><input type="password" name="pass1" value="<?php echo $password ?>"></td>
|
||||
<tr><td class="datos2"><?php echo $lang_label["password"] ?> - <?php echo $lang_label["confirmation"] ?></td>
|
||||
<td class="datos2"><input type="password" name="pass2" value="<?php echo $password ?>"></td>
|
||||
<tr><td class="datos">E-Mail</td>
|
||||
<td class="datos"><input type="text" name="direccion" size="40" value="<?php echo $direccion ?>"></td>
|
||||
<tr><td class="datos2"><?php echo $lang_label["telefono"] ?></td>
|
||||
<td class="datos2"><input type="text" name="telefono" value="<?php echo $telefono ?>"></td>
|
||||
<tr><td class="datos"><?php echo $lang_label["global_profile"] ?></td>
|
||||
|
||||
<td class="datos">
|
||||
<?php if ($nivel == "1"){
|
||||
|
@ -186,8 +187,10 @@ if (comprueba_login() == 0)
|
|||
echo $lang_label["normal_user"].'<input type="radio" class="chk" name="nivel" value="0" checked><a href="#" class="tip"> <span>'.$help_label["users_msg2"].'</span></a>';
|
||||
}
|
||||
?>
|
||||
<tr><td class="datos2" colspan="2"><?php echo $lang_label["comments"] ?>
|
||||
<tr><td class="datos" colspan="2"><textarea name="comentarios" cols="60" rows="4"><?php echo $comentarios ?></textarea>
|
||||
<tr><td class="datos2" colspan="2"><?php echo $lang_label["comments"] ?></td>
|
||||
<tr><td class="datos" colspan="2">
|
||||
<textarea name="comentarios" cols="60" rows="4"><?php echo $comentarios ?></textarea>
|
||||
</td></tr>
|
||||
|
||||
<?php
|
||||
if ($modo == "edicion") { // Only show groups for existing users
|
||||
|
@ -195,26 +198,32 @@ if (comprueba_login() == 0)
|
|||
echo '<input type="hidden" name="edicion" value="1">';
|
||||
echo '<input type="hidden" name="id_usuario_antiguo" value="'.$id_usuario_mio.'">';
|
||||
|
||||
echo '<tr><td class="datos2">'.$lang_label["group_avail"].'<td class="datos2"><select name="grupo" class="w155">';
|
||||
echo '<tr><td class="datos2">'.$lang_label["group_avail"].'</td>
|
||||
<td class="datos2">
|
||||
<select name="grupo" class="w155">';
|
||||
echo "<option value=''>".$lang_label["none"];
|
||||
$sql1='SELECT * FROM tgrupo ORDER BY nombre';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row["id_grupo"]."'>".$row["nombre"];
|
||||
echo "<option value='".$row["id_grupo"]."'>".$row["nombre"]."</option>";
|
||||
}
|
||||
echo '</select>';
|
||||
|
||||
echo "<tr><td class='datos'>".$lang_label["profiles"];
|
||||
echo "<td class='datos'><select name='perfil' class='w155'>";
|
||||
echo '</td></tr>';
|
||||
echo "<tr><td class='datos'>".$lang_label["profiles"]."</td>";
|
||||
echo "<td class='datos'>
|
||||
<select name='perfil' class='w155'>";
|
||||
$sql1='SELECT * FROM tperfil ORDER BY name';
|
||||
$result=mysql_query($sql1);
|
||||
while ($row=mysql_fetch_array($result)){
|
||||
echo "<option value='".$row["id_perfil"]."'>".$row["name"];
|
||||
echo "<option value='".$row["id_perfil"]."'>".$row["name"]."</option>";
|
||||
}
|
||||
echo '</select>';
|
||||
echo '<tr><td colspan="3"><div class="raya"></div></td></tr>';
|
||||
echo '<tr><td align="right" colspan="3">';
|
||||
echo "<input name='uptbutton' type='submit' class='sub' value='".$lang_label["update"]."'></table><br>";
|
||||
echo '</td>';
|
||||
echo '</tr></table>';
|
||||
echo "<table width=500>";
|
||||
echo "<tr><td align='right'>";
|
||||
echo "<input name='uptbutton' type='submit' class='sub upd' value='".$lang_label["update"]."'></td></tr></table><br>";
|
||||
// Show user profile / groups assigned
|
||||
$sql1='SELECT * FROM tusuario_perfil WHERE id_usuario = "'.$id_usuario_mio.'"';
|
||||
$result=mysql_query($sql1);
|
||||
|
@ -245,9 +254,10 @@ if (comprueba_login() == 0)
|
|||
?>
|
||||
|
||||
<?php if (isset($_GET["alta"])){
|
||||
echo '<tr><td colspan="3"><div class="raya"></div></td></tr>';
|
||||
echo '<tr><td align="right" colspan="3">';
|
||||
echo '<input name="crtbutton" type="submit" class="sub" value="'.$lang_label["create"].'">';
|
||||
echo '</tr></table>';
|
||||
echo '<table width="500">';
|
||||
echo '<tr><td align="right">';
|
||||
echo '<input name="crtbutton" type="submit" class="sub wand" value="'.$lang_label["create"].'">';
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
|
|
|
@ -29,7 +29,7 @@ if (comprueba_login() == 0)
|
|||
<h2><?php echo $lang_label["user_management"] ?> >
|
||||
<?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></h2>
|
||||
|
||||
<table cellpadding="3" cellspacing="3" width="700">
|
||||
<table width="700" cellpadding="4" cellspacing="4" class="databox">
|
||||
<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"]?>
|
||||
|
@ -84,10 +84,11 @@ while ($rowdup=mysql_fetch_array($resq1)){
|
|||
|
||||
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/users/user_list&borrar_usuario=".$name."' onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) return false;'><img border='0' src='images/cross.png'></a>";
|
||||
echo "<td class='$tdcolor' align='center'><a href='index.php?sec=gagente&sec2=godmode/users/user_list&borrar_usuario=".$name."' onClick='if (!confirm(\' ".$lang_label["are_you_sure"]."\')) return false;'><img border='0' src='images/cross.png'></a></td>";
|
||||
}
|
||||
echo "<tr><td colspan='6'><div class='raya'></div></td></tr>";
|
||||
echo "<tr><td colspan='6' align='right'>";
|
||||
echo "</tr></table>";
|
||||
echo "<table width=700>";
|
||||
echo "<tr><td align='right'>";
|
||||
echo "<form method=post action='index.php?sec=gusuarios&sec2=godmode/users/configure_user&alta=1'>";
|
||||
echo "<input type='submit' class='sub next' name='crt' value='".$lang_label["create_user"]."'>";
|
||||
echo "</form></td></tr></table>";
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 465 B |
|
@ -316,7 +316,6 @@ if ((isset($_POST["export"])) AND (! isset($_POST["update_agent"]))){
|
|||
echo "</table>";
|
||||
// Submit button
|
||||
|
||||
echo ' ';
|
||||
echo "<table width=570>";
|
||||
echo "<tr><td align='right'>";
|
||||
echo "<input type=submit name='export' class='sub wand' value=".$lang_label["export"].">";
|
||||
|
|
|
@ -27,7 +27,7 @@ UNLOCK TABLES;
|
|||
|
||||
/*!40000 ALTER TABLE `tconfig_os` DISABLE KEYS */;
|
||||
LOCK TABLES `tconfig_os` WRITE;
|
||||
INSERT INTO `tconfig_os` VALUES (1,'Linux','Linux: All versions','so_linux.gif'),(2,'Solaris','Sun Solaris','so_solaris.gif'),(3,'AIX','IBM AIX','so_aix.gif'),(4,'BSD','OpenBSD, FreeBSD and Others','so_bsd.gif'),(5,'HP-UX','HP-UX Unix OS','so_hpux.gif'),(6,'BeOS','BeOS','so_beos.gif'),(7,'Cisco','CISCO IOS','so_cisco.gif'),(8,'MacOS','MAC OS','so_mac.gif'),(9,'Windows','Microsoft Windows OS','so_win.gif'),(10,'Other','Other SO','so_other.gif'),(11,'Network','Pandora Network Agent','network.gif');
|
||||
INSERT INTO `tconfig_os` VALUES (1,'GNU/Linux','Linux: All versions','so_linux.gif'),(2,'Solaris','Sun Solaris','so_solaris.gif'),(3,'AIX','IBM AIX','so_aix.gif'),(4,'BSD','OpenBSD, FreeBSD and Others','so_bsd.gif'),(5,'HP-UX','HP-UX Unix OS','so_hpux.gif'),(6,'BeOS','BeOS','so_beos.gif'),(7,'Cisco','CISCO IOS','so_cisco.gif'),(8,'MacOS','MAC OS','so_mac.gif'),(9,'Windows','Microsoft Windows OS','so_win.gif'),(10,'Other','Other SO','so_other.gif'),(11,'Network','Pandora Network Agent','network.gif');
|
||||
UNLOCK TABLES;
|
||||
/*!40000 ALTER TABLE `tconfig_os` ENABLE KEYS */;
|
||||
|
||||
|
@ -44,7 +44,7 @@ INSERT INTO `tgrupo` VALUES (8,'Databases','database_gear',0,0);
|
|||
INSERT INTO `tgrupo` VALUES (9,'Comms','transmit',0,0);
|
||||
INSERT INTO `tgrupo` VALUES (10,'Others','house',0,0);
|
||||
INSERT INTO `tgrupo` VALUES (11,'Workstations','computer',0,0);
|
||||
INSERT INTO `tgrupo` VALUES (12,'Applications','bricks',0,0);
|
||||
INSERT INTO `tgrupo` VALUES (12,'Applications','applications',0,0);
|
||||
UNLOCK TABLES;
|
||||
/*!40000 ALTER TABLE `tgrupo` ENABLE KEYS */;
|
||||
|
||||
|
|
Loading…
Reference in New Issue