// // ------------------------------------------------------------------------- // // Original Author: Nobse, Bama // Author Website : http://www.e-xoops.de, http://service.bama-webdesign.de // License Type : GPL: See /manual/LICENSES/GPL.txt // ------------------------------------------------------------------------- // include("header.php"); include("cache/config.php"); if ($xoopsUser) { $group = $xoopsUser->groups(); }else{ $group[] = 3; } $anno = explode("|", $anoevent); $is = array_intersect ($group, $anno); if (count($is) > 0) { include(XOOPS_ROOT_PATH."/header.php"); $mytree = new XoopsTree($db->prefix('ecal_cat'), "cid", "pid"); global $xoopsUser, $db, $myts, $mytree; $month = isset($monat) ? $monat : $month; $year = isset($jahr) ? $jahr : $year; $heure = isset($heure) ? $heure : 9; $minute = isset($minute) ? $minute : 0; $heureend = isset($heureend) ? $heureend : 19; $minuteend = isset($minuteend) ? $minuteend : 0; echo ""; If (!$month && !$lastday && !$year) { if ($xoopsUser) { $useroffset = $xoopsUser->getVar("timezone_offset"); } else { $useroffset = $bcoosConfig['default_TZ']; } $usertimevent = (time() + (($useroffset - ($bcoosConfig['server_TZ'] - date('I'))) * 3600)); $day = date("j", $usertimevent); $month = date("m", $usertimevent); $year = date("Y", $usertimevent); } $query1 = $db->query("SELECT lid, location FROM ".$db->prefix("ecal_location")." ORDER BY location ASC"); OpenTable(); $lastday = 1; while (checkdate($month,$lastday,$year)) { $lastday++; } if ($moderat == '1') { echo ""._ADDN."

"._CAL_YESMODERATE."


"; } else { echo ""._ADDN."

"._CAL_NOMODERATE."


"; } //*************************************************************************** echo "
"; echo _CAL_MONATH."  "; echo _CAL_JAHR."  "; echo ""; echo "
"; //********************************************************************************** echo ""._CAL_SELECT."

"; echo ""; $nextmonth = $month+1; $nextyear = $year; if ($nextmonth == 13) { $nextmonth = 1; $nextyear = $year + 1; } $lastmonth = $month-1; $lastyear = $year; if ($lastmonth == 0) { $lastmonth = 12; $lastyear = $year-1; } echo ""; echo "
"; echo getMonthName($month); echo " $year"; littlecal($month,$year); echo "
"; echo "
"; echo ""._BAC.""; echo "         "; echo ""._FOR.""; echo "

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if ( !$xoopsUser ) { $calvisit=$bcoosConfig['anonymous']; echo ""; } else { $iddds =$xoopsUser->getVar("uname", "E"); $idmail =$xoopsUser->getVar("email", "E"); echo ""; } echo ""; if (intval($locat_yn) == 1){ echo ""; } if ($xoopsUser) { echo ""; } $currentday = date("j", time()); echo ""; echo ""; $chk1 = ''; $chk0 = ''; $high == 1 ? $chk1 = " checked='checked'" : $chk0 = " checked='checked'"; echo ""; echo ""; echo ""; echo ""; echo "

"._CAL_WIEDERHOLEN."
"._CAL_WIEDERHOLENJEDEN."
"._CALWIEDERHOL.""; echo _D." "; echo _CAL_MONATH." "; echo _CAL_JAHR."

"._USER."
"._USER."$iddds
"._CATEGORY.':'.""; echo $mytree->makeMySelBox("title", "title", $cid); echo "
"._CAL_LOCATION.""; echo ""; if (intval($user_locyn) == 1){ echo "  "; echo ""; } echo "
"._CAL_PRIVAT1.""; if ($privat == 0){$sel1 = " selected='selected'";}else{$sel2 = " selected='selected'";} echo "
"._T.""; echo " 
"._CAL_END.""; echo " 
"._CAL_HIGH.""; echo ""._YES.""; echo ""._NO."
"._SUBJECT."
"._DESCRIPTION.""; $desc = new XoopsFormDhtmlTextArea('', 'description1', $description1, 10, 50); echo $desc->render(); echo "
"._CAL_BILDURL."
"; if ($moderat == '1') { echo ""; } else { echo ""; } echo "


"; form_ret_ecal($month, $year); CloseTable(); include(XOOPS_ROOT_PATH."/footer.php"); // } }else{ redirect_header("index.php", 3, _NO_AUTHORIZ); } ?>