Example #1
0
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
$usersmenus = new usersMenus();
if (!$usersmenus->AsSquidAdministrator) {
    $tpl = new templates();
    $alert = $tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
    echo "alert('{$alert}');";
    die;
}
if (isset($_GET["status"])) {
    page();
    exit;
}
if (isset($_GET["tools"])) {
    tools();
    exit;
}
if (isset($_GET["blkupdates-status"])) {
    blacklist_status();
    exit;
}
if (isset($_GET["category-details"])) {
    categories_details();
    exit;
}
if (isset($_GET["category-details-md"])) {
    categories_details_list();
    exit;
}
if (isset($_GET["category-details-md-title"])) {
Example #2
0
if (!$q) {
    $tool_content .= "<div class='alert alert-warning'>{$langNoEBook}</div>";
} else {
    $tool_content .= "<div class='table-responsive'>";
    $tool_content .= "<table class='table-default'>\n     <tr>\n       <th class = 'text-left'>{$langEBook}</th>" . ($is_editor ? "<th width='70' class='text-center'>" . icon('fa-gears') . "</th>" : '<th>&nbsp;</th>') . "\n     </tr>";
    $k = 0;
    $num = count($q);
    foreach ($q as $r) {
        $vis_class = $r->visible ? '' : 'not_visible';
        if (is_null($r->sid)) {
            $title_link = q($r->title) . ' <i>(' . $langEBookNoSections . ')</i>';
        } else {
            $title_link = "<a href='show.php/{$course_code}/{$r->id}/'>" . q($r->title) . "</a>";
        }
        $warning = is_null($r->sid) ? " <i>({$langInactive})</i>" : '';
        $tool_content .= "<tr class = '{$vis_class}'>\n                <td>{$title_link}</td>\n                 <td>" . tools($r->id, $k, $num, $r->visible) . "</td></tr>";
        $k++;
    }
    $tool_content .= "</table>";
    $tool_content .= "</div>";
}
draw($tool_content, 2, null, $head_content);
/**
 * @brief display action button
 * @global type $is_editor
 * @global type $langModify
 * @global type $langDelete
 * @global type $langMove
 * @global type $langDown
 * @global type $langUp
 * @global type $langEBookDelConfirm
Example #3
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	
	
$usersmenus=new usersMenus();
if(!$usersmenus->AsSquidAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();	
}
if(isset($_GET["status"])){page();exit;}
if(isset($_GET["tools"])){tools();exit;}
if(isset($_GET["blkupdates-status"])){blacklist_status();exit;}
if(isset($_GET["category-details"])){categories_details();exit;}
if(isset($_GET["category-details-md"])){categories_details_list();exit;}
if(isset($_GET["category-details-md-title"])){categories_details_title();exit;}
if(isset($_GET["pattern-database-title"])){blacklist_title();exit;}
if(isset($_GET["events"])){blacklist_events();exit;}



if(isset($_POST["reprocess"])){reprocess();exit;}
if(isset($_POST["update-now"])){update_now();exit;}


tabs();

Example #4
0
     </tr>";

    $k = 0;
    $num = count($q);
    foreach ($q as $r) {
        $vis_class = $r->visible ? '' : 'not_visible';
        if (is_null($r->sid)) {
            $title_link = q($r->title) . ' <i>(' . $langEBookNoSections . ')</i>';
        } else {
            $title_link = "<a href='show.php/$course_code/$r->id/'>" . q($r->title) . "</a>";
        }
        $warning = is_null($r->sid) ? " <i>($langInactive)</i>" : '';
        $tool_content .= "<tr class = '$vis_class'>
                <td>$title_link</td>
                 <td class='option-btn-cell'>".
                   tools($r->id, $k, $num, $r->visible) . 
                "</td></tr>";
        $k++;
    }
    $tool_content .= "</table>";
    $tool_content .= "</div>";
}

draw($tool_content, 2, null, $head_content);


/**
 * @brief display action button
 * @global type $is_editor
 * @global type $langModify
 * @global type $langDelete