2010-06-06 Raul Mateos <raulofpandora@gmail.com>

* godmode/reporting/reporting_builder.php, godmode/reporting/graphs.php,
	godmode/reporting/map_builder.php: Better table headers and table size.

	* godmode/reporting/reporting/visual_console_builder.editor.php: Added
	nice icons to buttons.

	* images/cancel.php: New icon file.

	* include/styles/pandora.css: New cancel input style.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2860 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
raulmateos 2010-06-06 21:01:10 +00:00
parent b16a798fd4
commit 93bd2f59d6
7 changed files with 40 additions and 19 deletions

View File

@ -1,3 +1,15 @@
2010-06-06 Raúl Mateos <raulofpandora@gmail.com>
* godmode/reporting/reporting_builder.php, godmode/reporting/graphs.php,
godmode/reporting/map_builder.php: Better table headers and table size.
* godmode/reporting/reporting/visual_console_builder.editor.php: Added
nice icons to buttons.
* images/cancel.php: New icon file.
* include/styles/pandora.css: New cancel input style.
2010-06-04 Ramon Novoa <rnovoa@artica.es>
* pandora_console.spec: Fixed. Upgrading an RPM broke the installation.

View File

@ -59,20 +59,20 @@ if ($delete_graph) {
$graphs = get_user_custom_graphs ();
if (! empty ($graphs)) {
$table->width = '650px';
$table->width = '720px';
$tale->class = 'databox_frame';
$table->align = array ();
$table->align[0] = 'center';
$table->align[3] = 'right';
$table->align[4] = 'center';
$table->head = array ();
$table->head[0] = '';
$table->head[0] = __('View');
$table->head[1] = __('Graph name');
$table->head[2] = __('Description');
$table->head[3] = __('Number of Graphs');
$table->head[4] = __('Group');
$table->size[0] = '20px';
$table->size[3] = '80px';
$table->size[3] = '125px';
$table->size[4] = '50px';
if (give_acl ($config['id_user'], 0, "AW")) {
$table->align[5] = 'center';
@ -108,7 +108,7 @@ else {
}
echo '<form method="post" action="index.php?sec=greporting&sec2=godmode/reporting/graph_builder">';
echo '<div class="action-buttons" style="width: 650px;">';
echo '<div class="action-buttons" style="width: 720px;">';
print_submit_button (__('Create graph'), 'create', false, 'class="sub next"');
echo "</div>";
echo "</form>";

View File

@ -99,7 +99,7 @@ if ($copy_layout) {
}
$table->width = '500px';
$table->width = '550px';
$table->data = array ();
$table->head = array ();
$table->head[0] = __('Map name');
@ -108,6 +108,8 @@ $table->head[2] = __('Items');
$table->head[3] = __('Copy');
$table->head[4] = __('Delete');
$table->align = array ();
$table->align[1] = 'center';
$table->align[2] = 'center';
$table->align[3] = 'center';
$table->align[4] = 'center';
@ -120,8 +122,7 @@ if (!$maps) {
$data = array ();
$data[0] = '<a href="index.php?sec=gmap&sec2=godmode/reporting/visual_console_builder&tab=data&amp;action=edit&amp;id_visual_console='.$map['id'].'">'.$map['name'].'</a>';
$data[1] = print_group_icon ($map['id_group'], true).'&nbsp;';
$data[1] .= get_group_name ($map['id_group'], true);
$data[1] = print_group_icon ($map['id_group'], true);
$data[2] = get_db_sql ("SELECT COUNT(*) FROM tlayout_data WHERE id_layout = ".$map['id']);
$data[3] = '<a href="index.php?sec=gmap&amp;sec2=godmode/reporting/map_builder&amp;id_layout='.$map['id'].'&amp;copy_layout=1">'.print_image ("images/copy.png", true).'</a>';
@ -131,8 +132,12 @@ if (!$maps) {
}
print_table ($table);
}
echo '<div class="action-buttons" style="width: '.$table->width.'">';
if (!$maps) {
echo '<div class="action-buttons" style="width: 0px;">';
}
else {
echo '<div class="action-buttons" style="width: '.$table->width.'">';
}
echo '<form action="index.php?sec=gmap&amp;sec2=godmode/reporting/visual_console_builder" method="post">';
print_input_hidden ('edit_layout', 1);
print_submit_button (__('Create'), '', false, 'class="sub next"');

View File

@ -59,13 +59,14 @@ switch ($action) {
$table->head = array ();
$table->align = array ();
$table->align[2] = 'center';
$table->align[3] = 'center';
$table->align[4] = 'center';
$table->data = array ();
$table->head[0] = __('Report name');
$table->head[1] = __('Description');
$table->head[2] = __('Private');
$table->head[3] = __('Group');
$table->head[4] = '';
$table->head[4] = __('Delete');
$table->size = array ();
$table->size[4] = '40px';
@ -88,7 +89,7 @@ switch ($action) {
else
$data[2] = __('No');
$data[3] = get_group_name($report['id_group'], true);
$data[3] = print_group_icon($report['id_group'], true);
$data[4] = '<form method="post" style="display:inline" onsubmit="if (!confirm (\''.__('Are you sure?').'\')) return false">';
$data[4] .= print_input_hidden ('id_report', $report['id_report'], true);
$data[4] .= print_input_hidden ('action','delete_report', true);
@ -303,7 +304,7 @@ switch ($action) {
";
break;
case 'type':
$sql = "SELECT id_rc FROM treport_content WHERE %s ORDER BY type %s";
$sql = "SELECT id_rc FROM treport_content WHERE %s ORDER BY type %s";
break;
}
$sql = sprintf($sql, 'id_report = ' . $idReport, '%s');

View File

@ -1,7 +1,7 @@
<?php
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
@ -159,16 +159,16 @@ echo '<div id="properties_panel" style="display: none; position: absolute; borde
<tr id="button_update_row" class="datos">
<td colspan="2" style="text-align: right;">
<?php
print_button(__('Cancel'), 'cancel_button', false, 'cancelAction();', 'class="sub"');
print_button(__('Update'), 'update_button', false, 'updateAction();', 'class="sub"');
print_button(__('Cancel'), 'cancel_button', false, 'cancelAction();', 'class="sub cancel"');
print_button(__('Update'), 'update_button', false, 'updateAction();', 'class="sub upd"');
?>
</td>
</tr>
<tr id="button_create_row" class="datos">
<td colspan="2" style="text-align: right;">
<?php
print_button(__('Cancel'), 'cancel_button', false, 'cancelAction();', 'class="sub"');
print_button(__('Create'), 'create_button', false, 'createAction();', 'class="create sub"');
print_button(__('Cancel'), 'cancel_button', false, 'cancelAction();', 'class="sub cancel"');
print_button(__('Create'), 'create_button', false, 'createAction();', 'class="sub wand"');
?>
</td>
</tr>
@ -259,4 +259,4 @@ require_javascript_file('visual_console_builder.editor', 'godmode/reporting/');
<script type="text/javascript">
id_visual_console = <?php echo $visualConsole['id']; ?>;
$(document).ready (initJavascript);
</script>
</script>

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 B

View File

@ -281,7 +281,7 @@ input.sub[disabled] {
input.next, input.upd, input.ok, input.wand, input.delete, input.search,
input.copy, input.add, input.graph, input.percentile, input.binary,
input.camera, input.config {
input.camera, input.config, input.cancel {
padding-right: 21px;
}
input.next {
@ -323,6 +323,9 @@ input.camera {
input.config {
background: #e5e5e5 url(../../images/config.png) no-repeat right 3px;
}
input.cancel {
background: #e5e5e5 url(../../images/cancel.png) no-repeat right 3px;
}
table, img {
border: 0px;
}