|
From: <txm...@us...> - 2012-06-16 13:06:40
|
Revision: 9657
http://xoops.svn.sourceforge.net/xoops/?rev=9657&view=rev
Author: txmodxoops
Date: 2012-06-16 13:06:30 +0000 (Sat, 16 Jun 2012)
Log Message:
-----------
Updated
Reformat folders
Added Paths:
-----------
XoopsModules/fullcalendar/releases/1.01/modules/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/about.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_footer.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_header.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/delete_events.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/events.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/menu.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/blocks/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/blocks/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/fullcalendar_events.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.css
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.print.css
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/style.css
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/changelog.txt
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/credits.txt
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/install.txt
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/lang_diff.txt
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/licence.txt
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/readme.txt
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/events.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/header.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/32/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/32/addevent.png
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/32/dashboard.png
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/32/deleteallevents.png
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/32/editevent.png
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/32/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/default_slogo.png
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/icons/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/icons/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/icons/off.png
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/icons/on.png
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/menu/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/menu/bg.png
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/menu/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/menu/left_both.png
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/menu/right_both.png
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/images/txmodxoops_logo.png
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/include/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/include/config.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/include/functions.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/include/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/include/install.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/index.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/js/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/js/fullcalendar.js
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/js/fullcalendar.min.js
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/js/gcal.js
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/js/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/js/jqinit.js
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/js/json-events.js
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/json-events.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/admin.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/help/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/help/help.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/help/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/main.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/english/modinfo.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/admin.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/help/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/help/help.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/help/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/main.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/language/italian/modinfo.php
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/sql/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/sql/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/sql/mysql.sql
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/admin/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/admin/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/blocks/
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/blocks/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/fullcalendar_events.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/fullcalendar_footer.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/fullcalendar_header.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/fullcalendar_index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/templates/index.html
XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/xoops_version.php
XoopsModules/fullcalendar/releases/1.01/modules/system/
XoopsModules/fullcalendar/releases/1.01/modules/system/templates/
XoopsModules/fullcalendar/releases/1.01/modules/system/templates/system_barsocials.html
XoopsModules/fullcalendar/releases/1.01/modules/system/templates/system_fbcomments.html
XoopsModules/fullcalendar/releases/1.01/modules/system/xoops_version.php
XoopsModules/fullcalendar/releases/1.01/themes/
XoopsModules/fullcalendar/releases/1.01/themes/yourtheme/
XoopsModules/fullcalendar/releases/1.01/themes/yourtheme/css/
XoopsModules/fullcalendar/releases/1.01/themes/yourtheme/css/style.css
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/about.php
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/about.php (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/about.php 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1,34 @@
+<?php
+/**
+ * ****************************************************************************
+ * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
+ * ****************************************************************************
+ * FULLCALENDAR - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * Created by TDMCreate version 1.37
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * @license GNU GPL see License
+ * @since 2.5.0
+ * @package fullcalendar
+ * @author TXMod Xoops (Timgno) ( su...@tx... )
+ *
+ * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $
+ * ****************************************************************************
+ */
+include "admin_header.php";
+xoops_cp_header();
+echo $adminMenu->addNavigation("about.php");
+echo $adminMenu->renderabout('25J998Y3QEDZW', false);
+include "admin_footer.php";
\ No newline at end of file
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_footer.php
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_footer.php (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_footer.php 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1,35 @@
+<?php
+/**
+ * ****************************************************************************
+ * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
+ * ****************************************************************************
+ * FULLCALENDAR - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * Created by TDMCreate version 1.37
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * @license GNU GPL see License
+ * @since 2.5.0
+ * @package fullcalendar
+ * @author TXMod Xoops (Timgno) ( su...@tx... )
+ *
+ * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $
+ * ****************************************************************************
+ */
+echo "<div align='center'><a href='http://www.xoops.org' target='_blank'>
+ <img src='".$pathIcon32."/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>";
+echo "<div class='center smallsmall italic pad5'>
+ <strong>" . $xoopsModule->getVar('name') . "</strong> "._AM_FULLCALENDAR_MAINTAINEDBY."
+ <a href='http://www.txmodxoops.org/modules/newbb' title='Visit TXMod Xoops Community' class='tooltip' rel='external'>TXMod Xoops Community</a></div>";
+xoops_cp_footer();
\ No newline at end of file
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_header.php
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_header.php (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/admin_header.php 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1,68 @@
+<?php
+/**
+ * ****************************************************************************
+ * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
+ * ****************************************************************************
+ * FULLCALENDAR - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * Created by TDMCreate version 1.37
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * @license GNU GPL see License
+ * @since 2.5.0
+ * @package fullcalendar
+ * @author TXMod Xoops (Timgno) ( su...@tx... )
+ *
+ * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $
+ * ****************************************************************************
+ */
+
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
+include_once XOOPS_ROOT_PATH . '/include/cp_header.php';
+include_once '../include/config.php';
+include_once '../include/functions.php';
+
+$thisDirname = $GLOBALS['xoopsModule']->getVar('dirname');
+
+$pathIcon16 = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons16');
+$pathIcon32 = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons32');
+$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
+
+//load class
+$eventsHandler=& xoops_getModuleHandler('fullcalendar_events', $thisDirname);
+
+$myts =& MyTextSanitizer::getInstance();
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
+
+$xoopsTpl->assign('pathIcon16', $pathIcon16);
+$xoopsTpl->assign('pathIcon32', $pathIcon32);
+//xoops_cp_header();
+
+//Load languages
+xoops_loadLanguage('admin', $thisDirname);
+xoops_loadLanguage('modinfo', $thisDirname);
+xoops_loadLanguage('main', $thisDirname);
+
+// Locad admin menu class
+if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){
+ include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
+}else{
+ redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false);
+}
+
+$adminMenu = new ModuleAdmin();
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/delete_events.php
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/delete_events.php (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/delete_events.php 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1,121 @@
+<?php
+/**
+ * ****************************************************************************
+ * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
+ * ****************************************************************************
+ * FULLCALENDAR - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * Created by TDMCreate version 1.37
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * @license GNU GPL see License
+ * @since 2.5.0
+ * @package fullcalendar
+ * @author TXMod Xoops (Timgno) ( su...@tx... )
+ *
+ * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $
+ * ****************************************************************************
+ */
+include "admin_header.php";
+xoops_cp_header();
+//It recovered the value of argument op in URL$
+$op = fullcalendar_CleanVars($_REQUEST, 'op', 'list', 'string');
+switch ($op)
+{
+ case "prune_events":
+ default:
+ include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
+ echo $adminMenu->addNavigation('delete_events.php');
+ echo '<br /><br /><br />';
+ $sform = new XoopsThemeForm(_AM_FULLCALENDAR_PRUNEEVENTS, 'pruneform', $_SERVER["REQUEST_URI"], 'post');
+ $sform->addElement(new XoopsFormTextDateSelect(_AM_FULLCALENDAR_PRUNE_BEFORE, 'prune_date',15,time()), true);
+ $onlyexpired = new xoopsFormCheckBox(_AM_FULLCALENDAR_PRUNE_CAPTIONEXPIREDONLY, 'onlyexpired');
+ $onlyexpired->addOption(1, _AM_FULLCALENDAR_PRUNE_EXPIREDONLY);
+ $sform->addElement($onlyexpired, false);
+ $sform->addElement(new XoopsFormHidden('op', 'confirmbeforetoprune'), false);
+ $eventslist = new XoopsFormSelect(_AM_FULLCALENDAR_PRUNE_EVENTS, 'pruned_events','',5,true);
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("event_id ASC, event_title");
+ $criteria->setOrder("ASC");
+ $events_arr = $eventsHandler->getAll($criteria);
+ if(count($events_arr)) {
+ foreach ($events_arr as $oneevent) {
+ $eventslist->addOption($oneevent->getVar('event_id'),$oneevent->getVar('event_title'));
+ }
+ }
+ $eventslist->setDescription(_AM_FULLCALENDAR_EXPORT_PRUNE_DSC);
+ $sform->addElement($eventslist,false);
+ $button_tray = new XoopsFormElementTray('' ,'');
+ $submit_btn = new XoopsFormButton('', 'post', _SUBMIT, 'submit');
+ $button_tray->addElement($submit_btn);
+ $sform->addElement($button_tray);
+ $sform->display();
+ break;
+
+ case "confirmbeforetoprune":
+ $events = $eventsHandler->get($_GET['event_id']);
+ $eventlist = '';
+ if(isset($_POST['pruned_events'])) {
+ $eventlist = implode(',',$_POST['pruned_events']);
+ }
+ $expired = 0;
+ if(isset($_POST['onlyexpired'])) {
+ $expired = intval($_POST['onlyexpired']);
+ }
+ $criteria = new CriteriaCompo();
+ $criteria->add(new Criteria("event_id", $_GET['event_id']));
+ $criteria->add(new Criteria("event_end", $_GET['event_end']));
+ $count = $eventsHandler->getCount($criteria);
+ $date = $_POST['prune_date'];
+ $timestamp = mktime( 0, 0, 0, intval(substr($date, 5, 2)), intval(substr($date, 8, 2)), intval(substr($date, 0, 4)));
+ if($count) {
+ $displaydate = formatTimestamp($timestamp);
+ $msg = sprintf(_AM_FULLCALENDAR_PRUNE_CONFIRM, $displaydate, $count);
+ xoops_confirm(array( 'op' => 'delete_allevents', "event_id" => $_REQUEST["event_id"], 'expired' => $expired, 'pruned_events' => $eventlist, 'prune_date' => $timestamp, 'ok' => 1), 'delete_events.php', $msg);
+ }
+ unset($events);
+ break;
+
+ case "delete_allevents":
+ $events = $eventsHandler->get($_GET['event_id']);
+ $timestamp = intval($_POST['prune_date']);
+ $expired = intval($_POST['expired']);
+ $criteria = new CriteriaCompo(new Criteria("event_id", $_GET['event_id']));
+ $eventlist = $eventsHandler->getAll($criteria);
+ if(isset($_POST['pruned_events'])) {
+ $eventlist=$_POST['pruned_events'];
+ }
+ if( intval($_POST['ok']) == 1 ) {
+ $criteria = new CriteriaCompo(new Criteria("event_id", 0, '>'));
+ $criteria->add(new Criteria("event_end", $_GET['event_end']));
+ $count = $eventsHandler->getCount($criteria);
+ $msg = sprintf(_AM_FULLCALENDAR_PRUNE_DELETED,$count);
+ $events->DeleteBeforeDate($timestamp, $expired, $eventlist);
+
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("events.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($eventsHandler->delete($events)) {
+ redirect_header( 'delete_events.php', 3, $msg);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ }
+ unset($events);
+ }
+ break;
+}
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/events.php
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/events.php (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/events.php 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1,203 @@
+<?php
+/**
+ * ****************************************************************************
+ * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
+ * ****************************************************************************
+ * FULLCALENDAR - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * Created by TDMCreate version 1.37
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * @license GNU GPL see License
+ * @since 2.5.0
+ * @package fullcalendar
+ * @author TXMod Xoops (Timgno) ( su...@tx... )
+ *
+ * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $
+ * ****************************************************************************
+ */
+include "admin_header.php";
+xoops_cp_header();
+//It recovered the value of argument op in URL$
+$op = fullcalendar_CleanVars($_REQUEST, 'op', 'list', 'string');
+switch ($op)
+{
+ case "list":
+ default:
+ echo $adminMenu->addNavigation('events.php');
+ $adminMenu->addItemButton(_AM_FULLCALENDAR_NEWEVENT, 'events.php?op=new_event', 'add');
+ echo $adminMenu->renderButton();
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("event_id ASC, event_title");
+ $criteria->setOrder("ASC");
+ $numrows = $eventsHandler->getCount();
+ if (isset($_REQUEST['limit'])) {
+ $criteria->setLimit($_REQUEST['limit']);
+ $limit = $_REQUEST['limit'];
+ } else {
+ $criteria->setLimit($GLOBALS['xoopsModuleConfig']['adminperpage']);
+ $limit = $GLOBALS['xoopsModuleConfig']['adminperpage'];
+ }
+ if (isset($_REQUEST['start'])) {
+ $criteria->setStart($_REQUEST['start']);
+ $start = $_REQUEST['start'];
+ } else {
+ $criteria->setStart(0);
+ $start = 0;
+ }
+ $events_arr = $eventsHandler->getall($criteria);
+ if ( $numrows > $limit ) {
+ include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
+ $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=list&limit=' . $limit);
+ $pagenav = $pagenav->renderNav(4);
+ } else {
+ $pagenav = '';
+ }
+ //Affichage du tableau
+ if ($numrows>0)
+ {
+ echo "<table width='100%' cellspacing='1' class='outer'>
+ <tr>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_ID."</th>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_TITLE."</th>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_DESCRIPTION."</th>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_START."</th>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_END."</th>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_ALLDAY."</th>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_WEIGHT."</th>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_DISPLAY."</th>
+ <th align='center' width='10%'>"._AM_FULLCALENDAR_FORMACTION."</th>
+ </tr>";
+
+ $class = "odd";
+ foreach (array_keys($events_arr) as $i)
+ {
+ echo "<tr class='".$class."'>";
+ $class = ($class == "even") ? "odd" : "even";
+ echo "<td class='center'>".$i."</td>";
+ echo "<td class='center'>".$events_arr[$i]->getVar("event_title")."</td>";
+ echo "<td class='center'>".$events_arr[$i]->getVar("event_description")."</td>";
+ echo "<td class='center'>".formatTimeStamp($events_arr[$i]->getVar("event_start"), 'm')."</td>";
+ echo "<td class='center'>".formatTimeStamp($events_arr[$i]->getVar("event_end"), 'm')."</td>";
+ $fc_events_allday = $events_arr[$i]->getVar('event_allday');
+ $fc_event_allday = ($fc_events_allday == 1) ? _YES : _NO;
+ echo "<td class='center'>".$fc_event_allday."</td>";
+ echo "<td class='center'>".$events_arr[$i]->getVar("event_weight")."</td>";
+
+ if ( $events_arr[$i]->getVar("event_display") == 1 ) {
+ echo "<td class='center'><a href='./events.php?op=update_display&event_id=".$i."&event_display=0'><img src='".$pathIcon16."/on.png' border='0' alt='"._AM_FULLCALENDAR_ONLINE."' title='"._AM_FULLCALENDAR_ONLINE."'></a></td>";
+ } else {
+ echo "<td class='center'><a href='./events.php?op=update_display&event_id=".$i."&event_display=1'><img src='".$pathIcon16."/off.png' border='0' alt='"._AM_FULLCALENDAR_OFFLINE."' title='"._AM_FULLCALENDAR_OFFLINE."'></a></td>";
+ }
+
+ echo "<td align='center' width='10%'>
+ <a href='events.php?op=edit_event&event_id=".$events_arr[$i]->getVar("event_id")."'><img src=".$pathIcon16."/edit.png alt='"._EDIT."' title='"._EDIT."'></a>
+ <a href='events.php?op=delete_event&event_id=".$events_arr[$i]->getVar("event_id")."'><img src=".$pathIcon16."/delete.png alt='"._DELETE."' title='"._DELETE."'></a>
+ </td>";
+ echo "</tr>";
+ }
+ echo "</table><br /><br />";
+ echo "<div class='center'>".$pagenav."</div>";
+ } else {
+ echo "<table width='100%' cellspacing='1' class='outer'>
+ <tr>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_ID."</th>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_TITLE."</th>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_DESCRIPTION."</th>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_START."</th>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_END."</th>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_ALLDAY."</th>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_WEIGHT."</th>
+ <th class='center'>"._AM_FULLCALENDAR_EVENT_DISPLAY."</th>
+ <th align='center' width='10%'>"._AM_FULLCALENDAR_FORMACTION."</th>
+ </tr>";
+ echo "</table><br /><br />";
+ }
+
+ break;
+
+ case "new_event":
+ echo $adminMenu->addNavigation("events.php");
+ $adminMenu->addItemButton(_AM_FULLCALENDAR_EVENTSLIST, 'events.php?op=list', 'list');
+ echo $adminMenu->renderButton();
+
+ $obj =& $eventsHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "save_event":
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("events.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["event_id"])) {
+ $obj =& $eventsHandler->get($_REQUEST["event_id"]);
+ } else {
+ $obj =& $eventsHandler->create();
+ }
+ //Form event_display
+ $verif_event_allday = ($_REQUEST["event_allday"] == 1) ? "1" : "0";
+ //Form event_display
+ $verif_event_display = ($_REQUEST["event_display"] == 1) ? "1" : "0";
+ //Form events
+ $obj->setVars(array("event_title" => $_POST["event_title"], "event_description" => $_POST["event_description"], "event_start" => fullcalendar_convertDate($_POST["event_start"]), "event_end" => fullcalendar_convertDate($_POST["event_end"]), "event_url" => $_POST["event_url"], "event_allday" => $_POST["event_allday"], "event_weight" => $_POST["event_weight"], "event_display" => $verif_event_display));
+
+ if ($eventsHandler->insert($obj)) {
+ redirect_header("events.php?op=list", 2, _AM_FULLCALENDAR_FORMOK);
+ }
+
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ $form->display();
+ break;
+
+ case "edit_event":
+ echo $adminMenu->addNavigation("events.php");
+ $adminMenu->addItemButton(_AM_FULLCALENDAR_NEWEVENT, 'events.php?op=new_event', 'add');
+ $adminMenu->addItemButton(_AM_FULLCALENDAR_EVENTSLIST, 'events.php?op=list', 'list');
+ echo $adminMenu->renderButton();
+ $obj = $eventsHandler->get($_REQUEST["event_id"]);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+
+ case "delete_event":
+ $obj =& $eventsHandler->get($_REQUEST["event_id"]);
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if ( !$GLOBALS["xoopsSecurity"]->check() ) {
+ redirect_header("events.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($eventsHandler->delete($obj)) {
+ redirect_header("events.php", 3, _AM_FULLCALENDAR_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(array("ok" => 1, "event_id" => $_REQUEST["event_id"], "op" => "delete_event"), $_SERVER["REQUEST_URI"], sprintf(_AM_FULLCALENDAR_FORMSUREDEL, $obj->getVar("event_title")));
+ }
+ break;
+
+ case "update_display":
+ if (isset($_GET["event_id"])) {
+ $obj =& $eventsHandler->get($_GET["event_id"]);
+ }
+ $obj->setVar("event_display", $_REQUEST["event_display"]);
+ if ($eventsHandler->insert($obj)) {
+ redirect_header("events.php", 3, _AM_FULLCALENDAR_FORMOK);
+ }
+ echo $obj->getHtmlErrors();
+ break;
+}
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.html
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.html (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.html 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.php
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.php (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/index.php 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1,47 @@
+<?php
+/**
+ * ****************************************************************************
+ * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
+ * ****************************************************************************
+ * FULLCALENDAR - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * Created by TDMCreate version 1.37
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * @license GNU GPL see License
+ * @since 2.5.0
+ * @package fullcalendar
+ * @author TXMod Xoops (Timgno) ( su...@tx... )
+ *
+ * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $
+ * ****************************************************************************
+ */
+include "admin_header.php";
+xoops_cp_header();
+ //count "total events"
+ $count_events = $eventsHandler->getCount();
+ //count "total expired events"
+ $criteria = new CriteriaCompo(new Criteria('event_end', date( _DATESTRING ), '<')); //time()
+ $count_expired_events = $eventsHandler->getCount($criteria);
+ $r = '#FF0000'; /* Red */ $g = '#00AA00'; // Green
+ $expired = ($count_events == 0) && ($count_expired_events == 0);
+ // InfoBox events
+ $adminMenu->addInfoBox(_AM_FULLCALENDAR_EVENTS);
+ $adminMenu->addInfoBoxLine(_AM_FULLCALENDAR_EVENTS,_AM_FULLCALENDAR_THEREARE_EVENTS, $count_events, ($count_events != 0) ? $g : $r);
+ $adminMenu->addInfoBoxLine(_AM_FULLCALENDAR_EVENTS,_AM_FULLCALENDAR_THEREARE_EXPIRED_EVENTS, $count_events, $expired ? $g : $r );
+ // Render Index
+ echo $adminMenu->addNavigation("index.php");
+ echo $adminMenu->renderIndex();
+include "admin_footer.php";
+?>
\ No newline at end of file
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/menu.php
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/menu.php (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/admin/menu.php 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1,47 @@
+<?php
+/**
+ * ****************************************************************************
+ * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
+ * ****************************************************************************
+ * FULLCALENDAR - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * Created by TDMCreate version 1.37
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * @license GNU GPL see License
+ * @since 2.5.0
+ * @package fullcalendar
+ * @author TXMod Xoops (Timgno) ( su...@tx... )
+ *
+ * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $
+ * ****************************************************************************
+ */
+$dirname = basename( dirname( dirname( __FILE__ ) ) ) ;
+$module_handler =& xoops_gethandler("module");
+$xoopsModule =& XoopsModule::getByDirname($dirname);
+$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid"));
+$pathImageAdmin = $moduleInfo->getInfo("icons32");
+$adminmenu = array(); $i = 1;
+$adminmenu[$i]["title"] = _MI_FULLCALENDAR_ADMENU1;
+$adminmenu[$i]["link"] = "admin/index.php";
+$adminmenu[$i]["icon"] = "images/32/dashboard.png"; $i++;
+$adminmenu[$i]["title"] = _MI_FULLCALENDAR_ADMENU2;
+$adminmenu[$i]["link"] = "admin/events.php";
+$adminmenu[$i]["icon"] = "images/32/addevent.png"; $i++;
+$adminmenu[$i]["title"] = _MI_FULLCALENDAR_ADMENU3;
+$adminmenu[$i]["link"] = "admin/delete_events.php";
+$adminmenu[$i]["icon"] = "images/32/deleteallevents.png"; $i++;
+$adminmenu[$i]["title"] = _MI_FULLCALENDAR_ADMENU4;
+$adminmenu[$i]["link"] = "admin/about.php";
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/about.png"; unset( $i );
\ No newline at end of file
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/blocks/index.html
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/blocks/index.html (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/blocks/index.html 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/fullcalendar_events.php
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/fullcalendar_events.php (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/fullcalendar_events.php 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1,139 @@
+<?php
+/**
+ * ****************************************************************************
+ * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
+ * ****************************************************************************
+ * FULLCALENDAR - MODULE FOR XOOPS
+ * Copyright (c) 2007 - 2012
+ * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * Created by TDMCreate version 1.37
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting
+ * source code which is considered copyrighted (c) material of the
+ * original comment or credit authors.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ * ---------------------------------------------------------------------------
+ * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * @license GNU GPL see License
+ * @since 2.5.0
+ * @package fullcalendar
+ * @author TXMod Xoops (Timgno) ( su...@tx... )
+ *
+ * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $
+ * ****************************************************************************
+ */
+if (!defined("XOOPS_ROOT_PATH")) {
+ die("XOOPS root path not defined");
+}
+
+class fullcalendar_events extends XoopsObject
+{
+ //Constructor
+ function __construct()
+ {
+ $this->XoopsObject();
+ $this->initVar("event_id", XOBJ_DTYPE_INT, '0', false, 8);
+ $this->initVar("event_title", XOBJ_DTYPE_TXTBOX, 'Event Title', false, 255);
+ $this->initVar("event_description", XOBJ_DTYPE_TXTAREA, 'Event Description', false);
+ $this->initVar("event_start", XOBJ_DTYPE_LTIME, null, false);
+ $this->initVar("event_end", XOBJ_DTYPE_LTIME, null, false);
+ $this->initVar("event_url", XOBJ_DTYPE_TXTBOX, 'http://www.txmodxoops.org', false, 255);
+ $this->initVar("event_allday", XOBJ_DTYPE_INT, '0', false, 1);
+ $this->initVar("event_weight", XOBJ_DTYPE_INT, '0', false, 11);
+ $this->initVar("event_display", XOBJ_DTYPE_INT, '0', false, 1);
+ }
+
+ function fullcalendar_events()
+ {
+ $this->__construct();
+ }
+
+ function getForm($action = false)
+ {
+ global $xoopsDB, $xoopsModuleConfig;
+
+ if ($action === false) {
+ $action = $_SERVER["REQUEST_URI"];
+ }
+
+ $title = $this->isNew() ? sprintf(_AM_FULLCALENDAR_EVENT_ADD) : sprintf(_AM_FULLCALENDAR_EVENT_EDIT);
+
+ include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php");
+ $form = new XoopsThemeForm($title, "form", $action, "post", true);
+ $form->setExtra('enctype="multipart/form-data"');
+ // event_title
+ $form->addElement(new XoopsFormText(_AM_FULLCALENDAR_EVENT_TITLE, "event_title", 50, 255, $this->getVar("event_title")), true);
+ // event_description
+ $editor_configs=array();
+ $editor_configs["name"] ="event_description";
+ $editor_configs["value"] = $this->getVar("event_description", "e");
+ $editor_configs["rows"] = 5;
+ $editor_configs["cols"] = 50;
+ $editor_configs["width"] = "50%";
+ $editor_configs["height"] = "200px";
+ $editor_configs["editor"] = $GLOBALS["xoopsModuleConfig"]["fullcalendar_editor"];
+ $form->addElement( new XoopsFormEditor(_AM_FULLCALENDAR_EVENT_DESCRIPTION, "event_description", $editor_configs), false );
+ // event_start
+ $form->addElement(new XoopsFormDateTime(_AM_FULLCALENDAR_EVENT_START, "event_start", 15, $this->getVar("event_start")), true);
+ // event_end
+ $form->addElement(new XoopsFormDateTime(_AM_FULLCALENDAR_EVENT_END, "event_end", 15, $this->getVar("event_end")), true);
+ // event_url
+ $form->addElement(new XoopsFormText(_AM_FULLCALENDAR_EVENT_URL, "event_url", 50, 255, $this->getVar("event_url")), false);
+ // event_weight
+ $form->addElement(new XoopsFormText(_AM_FULLCALENDAR_EVENT_WEIGHT, "event_weight", 5, 15, $this->getVar("event_weight")), true);
+ // options_tray
+ $options_tray = new XoopsFormElementTray(_OPTIONS, '<br />');
+ // event_allday
+ $event_allday = $this->isNew() ? 0 : $this->getVar("event_allday");
+ $check_event_allday = new XoopsFormCheckBox(" ", "event_allday", $event_allday);
+ $check_event_allday->addOption(1, _AM_FULLCALENDAR_EVENT_ALLDAY);
+ $options_tray->addElement($check_event_allday);
+ // event_display
+ $event_display = $this->isNew() ? 0 : $this->getVar("event_display");
+ $check_event_display = new XoopsFormCheckBox(" ", "event_display", $event_display);
+ $check_event_display->addOption(1, _AM_FULLCALENDAR_EVENT_DISPLAY);
+ $options_tray->addElement($check_event_display);
+ $form->addElement($options_tray);
+
+ // save_event
+ $form->addElement(new XoopsFormHidden("op", "save_event"));
+ $form->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit"));
+ return $form;
+ }
+
+ /**
+ * Delete events that were published before a given date
+ */
+ function DeleteBeforeDate($timestamp, $expired, $eventslist='')
+ {
+ global $xoopsModule;
+ $mid= $xoopsModule->getVar('mid');
+ $db =& XoopsDatabaseFactory::getDatabaseConnection();
+ $prefix = $db->prefix('fullcalendar_events');
+ $sql = 'SELECT event_id FROM '.$prefix.' WHERE event_start <=' . $timestamp;
+ if($expired) {
+ $sql .=' (AND event_end > 0 AND event_end <= '.time().')';
+ }
+ if(strlen(trim($eventslist))>0) {
+ $sql .=' AND event_id IN ('.$eventslist.')';
+ }
+ $result = $db->query($sql);
+ while ($myrow = $db->fetchArray($result)) {
+ $db->queryF('DELETE FROM '.$prefix.' WHERE event_id='.$myrow['event_id']); // Delete the event
+ }
+ return true;
+ }
+}
+class fullcalendarfullcalendar_eventsHandler extends XoopsPersistableObjectHandler
+{
+ function __construct(&$db)
+ {
+ parent::__construct($db, "fullcalendar_events", "fullcalendar_events", "event_id", "event_title");
+ }
+}
+?>
\ No newline at end of file
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/index.html
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/index.html (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/class/index.html 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.css
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.css (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.css 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1,618 @@
+/*
+ * FullCalendar v1.5.3 Stylesheet
+ *
+ * Copyright (c) 2011 Adam Shaw
+ * Dual licensed under the MIT and GPL licenses, located in
+ * MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
+ *
+ * Date: Mon Feb 6 22:40:40 2012 -0800
+ *
+ */
+
+
+.fc {
+ direction: ltr;
+ text-align: left;
+ }
+
+.fc table {
+ border-collapse: collapse;
+ border-spacing: 0;
+ }
+
+html .fc,
+.fc table {
+ font-size: 1em;
+ }
+
+.fc td,
+.fc th {
+ padding: 0;
+ vertical-align: top;
+ }
+
+
+
+/* Header
+------------------------------------------------------------------------*/
+
+.fc-header td {
+ white-space: nowrap;
+ }
+
+.fc-header-left {
+ width: 25%;
+ text-align: left;
+ }
+
+.fc-header-center {
+ text-align: center;
+ }
+
+.fc-header-right {
+ width: 25%;
+ text-align: right;
+ }
+
+.fc-header-title {
+ display: inline-block;
+ vertical-align: top;
+ }
+
+.fc-header-title h2 {
+ margin-top: 0;
+ white-space: nowrap;
+ }
+
+.fc .fc-header-space {
+ padding-left: 10px;
+ }
+
+.fc-header .fc-button {
+ margin-bottom: 1em;
+ vertical-align: top;
+ }
+
+/* buttons edges butting together */
+
+.fc-header .fc-button {
+ margin-right: -1px;
+ }
+
+.fc-header .fc-corner-right {
+ margin-right: 1px; /* back to normal */
+ }
+
+.fc-header .ui-corner-right {
+ margin-right: 0; /* back to normal */
+ }
+
+/* button layering (for border precedence) */
+
+.fc-header .fc-state-hover,
+.fc-header .ui-state-hover {
+ z-index: 2;
+ }
+
+.fc-header .fc-state-down {
+ z-index: 3;
+ }
+
+.fc-header .fc-state-active,
+.fc-header .ui-state-active {
+ z-index: 4;
+ }
+
+
+
+/* Content
+------------------------------------------------------------------------*/
+
+.fc-content {
+ clear: both;
+ }
+
+.fc-view {
+ width: 100%; /* needed for view switching (when view is absolute) */
+ overflow: hidden;
+ }
+
+
+
+/* Cell Styles
+------------------------------------------------------------------------*/
+
+.fc-widget-header, /* <th>, usually */
+.fc-widget-content { /* <td>, usually */
+ border: 1px solid #ccc;
+ }
+
+.fc-state-highlight { /* <td> today cell */ /* TODO: add .fc-today to <th> */
+ background: #ffc;
+ }
+
+.fc-cell-overlay { /* semi-transparent rectangle while dragging */
+ background: #9cf;
+ opacity: .2;
+ filter: alpha(opacity=20); /* for IE */
+ }
+
+
+
+/* Buttons
+------------------------------------------------------------------------*/
+
+.fc-button {
+ position: relative;
+ display: inline-block;
+ cursor: pointer;
+ }
+
+.fc-state-default { /* non-theme */
+ border-style: solid;
+ border-width: 1px 0;
+ }
+
+.fc-button-inner {
+ position: relative;
+ float: left;
+ overflow: hidden;
+ }
+
+.fc-state-default .fc-button-inner { /* non-theme */
+ border-style: solid;
+ border-width: 0 1px;
+ }
+
+.fc-button-content {
+ position: relative;
+ float: left;
+ height: 1.9em;
+ line-height: 1.9em;
+ padding: 0 .6em;
+ white-space: nowrap;
+ }
+
+/* icon (for jquery ui) */
+
+.fc-button-content .fc-icon-wrap {
+ position: relative;
+ float: left;
+ top: 50%;
+ }
+
+.fc-button-content .ui-icon {
+ position: relative;
+ float: left;
+ margin-top: -50%;
+ *margin-top: 0;
+ *top: -50%;
+ }
+
+/* gloss effect */
+
+.fc-state-default .fc-button-effect {
+ position: absolute;
+ top: 50%;
+ left: 0;
+ }
+
+.fc-state-default .fc-button-effect span {
+ position: absolute;
+ top: -100px;
+ left: 0;
+ width: 500px;
+ height: 100px;
+ border-width: 100px 0 0 1px;
+ border-style: solid;
+ border-color: #fff;
+ background: #444;
+ opacity: .09;
+ filter: alpha(opacity=9);
+ }
+
+/* button states (determines colors) */
+
+.fc-state-default,
+.fc-state-default .fc-button-inner {
+ border-style: solid;
+ border-color: #ccc #bbb #aaa;
+ background: #F3F3F3;
+ color: #000;
+ }
+
+.fc-state-hover,
+.fc-state-hover .fc-button-inner {
+ border-color: #999;
+ }
+
+.fc-state-down,
+.fc-state-down .fc-button-inner {
+ border-color: #555;
+ background: #777;
+ }
+
+.fc-state-active,
+.fc-state-active .fc-button-inner {
+ border-color: #555;
+ background: #777;
+ color: #fff;
+ }
+
+.fc-state-disabled,
+.fc-state-disabled .fc-button-inner {
+ color: #999;
+ border-color: #ddd;
+ }
+
+.fc-state-disabled {
+ cursor: default;
+ }
+
+.fc-state-disabled .fc-button-effect {
+ display: none;
+ }
+
+
+
+/* Global Event Styles
+------------------------------------------------------------------------*/
+
+.fc-event {
+ border-style: solid;
+ border-width: 0;
+ font-size: .85em;
+ cursor: default;
+ }
+
+a.fc-event,
+.fc-event-draggable {
+ cursor: pointer;
+ }
+
+a.fc-event {
+ text-decoration: none;
+ }
+
+.fc-rtl .fc-event {
+ text-align: right;
+ }
+
+.fc-event-skin {
+ border-color: #36c; /* default BORDER color */
+ background-color: #36c; /* default BACKGROUND color */
+ color: #fff; /* default TEXT color */
+ }
+
+.fc-event-inner {
+ position: relative;
+ width: 100%;
+ height: 100%;
+ border-style: solid;
+ border-width: 0;
+ overflow: hidden;
+ }
+
+.fc-event-time,
+.fc-event-title {
+ padding: 0 1px;
+ }
+
+.fc .ui-resizable-handle { /*** TODO: don't use ui-resizable anymore, change class ***/
+ display: block;
+ position: absolute;
+ z-index: 99999;
+ overflow: hidden; /* hacky spaces (IE6/7) */
+ font-size: 300%; /* */
+ line-height: 50%; /* */
+ }
+
+
+
+/* Horizontal Events
+------------------------------------------------------------------------*/
+
+.fc-event-hori {
+ border-width: 1px 0;
+ margin-bottom: 1px;
+ }
+
+/* resizable */
+
+.fc-event-hori .ui-resizable-e {
+ top: 0 !important; /* importants override pre jquery ui 1.7 styles */
+ right: -3px !important;
+ width: 7px !important;
+ height: 100% !important;
+ cursor: e-resize;
+ }
+
+.fc-event-hori .ui-resizable-w {
+ top: 0 !important;
+ left: -3px !important;
+ width: 7px !important;
+ height: 100% !important;
+ cursor: w-resize;
+ }
+
+.fc-event-hori .ui-resizable-handle {
+ _padding-bottom: 14px; /* IE6 had 0 height */
+ }
+
+
+
+/* Fake Rounded Corners (for buttons and events)
+------------------------------------------------------------*/
+
+.fc-corner-left {
+ margin-left: 1px;
+ }
+
+.fc-corner-left .fc-button-inner,
+.fc-corner-left .fc-event-inner {
+ margin-left: -1px;
+ }
+
+.fc-corner-right {
+ margin-right: 1px;
+ }
+
+.fc-corner-right .fc-button-inner,
+.fc-corner-right .fc-event-inner {
+ margin-right: -1px;
+ }
+
+.fc-corner-top {
+ margin-top: 1px;
+ }
+
+.fc-corner-top .fc-event-inner {
+ margin-top: -1px;
+ }
+
+.fc-corner-bottom {
+ margin-bottom: 1px;
+ }
+
+.fc-corner-bottom .fc-event-inner {
+ margin-bottom: -1px;
+ }
+
+
+
+/* Fake Rounded Corners SPECIFICALLY FOR EVENTS
+-----------------------------------------------------------------*/
+
+.fc-corner-left .fc-event-inner {
+ border-left-width: 1px;
+ }
+
+.fc-corner-right .fc-event-inner {
+ border-right-width: 1px;
+ }
+
+.fc-corner-top .fc-event-inner {
+ border-top-width: 1px;
+ }
+
+.fc-corner-bottom .fc-event-inner {
+ border-bottom-width: 1px;
+ }
+
+
+
+/* Reusable Separate-border Table
+------------------------------------------------------------*/
+
+table.fc-border-separate {
+ border-collapse: separate;
+ }
+
+.fc-border-separate th,
+.fc-border-separate td {
+ border-width: 1px 0 0 1px;
+ }
+
+.fc-border-separate th.fc-last,
+.fc-border-separate td.fc-last {
+ border-right-width: 1px;
+ }
+
+.fc-border-separate tr.fc-last th,
+.fc-border-separate tr.fc-last td {
+ border-bottom-width: 1px;
+ }
+
+.fc-border-separate tbody tr.fc-first td,
+.fc-border-separate tbody tr.fc-first th {
+ border-top-width: 0;
+ }
+
+
+
+/* Month View, Basic Week View, Basic Day View
+------------------------------------------------------------------------*/
+
+.fc-grid th {
+ text-align: center;
+ }
+
+.fc-grid .fc-day-number {
+ float: right;
+ padding: 0 2px;
+ }
+
+.fc-grid .fc-other-month .fc-day-number {
+ opacity: 0.3;
+ filter: alpha(opacity=30); /* for IE */
+ /* opacity with small font can sometimes look too faded
+ might want to set the 'color' property instead
+ making day-numbers bold also fixes the problem */
+ }
+
+.fc-grid .fc-day-content {
+ clear: both;
+ padding: 2px 2px 1px; /* distance between events and day edges */
+ }
+
+/* event styles */
+
+.fc-grid .fc-event-time {
+ font-weight: bold;
+ }
+
+/* right-to-left */
+
+.fc-rtl .fc-grid .fc-day-number {
+ float: left;
+ }
+
+.fc-rtl .fc-grid .fc-event-time {
+ float: right;
+ }
+
+
+
+/* Agenda Week View, Agenda Day View
+------------------------------------------------------------------------*/
+
+.fc-agenda table {
+ border-collapse: separate;
+ }
+
+.fc-agenda-days th {
+ text-align: center;
+ }
+
+.fc-agenda .fc-agenda-axis {
+ width: 50px;
+ padding: 0 4px;
+ vertical-align: middle;
+ text-align: right;
+ white-space: nowrap;
+ font-weight: normal;
+ }
+
+.fc-agenda .fc-day-content {
+ padding: 2px 2px 1px;
+ }
+
+/* make axis border take precedence */
+
+.fc-agenda-days .fc-agenda-axis {
+ border-right-width: 1px;
+ }
+
+.fc-agenda-days .fc-col0 {
+ border-left-width: 0;
+ }
+
+/* all-day area */
+
+.fc-agenda-allday th {
+ border-width: 0 1px;
+ }
+
+.fc-agenda-allday .fc-day-content {
+ min-height: 34px; /* TODO: doesnt work well in quirksmode */
+ _height: 34px;
+ }
+
+/* divider (between all-day and slots) */
+
+.fc-agenda-divider-inner {
+ height: 2px;
+ overflow: hidden;
+ }
+
+.fc-widget-header .fc-agenda-divider-inner {
+ background: #eee;
+ }
+
+/* slot rows */
+
+.fc-agenda-slots th {
+ border-width: 1px 1px 0;
+ }
+
+.fc-agenda-slots td {
+ border-width: 1px 0 0;
+ background: none;
+ }
+
+.fc-agenda-slots td div {
+ height: 20px;
+ }
+
+.fc-agenda-slots tr.fc-slot0 th,
+.fc-agenda-slots tr.fc-slot0 td {
+ border-top-width: 0;
+ }
+
+.fc-agenda-slots tr.fc-minor th,
+.fc-agenda-slots tr.fc-minor td {
+ border-top-style: dotted;
+ }
+
+.fc-agenda-slots tr.fc-minor th.ui-widget-header {
+ *border-top-style: solid; /* doesn't work with background in IE6/7 */
+ }
+
+
+
+/* Vertical Events
+------------------------------------------------------------------------*/
+
+.fc-event-vert {
+ border-width: 0 1px;
+ }
+
+.fc-event-vert .fc-event-head,
+.fc-event-vert .fc-event-content {
+ position: relative;
+ z-index: 2;
+ width: 100%;
+ overflow: hidden;
+ }
+
+.fc-event-vert .fc-event-time {
+ white-space: nowrap;
+ font-size: 10px;
+ }
+
+.fc-event-vert .fc-event-bg { /* makes the event lighter w/ a semi-transparent overlay */
+ position: absolute;
+ z-index: 1;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: #fff;
+ opacity: .3;
+ filter: alpha(opacity=30);
+ }
+
+.fc .ui-draggable-dragging .fc-event-bg, /* TODO: something nicer like .fc-opacity */
+.fc-select-helper .fc-event-bg {
+ display: none\9; /* for IE6/7/8. nested opacity filters while dragging don't work */
+ }
+
+/* resizable */
+
+.fc-event-vert .ui-resizable-s {
+ bottom: 0 !important; /* importants override pre jquery ui 1.7 styles */
+ width: 100% !important;
+ height: 8px !important;
+ overflow: hidden !important;
+ line-height: 8px !important;
+ font-size: 11px !important;
+ font-family: monospace;
+ text-align: center;
+ cursor: s-resize;
+ }
+
+.fc-agenda .ui-resizable-resizing { /* TODO: better selector */
+ _overflow: hidden;
+ }
+
+
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.print.css
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.print.css (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/fullcalendar.print.css 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1,61 @@
+/*
+ * FullCalendar v1.5.3 Print Stylesheet
+ *
+ * Include this stylesheet on your page to get a more printer-friendly calendar.
+ * When including this stylesheet, use the media='print' attribute of the <link> tag.
+ * Make sure to include this stylesheet IN ADDITION to the regular fullcalendar.css.
+ *
+ * Copyright (c) 2011 Adam Shaw
+ * Dual licensed under the MIT and GPL licenses, located in
+ * MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
+ *
+ * Date: Mon Feb 6 22:40:40 2012 -0800
+ *
+ */
+
+
+ /* Events
+-----------------------------------------------------*/
+
+.fc-event-skin {
+ background: none !important;
+ color: #000 !important;
+ }
+
+/* horizontal events */
+
+.fc-event-hori {
+ border-width: 0 0 1px 0 !important;
+ border-bottom-style: dotted !important;
+ border-bottom-color: #000 !important;
+ padding: 1px 0 0 0 !important;
+ }
+
+.fc-event-hori .fc-event-inner {
+ border-width: 0 !important;
+ padding: 0 1px !important;
+ }
+
+/* vertical events */
+
+.fc-event-vert {
+ border-width: 0 0 0 1px !important;
+ border-left-style: dotted !important;
+ border-left-color: #000 !important;
+ padding: 0 1px 0 0 !important;
+ }
+
+.fc-event-vert .fc-event-inner {
+ border-width: 0 !important;
+ padding: 1px 0 !important;
+ }
+
+.fc-event-bg {
+ display: none !important;
+ }
+
+.fc-event .ui-resizable-handle {
+ display: none !important;
+ }
+
+
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/index.html
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/index.html (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/index.html 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/style.css
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/style.css (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/css/style.css 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1,17 @@
+/**
+ * ****************************************************************************
+ * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
+ * ****************************************************************************
+ * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
+ * @license GNU GPL see License
+ * @since 2.5.0
+ * @package fullcalendar
+ * @author TXMod Xoops (Timgno) ( su...@tx... )
+ *
+ * Version : 1.01 Mon 2012/06/11 19:23:28 : Timgno Exp $
+ * ****************************************************************************
+ */
+#calendar {
+ width: 800px;
+ margin: 0 auto;
+}
\ No newline at end of file
Added: XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/changelog.txt
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/changelog.txt (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/modules/fullcalendar/docs/changelog.txt 2012-06-16 13:06:30 UTC (rev 9657)
@@ -0,0 +1,5 @@
+
+=======================...
[truncated message content] |
|
From: <txm...@us...> - 2012-06-19 23:18:28
|
Revision: 9679
http://xoops.svn.sourceforge.net/xoops/?rev=9679&view=rev
Author: txmodxoops
Date: 2012-06-19 23:18:21 +0000 (Tue, 19 Jun 2012)
Log Message:
-----------
Added class formtextdatepicker.php
Added Paths:
-----------
XoopsModules/fullcalendar/releases/1.01/class/
XoopsModules/fullcalendar/releases/1.01/class/xoopsform/
XoopsModules/fullcalendar/releases/1.01/class/xoopsform/formtextdatepicker.php
XoopsModules/fullcalendar/releases/1.01/class/xoopsformloader.php
XoopsModules/fullcalendar/releases/1.01/class/xoopsload.php
Added: XoopsModules/fullcalendar/releases/1.01/class/xoopsform/formtextdatepicker.php
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/class/xoopsform/formtextdatepicker.php (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/class/xoopsform/formtextdatepicker.php 2012-06-19 23:18:21 UTC (rev 9679)
@@ -0,0 +1,68 @@
+<?php
+/**
+ * XOOPS form element
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package kernel
+ * @subpackage form
+ * @since 2.5.0
+ * @author TXMod Xoops (AKA timgno) http://www.txmodxoops.org/
+ * @version $Id: formtextdatepicker.php 9676 2012-06-19 01:18:38Z timgno $
+ */
+
+defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined");
+
+/**
+ * A text field with jquery ui calendar popup
+ */
+
+class XoopsFormTextDatePicker extends XoopsFormText
+{
+
+ function XoopsFormTextDatePicker($caption, $name, $size = 15, $value = 0)
+ {
+ $value = !is_numeric($value) ? time() : intval($value);
+ $value = ($value == 0) ? time() : $value;
+ $this->XoopsFormText($caption, $name, $size, 25, $value);
+ }
+
+ function render()
+ {
+ static $included = false;
+
+ $ele_name = $this->getName();
+ $ele_value = $this->getValue(false);
+ if (is_string($ele_value)) {
+ $display_value = $ele_value;
+ $ele_value = time();
+ } else {
+ $display_value = '';
+ }
+
+ //$jqtime = formatTimestamp($ele_value, _CAL_FORMAT);
+ if (is_object($GLOBALS['xoTheme'])) {
+ $GLOBALS['xoTheme']->addStylesheet( XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css');
+ $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/jquery.js');
+ $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js');
+ if (!$included) {
+ $included = true;
+ $GLOBALS['xoTheme']->addScript('','', '
+ $(function() {
+ $( ".datepicker" ).datepicker();
+ });
+ ');
+ }
+ }
+ return "<input type='text' name='" . $ele_name . "' id='" . $ele_name . "' class='datepicker' size='" . $this->getSize() . "' maxlength='" . $this->getMaxlength() . "' value='" . $display_value . "'" . $this->getExtra() . " />
+ <input type='reset' name='" . $ele_name . "' value='" . _RESET . "'>";
+ }
+}
+?>
\ No newline at end of file
Added: XoopsModules/fullcalendar/releases/1.01/class/xoopsformloader.php
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/class/xoopsformloader.php (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/class/xoopsformloader.php 2012-06-19 23:18:21 UTC (rev 9679)
@@ -0,0 +1,55 @@
+<?php
+/**
+ * XOOPS form class loader
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package kernel
+ * @since 2.0.0
+ * @version $Id: xoopsformloader.php 8066 2011-11-06 05:09:33Z beckmi $
+ */
+
+
+xoops_load('XoopsForm');
+xoops_load('XoopsThemeForm');
+xoops_load('XoopsSimpleForm');
+xoops_load('XoopsFormElement');
+xoops_load('XoopsFormElementTray');
+xoops_load('XoopsFormLabel');
+xoops_load('XoopsFormCheckBox');
+xoops_load('XoopsFormPassword');
+xoops_load('XoopsFormButton');
+xoops_load('XoopsFormButtonTray'); // To be cleaned
+xoops_load('XoopsFormHidden');
+xoops_load('XoopsFormFile');
+xoops_load('XoopsFormRadio');
+xoops_load('XoopsFormRadioYN');
+xoops_load('XoopsFormSelect');
+xoops_load('XoopsFormSelectGroup');
+xoops_load('XoopsFormSelectCheckGroup'); // To be cleaned
+xoops_load('XoopsFormSelectUser');
+xoops_load('XoopsFormSelectTheme');
+xoops_load('XoopsFormSelectMatchOption');
+xoops_load('XoopsFormSelectCountry');
+xoops_load('XoopsFormSelectTimeZone');
+xoops_load('XoopsFormSelectLang');
+xoops_load('XoopsFormSelectEditor');
+xoops_load('XoopsFormText');
+xoops_load('XoopsFormTextArea');
+xoops_load('XoopsFormTextDateSelect');
+xoops_load('XoopsFormTextDatePicker'); // New 19/06/2012
+xoops_load('XoopsFormDhtmlTextArea');
+xoops_load('XoopsFormDateTime');
+xoops_load('XoopsFormHiddenToken');
+xoops_load('XoopsFormColorPicker');
+xoops_load('XoopsFormCaptcha');
+xoops_load('XoopsFormEditor');
+
+?>
\ No newline at end of file
Added: XoopsModules/fullcalendar/releases/1.01/class/xoopsload.php
===================================================================
--- XoopsModules/fullcalendar/releases/1.01/class/xoopsload.php (rev 0)
+++ XoopsModules/fullcalendar/releases/1.01/class/xoopsload.php 2012-06-19 23:18:21 UTC (rev 9679)
@@ -0,0 +1,242 @@
+<?php
+/**
+ * Xoops Autoload class
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package class
+ * @since 2.3.0
+ * @author Taiwen Jiang <ph...@us...>
+ * @version $Id: xoopsload.php 8066 2011-11-06 05:09:33Z beckmi $
+ * @todo For PHP 5 compliant
+ */
+defined('XOOPS_ROOT_PATH') or die('Restricted access');
+
+class XoopsLoad
+{
+ //static $loaded;
+ //static $configs;
+
+ function load($name, $type = "core")
+ {
+ static $loaded;
+ static $deprecated;
+
+ if (!isset($deprecated)) {
+ $deprecated = array(
+ 'uploader' => 'xoopsmediauploader',
+ 'utility' => 'xoopsutility',
+ 'captcha' => 'xoopscaptcha',
+ 'cache' => 'xoopscache',
+ 'file' => 'xoopsfile',
+ 'model' => 'xoopsmodelfactory',
+ 'calendar' => 'xoopscalendar',
+ 'userutility' => 'xoopsuserutility',
+ );
+ }
+ $name = strtolower($name);
+ if (array_key_exists($name, $deprecated)) {
+ if (isset($GLOBALS['xoopsLogger'])) {
+ $GLOBALS['xoopsLogger']->addDeprecated("xoops_load('{$name}') is deprecated, use xoops_load('{$deprecated[$name]}')");
+ } else {
+ trigger_error("xoops_load('{$name}') is deprecated, use xoops_load('{$deprecated[$name]}')", E_USER_WARNING);
+ }
+ $name = $deprecated[$name];
+ }
+
+ $type = empty($type) ? 'core' : $type;
+ if (isset($loaded[$type][$name])) {
+ return $loaded[$type][$name];
+ }
+
+ if (class_exists($name)) {
+ $loaded[$type][$name] = true;
+ return true;
+ }
+ $isloaded = false;
+ switch ($type) {
+ case 'framework':
+ $isloaded = XoopsLoad::loadFramework($name);
+ break;
+ case 'class':
+ case 'core':
+ $type = 'core';
+ $isloaded = XoopsLoad::loadCore($name);
+ break;
+ default:
+ $isloaded = XoopsLoad::loadModule($name, $type);
+ break;
+ }
+ $loaded[$type][$name] = $isloaded;
+ return $loaded[$type][$name];
+ }
+
+ /**
+ * Load core class
+ *
+ * @access private
+ */
+ function loadCore($name)
+ {
+ static $configs;
+
+ if (!isset($configs)) {
+ $configs = XoopsLoad::loadCoreConfig();
+ }
+ if (isset($configs[$name])) {
+ require $configs[$name];
+ if (class_exists($name) && method_exists($name, '__autoload')) {
+ call_user_func(array($name , '__autoload'));
+ }
+ return true;
+ } elseif (file_exists($file = XOOPS_ROOT_PATH . '/class/' . $name . '.php')) {
+ include_once $file;
+ $class = 'Xoops' . ucfirst($name);
+ if (class_exists($class)) {
+ return $class;
+ } else {
+ trigger_error('Class ' . $name . ' not found in file ' . __FILE__ . 'at line ' . __LINE__, E_USER_WARNING);
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Load Framework class
+ *
+ * @access private
+ */
+ function loadFramework($name)
+ {
+ if (!file_exists($file = XOOPS_ROOT_PATH . '/Frameworks/' . $name . '/xoops' . $name . '.php')) {
+ trigger_error('File ' . str_replace(XOOPS_ROOT_PATH, '', $file) . ' not found in file ' . __FILE__ . ' at line ' . __LINE__, E_USER_WARNING);
+ return false;
+ }
+ include $file;
+ $class = 'Xoops' . ucfirst($name);
+ if (class_exists($class)) {
+ return $class;
+ }
+ }
+ /**
+ * Load module class
+ *
+ * @access private
+ */
+ function loadModule($name, $dirname = null)
+ {
+ if (empty($dirname)) {
+ return false;
+ }
+ if (file_exists($file = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/class/' . $name . '.php')) {
+ include $file;
+ if (class_exists(ucfirst($dirname) . ucfirst($name))) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * XoopsLoad::loadCoreConfig()
+ *
+ * @return
+ */
+ function loadCoreConfig()
+ {
+ return $configs = array(
+ 'xoopsuserutility' => XOOPS_ROOT_PATH . '/class/userutility.php',
+ 'xoopsmediauploader' => XOOPS_ROOT_PATH . '/class/uploader.php',
+ 'xoopsutility' => XOOPS_ROOT_PATH . '/class/utility/xoopsutility.php',
+ 'xoopscaptcha' => XOOPS_ROOT_PATH . '/class/captcha/xoopscaptcha.php',
+ 'xoopscache' => XOOPS_ROOT_PATH . '/class/cache/xoopscache.php',
+ 'xoopsfile' => XOOPS_ROOT_PATH . '/class/file/xoopsfile.php',
+ 'xoopsmodelfactory' => XOOPS_ROOT_PATH . '/class/model/xoopsmodel.php',
+ 'xoopscalendar' => XOOPS_ROOT_PATH . '/class/calendar/xoopscalendar.php',
+ 'xoopskernel' => XOOPS_ROOT_PATH . '/class/xoopskernel.php',
+ 'xoopssecurity' => XOOPS_ROOT_PATH . '/class/xoopssecurity.php',
+ 'xoopslogger' => XOOPS_ROOT_PATH . '/class/logger/xoopslogger.php',
+ 'xoopspagenav' => XOOPS_ROOT_PATH . '/class/pagenav.php',
+ 'xoopslists' => XOOPS_ROOT_PATH . '/class/xoopslists.php',
+ 'xoopslocal' => XOOPS_ROOT_PATH . '/include/xoopslocal.php',
+ 'xoopslocalabstract' => XOOPS_ROOT_PATH . '/class/xoopslocal.php',
+ 'xoopseditor' => XOOPS_ROOT_PATH . '/class/xoopseditor/xoopseditor.php',
+ 'xoopseditorhandler' => XOOPS_ROOT_PATH . '/class/xoopseditor/xoopseditor.php',
+ 'xoopsformloader' => XOOPS_ROOT_PATH . '/class/xoopsformloader.php',
+ 'xoopsformelement' => XOOPS_ROOT_PATH . '/class/xoopsform/formelement.php',
+ 'xoopsform' => XOOPS_ROOT_PATH . '/class/xoopsform/form.php',
+ 'xoopsformlabel' => XOOPS_ROOT_PATH . '/class/xoopsform/formlabel.php',
+ 'xoopsformselect' => XOOPS_ROOT_PATH . '/class/xoopsform/formselect.php',
+ 'xoopsformpassword' => XOOPS_ROOT_PATH . '/class/xoopsform/formpassword.php',
+ 'xoopsformbutton' => XOOPS_ROOT_PATH . '/class/xoopsform/formbutton.php',
+ 'xoopsformbuttontray' => XOOPS_ROOT_PATH . '/class/xoopsform/formbuttontray.php',
+ 'xoopsformcheckbox' => XOOPS_ROOT_PATH . '/class/xoopsform/formcheckbox.php',
+ 'xoopsformselectcheckgroup' => XOOPS_ROOT_PATH . '/class/xoopsform/formselectcheckgroup.php',
+ 'xoopsformhidden' => XOOPS_ROOT_PATH . '/class/xoopsform/formhidden.php',
+ 'xoopsformfile' => XOOPS_ROOT_PATH . '/class/xoopsform/formfile.php',
+ 'xoopsformradio' => XOOPS_ROOT_PATH . '/class/xoopsform/formradio.php',
+ 'xoopsformradioyn' => XOOPS_ROOT_PATH . '/class/xoopsform/formradioyn.php',
+ 'xoopsformselectcountry' => XOOPS_ROOT_PATH . '/class/xoopsform/formselectcountry.php',
+ 'xoopsformselecttimezone' => XOOPS_ROOT_PATH . '/class/xoopsform/formselecttimezone.php',
+ 'xoopsformselectlang' => XOOPS_ROOT_PATH . '/class/xoopsform/formselectlang.php',
+ 'xoopsformselectgroup' => XOOPS_ROOT_PATH . '/class/xoopsform/formselectgroup.php',
+ 'xoopsformselectuser' => XOOPS_ROOT_PATH . '/class/xoopsform/formselectuser.php',
+ 'xoopsformselecttheme' => XOOPS_ROOT_PATH . '/class/xoopsform/formselecttheme.php',
+ 'xoopsformselectmatchoption' => XOOPS_ROOT_PATH . '/class/xoopsform/formselectmatchoption.php',
+ 'xoopsformtext' => XOOPS_ROOT_PATH . '/class/xoopsform/formtext.php',
+ 'xoopsformtextarea' => XOOPS_ROOT_PATH . '/class/xoopsform/formtextarea.php',
+ 'xoopsformdhtmltextarea' => XOOPS_ROOT_PATH . '/class/xoopsform/formdhtmltextarea.php',
+ 'xoopsformelementtray' => XOOPS_ROOT_PATH . '/class/xoopsform/formelementtray.php',
+ 'xoopsthemeform' => XOOPS_ROOT_PATH . '/class/xoopsform/themeform.php',
+ 'xoopssimpleform' => XOOPS_ROOT_PATH . '/class/xoopsform/simpleform.php',
+ 'xoopsformtextdateselect' => XOOPS_ROOT_PATH . '/class/xoopsform/formtextdateselect.php',
+ 'xoopsformtextdatepicker' => XOOPS_ROOT_PATH . '/class/xoopsform/formtextdatepicker.php', // New 19/06/2012
+ 'xoopsformdatetime' => XOOPS_ROOT_PATH . '/class/xoopsform/formdatetime.php',
+ 'xoopsformhiddentoken' => XOOPS_ROOT_PATH . '/class/xoopsform/formhiddentoken.php',
+ 'xoopsformcolorpicker' => XOOPS_ROOT_PATH . '/class/xoopsform/formcolorpicker.php',
+ 'xoopsformcaptcha' => XOOPS_ROOT_PATH . '/class/xoopsform/formcaptcha.php',
+ 'xoopsformeditor' => XOOPS_ROOT_PATH . '/class/xoopsform/formeditor.php',
+ 'xoopsformselecteditor' => XOOPS_ROOT_PATH . '/class/xoopsform/formselecteditor.php',
+ 'xoopsformcalendar' => XOOPS_ROOT_PATH . '/class/xoopsform/formcalendar.php',
+ );
+ }
+
+ /**
+ * XoopsLoad::loadConfig()
+ *
+ * @param mixed $data
+ * @return
+ */
+ function loadConfig($data = null)
+ {
+ if (is_array($data)) {
+ $configs = $data;
+ } else {
+ if (! empty($data)) {
+ $dirname = $data;
+ } elseif (is_object($GLOBALS['xoopsModule'])) {
+ $dirname = $GLOBALS['xoopsModule']->getVar('dirname', 'n');
+ } else {
+ return false;
+ }
+ if (file_exists($file = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/include/autoload.php')) {
+ if (! $configs = include $file) {
+ return false;
+ }
+ }
+ }
+ return $configs = array_merge(XoopsLoad::loadCoreConfig(), $configs);
+ }
+}
+// To be enabled in XOOPS 3.0
+// spl_autoload_register(array('XoopsLoad', 'load'));
+
+
+?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|