2009-08-07 Miguel de Dios <miguel.dedios@artica.es>

* operation/visual_console/index.php,
	pandora_console/operation/users/user.php, operation/incidents/incident.php,
	operation/agentes/status_monitor.php, operation/agentes/estado_agente.php,
	operation/agentes/alerts_status.php, include/styles/pandora.css,
	include/styles/pandora_black.css,include/styles/pandora_blackmetal.css,
	include/styles/pandora_width.css, include/styles/pandora_minimal.css,
	include/styles/pandora_red.css: the table list now has rows with alternate
	colours for easy see the data.
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1833 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-08-10 09:55:53 +00:00
parent 2c54733df9
commit dc9ab024a0
17 changed files with 196 additions and 1 deletions

View File

@ -1,3 +1,14 @@
2009-08-07 Miguel de Dios <miguel.dedios@artica.es>
* operation/visual_console/index.php,
pandora_console/operation/users/user.php, operation/incidents/incident.php,
operation/agentes/status_monitor.php, operation/agentes/estado_agente.php,
operation/agentes/alerts_status.php, include/styles/pandora.css,
include/styles/pandora_black.css,include/styles/pandora_blackmetal.css,
include/styles/pandora_width.css, include/styles/pandora_minimal.css,
include/styles/pandora_red.css: the table list now has rows with alternate
colours for easy see the data.
2009-08-10 Jorge Gonzalez <jorge.gonzalez@artica.es>
* include/languages/es.po, include/languages/es.mo: Updated Spanish

View File

