.content {margin-top:-48px;}
";
}
function headerRss() {
global $set, $usr, $cF;
if ($usr['privs'] > 0 and $set['rssFeed']) {
echo ''."\n";
}
}
function topBar() {
global $set, $usr, $today;
if (!isset($set['logoPath'])) { $set['logoPath'] = ''; } //needed for a smooth upgrade
if ($set['logoPath']) {
$logo = "";
if ($set['backLinkUrl']) {
$logo = "{$logo}"; //logo is back link
}
echo "{$logo}\n
\n";
}
function sideMenu($groups) { //make hamburger menu
global $xx, $set, $usr, $opt;
echo "
";
echo "
{$xx['hdr_side_menu']}
❌ \n";
//display menu
echo "
\n"; //fixed group
echo "
{$xx['hdr_button_help']}
\n";
echo "
{$xx['hdr_button_print']}
\n";
echo "
\n";
if (strpos($groups,'gen')) {
echo "
\n"; //general group
echo "
{$xx['hdr_button_search']}
\n";
if ($usr['tnPrivs'] > '00') {
echo "
{$xx['hdr_button_tnails']}
\n";
}
if ($set['contButton']) {
echo "
{$xx['hdr_button_contact']}
\n";
}
echo "
\n";
}
if (strpos($groups,'adm') and $usr['privs'] >= 4) {
echo "
\n"; //admin group
if ($usr['privs'] == 9) {
echo "
{$xx['hdr_settings']}
\n";
}
echo "
{$xx['hdr_categories']}
\n";
echo "
{$xx['hdr_users']}
\n";
echo "
{$xx['hdr_groups']}
\n";
if ($usr['privs'] == 9) {
echo "
{$xx['hdr_database']}
\n";
echo "
{$xx['hdr_import_ics']}
\n";
echo "
{$xx['hdr_export_ics']}
\n";
echo "
{$xx['hdr_import_csv']}
\n";
echo "
{$xx['hdr_styling']}
\n";
}
echo "
\n";
}
if (strpos($groups,'lst')) {
echo "
\n"; //list group
if ($usr['privs'] > 4) {
echo "
{$xx['hdr_button_toap']}
\n";
}
echo "
{$xx['hdr_button_todo']}
\n";
echo "
{$xx['hdr_button_upco']}
\n";
echo "
\n";
}
echo "
\n";
}
function admMenu() {
global $xx, $opt, $usr;
if ($usr['privs'] >= 4) { //manager or admin rights
$optNames = array(90 => 'hdr_settings','hdr_categories','hdr_users','hdr_groups','hdr_database','hdr_import_ics','hdr_export_ics','hdr_import_csv','hdr_styling');
echo " \n";
}
}
function calButton () {
global $xx, $usr;
if ($usr['privs'] > 0) { //view rights
echo "\n";
}
}
function addButton() {
global $xx, $opt, $usr;
if ($usr['privs'] > 1) { //post rights
$cid = (count($opt['cC']) == 1 and $opt['cC'][0] != 0) ? $opt['cC'][0] : 0;
echo "\n";
}
unset($cid);
}
function prtButton () {
global $xx;
echo "\n";
}
function hlpButton($cPage) {
global $xx;
echo "\n";
}
function logButton() {
global $xx, $usr;
if ($usr['ID'] == 1) { //public user
echo "\n";
} else { //known user
echo "\n";
}
}
function menButton() {
global $xx;
echo "\n";
}
function urlButton() {
global $xx, $set;
if ($set['backLinkUrl'] and !$set['logoPath']) { //if no logo, display button
echo "\n";
}
}
function optButton() {
global $options, $xx;
if ($options) { //menus
echo "\n";
}
}
function nbCenter() {
global $options, $xx;
echo "
\n";
}
function viewButtons() {
global $xx, $set, $usr;
$viewButtons = $usr['ID'] == 1 ? $set['viewButsPub'] : $set['viewButsLog']; //view buttons to display
if ($viewButtons) {
foreach (explode(',',$viewButtons) as $viewNr) {
$label = $xx["hdr_view_{$viewNr}"];
echo "\n";
}
}
unset($viewButtons,$label);
}
function dateForm() {
global $xx, $opt, $lcI;
echo "\n";
}
function optPanel() { //make options panel
global $options, $xx, $set, $calID, $usr, $opt, $avViews, $dbSel, $lcI;
if (!$options) { return; } //no menus
echo "
{$xx['hdr_options_submit']}
\n
\n";
}
function toapList() { //make list with events to be approved
global $xx, $set, $opt, $usr, $evtList;
echo "
{$xx['hdr_toap_list']} ❌
\n";
$curT = strtotime($opt['cD'].' 12:00:00'); //current Unix time
$startD = date("Y-m-d", $curT - (7 * 86400)); //current date - 1 week
$endD = date("Y-m-d", $curT + (($set['lookaheadDays']-1) * 86400)); //current date + look ahead nr of days
$filter = '(c.`approve` = 1 AND e.`approved` = 0)'; //events in cat to be approved but not yet approved
retrieve($startD,$endD,'guc',$filter);
echo '