2010-05-21 Raul Mateos <raulofpandora@gmail.com>
* several php files: Updated "add" or "create" icons. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2783 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
5b01cde66e
commit
a6db0d953c
|
@ -1,3 +1,7 @@
|
|||
2010-05-21 Raúl Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* several php files: Updated "add" or "create" icons.
|
||||
|
||||
2010-05-21 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* operation/agentes/estado_generalagente.php: added the style for disabled
|
||||
|
|
|
@ -88,7 +88,7 @@ if ($id) {
|
|||
print_submit_button (__('Update'), 'create', false, 'class="sub upd"');
|
||||
} else {
|
||||
print_input_hidden ('create_action', 1);
|
||||
print_submit_button (__('Create'), 'create', false, 'class="sub next"');
|
||||
print_submit_button (__('Create'), 'create', false, 'class="sub wand"');
|
||||
}
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
|
|
|
@ -66,7 +66,7 @@ if ($id) {
|
|||
print_submit_button (__('Update'), 'create', false, 'class="sub upd"');
|
||||
} else {
|
||||
print_input_hidden ('create_command', 1);
|
||||
print_submit_button (__('Create'), 'create', false, 'class="sub next"');
|
||||
print_submit_button (__('Create'), 'create', false, 'class="sub wand"');
|
||||
}
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// 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
|
||||
|
@ -29,7 +29,7 @@ if (sizeof ($config['extensions']) == 0) {
|
|||
}
|
||||
|
||||
// Header
|
||||
print_page_header (__('Extensions'). " » ". __('Defined extensions'), "images/extensions.png", false, "", true, "" );
|
||||
print_page_header (__('Extensions'). " » ". __('Defined extensions'), "images/extensions.png", false, "", true, "" );
|
||||
|
||||
$delete = get_parameter ("delete", "");
|
||||
$name = get_parameter ("name", "");
|
||||
|
@ -42,10 +42,11 @@ if ($delete != ""){
|
|||
}
|
||||
|
||||
|
||||
$table->width = '95%';
|
||||
$table->width = '500px';
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
$table->head[1] = __('Delete');
|
||||
$table->align[1] = "center";
|
||||
$table->data = array ();
|
||||
|
||||
foreach ($config['extensions'] as $extension) {
|
||||
|
|
|
@ -362,7 +362,7 @@ $table->valign[0] = 'top';
|
|||
$table->valign[1] = 'top';
|
||||
|
||||
$table->data[0][0] = "<h4>List of layers</h4>". print_help_tip (__('It is possible to edit, delete and reorder the layers.'), true);
|
||||
$table->data[0][1] = '<div style="text-align: right;">' . print_button(__('New layer'), 'new_layer', false, 'newLayer();', 'class="sub new"', true) . '</div>';
|
||||
$table->data[0][1] = '<div style="text-align: right;">' . print_button(__('New layer'), 'new_layer', false, 'newLayer();', 'class="sub add"', true) . '</div>';
|
||||
|
||||
$table->data[1][0] = '<table class="databox" border="0" cellpadding="4" cellspacing="4" id="list_layers">' .
|
||||
addLayerList($layer_list) .
|
||||
|
@ -388,7 +388,7 @@ $table->data[1][1] = '<div id="form_layer">
|
|||
' . print_input_text_extended ('id_agent', __('Select'), 'text_id_agent', '', 30, 100, false, '',
|
||||
array('style' => 'background: url(images/lightning.png) no-repeat right;'), true)
|
||||
. '<a href="#" class="tip"> <span>' . __("Type at least two characters to search") . '</span></a> ' .
|
||||
print_button(__('Add agent'), 'add_agent', true, 'addAgentLayer();', 'class="sub"', true) .'
|
||||
print_button(__('Add agent'), 'add_agent', true, 'addAgentLayer();', 'class="sub add"', true) .'
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -400,7 +400,7 @@ $table->data[1][1] = '<div id="form_layer">
|
|||
</tr>
|
||||
<tr>
|
||||
<td align="right" colspan="4">' .
|
||||
print_button(__('Save Layer'), 'save_layer', false, 'saveLayer();', 'class="sub"', true) . '
|
||||
print_button(__('Save Layer'), 'save_layer', false, 'saveLayer();', 'class="sub wand"', true) . '
|
||||
' . print_input_hidden('layer_edit_id_form', '', true) . '
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -416,14 +416,14 @@ switch ($action) {
|
|||
case 'edit_map':
|
||||
case 'update_saved':
|
||||
if (!empty($invalidFields)) {
|
||||
print_submit_button(_('Save map'), 'save_button', false, 'class="sub save"');
|
||||
print_submit_button(_('Save map'), 'save_button', false, 'class="sub wand"');
|
||||
}
|
||||
else {
|
||||
print_submit_button(_('Update map'), 'update_button', false, 'class="sub update"');
|
||||
print_submit_button(_('Update map'), 'update_button', false, 'class="sub upd"');
|
||||
}
|
||||
break;
|
||||
case 'new_map':
|
||||
print_submit_button(_('Save map'), 'save_button', false, 'class="sub save"');
|
||||
print_submit_button(_('Save map'), 'save_button', false, 'class="sub wand"');
|
||||
break;
|
||||
}
|
||||
echo '</div>';
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// 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
|
||||
|
@ -38,8 +38,6 @@ if ($id) {
|
|||
$parent = '';
|
||||
}
|
||||
|
||||
echo '<h2>'.__('Module management').' » '. __('Component group management').'</h2>';
|
||||
|
||||
$table->width = '50%';
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
|
@ -61,7 +59,7 @@ if ($id) {
|
|||
print_submit_button (__('Update'), 'crt', false, 'class="sub upd"');
|
||||
} else {
|
||||
print_input_hidden ('create', 1);
|
||||
print_submit_button (__('Create'), 'crt', false, 'class="sub next"');
|
||||
print_submit_button (__('Create'), 'crt', false, 'class="sub wand"');
|
||||
}
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
|
|
|
@ -60,7 +60,7 @@ $id = (int) get_parameter ('id');
|
|||
$snmp_version = (string) get_parameter('snmp_version');
|
||||
$snmp3_auth_user = (string) get_parameter('snmp3_auth_user');
|
||||
$snmp3_auth_pass = (string) get_parameter('snmp3_auth_pass');
|
||||
$snmp3_auth_method = (string) get_parameter('snmp3_auth_method');
|
||||
$snmp3_auth_method = (string) get_parameter('snmp3_auth_method');
|
||||
$snmp3_privacy_method = (string) get_parameter('snmp3_privacy_method');
|
||||
$snmp3_privacy_pass = (string) get_parameter('snmp3_privacy_pass');
|
||||
$snmp3_security_level = (string) get_parameter('snmp3_security_level');
|
||||
|
@ -318,10 +318,10 @@ foreach ($components as $component) {
|
|||
$data[4] = get_network_component_group_name ($component['id_group']);
|
||||
$data[5] = $component['max']." / ".$component['min'];
|
||||
|
||||
$data[6] = '<a style="display: inline; float: left" href="' . $url . '&search_id_group=' . $search_id_group .
|
||||
$data[6] = '<a style="display: inline; float: left" href="' . $url . '&search_id_group=' . $search_id_group .
|
||||
'search_string=' . $search_string . '&duplicate_network_component=1&source_id=' . $component['id_nc'] . '">' .
|
||||
print_image('images/copy.png', true, array('alt' => __('Duplicate'), 'title' => __('Duplicate'))) . '</a>';
|
||||
$data[6] .= '<a href="' . $url . '&delete_component=1&id=' . $component['id_nc'] . '&search_id_group=' . $search_id_group .
|
||||
$data[6] .= '<a href="' . $url . '&delete_component=1&id=' . $component['id_nc'] . '&search_id_group=' . $search_id_group .
|
||||
'search_string=' . $search_string .
|
||||
'" onclick="if (! confirm (\''.__('Are you sure?').'\')) return false" >' .
|
||||
print_image('images/cross.png', true, array('alt' => __('Delete'), 'title' => __('Delete'))) . '</a>';
|
||||
|
|
|
@ -150,7 +150,7 @@ if ($id) {
|
|||
print_submit_button (__('Update'), 'upd', false, 'class="sub upd"');
|
||||
} else {
|
||||
print_input_hidden ('create_component', 1);
|
||||
print_submit_button (__('Create'), 'crt', false, 'class="sub next"');
|
||||
print_submit_button (__('Create'), 'crt', false, 'class="sub wand"');
|
||||
}
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
|
|
|
@ -318,7 +318,7 @@ print_input_hidden('id_item', $idItem);
|
|||
print_SLA_list('90%', $action, $idItem);
|
||||
echo '<div class="action-buttons" style="width: 90%">';
|
||||
if ($action == 'new') {
|
||||
print_submit_button(__('Create item'), 'create_item', false, 'class="sub next"');
|
||||
print_submit_button(__('Create item'), 'create_item', false, 'class="sub wand"');
|
||||
}
|
||||
else {
|
||||
print_submit_button(__('Edit item'), 'edit_item', false, 'class="sub upd"');
|
||||
|
@ -690,4 +690,4 @@ function chooseType() {
|
|||
// break;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
|
|
@ -27,7 +27,7 @@ $groups = get_user_groups ();
|
|||
|
||||
switch ($action) {
|
||||
case 'new':
|
||||
$actionButtonHtml = print_submit_button(__('Add'), 'add', false, 'class="sub next"', true);
|
||||
$actionButtonHtml = print_submit_button(__('Add'), 'add', false, 'class="sub wand"', true);
|
||||
$hiddenFieldAction = 'save';
|
||||
break;
|
||||
case 'update':
|
||||
|
@ -65,4 +65,4 @@ echo $actionButtonHtml;
|
|||
print_input_hidden('action', $hiddenFieldAction);
|
||||
print_input_hidden('id_report', $idReport);
|
||||
echo '</div></form>';
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -99,8 +99,13 @@ if ((isset($_GET["form_add"])) or (isset($_GET["form_edit"]))){
|
|||
echo '</tr>';
|
||||
echo "</table>";
|
||||
echo "<table width='500px'>";
|
||||
echo "<tr><td align='right'>
|
||||
<input name='crtbutton' type='submit' class='sub upd' value='".__('Update')."'>";
|
||||
echo "<tr><td align='right'>";
|
||||
if (isset($_GET["form_add"])) {
|
||||
echo "<input name='crtbutton' type='submit' class='sub wand' value='".__('Create')."'>";
|
||||
}
|
||||
else {
|
||||
echo "<input name='crtbutton' type='submit' class='sub upd' value='".__('Update')."'>";
|
||||
}
|
||||
echo '</form></td></tr></table>';
|
||||
}
|
||||
else { // Main list view for Links editor
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// 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
|
||||
|
@ -113,8 +113,13 @@ if ((isset ($_GET["form_add"])) || (isset ($_GET["form_edit"]))) {
|
|||
echo '</tr>';
|
||||
echo "</table>";
|
||||
echo "<table width='500px'>";
|
||||
echo "<tr><td align='right'>
|
||||
<input name='crtbutton' type='submit' class='sub upd' value='".__('Update')."'>";
|
||||
echo "<tr><td align='right'>";
|
||||
if (isset($_GET["form_add"])) {
|
||||
echo "<input name='crtbutton' type='submit' class='sub wand' value='".__('Create')."'>";
|
||||
}
|
||||
else {
|
||||
echo "<input name='crtbutton' type='submit' class='sub upd' value='".__('Update')."'>";
|
||||
}
|
||||
echo '</form></td></tr></table>';
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -233,7 +233,7 @@ if (isset ($_GET["update_alert"])) {
|
|||
if ($id_as > 0) {
|
||||
print_submit_button (__('Update'), "submit", false, 'class="sub upd"', false);
|
||||
} else {
|
||||
print_submit_button (__('Create'), "submit", false, 'class="sub next"', false);
|
||||
print_submit_button (__('Create'), "submit", false, 'class="sub wand"', false);
|
||||
}
|
||||
|
||||
// End table
|
||||
|
|
|
@ -40,11 +40,13 @@ if ($delete != ""){
|
|||
rename ($source, $config["homedir"]."/extensions/ext_backup/$name.php");
|
||||
}
|
||||
|
||||
$table->width = '95%';
|
||||
|
||||
$table->width = '500px';
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
if (give_acl ($config['id_user'], 0, "PM")){
|
||||
$table->head[1] = __('Delete');
|
||||
$table->align[1] = "center";
|
||||
}
|
||||
$table->data = array ();
|
||||
|
||||
|
|
Loading…
Reference in New Issue