@ -162,6 +162,9 @@ if ($agents !== false) {
echo "<th>".__('Description')."</th>";
echo "<th>".__('Delete')."</th>";
$color=1;
$rowPair = true;
$iterator = 0;
foreach ($agents as $agent) {
$id_grupo = $agent["id_grupo"];
if (! give_acl ($config["id_user"], $id_grupo, "AW"))
@ -175,8 +178,15 @@ if ($agents !== false) {
$color = 1;
}
if ($rowPair)
$rowclass = 'rowPair';
else
$rowclass = 'rowOdd';
$rowPair = !$rowPair;
$iterator++;
// Agent name
echo "<tr><td class='$tdcolor' width='40%'>";
echo "<tr class='$rowclass'><td class='$tdcolor' width='40%'>";
if ($agent["disabled"]){
echo "<em>";
}

View File

@ -108,7 +108,16 @@ $actions = get_db_all_rows_in_table ('talert_actions');
if ($actions === false)
$actions = array ();
$rowPair = true;
$iterator = 0;
foreach ($actions as $action) {
if ($rowPair)
$table->rowclass[$iterator] = 'rowPair';
else
$table->rowclass[$iterator] = 'rowOdd';
$rowPair = !$rowPair;
$iterator++;
$data = array ();
$data[0] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_action&id='.$action['id'].'">'.

View File

@ -325,7 +325,16 @@ $table->head[4] = __('Actions');
$table->head[5] = '';
$table->data = array ();
$rowPair = true;
$iterator = 0;
foreach ($simple_alerts as $alert) {
if ($rowPair)
$table->rowclass[$iterator] = 'rowPair';
else
$table->rowclass[$iterator] = 'rowOdd';
$rowPair = !$rowPair;
$iterator++;
$data = array ();
$data[0] = '<form class="disable_alert_form" method="post" style="display: inline;">';

View File

@ -192,7 +192,16 @@ $table->size[3] = '50px';
$table->align = array ();
$table->align[3] = 'center';
$rowPair = true;
$iterator = 0;
foreach ($templates as $template) {
if ($rowPair)
$table->rowclass[$iterator] = 'rowPair';
else
$table->rowclass[$iterator] = 'rowOdd';
$rowPair = !$rowPair;
$iterator++;
$data = array ();
$data[0] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id='.$template['id'].'">'.

View File

@ -65,7 +65,16 @@ $table->size[5] = 40;
$info = array ();
$info = get_users ();
$rowPair = true;
$iterator = 0;
foreach ($info as $user_id => $user_info) {
if ($rowPair)
$table->rowclass[$iterator] = 'rowPair';
else
$table->rowclass[$iterator] = 'rowOdd';
$rowPair = !$rowPair;
$iterator++;
$data[0] = '<a href="index.php?sec=gusuarios&amp;sec2=godmode/users/configure_user&amp;id='.$user_id.'">'.$user_id.'</a>';
$data[1] = $user_info["fullname"].'<a href="#" class="tip"><span>';
$data[1] .= __('First name').': '.$user_info["firstname"].'<br />';

View File

@ -329,6 +329,23 @@ td.datos4 {
td.datos_id {
color: #1a313a;
}
tr.rowPair {
background-color: #fff;
}
tr.rowOdd {
background-color: #CFD2D4;
}
tr.rowPair:hover {
background-color: #ddd;
}
tr.rowOdd:hover {
background-color: #A2A2C2; /*#8F9294;*/
}
.bg { /* op menu */
background-color: #786;
}

View File

@ -76,6 +76,23 @@ td.datos3 {
td.datos_id {
color: #1a313a;
}
tr.rowPair {
background-color: #274263;
}
tr.rowOdd {
background-color: #020E1D;
}
tr.rowPair:hover {
background-color: #4782A3;
}
tr.rowOdd:hover {
background-color: #424E5D;
}
div.title_line {
background-color: #000;
}

View File

@ -92,3 +92,19 @@ span#logo_text1, span#logo_text2 {
ol.steps li.current {
border-left: 5px solid #000;
}
tr.rowPair {
background-color: #fff;
}
tr.rowOdd {
background-color: #BDC2C7;
}
tr.rowPair:hover {
background-color: #DEDEDE;
}
tr.rowOdd:hover {
background-color: #7D8287;
}

View File

@ -101,3 +101,19 @@ table, img {
background-color: #999999;
padding: 20px;
}
tr.rowPair {
background-color: #fff;
}
tr.rowOdd {
background-color: #888;
}
tr.rowPair:hover {
background-color: #bbb;
}
tr.rowOdd:hover {
background-color: #444;
}

View File

@ -316,6 +316,23 @@ td.datos_id {
td.datos_jus, td.datos2_jus {
text-align: justify;
}
tr.rowPair {
background-color: #fff;
}
tr.rowOdd {
background-color: #F08080;
}
tr.rowPair:hover {
background-color: #FFBFBF;
}
tr.rowOdd:hover {
background-color: #F8D0D0;
}
.bg { /* op menu */
background-color: #D44;
}

View File

@ -155,7 +155,17 @@ $table->data = array ();
$total = 0;
$printed = 0;
$rowPair = true;
$iterator = 0;
foreach ($alerts_simple as $alert) {
if ($rowPair)
$table->rowclass[$iterator] = 'rowPair';
else
$table->rowclass[$iterator] = 'rowOdd';
$rowPair = !$rowPair;
$iterator++;
$total++;
if (empty ($alert) || $printed >= $config["block_size"] || $total <= $offset) {
continue;

View File

@ -147,7 +147,16 @@ $table->align[7] = "right";
$table->data = array ();
$rowPair = true;
$iterator = 0;
foreach ($agents as $agent) {
if ($rowPair)
$table->rowclass[$iterator] = 'rowPair';
else
$table->rowclass[$iterator] = 'rowOdd';
$rowPair = !$rowPair;
$iterator++;
$agent_info = get_agent_module_info ($agent["id_agente"]);
$data = array ();

View File

@ -185,7 +185,16 @@ $table->align[5] = "center";
$table->head[6] = __('Timestamp');
$table->align[6] = "right";
$rowPair = true;
$iterator = 0;
foreach ($result as $row) {
if ($rowPair)
$table->rowclass[$iterator] = 'rowPair';
else
$table->rowclass[$iterator] = 'rowOdd';
$rowPair = !$rowPair;
$iterator++;
$data = array ();
//TODO: This should be processed locally. Don't rely on other URL's to do our dirty work. Maybe a process_agentmodule_flag function
$data[0] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$row["id_agent"].'&id_agente_modulo='.$row["id_agente_modulo"].'&flag=1&refr=60">';

View File

@ -270,7 +270,16 @@ if ($count < 1) {
$table->align[4] = "center";
$table->align[8] = "center";
$rowPair = true;
$iterator = 0;
foreach ($result as $row) {
if ($rowPair)
$table->rowclass[$iterator] = 'rowPair';
else
$table->rowclass[$iterator] = 'rowOdd';
$rowPair = !$rowPair;
$iterator++;
$data = array();
$data[0] = '<a href="index.php?sec=incidencias&amp;sec2=operation/incidents/incident_detail&amp;id='.$row["id_incidencia"].'">'.$row["id_incidencia"].'</a>';

View File

@ -46,7 +46,16 @@ if (give_acl ($config["id_user"], 0, "UM") == 1) {
$info[$config["id_user"]] = get_user_info ($config["id_user"]);
}
$rowPair = true;
$iterator = 0;
foreach ($info as $user_id => $user_info) {
if ($rowPair)
$table->rowclass[$iterator] = 'rowPair';
else
$table->rowclass[$iterator] = 'rowOdd';
$rowPair = !$rowPair;
$iterator++;
$data[0] = '<a href="index.php?sec=usuarios&amp;sec2=operation/users/user_edit&amp;id='.$user_id.'">'.$user_id.'</a>';
$data[1] = $user_info["fullname"].'<a href="#" class="tip"><span>';
$data[1] .= __('First name').': '.$user_info["firstname"].'<br />';

View File

@ -33,7 +33,16 @@ $table->align = array ();
$table->align[1] = 'center';
$table->align[2] = 'center';
$rowPair = true;
$iterator = 0;
foreach ($layouts as $layout) {
if ($rowPair)
$table->rowclass[$iterator] = 'rowPair';
else
$table->rowclass[$iterator] = 'rowOdd';
$rowPair = !$rowPair;
$iterator++;
if (!give_acl ($config["id_user"], $layout["id_group"], "AR")) {
continue;
}