2009-11-21 Raul Mateos <raulofpandora@gmail.com>

* extensions/*.php: Changed title for all extensions, improving common
	apparence. By the way... It's my brithday!!!

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2121 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
raulmateos 2009-11-21 13:53:10 +00:00
parent bb69f81d1b
commit 4cff6115e5
6 changed files with 28 additions and 16 deletions

View File

@ -1,3 +1,8 @@
2009-11-21 Raul Mateos <raulofpandora@gmail.com>
* extensions/*.php: Changed title for all extensions, improving common
apparence. By the way... It's my brithday!!!
2009-11-19 Miguel de Dios <miguel.dedios@artica.es>
* include/functions.php: change the "safe_input" for estandarize the input

View File

@ -55,7 +55,7 @@ function dbmgr_extension_main () {
$sql = (string) get_parameter ('sql');
echo "<h1>Database interface</h1>";
echo "<h2>".__('Extensions'). " &raquo; ".__('Database interface')."</h2>";
echo '<div class="notify">';
echo "This is an advanced extension to interface with Pandora FMS database directly from WEB console using native SQL sentences. Please note that <b>you can damage</b> your Pandora FMS installation if you don't know </b>exactly</b> what are you doing, this means that you can severily damage your setup using this extension. This extension is intended to be used <b>only by experienced users</b> with a depth knowledgue of Pandora FMS internals.";
echo '</div>';

View File

@ -16,12 +16,12 @@
function hello_extension_main () {
/* Here you can do almost all you want! */
echo "<h1>Hello world!</h1>";
echo "<h2>".__('Extensions'). " &raquo; Hello world!</h2>";
echo "This is a sample of minimal extension in the operation view";
}
function test() {
echo "<h2>Hello administration world</h2>";
echo "<h2>".__('Extensions'). " &raquo; Hello administration world</h2>";
echo "This is a sample of minimal extension in the godmode view";
}

View File

@ -38,9 +38,10 @@ function mainModuleGroups() {
WHERE id_module_group = %d AND disabled IS FALSE AND delete_pending IS FALSE)
GROUP BY estado";
echo "<h1>" . __("Combine table of agent group and module group") . "</h1>";
echo "<h2>".__('Extensions'). " &raquo; ";
echo __("Combined table of agent group and module group") . "</h2>";
echo "<p>" . __("This table show in columns the modules group and for rows agents group. The cell show all modules") . "</p>";
echo "<p>" . __("This table shows in columns the modules group and in rows agents group. The cell shows all modules") . "</p>";
$agentGroups = get_user_groups ($config['id_user']);
@ -119,17 +120,23 @@ function mainModuleGroups() {
echo "<p>" . __("The colours meaning:") .
"<ul>" .
'<li style="clear: both;">
<div style="float: left; background: #babdb6; height: 20px; width: 80px;margin-right: 5px; margin-bottom: 5px;">&nbsp;</div>' .
__("Grey when the cell for this model group and agent group hasn't modules.") . "</li>" .
<div style="float: left; background: #cc0000; height: 20px; width: 80px;margin-right: 5px; margin-bottom: 5px;">&nbsp;</div>' .
__("Red when the cell for this model group and agent has at least one module in critical state and the others in any state.") .
'</li>' .
'<li style="clear: both;">
<div style="float: left; background: #8ae234; height: 20px; width: 80px;margin-right: 5px; margin-bottom: 5px;">&nbsp;</div>' .
__("Green when the cell for this model group and agent has OK state all modules.") . "</li>" .
'<li style="clear: both;"><div style="float: left; background: #cc0000; height: 20px; width: 80px;margin-right: 5px; margin-bottom: 5px;">&nbsp;</div>' .
__("Red when the cell for this model group and agent has at least one module in critical state and the rest in any state.") . "</li>" .
'<li style="clear: both;"><div style="float: left; background: #fce94f; height: 20px; width: 80px;margin-right: 5px; margin-bottom: 5px;">&nbsp;</div>' .
__("Yellow when the cell for this model group and agent has at least one in warning state and the rest in green state.") . "</li>" .
<div style="float: left; background: #fce94f; height: 20px; width: 80px;margin-right: 5px; margin-bottom: 5px;">&nbsp;</div>' .
__("Yellow when the cell for this model group and agent has at least one in warning state and the others in green state.") .
'</li>' .
'<li style="clear: both;">
<div style="float: left; background: #8ae234; height: 20px; width: 80px;margin-right: 5px; margin-bottom: 5px;">&nbsp;</div>' .
__("Green when the cell for this model group and agent has OK state all modules.") .
'</li>' .
'<li style="clear: both;">
<div style="float: left; background: #babdb6; height: 20px; width: 80px;margin-right: 5px; margin-bottom: 5px;">&nbsp;</div>' .
__("Grey when the cell for this model group and agent group haven't modules.") .
'</li>' .
"</ul>" .
"</p>";
"</p>";
}
add_operation_menu_option("Modules groups", 'estado', 'module_groups/icon_menu.png');

View File

@ -16,7 +16,7 @@
function pluginreg_extension_main () {
global $config;
echo "<h2>Plugin registration</h2>";
echo "<h2>".__('Extensions'). " &raquo; ".__('Plugin registration')."</h2>";
echo "<div class=notify>";
echo __("This extension makes registration of server plugins more easy. Here you can upload a server plugin in Pandora FMS 3.x zipped format (.pspz). Please refer to documentation on how to obtain and use Pandora FMS Server Plugins.<br><br>You can get more plugins in our <a href='http://pandorafms.org/index.php?sec=community&sec2=repository&lng=en'>Public Resource Library</A>");

View File

@ -22,7 +22,7 @@ $db =& um_db_connect ('mysql', $config['dbhost'], $config['dbuser'],
$settings = um_db_load_settings ();
echo '<h2>'.__('Update manager').'</h2>';
echo '<h2>'.__('Extensions'). " &raquo; ". __('Update manager').'</h2>';
if ($settings->customer_key == FREE_USER) {
echo '<div class="notify" style="width: 80%; text-align:left;" >';