2011-01-19 Javier Lanz <javier.lanz@artica.es>

* extensions/module_groups.php: Added truncation and scroll bar
	* operation/agentes/status_monitor.php: Fixed combobox functionality
	* general/logon_ok.php: Added a scroll bar at the bottom
	* godmode/groups/modu_group_list.php: Truncated module groups name


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3749 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
javilanz 2011-01-19 13:50:22 +00:00
parent ca284c148a
commit e0d267078a
5 changed files with 20 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2011-01-19 Javier Lanz <javier.lanz@artica.es>
* extensions/module_groups.php: Added truncation and scroll bar
* operation/agentes/status_monitor.php: Fixed combobox functionality
* general/logon_ok.php: Added a scroll bar at the bottom
* godmode/groups/modu_group_list.php: Truncated module groups name
2011-01-18 Miguel de Dios <miguel.dedios@artica.es> 2011-01-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions.php: in function "format_for_graph" added the units * include/functions.php: in function "format_for_graph" added the units

View File

@ -105,7 +105,11 @@ function mainModuleGroups() {
$agentGroups = get_user_groups ($config['id_user'], "AR", false); $agentGroups = get_user_groups ($config['id_user'], "AR", false);
$modelGroups = get_all_model_groups(); $modelGroups = get_all_model_groups();
array_walk($modelGroups, 'translate'); //Translate all head titles to language is set array_walk($modelGroups, 'translate'); //Translate all head titles to language is set
foreach ($modelGroups as $i => $n) {
$modelGroups[$i] = printTruncateText($n, 20);
}
$head = $modelGroups; $head = $modelGroups;
array_unshift($head, '&nbsp;'); array_unshift($head, '&nbsp;');
@ -204,8 +208,9 @@ function mainModuleGroups() {
array_push($tableData,$row); array_push($tableData,$row);
} }
$table->data = $tableData; $table->data = $tableData;
echo "<div style='width:98%; overflow-x:scroll;'>";
print_table($table); print_table($table);
echo "</div>";
echo "<p>" . __("The colours meaning:") . echo "<p>" . __("The colours meaning:") .
"<ul style='float: left;'>" . "<ul style='float: left;'>" .

View File

@ -172,6 +172,8 @@ foreach ($sessions as $session) {
array_push ($table->data, $data); array_push ($table->data, $data);
} }
echo "<div style='width:100%; overflow-x:scroll;'>";
print_table ($table); print_table ($table);
echo "</div>";
echo "</div>"; // activity echo "</div>"; // activity
?> ?>

View File

@ -131,7 +131,7 @@ foreach ($groups as $id_group ) {
// $data[0] = '<img src="images/groups_small/'.$group["icon"].'.png" border="0">'; // $data[0] = '<img src="images/groups_small/'.$group["icon"].'.png" border="0">';
// else // else
// $data[0] = '&nbsp;'; // $data[0] = '&nbsp;';
$data[0] = '<strong><a href="index.php?sec=gagente&sec2=godmode/groups/configure_modu_group&id_group='.$id_group["id_mg"].'">'.$id_group["name"].'</a></strong>'; $data[0] = '<strong><a href="index.php?sec=gagente&sec2=godmode/groups/configure_modu_group&id_group='.$id_group["id_mg"].'">'.printTruncateText($id_group["name"], 50).'</a></strong>';
// $data[2] = get_group_name ($group["parent"]); // $data[2] = get_group_name ($group["parent"]);
// $data[3] = $group['disabled'] ? __('Disabled') : __('Enabled'); // $data[3] = $group['disabled'] ? __('Disabled') : __('Enabled');
$data[1] = '<a href="index.php?sec=gagente&sec2=godmode/groups/modu_group_list&id_group='.$id_group["id_mg"].'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;"><img border="0" src="images/cross.png"></a>'; $data[1] = '<a href="index.php?sec=gagente&sec2=godmode/groups/modu_group_list&id_group='.$id_group["id_mg"].'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;"><img border="0" src="images/cross.png"></a>';

View File

@ -66,22 +66,22 @@ echo '</td>';
echo '<td valign="middle">'.__('Module group').'</td>'; echo '<td valign="middle">'.__('Module group').'</td>';
echo '<td valign="middle">'; echo '<td valign="middle">';
print_select_from_sql ("SELECT * FROM tmodule_group ORDER BY name", print_select_from_sql ("SELECT * FROM tmodule_group ORDER BY name",
'modulegroup', $modulegroup, '',__('All'), 0, false, false, true, false, 'width: 100px;'); 'modulegroup', $modulegroup, 'this.form.submit();',__('All'), 0, false, false, true, false, 'width: 100px;');
echo '</td></tr><tr><td valign="middle">'.__('Module name').'</td>'; echo '</td></tr><tr><td valign="middle">'.__('Module name').'</td>';
echo '<td valign="middle">'; echo '<td valign="middle">';
$user_groups = implode (",", array_keys (get_user_groups ())); $user_groups = implode (",", array_keys (get_user_groups ()));
$user_agents = implode (",", array_keys (get_group_agents($user_groups))); $user_agents = array_keys (get_group_agents($user_groups));
$modules = get_db_all_rows_filter ('tagente_modulo', array('id_agente' => $user_agents, 'nombre' => '<>delete_pending'), 'DISTINCT(nombre)'); $modules = get_db_all_rows_filter ('tagente_modulo', array('id_agente' => $user_agents, 'nombre' => '<>delete_pending'), 'DISTINCT(nombre)');
print_select (index_array ($modules, 'nombre', 'nombre'), "ag_modulename", print_select (index_array ($modules, 'nombre', 'nombre'), "ag_modulename",
$ag_modulename, 'this.form.submit();', __('All'), '', false, false, true, '', false, 'width: 150px;'); $ag_modulename, 'this.form.submit();', __('All'), '', false, false, true, '', false, 'width: 150px;');
echo '</td><td valign="middle">'.__('Search').'</td>'; echo '</td><td valign="middle" align="right">'.__('Search').'</td>';
echo '<td valign="middle">'; echo '<td valign="middle">';
print_input_text ("ag_freestring", $ag_freestring, '', 15,30, false); print_input_text ("ag_freestring", $ag_freestring, '', 20,30, false);
echo '</td><td valign="middle">'; echo '</td><td valign="middle">';
print_submit_button (__('Show'), "uptbutton", false, 'class="sub search"'); print_submit_button (__('Show'), "uptbutton", false, 'class="sub search"');