- Cosmetic update for several administration files (Pandora Console)

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@80 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
raulmateos 2006-07-04 10:10:21 +00:00
parent 570d102e8e
commit 3d2ca5d16a
19 changed files with 101 additions and 99 deletions

View File

@ -99,7 +99,7 @@ if (comprueba_login() == 0)
} }
$offset_counter = 0; $offset_counter = 0;
$color=0; $color=1;
// Get data // Get data
while ($row=mysql_fetch_array($result) and ($offset_counter < $block_size) ){ while ($row=mysql_fetch_array($result) and ($offset_counter < $block_size) ){
if ($color == 1){ if ($color == 1){

View File

@ -563,8 +563,8 @@ if (give_acl($id_user, 0, "AW")==1) {
// ======================== // ========================
echo "<h2>".$lang_label["agent_conf"]."</h2>"; echo "<h2>".$lang_label["agent_conf"]."</h2>";
if (isset($_GET["creacion"])){echo "<h3>".$lang_label["create_agent"]."<a href='help/".substr($language_code,0,2)."/chap3.php#32' target='_help'><img src='images/help.gif' border='0' class='help'></a></h3>";} if (isset($_GET["creacion"])){echo "<h3>".$lang_label["create_agent"]."<a href='help/".substr($language_code,0,2)."/chap3.php#32' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";}
else {echo "<h3>".$lang_label["update_agent"]."<a href='help/".substr($language_code,0,2)."/chap3.php#32' target='_help'><img src='images/help.gif' border='0' class='help'></a></h3>";} else {echo "<h3>".$lang_label["update_agent"]."<a href='help/".substr($language_code,0,2)."/chap3.php#32' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";}
echo '<form name="conf_agent" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente">'; echo '<form name="conf_agent" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente">';
if ($creacion_agente == 1) if ($creacion_agente == 1)
echo "<input type='hidden' name='create_agent' value='1'>"; echo "<input type='hidden' name='create_agent' value='1'>";
@ -631,21 +631,21 @@ while ($row=mysql_fetch_array($result)){
<tr><td class="datos2"><b><?php echo $lang_label["module_definition"]?></b> <tr><td class="datos2"><b><?php echo $lang_label["module_definition"]?></b>
<td class="datos2"> <td class="datos2">
<?php if ($modo == "1"){ <?php if ($modo == "1"){
echo $lang_label["learning_mode"].'<input type="radio" class="chk" name="modo" value="1" checked >'; echo $lang_label["learning_mode"].'<input type="radio" class="chk" name="modo" value="1" checked style="margin-right: 40px;">';
echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".$lang_label["normal_mode"].' <input type="radio" class="chk" name="modo" value="0">'; echo $lang_label["normal_mode"].' <input type="radio" class="chk" name="modo" value="0">';
} else { } else {
echo $lang_label["learning_mode"].'<input type="radio" class="chk" name="modo" value="1">'; echo $lang_label["learning_mode"].'<input type="radio" class="chk" name="modo" value="1" style="margin-right: 40px;">';
echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".$lang_label["normal_mode"].'<input type="radio" name="modo" class="chk" value="0" checked>'; echo $lang_label["normal_mode"].'<input type="radio" name="modo" class="chk" value="0" checked>';
} }
?> ?>
<tr><td class="datos"><b><?php echo $lang_label["status"]?></b> <tr><td class="datos"><b><?php echo $lang_label["status"]?></b>
<td class="datos"> <td class="datos">
<?php if ($disabled == "1"){ <?php if ($disabled == "1"){
echo $lang_label["disabled"].'<input type="radio" class="chk" name="disabled" value="1" checked>'; echo $lang_label["disabled"].'<input type="radio" class="chk" name="disabled" value="1" checked style="margin-right: 40px;">';
echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".$lang_label["active"].' <input class="chk" type="radio" name="disabled" value="0">'; echo $lang_label["active"].' <input class="chk" type="radio" name="disabled" value="0">';
} else { } else {
echo $lang_label["disabled"].'<input type="radio" class="chk" name="disabled" value="1">'; echo $lang_label["disabled"].'<input type="radio" class="chk" name="disabled" value="1" style="margin-right: 40px;">';
echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".$lang_label["active"].'<input type="radio" name="disabled" class="chk" value="0" checked>'; echo $lang_label["active"].'<input type="radio" name="disabled" class="chk" value="0" checked>';
} }
?> ?>
<tr><td colspan='3'><div class='raya'></div></td></tr> <tr><td colspan='3'><div class='raya'></div></td></tr>
@ -672,7 +672,7 @@ if ( $creacion_agente != 1) {
$result=mysql_query($sql1); $result=mysql_query($sql1);
if ($row=mysql_num_rows($result)){ if ($row=mysql_num_rows($result)){
?> ?>
<h3><?php echo $lang_label["assigned_modules"]?> </h3> <h3><?php echo $lang_label["assigned_modules"]?><a href='help/<?php echo substr($language_code,0,2) ?>/chap3.php#321' target='_help' class='help'>&nbsp;<span><?php echo $lang_label["help"] ?></span></a></h3>
<table width="700" cellpadding="3" cellspacing="3" class="fon"> <table width="700" cellpadding="3" cellspacing="3" class="fon">
<tr> <tr>
<th><?php echo $lang_label["module_name"]?> <th><?php echo $lang_label["module_name"]?>
@ -740,7 +740,7 @@ $sql1='SELECT * FROM tagente_modulo WHERE id_agente = "'.$id_agente.'"';
$result=mysql_query($sql1); $result=mysql_query($sql1);
if ($row=mysql_num_rows($result)){ if ($row=mysql_num_rows($result)){
?> ?>
<h3><?php echo $lang_label["assigned_alerts"]?></h3> <h3><?php echo $lang_label["assigned_alerts"]?><a href='help/<?php echo substr($language_code,0,2) ?>/chap3.php#3222' target='_help' class='help'>&nbsp;<span><?php echo $lang_label["help"] ?></span></a></h3>
<table cellpadding="3" cellspacing="3" width="700" class="fon"> <table cellpadding="3" cellspacing="3" width="700" class="fon">
<tr> <tr>
@ -820,7 +820,7 @@ else {
} }
} }
?> ?>
<h3><?php echo $lang_label["module_asociation_form"] ?></h3> <h3><?php echo $lang_label["module_asociation_form"] ?><a href='help/<?php echo substr($language_code,0,2) ?>/chap3.php#321' target='_help' class='help'>&nbsp;<span><?php echo $lang_label["help"] ?></span></a></h3>
<a name="modules"> <!-- Don't Delete !! --> <a name="modules"> <!-- Don't Delete !! -->
<table width="650" cellpadding="3" cellspacing="3" class="fon"> <table width="650" cellpadding="3" cellspacing="3" class="fon">
<tr><td class='lb' rowspan='8' width='5'> <tr><td class='lb' rowspan='8' width='5'>
@ -930,7 +930,7 @@ if (isset($_POST["oid"])){
?> ?>
<!-- Alert Configuration --> <!-- Alert Configuration -->
<h3><?php echo $lang_label["alert_asociation_form"] ?></h3> <h3><?php echo $lang_label["alert_asociation_form"] ?><a href='help/<?php echo substr($language_code,0,2) ?>/chap3.php#3222' target='_help' class='help'>&nbsp;<span><?php echo $lang_label["help"] ?></span></a></h3>
<?php <?php
@ -967,8 +967,8 @@ while ($row=mysql_fetch_array($result)){
<a name="alerts"> <!-- Don't Delete !! --> <a name="alerts"> <!-- Don't Delete !! -->
<tr><td class="datos2"><?php echo $lang_label["min_value"] ?> <tr><td class="datos2"><?php echo $lang_label["min_value"] ?>
<td class="datos2"><input type="text" name="minimo" size="5" value="<?php echo $alerta_dis_max ?>"> <td class="datos2"><input type="text" name="minimo" size="5" value="<?php echo $alerta_dis_max ?>" style="margin-right: 70px;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $lang_label["max_value"] ?> &nbsp;&nbsp;&nbsp; <?php echo $lang_label["max_value"] ?> &nbsp;&nbsp;&nbsp;
<input type="text" name="maximo" size="5" value="<?php echo $alerta_dis_min ?>"> <input type="text" name="maximo" size="5" value="<?php echo $alerta_dis_min ?>">
<tr><td class="datos"><?php echo $lang_label["description"] ?> <tr><td class="datos"><?php echo $lang_label["description"] ?>
<td class="datos"><input type="text" name="descripcion" size="39" value ="<?php echo $alerta_descripcion ?>"> <td class="datos"><input type="text" name="descripcion" size="39" value ="<?php echo $alerta_descripcion ?>">
@ -979,7 +979,7 @@ while ($row=mysql_fetch_array($result)){
<tr><td class="datos2"><?php echo $lang_label["field3"] ?> <tr><td class="datos2"><?php echo $lang_label["field3"] ?>
<td class="datos2"><textarea name="campo_3" cols="36" rows="3"><?php echo $alerta_campo3 ?></textarea> <td class="datos2"><textarea name="campo_3" cols="36" rows="3"><?php echo $alerta_campo3 ?></textarea>
<tr><td class="datos"><?php echo $lang_label["time_threshold"] ?> <tr><td class="datos"><?php echo $lang_label["time_threshold"] ?>
<td class="datos"><select name="time_threshold"> <td class="datos"><select name="time_threshold" style="margin-right: 60px;">
<?PHP <?PHP
if ($alerta_time_threshold != ""){ if ($alerta_time_threshold != ""){
echo "<option value='".$alerta_time_threshold."'>".give_human_time($alerta_time_threshold)."</option>"; echo "<option value='".$alerta_time_threshold."'>".give_human_time($alerta_time_threshold)."</option>";
@ -997,15 +997,14 @@ while ($row=mysql_fetch_array($result)){
<option value=604800>1 Week <option value=604800>1 Week
<option value=-1>Other value <option value=-1>Other value
</select> </select>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<?php echo $lang_label["other"] ?> <?php echo $lang_label["other"] ?>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<input type="text" name="other" size="5"> <input type="text" name="other" size="5">
<tr><td class="datos2"><?php echo $lang_label["min_alerts"] ?> <tr><td class="datos2"><?php echo $lang_label["min_alerts"] ?>
<td class="datos2"> <td class="datos2">
<input type="text" name="min_alerts" size="5" value="<?php if (isset($alerta_min_alerts)) {echo$alerta_min_alerts;} ?>"> <input type="text" name="min_alerts" size="5" value="<?php if (isset($alerta_min_alerts)) {echo$alerta_min_alerts;} ?>" style="margin-right: 10px;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<?php echo $lang_label["max_alerts"] ?> <?php echo $lang_label["max_alerts"] ?>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<input type="text" name="max_alerts" size="5" value="<?php if (isset($alerta_max_alerts)) {echo $alerta_max_alerts;} ?>"> <input type="text" name="max_alerts" size="5" value="<?php if (isset($alerta_max_alerts)) {echo $alerta_max_alerts;} ?>">

View File

@ -248,7 +248,7 @@ if (comprueba_login() == 0)
?> ?>
<h2><?php echo $lang_label["agent_conf"] ?></h2> <h2><?php echo $lang_label["agent_conf"] ?></h2>
<h3><?php echo $lang_label["config_manage"]; ?><a href="help/<?php echo substr($language_code,0,2);?>/chap3.php#323" target="_help"><img src="images/help.gif" border="0" class="help"></a></h3> <h3><?php echo $lang_label["config_manage"]; ?><a href="help/<?php echo substr($language_code,0,2);?>/chap3.php#323" target="_help" class="help">&nbsp;<span><?php echo $lang_label["help"]; ?></span></a></h3>
<form method="post" action="index.php?sec=gagente&sec2=godmode/agentes/manage_config&operacion=1"> <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=3 cellpadding=5>
<tr> <tr>

View File

@ -46,7 +46,7 @@ if (give_acl($id_user, 0, "AW")==1) {
} }
} }
echo "<h2>".$lang_label["agent_conf"]."</h2>"; echo "<h2>".$lang_label["agent_conf"]."</h2>";
echo "<h3>".$lang_label["agent_defined2"]."</h3>"; echo "<h3>".$lang_label["agent_defined2"]."<a href='help/".substr($language_code,0,2)."/chap3.php#3' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";
// Load icon index from tgrupos // Load icon index from tgrupos
$iconindex_g[]=""; $iconindex_g[]="";
@ -64,7 +64,7 @@ if (give_acl($id_user, 0, "AW")==1) {
echo "<th>".$lang_label["group"]; echo "<th>".$lang_label["group"];
echo "<th>".$lang_label["description"]; echo "<th>".$lang_label["description"];
echo "<th>".$lang_label["delete"]; echo "<th>".$lang_label["delete"];
$color=0; $color=1;
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
$id_grupo = $row["id_grupo"]; $id_grupo = $row["id_grupo"];
if ($color == 1){ if ($color == 1){

View File

@ -40,7 +40,7 @@ if ( (give_acl($id_user, 0, "LM")==1)){
?> ?>
<h2><?php echo $lang_label["alert_config"];?></h2> <h2><?php echo $lang_label["alert_config"];?></h2>
<h3><?php if (isset($_GET["creacion"])){echo $lang_label["create_alert"];} if (isset($_GET["id_alerta"])){echo $lang_label["mod_alert"];} ?><a href="help/<?php echo substr($language_code,0,2);?>/chap3.php#3221" target="_help"><img src="images/help.gif" border="0" class="help"></a></h3> <h3><?php if (isset($_GET["creacion"])){echo $lang_label["create_alert"];} if (isset($_GET["id_alerta"])){echo $lang_label["mod_alert"];} ?><a href="help/<?php echo substr($language_code,0,2);?>/chap3.php#3221" target="_help" class="help">&nbsp;<span><?php echo $lang_label["help"];?></span></a></h3>
<table width="500" cellspacing="3" cellpadding="3"> <table width="500" cellspacing="3" cellpadding="3">
@ -59,8 +59,8 @@ if ( (give_acl($id_user, 0, "LM")==1)){
<td class="datos"><input type="text" name="nombre" size=30 value="<?php echo $nombre ?>"> <td class="datos"><input type="text" name="nombre" size=30 value="<?php echo $nombre ?>">
<tr> <tr>
<td class="datos"><?php echo $lang_label["command"] ?> <td class="datos2"><?php echo $lang_label["command"] ?>
<td class="datos"><input type="text" name="comando" size="50" value="<?php echo $comando ?>"> <td class="datos2"><input type="text" name="comando" size="50" value="<?php echo $comando ?>">
<a href='#' class='tip'>&nbsp;<span> <a href='#' class='tip'>&nbsp;<span>
<b>Macros:</b><br> <b>Macros:</b><br>
_field1_<br> _field1_<br>
@ -72,10 +72,10 @@ _data_<br>
</span></a> </span></a>
<tr><td class="datos"><?php echo $lang_label["description"] ?> <tr><td class="datos"><?php echo $lang_label["description"] ?>
<td class="datos"><textarea name="descripcion" cols="50" rows="3"> <td class="datos"><textarea name="descripcion" cols="50" rows="7">
<?php echo $descripcion ?> <?php echo $descripcion ?>
</textarea> </textarea>
<tr><td></td></tr> <tr><td colspan='3'><div class='raya'></div></td></tr>
<tr><td colspan="3" align="right"> <tr><td colspan="3" align="right">
<?php if (isset($_GET["creacion"])){echo "<input name='crtbutton' type='submit' class='sub' value='".$lang_label["create"]."'>";} <?php if (isset($_GET["creacion"])){echo "<input name='crtbutton' type='submit' class='sub' value='".$lang_label["create"]."'>";}
else {echo "<input name='uptbutton' type='submit' class='sub' value='".$lang_label["update"]."'>";} ?> else {echo "<input name='uptbutton' type='submit' class='sub' value='".$lang_label["update"]."'>";} ?>

View File

@ -51,12 +51,12 @@ if ( (give_acl($id_user, 0, "LM")==1)){
} }
echo "<h2>".$lang_label["alert_config"]."</h2>"; echo "<h2>".$lang_label["alert_config"]."</h2>";
echo "<h3>".$lang_label["alert_defined2"]."<a href='help/".substr($language_code,0,2)."/chap3.php#3221' target='_help'><img src='images/help.gif' border='0' class='help'></a></h3>"; echo "<h3>".$lang_label["alert_defined2"]."<a href='help/".substr($language_code,0,2)."/chap3.php#3221' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";
echo "<table width='500' cellpadding='3' cellspacing='3'>"; echo "<table width='500' cellpadding='3' cellspacing='3'>";
echo "<th class='w100'>".$lang_label["alertname"]; echo "<th class='w100'>".$lang_label["alertname"];
echo "<th>".$lang_label["description"]; echo "<th>".$lang_label["description"];
echo "<th>".$lang_label["delete"]; echo "<th>".$lang_label["delete"];
$color=0; $color=1;
$sql1='SELECT * FROM talerta ORDER BY nombre'; $sql1='SELECT * FROM talerta ORDER BY nombre';
$result=mysql_query($sql1); $result=mysql_query($sql1);
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){

View File

@ -85,7 +85,7 @@ if (comprueba_login() == 0)
# End of get parameters block # End of get parameters block
echo "<h2>".$lang_label["dbmain_title"]."</h2>"; echo "<h2>".$lang_label["dbmain_title"]."</h2>";
echo "<h3>".$lang_label["db_purge_audit"]."</h3>"; echo "<h3>".$lang_label["db_purge_audit"]."<a href='help/".substr($language_code,0,2)."/chap8.php#841' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";
echo "<table cellpadding='4' cellspacing='4' border='0'>"; echo "<table cellpadding='4' cellspacing='4' border='0'>";
echo "<tr><td class='datos'>"; echo "<tr><td class='datos'>";
@ -111,7 +111,7 @@ if (comprueba_login() == 0)
<form name="db_audit" method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_audit"> <form name="db_audit" method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_audit">
<table width='300' border='0'> <table width='300' border='0'>
<tr><td class='datos'> <tr><td class='datos'>
<select name="date_purge"> <select name="date_purge" class="w255">
<option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_audit_90day"] ?> <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 $month ?>"><?php echo $lang_label["purge_audit_30day"] ?>
<option value="<?php echo $week2 ?>"><?php echo $lang_label["purge_audit_14day"] ?> <option value="<?php echo $week2 ?>"><?php echo $lang_label["purge_audit_14day"] ?>

View File

@ -76,7 +76,7 @@ if (comprueba_login() == 0)
# End of get parameters block # End of get parameters block
echo "<h2>".$lang_label["dbmain_title"]."</h2>"; echo "<h2>".$lang_label["dbmain_title"]."</h2>";
echo "<h3>".$lang_label["db_purge_event"]."</h3>"; echo "<h3>".$lang_label["db_purge_event"]."<a href='help/".substr($language_code,0,2)."/chap8.php#842' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";
echo "<table cellpadding='4' cellspacing='4' border='0'>"; echo "<table cellpadding='4' cellspacing='4' border='0'>";
echo "<tr><td class='datos'>"; echo "<tr><td class='datos'>";
@ -104,7 +104,7 @@ if (comprueba_login() == 0)
<form name="db_audit" method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_event"> <form name="db_audit" method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_event">
<table width='300' border='0'> <table width='300' border='0'>
<tr><td class='datos'> <tr><td class='datos'>
<select name="date_purge"> <select name="date_purge" class="w255">
<option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_event_90day"] ?> <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 $month ?>"><?php echo $lang_label["purge_event_30day"] ?>
<option value="<?php echo $week2 ?>"><?php echo $lang_label["purge_event_14day"] ?> <option value="<?php echo $week2 ?>"><?php echo $lang_label["purge_event_14day"] ?>

View File

@ -23,7 +23,7 @@ if (comprueba_login() == 0)
*/ */
echo "<h2>".$lang_label["dbmain_title"]."</h2>"; echo "<h2>".$lang_label["dbmain_title"]."</h2>";
echo "<h3>".$lang_label["db_info2"]."</h3>"; echo "<h3>".$lang_label["db_info2"]."<a href='help/".substr($language_code,0,2)."/chap8.php#81' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";
echo "<table border=0>"; echo "<table border=0>";
echo "<tr><td><img src='reporting/fgraph.php?tipo=db_agente_modulo'><br>"; echo "<tr><td><img src='reporting/fgraph.php?tipo=db_agente_modulo'><br>";
echo "<tr><td><br>"; echo "<tr><td><br>";

View File

@ -23,7 +23,7 @@ if (comprueba_login() == 0)
*/ */
?> ?>
<h2><?php echo $lang_label["dbmain_title"] ?></h2> <h2><?php echo $lang_label["dbmain_title"] ?></h2>
<h3><?php echo $lang_label["current_dbsetup"] ?></h3> <h3><?php echo $lang_label["current_dbsetup"] ?><a href="help/<?php echo substr($language_code,0,2) ?>/chap8.php#8" target="_help" class="help">&nbsp;<span><?php echo $lang_label["help"] ?></span></a></h3>
<table width=550 cellspacing=3 cellpadding=3 border=0> <table width=550 cellspacing=3 cellpadding=3 border=0>
<tr><td> <tr><td>
<i><?php echo $lang_label["days_compact"]; ?>:</i>&nbsp;<b><?php echo $days_compact; ?></b><br><br> <i><?php echo $lang_label["days_compact"]; ?>:</i>&nbsp;<b><?php echo $days_compact; ?></b><br><br>

View File

@ -23,7 +23,7 @@ if (comprueba_login() == 0)
*/ */
?> ?>
<h2><?php echo $lang_label["dbmain_title"] ?></h2> <h2><?php echo $lang_label["dbmain_title"] ?></h2>
<h3><?php echo $lang_label["db_purge"] ?><a href='help/<?php echo substr($language_code,0,2) ?>/chap8.php#8' target='_help'><img src='images/help.gif' border='0' class='help'></a></h3> <h3><?php echo $lang_label["db_purge"] ?><a href='help/<?php echo substr($language_code,0,2) ?>/chap8.php#8' target='_help' class='help'>&nbsp;<span><?php echo $lang_label["help"] ?></span></a></h3>
<img src="reporting/fgraph.php?tipo=db_agente_purge&id=-1"><br><br> <img src="reporting/fgraph.php?tipo=db_agente_purge&id=-1"><br><br>
<h3><?php echo $lang_label["get_data_agent"] ?></h3> <h3><?php echo $lang_label["get_data_agent"] ?></h3>
<?php <?php
@ -229,7 +229,7 @@ if (comprueba_login() == 0)
<h3><?php echo $lang_label["purge_data"] ?></h3> <h3><?php echo $lang_label["purge_data"] ?></h3>
<table width=300 border=0> <table width=300 border=0>
<tr><td> <tr><td>
<select name="date_purge"> <select name="date_purge" class="w255">
<option value="<?php echo $month3 ?>"><?php echo $lang_label["purge_90day"] ?> <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 $month ?>"><?php echo $lang_label["purge_30day"] ?>
<option value="<?php echo $week2 ?>"><?php echo $lang_label["purge_14day"] ?> <option value="<?php echo $week2 ?>"><?php echo $lang_label["purge_14day"] ?>

View File

@ -47,7 +47,7 @@ if (comprueba_login() == 0)
} else { // Form view } else { // Form view
?> ?>
<h2><?php echo $lang_label["dbmain_title"]; ?></h2> <h2><?php echo $lang_label["dbmain_title"]; ?></h2>
<h3><?php echo $lang_label["db_refine"]; ?><a href='help/<?php echo substr($language_code,0,2)?>/chap8.php#831' target='_help'><img src='images/help.gif' border='0' class='help'></a></h3> <h3><?php echo $lang_label["db_refine"]; ?><a href='help/<?php echo substr($language_code,0,2)?>/chap8.php#831' target='_help' class='help'>&nbsp;<span><?php echo $lang_label["help"] ?></span></a></h3>
<form method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_refine&operacion=1"> <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='3' cellpadding='5'>
<tr> <tr>

View File

@ -38,8 +38,8 @@ if (comprueba_login() == 0)
} }
echo "<h2>".$lang_label["group_management"]."</h2>"; echo "<h2>".$lang_label["group_management"]."</h2>";
if (isset($_GET["creacion_grupo"])) {echo "<h3>".$lang_label["create_group"]."</h3>";} if (isset($_GET["creacion_grupo"])) {echo "<h3>".$lang_label["create_group"]."<a href='help/".substr($language_code,0,2)."/chap3.php#31' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";}
if (isset($_GET["id_grupo"])) {echo "<h3>".$lang_label["update_group"]."</h3>";} if (isset($_GET["id_grupo"])) {echo "<h3>".$lang_label["update_group"]."<a href='help/".substr($language_code,0,2)."/chap3.php#31' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";}
?> ?>
<table width="450"> <table width="450">
@ -56,7 +56,7 @@ if (comprueba_login() == 0)
?> ?>
<tr><td class='lb' rowspan='3' width='5'> <tr><td class='lb' rowspan='3' width='5'>
<tr><td class="datos"><?php echo $lang_label["group_name"] ?><td class="datos"><input type="text" name="nombre" size="35" value="<?php echo $nombre ?>"> <tr><td class="datos"><?php echo $lang_label["group_name"] ?><td class="datos"><input type="text" name="nombre" size="35" value="<?php echo $nombre ?>">
<tr><td class="datos"><?php echo $lang_label["icon"] ?><td class="datos"><input type="icon" name="icon" size="25" value="<?php if (isset($icono)){echo $icono;} ?>"> <tr><td class="datos2"><?php echo $lang_label["icon"] ?><td class="datos2"><input type="icon" name="icon" size="25" value="<?php if (isset($icono)){echo $icono;} ?>">
<tr><td></td></tr> <tr><td></td></tr>
<tr><td colspan="3" align="right"><?php if (isset($_GET["creacion_grupo"])){echo "<input name='crtbutton' type='submit' class='sub' value='".$lang_label["create"]."'>";} <tr><td colspan="3" align="right"><?php if (isset($_GET["creacion_grupo"])){echo "<input name='crtbutton' type='submit' class='sub' value='".$lang_label["create"]."'>";}
else {echo "<input name='uptbutton' type='submit' class='sub' value='".$lang_label["update"]."'>";} ?> else {echo "<input name='uptbutton' type='submit' class='sub' value='".$lang_label["update"]."'>";} ?>

View File

@ -47,7 +47,7 @@ if (comprueba_login() == 0)
echo "<h3 class='suc'>".$lang_label["delete_group_ok"]."</h3>"; echo "<h3 class='suc'>".$lang_label["delete_group_ok"]."</h3>";
} }
echo "<h2>".$lang_label["group_management"]."</h2>"; echo "<h2>".$lang_label["group_management"]."</h2>";
echo "<h3>".$lang_label["definedgroups"]."</h3>"; echo "<h3>".$lang_label["definedgroups"]."<a href='help/".substr($language_code,0,2)."/chap3.php#31' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";
// Load icon index from tgrupos // Load icon index from tgrupos
$iconindex_g[]=""; $iconindex_g[]="";
@ -57,7 +57,7 @@ if (comprueba_login() == 0)
echo "<th class='w80'>".$lang_label["delete"]."</th>"; echo "<th class='w80'>".$lang_label["delete"]."</th>";
$sql1='SELECT * FROM tgrupo ORDER BY nombre'; $sql1='SELECT * FROM tgrupo ORDER BY nombre';
$result=mysql_query($sql1); $result=mysql_query($sql1);
$color=1; $color=0;
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
$iconindex_g[$row["id_grupo"]] = $row["icon"]; $iconindex_g[$row["id_grupo"]] = $row["icon"];
if ($color == 1){ if ($color == 1){

View File

@ -17,10 +17,10 @@ if (comprueba_login() == 0)
$query_del1="DELETE FROM tperfil WHERE id_perfil = '".$id_perfil."'"; $query_del1="DELETE FROM tperfil WHERE id_perfil = '".$id_perfil."'";
$query_del2="DELETE FROM tusuario_perfil WHERE id_perfil = '".$id_perfil."'"; $query_del2="DELETE FROM tusuario_perfil WHERE id_perfil = '".$id_perfil."'";
$resq1=mysql_query($query_del1); $resq1=mysql_query($query_del1);
if (! $resq1) if (! $resq1)
echo "<h3 class='error'>".$lang_label["delete_profile_no"]."</h3>"; echo "<h3 class='error'>".$lang_label["delete_profile_no"]."</h3>";
else else
echo "<h3 class='suc'>".$lang_label["delete_profile_ok"]."</h3>"; echo "<h3 class='suc'>".$lang_label["delete_profile_ok"]."</h3>";
$resq1=mysql_query($query_del2); $resq1=mysql_query($query_del2);
unset($id_perfil); // forget it to show list unset($id_perfil); // forget it to show list
} }
@ -126,9 +126,9 @@ if (comprueba_login() == 0)
} }
echo '<h2>'.$lang_label["profile_title"].'</h2>'; echo '<h2>'.$lang_label["profile_title"].'</h2>';
echo (isset($_GET["new_profile"]))? echo (isset($_GET["new_profile"]))?
('<h3>'.$lang_label["create_profile"].'<a href="help/'.substr($language_code,0,2).'/chap2.php#21" target="_help"><img src="images/help.gif" border="0" class="help"></a></h3>'): ('<h3>'.$lang_label["create_profile"].'<a href="help/'.substr($language_code,0,2).'/chap2.php#21" target="_help" class="help">&nbsp;<span>'.$lang_label["help"].'</span></a></h3>'):
((isset($_GET["edit_profile"]))?('<h3>'.$lang_label["update_profile"].'<a href="help/'.substr($language_code,0,2).'/chap2.php#21" target="_help"><img src="images/help.gif" border="0" class="help"></a></h3>'): ((isset($_GET["edit_profile"]))?('<h3>'.$lang_label["update_profile"].'<a href="help/'.substr($language_code,0,2).'/chap2.php#21" target="_help" class="help">&nbsp;<span>'.$lang_label["help"].'</span></a></h3>'):
('<h3>'.$lang_label["definedprofiles"].'<a href="help/'.substr($language_code,0,2).'/chap2.php#21" target="_help"><img src="images/help.gif" border="0" class="help"></a></h3>')); ('<h3>'.$lang_label["definedprofiles"].'<a href="help/'.substr($language_code,0,2).'/chap2.php#21" target="_help" class="help">&nbsp;<span>'.$lang_label["help"].'</span></a></h3>'));
// Form to manage date // Form to manage date
if (isset ($id_perfil)){ // There are values defined, let's show form with data for INSERT or UPDATE 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 "<table width='400' cellpadding='3' cellspacing='3'>";
@ -137,35 +137,36 @@ if (comprueba_login() == 0)
echo "<input type=hidden name=id_perfil value='".$id_perfil."'>"; 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 "<td class=datos>".$lang_label["profile_name"]."<td class=datos><input name='name' type=text size='27' value='".$name."'>";
echo "<tr><td class=datos>".$lang_label["incident_view"]."<td class=datos><input name='incident_view' type=checkbox class='chk' value='1' "; 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 ">"; 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' "; 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 ">"; if ($incident_edit == 1) echo "checked";echo ">";
echo "<tr><td class=datos>".$lang_label["manage_incidents"]."<td class=datos><input name='incident_management' type=checkbox class='chk' value='1' "; 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 ">"; 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' "; 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 ">"; if ($agent_view == 1) echo "checked";echo ">";
echo "<tr><td class=datos>".$lang_label["agent_edit"]."<td class=datos><input name='agent_edit' type=checkbox class='chk' value='1' "; 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 ">"; 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' "; 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 ">"; if ($alert_edit == 1) echo "checked";echo ">";
echo "<tr><td class=datos>".$lang_label["manage_users"]."<td class=datos><input name='user_management' class='chk' type=checkbox value='1' "; 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 ">"; 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' "; 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 ">"; if ($db_management == 1) echo "checked";echo ">";
echo "<tr><td class=datos>".$lang_label["manage_alerts"]."<td class=datos><input name='alert_management' class='chk' type=checkbox value='1' "; 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 ">"; 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' "; 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 ">"; if ($pandora_management == 1) echo "checked";echo ">";
echo" <tr><td colspan='3'><div class='raya'></div></td></tr>";
if (isset($_GET["new_profile"])){ if (isset($_GET["new_profile"])){
echo "<tr><td colspan='3' align='right'><input name='crtbutton' type='submit' class='sub' value='".$lang_label["create"]."'>"; echo "<tr><td colspan='3' align='right'><input name='crtbutton' type='submit' class='sub' value='".$lang_label["create"]."'>";
} }
@ -175,25 +176,25 @@ echo "<tr><td colspan='3' align='right'><input name='uptbutton' type='submit' cl
echo "</table>"; echo "</table>";
} else { // View list data } else { // View list data
$color=0; $color=1;
?> ?>
<table cellpadding=3 cellspacing=3 border=0> <table cellpadding=3 cellspacing=3 border=0>
<?php <?php
$query_del1="SELECT * FROM tperfil"; $query_del1="SELECT * FROM tperfil";
$resq1=mysql_query($query_del1); $resq1=mysql_query($query_del1);
echo "<tr>"; echo "<tr>";
echo "<th class='w180d'><font size=1>".$lang_label["profiles"]; echo "<th class='w180'><font size=1>".$lang_label["profiles"];
echo "<th class='w40d'><font size=1>IR<a href='#' class='tip2'>&nbsp;<span>".$help_label["IR"]."</span></a>"; echo "<th class='w40'><font size=1>IR<a href='#' class='tip2'>&nbsp;<span>".$help_label["IR"]."</span></a>";
echo "<th class='w40d'><font size=1>IW<a href='#' class='tip2'>&nbsp;<span>".$help_label["IW"]."</span></a>"; echo "<th class='w40'><font size=1>IW<a href='#' class='tip2'>&nbsp;<span>".$help_label["IW"]."</span></a>";
echo "<th class='w40d'><font size=1>IM<a href='#' class='tip2'>&nbsp;<span>".$help_label["IM"]."</span></a>"; echo "<th class='w40'><font size=1>IM<a href='#' class='tip2'>&nbsp;<span>".$help_label["IM"]."</span></a>";
echo "<th class='w40d'><font size=1>AR<a href='#' class='tip2'>&nbsp;<span>".$help_label["AR"]."</span></a>"; echo "<th class='w40'><font size=1>AR<a href='#' class='tip2'>&nbsp;<span>".$help_label["AR"]."</span></a>";
echo "<th class='w40d'><font size=1>AW<a href='#' class='tip2'>&nbsp;<span>".$help_label["AW"]."</span></a>"; echo "<th class='w40'><font size=1>AW<a href='#' class='tip2'>&nbsp;<span>".$help_label["AW"]."</span></a>";
echo "<th class='w40d'><font size=1>LW<a href='#' class='tip2'>&nbsp;<span>".$help_label["LW"]."</span></a>"; echo "<th class='w40'><font size=1>LW<a href='#' class='tip2'>&nbsp;<span>".$help_label["LW"]."</span></a>";
echo "<th class='w40d'><font size=1>UM<a href='#' class='tip2'>&nbsp;<span>".$help_label["UM"]."</span></a>"; echo "<th class='w40'><font size=1>UM<a href='#' class='tip2'>&nbsp;<span>".$help_label["UM"]."</span></a>";
echo "<th class='w40d'><font size=1>DM<a href='#' class='tip2'>&nbsp;<span>".$help_label["DM"]."</span></a>"; echo "<th class='w40'><font size=1>DM<a href='#' class='tip2'>&nbsp;<span>".$help_label["DM"]."</span></a>";
echo "<th class='w40d'><font size=1>LM<a href='#' class='tip2'>&nbsp;<span>".$help_label["LM"]."</span></a>"; echo "<th class='w40'><font size=1>LM<a href='#' class='tip2'>&nbsp;<span>".$help_label["LM"]."</span></a>";
echo "<th class='w40d'><font size=1>PM<a href='#' class='tip2'>&nbsp;<span>".$help_label["PM"]."</span></a>"; echo "<th class='w40'><font size=1>PM<a href='#' class='tip2'>&nbsp;<span>".$help_label["PM"]."</span></a>";
echo "<th class='w30d'>".$lang_label["delete"]."</th></tr>"; echo "<th class='w30'>".$lang_label["delete"]."</th></tr>";
while ($rowdup=mysql_fetch_array($resq1)){ while ($rowdup=mysql_fetch_array($resq1)){
$id_perfil = $rowdup["id_perfil"]; $id_perfil = $rowdup["id_perfil"];
$nombre=$rowdup["name"]; $nombre=$rowdup["name"];
@ -215,7 +216,7 @@ echo "<tr><td colspan='3' align='right'><input name='uptbutton' type='submit' cl
$tdcolor = "datos2"; $tdcolor = "datos2";
$color = 1; $color = 1;
} }
echo "<td class='$tdcolor'><a href='index.php?sec=gperfiles&sec2=godmode/perfiles/lista_perfiles&edit_profile=".$id_perfil."'><b>".$nombre."</b></a>"; echo "<td class='$tdcolor'><a href='index.php?sec=gperfiles&amp;sec2=godmode/perfiles/lista_perfiles&amp;edit_profile=".$id_perfil."'><b>".$nombre."</b></a>";
echo "<td class='$tdcolor'>"; echo "<td class='$tdcolor'>";
if ($incident_view == 1) echo "<img src='images/ok.gif' border=0>"; if ($incident_view == 1) echo "<img src='images/ok.gif' border=0>";
@ -260,4 +261,4 @@ echo "<tr><td colspan='3' align='right'><input name='uptbutton' type='submit' cl
else { else {
audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access Profile Management"); audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access Profile Management");
require ("general/noaccess.php"); require ("general/noaccess.php");
} }

View File

@ -78,8 +78,8 @@ if (comprueba_login() == 0)
<?php <?php
echo "'>"; 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="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="datos">'.$lang_label["link"].'<td class="datos"><input type="text" name="link" size="35" value="'.$link.'">'; 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="noraya"></div></td></tr>'; 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 "<tr><td colspan='3' align='right'><input name='crtbutton' type='submit' class='sub' value='".$lang_label["update"]."'>";
echo '</form></table>'; echo '</form></table>';
} }

View File

@ -33,8 +33,8 @@ if (comprueba_login() == 0)
$result2=mysql_query("UPDATE tconfig SET VALUE='".$config_bgimage."' WHERE token='bgimage'"); $result2=mysql_query("UPDATE tconfig SET VALUE='".$config_bgimage."' WHERE token='bgimage'");
} }
echo "<h2>".$lang_label["setup_screen"]."</h2>"; echo "<h2>".$lang_label["setup_screen"]."</h2>";
echo "<h3>".$lang_label["general_config"]."<a href='help/".substr($language_code,0,2)."/chap7.php#7' target='_help'><img src='images/help.gif' border='0' class='help'></a></h3>"; echo "<h3>".$lang_label["general_config"]."<a href='help/".substr($language_code,0,2)."/chap7.php#7' target='_help' class='help'>&nbsp;<span>".$lang_label["help"]."</span></a></h3>";
echo "<form name='setup' method='POST' action='index.php?sec=godmode/setup/setup&update=1'>"; echo "<form name='setup' method='POST' action='index.php?sec=gsetup&amp;sec2=godmode/setup/setup&update=1'>";
echo '<table width="500" cellpadding="3" cellspacing="3">'; echo '<table width="500" cellpadding="3" cellspacing="3">';
echo '<tr><td class="lb" rowspan="9" width="5"></td><td class="datos">'.$lang_label["language_code"]; echo '<tr><td class="lb" rowspan="9" width="5"></td><td class="datos">'.$lang_label["language_code"];
echo '<td class="datos"><select name="language_code" onChange="javascript:this.form.submit();">'; echo '<td class="datos"><select name="language_code" onChange="javascript:this.form.submit();">';
@ -69,7 +69,7 @@ if (comprueba_login() == 0)
echo '<td class="datos2"><input type="text" name="step_compact" size=5 value="'.$config_step_compact.'">'; echo '<td class="datos2"><input type="text" name="step_compact" size=5 value="'.$config_step_compact.'">';
echo '<tr><td class="datos">'.$lang_label["graph_order"]; echo '<tr><td class="datos">'.$lang_label["graph_order"];
echo '<td class="datos"><select name="graph_order">'; echo '<td class="datos"><select name="graph_order" style="width: 110px;">';
if ($config_graph_order==0) { if ($config_graph_order==0) {
echo '<option value="0">'.$lang_label["left_right"].'</option>'; echo '<option value="0">'.$lang_label["left_right"].'</option>';
echo '<option value="1">'.$lang_label["right_left"].'</option>'; echo '<option value="1">'.$lang_label["right_left"].'</option>';
@ -80,7 +80,7 @@ if (comprueba_login() == 0)
} }
echo '<tr><td class="datos2">'.$lang_label["truetype"]; echo '<tr><td class="datos2">'.$lang_label["truetype"];
echo '<td class="datos2"><select name="truetype">'; echo '<td class="datos2"><select name="truetype" style="width: 110px;">';
if ($config_truetype==1) { if ($config_truetype==1) {
echo '<option value="1">'.$lang_label["active"].'</option>'; echo '<option value="1">'.$lang_label["active"].'</option>';
echo '<option value="0">'.$lang_label["disabled"].'</option>'; echo '<option value="0">'.$lang_label["disabled"].'</option>';

View File

@ -136,11 +136,11 @@ if (comprueba_login() == 0)
echo "<h2>".$lang_label["user_management"]."</h2>"; echo "<h2>".$lang_label["user_management"]."</h2>";
if (isset($_GET["alta"])){ if (isset($_GET["alta"])){
if ($_GET["alta"]==1){ if ($_GET["alta"]==1){
echo '<h3>'.$lang_label["create_user"].'<a href="help/'.substr($language_code,0,2).'/chap2.php#22" target="_help"><img src="images/help.gif" border="0" class="help"></a></h3>'; echo '<h3>'.$lang_label["create_user"].'<a href="help/'.substr($language_code,0,2).'/chap2.php#22" target="_help" class="help">&nbsp;<span>'.$lang_label["help"].'</span></a></h3>';
} }
} }
if (isset($_GET["id_usuario_mio"]) OR isset($_GET["nuevo_usuario"])){ if (isset($_GET["id_usuario_mio"]) OR isset($_GET["nuevo_usuario"])){
echo '<h3>'.$lang_label["update_user"].'<a href="help/'.substr($language_code,0,2).'/chap2.php#22" target="_help"><img src="images/help.gif" border="0" class="help"></a></h3>'; echo '<h3>'.$lang_label["update_user"].'<a href="help/'.substr($language_code,0,2).'/chap2.php#22" target="_help" class="help">&nbsp;<span>'.$lang_label["help"].'</span></a></h3>';
} }
?> ?>
@ -153,16 +153,16 @@ if (comprueba_login() == 0)
?> ?>
<td class="datos"><?php echo $lang_label["id_user"] ?> <td class="datos"><?php echo $lang_label["id_user"] ?>
<td class="datos"><input type="text" name="nombre" value="<?php echo $id_usuario_mio ?>"> <td class="datos"><input type="text" name="nombre" value="<?php echo $id_usuario_mio ?>">
<tr><td class="datos"><?php echo $lang_label["real_name"] ?> <tr><td class="datos2"><?php echo $lang_label["real_name"] ?>
<td class="datos"><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 ?>">
<tr><td class="datos"><?php echo $lang_label["password"] ?> <tr><td class="datos"><?php echo $lang_label["password"] ?>
<td class="datos"><input type="password" name="pass1" value="<?php echo $password ?>"> <td class="datos"><input type="password" name="pass1" value="<?php echo $password ?>">
<tr><td class="datos"><?php echo $lang_label["password"] ?> - <?php echo $lang_label["confirmation"] ?> <tr><td class="datos2"><?php echo $lang_label["password"] ?> - <?php echo $lang_label["confirmation"] ?>
<td class="datos"><input type="password" name="pass2" value="<?php echo $password ?>"> <td class="datos2"><input type="password" name="pass2" value="<?php echo $password ?>">
<tr><td class="datos">E-Mail <tr><td class="datos">E-Mail
<td class="datos"><input type="text" name="direccion" size="40" value="<?php echo $direccion ?>"> <td class="datos"><input type="text" name="direccion" size="40" value="<?php echo $direccion ?>">
<tr><td class="datos"><?php echo $lang_label["telefono"] ?> <tr><td class="datos2"><?php echo $lang_label["telefono"] ?>
<td class="datos"><input type="text" name="telefono" value="<?php echo $telefono ?>"> <td class="datos2"><input type="text" name="telefono" value="<?php echo $telefono ?>">
<tr><td class="datos"><?php echo $lang_label["global_profile"] ?> <tr><td class="datos"><?php echo $lang_label["global_profile"] ?>
<td class="datos"> <td class="datos">
@ -174,7 +174,7 @@ if (comprueba_login() == 0)
echo $lang_label["normal_user"].'<input type="radio" class="chk" name="nivel" value="0" checked><a href="#" class="tip">&nbsp;<span>'.$help_label["users_msg2"].'</span></a>'; echo $lang_label["normal_user"].'<input type="radio" class="chk" name="nivel" value="0" checked><a href="#" class="tip">&nbsp;<span>'.$help_label["users_msg2"].'</span></a>';
} }
?> ?>
<tr><td class="datos" colspan="2"><?php echo $lang_label["comments"] ?> <tr><td class="datos2" colspan="2"><?php echo $lang_label["comments"] ?>
<tr><td class="datos" colspan="2"><textarea name="comentarios" cols="50" rows="4"><?php echo $comentarios ?></textarea> <tr><td class="datos" colspan="2"><textarea name="comentarios" cols="50" rows="4"><?php echo $comentarios ?></textarea>
<?php <?php
@ -183,7 +183,7 @@ if (comprueba_login() == 0)
echo '<input type="hidden" name="edicion" value="1">'; echo '<input type="hidden" name="edicion" value="1">';
echo '<input type="hidden" name="id_usuario_antiguo" value="'.$id_usuario_mio.'">'; echo '<input type="hidden" name="id_usuario_antiguo" value="'.$id_usuario_mio.'">';
echo '<tr><td class="datos">'.$lang_label["group_avail"].'<td class="datos"><select name="grupo">'; echo '<tr><td class="datos2">'.$lang_label["group_avail"].'<td class="datos2"><select name="grupo">';
echo "<option value=''>".$lang_label["none"]; echo "<option value=''>".$lang_label["none"];
$sql1='SELECT * FROM tgrupo ORDER BY nombre'; $sql1='SELECT * FROM tgrupo ORDER BY nombre';
$result=mysql_query($sql1); $result=mysql_query($sql1);
@ -192,20 +192,25 @@ if (comprueba_login() == 0)
} }
echo '</select>'; echo '</select>';
echo "<tr><td class=datos>".$lang_label["profiles"]; echo "<tr><td class='datos'>".$lang_label["profiles"];
echo "<td class=datos><select name='perfil'>"; echo "<td class='datos'><select name='perfil'>";
$sql1='SELECT * FROM tperfil order by name'; $sql1='SELECT * FROM tperfil order by name';
$result=mysql_query($sql1); $result=mysql_query($sql1);
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
echo "<option value='".$row["id_perfil"]."'>".$row["name"]; echo "<option value='".$row["id_perfil"]."'>".$row["name"];
} }
echo '</select>'; echo '</select>';
echo '<tr><td colspan="3"><div class="raya"></div></td></tr>';
echo '<tr><td align="right" colspan="3">';
if (isset($_GET["alta"])){echo "<input name='crtbutton' type='submit' class='sub' value='".$lang_label["create"]."'>";}
else {echo "<input name='uptbutton' type='submit' class='sub' value='".$lang_label["update"]."'>";}
// Show user profile / groups assigned // Show user profile / groups assigned
$sql1='SELECT * FROM tusuario_perfil WHERE id_usuario = "'.$id_usuario_mio.'"'; $sql1='SELECT * FROM tusuario_perfil WHERE id_usuario = "'.$id_usuario_mio.'"';
$result=mysql_query($sql1); $result=mysql_query($sql1);
if (mysql_num_rows($result)){ if (mysql_num_rows($result)){
echo "</table><br><table width='500' cellpadding='3' cellspacing='3' class=fon>"; echo "</table>
<br><table width='500' cellpadding='3' cellspacing='3' class=fon>";
echo '<tr><td colspan="2"><h3>'.$lang_label["listGroupUser"]."</h3>"; echo '<tr><td colspan="2"><h3>'.$lang_label["listGroupUser"]."</h3>";
while ($row=mysql_fetch_array($result)){ while ($row=mysql_fetch_array($result)){
echo '<tr><td class="datos">'; echo '<tr><td class="datos">';
@ -218,9 +223,6 @@ if (comprueba_login() == 0)
} }
?> ?>
<tr><td></td></tr><tr><td align="right" colspan="3">
<?php if (isset($_GET["alta"])){echo "<input name='crtbutton' type='submit' class='sub' value='".$lang_label["create"]."'>";}
else {echo "<input name='uptbutton' type='submit' class='sub' value='".$lang_label["update"]."'>";} ?>
</form> </form>
</td></tr></table> </td></tr></table>

View File

@ -21,14 +21,14 @@ if (comprueba_login() == 0)
$resq1=mysql_query($query_del1); $resq1=mysql_query($query_del1);
$resq1=mysql_query($query_del2); $resq1=mysql_query($query_del2);
if (! $resq1) if (! $resq1)
echo "<h3 class='error'>".$lang_label["delete_user_no"]."</h3>"; echo "<h3 class='error'>".$lang_label["delete_user_no"]."</h3>";
else else
echo "<h3 class='suc'>".$lang_label["delete_user_ok"]."</h3>"; echo "<h3 class='suc'>".$lang_label["delete_user_ok"]."</h3>";
} }
?> ?>
<h2><?php echo $lang_label["user_management"] ?></h2> <h2><?php echo $lang_label["user_management"] ?></h2>
<h3><?php echo $lang_label["users"] ?><a href="help/<?php echo substr($language_code,0,2);?>/chap2.php#22" target="_help"><img src="images/help.gif" border="0" class="help"></a></h3> <h3><?php echo $lang_label["users"] ?><a href="help/<?php echo substr($language_code,0,2); ?>/chap2.php#22" target="_help" class="help">&nbsp;<span><?php echo $lang_label["help"]; ?></span></a></h3>
<table cellpadding=3 cellspacing=3 width=550> <table cellpadding=3 cellspacing=3 width=550>
<th class="w80"><?php echo $lang_label["user_ID"]?> <th class="w80"><?php echo $lang_label["user_ID"]?>
@ -45,7 +45,7 @@ $nombre = "";
$nivel = ""; $nivel = "";
$comentarios = ""; $comentarios = "";
$fecha_registro = ""; $fecha_registro = "";
$color=0; $color=1;
while ($rowdup=mysql_fetch_array($resq1)){ while ($rowdup=mysql_fetch_array($resq1)){
$nombre=$rowdup["id_usuario"]; $nombre=$rowdup["id_usuario"];