Subversion Repositories slis

Compare Revisions

Ignore whitespace Rev 5301 → Rev 5302

/slim/sources/trunk/slis-slim/debian/changelog
16,6 → 16,7
* Add lcs access for slis 4.1 in rootShell
* Add Host access for slis 4.1 in rootShell
* Add version selection in the supervision monitor check list
* Add version selection in the user config
 
-- Philippe Le Brouster <plb@ac-grenoble.fr> Wed, 30 Jul 2008 12:54:22 +0200
 
/slim/sources/trunk/slis-slim/scripts/monitor/monitor_check_list.php
51,18 → 51,33
global $with_record_count;
$with_record_count = &$_SESSION['with_record_count'];
 
global $with_check_version;
$with_check_version = &$_SESSION['with_check_version'];
 
$save_user_config = false;
 
if (isset($_GET["with_record_count"])){
$with_record_count= $_GET["with_record_count"];
$save_user_config = true;
}
if (isset($_GET["with_check_version"])){
$with_check_version= $_GET["with_check_version"];
$save_user_config = true;
}
 
if ($save_user_config) {
// save the config_slim of the user in DB
$config = $_SESSION['config_slim'];
$config['with_record_count']=$with_record_count;
$config['with_check_version']=$with_check_version;
 
$slim_user->config_slim = base64_encode(wddx_serialize_value($config));
$slim_user->modify();
}
 
 
 
print html_header($slis->name);
 
if ($slim_user->has_right("manage_check")) {
90,8 → 105,8
$cond="";
$mcs = array();
if (isset($slisVersion) && $slisVersion != "") {
$mcs = $Monitor_check->select_by_version($slisVersion,$cond,"priority,name");
if (isset($with_check_version) && $with_check_version != "") {
$mcs = $Monitor_check->select_by_version($with_check_version,$cond,"priority,name");
}
else {
$mcs = $Monitor_check->select($cond, "priority,name");
99,8 → 114,8
$table = new Table(1);
$table->set_no_i8n();
if (isset($slisVersion) && $slisVersion != "") {
$title = __("Monitor checks for the version: ") . $slisVersion;
if (isset($with_check_version) && $with_check_version != "") {
$title = __("Monitor checks for the version: ") . $with_check_version;
}
else {
$title = __("Monitor checks for all versions");
125,16 → 140,16
 
$vs = $VersionSlis->select("");
print "<p>\n";
$link = html_link("?slisVersion=","All Versions");
if (!isset($slisVersion) || $slisVersion == "") {
$link = html_link("?with_check_version=","All Versions");
if (!isset($with_check_version) || $with_check_version == "") {
print "<b>".$link."</b>";
} else {
print $link;
}
foreach($vs as $v) {
print " | ";
$link = html_link("?slisVersion=".$v->version_name,$v->version_name);
if (isset($slisVersion) && $slisVersion == $v->version_name) {
$link = html_link("?with_check_version=".$v->version_name,$v->version_name);
if (isset($with_check_version) && $with_check_version == $v->version_name) {
print "<b>".$link."</b>";
} else {
print $link;