当前位置: 首页>>代码示例>>PHP>>正文


PHP Calendar::output方法代码示例

本文整理汇总了PHP中Calendar::output方法的典型用法代码示例。如果您正苦于以下问题:PHP Calendar::output方法的具体用法?PHP Calendar::output怎么用?PHP Calendar::output使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Calendar的用法示例。


在下文中一共展示了Calendar::output方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

require_once 'AMP/System/Base.php';
require_once 'Modules/Calendar/Calendar.inc.php';
//require_once( 'header.php' );
require_once "AMP/System/BaseTemplate.php";
$template = AMPSystem_BaseTemplate::instance();
$template->setTool($modid);
$template->setToolName($mod_name);
$template->useFormNav(false);
$output = $template->outputHeader();
if ($_REQUEST['id']) {
    //display single event, specify calid value
    $list_options['calid'] = array('value' => $_REQUEST['id']);
    $eventsearch = new Calendar($dbcon, null, $admin);
    $eventlist = $eventsearch->find_events("publish=1", $searchform->sortby);
    $output .= $eventlist->output('DisplayHTML', $list_options);
} else {
    //display result list
    $admin = true;
    $eventsearch = new Calendar($dbcon, null, $admin);
    $searchform =& $eventsearch->getPlugin('Output', 'SearchForm');
    $pager =& $eventsearch->getPlugin('Output', 'Pager');
    $actionbar =& $eventsearch->getPlugin('Output', 'Actions');
    if ($eventsearch->doAction('Search')) {
        $output .= (isset($eventsearch->error) ? $eventsearch->error . '<BR>' : "") . ($searchform ? $searchform->search_text_header() . $eventsearch->output('SearchForm') : "") . ($pager ? $pager->execute() : "") . ($actionbar ? $actionbar->execute() : "") . $eventsearch->output('TableHTML') . ($pager ? $pager->execute() : "") . $eventsearch->output('Index');
    } else {
        $output .= $eventsearch->error . '<BR>' . $eventsearch->output('SearchForm');
    }
}
print $output;
// Append the footer and clean up.
require_once 'footer.php';
开发者ID:radicaldesigns,项目名称:amp,代码行数:31,代码来源:calendar_gxlist.php

示例2: Calendar

require_once 'Modules/Calendar/Calendar.inc.php';
require_once 'header.php';
$admin = true;
$eventsearch = new Calendar($dbcon, null, $admin);
/*
$searchform=&$eventsearch->getPlugin('Output', 'SearchForm');
$pager=&$eventsearch->getPlugin('Output','Pager');
$actionbar=&$eventsearch->getPlugin('Output','Actions');
*/
$sub = $_REQUEST['email_send'] == 'Send' ? true : false;
$idset = $_REQUEST['list_action_id'];
if (!$sub && $idset) {
    //Email form hasn't submitted
    //Display Email form
    $options['criteria'] = "id in (" . $idset . ")";
    if ($eventsearch->doAction('Search', $options)) {
        $myset = $eventsearch->results;
        foreach ($myset as $set_bb => $set_info) {
            print $set_info['email1'] . "<BR>";
        }
        $eventsearch->registerPlugin("Output", "EmailForm");
        $output = (isset($eventsearch->error) ? $eventsearch->error . '<BR>' : "") . $eventsearch->output('EmailForm');
    } else {
        $output = $eventsearch->error . '<BR>' . $eventsearch->output('SearchForm');
    }
} else {
    $output = "Form submitted, email sender engaged!";
}
print $output;
// Append the footer and clean up.
require_once 'footer.php';
开发者ID:radicaldesigns,项目名称:amp,代码行数:31,代码来源:calendar_email.php

示例3: Calendar

 *****/
$modid = 1;
$mod_id = 57;
ob_start();
#require_once('Modules/Calendar/Output/list_rsvp_html4.inc.php');
require_once 'AMP/BaseDB.php';
require_once 'Modules/Calendar/Calendar.inc.php';
require_once 'AMP/BaseTemplate.php';
require_once 'AMP/BaseModuleIntro.php';
$admin = false;
$calendar = new Calendar($dbcon, null, $admin);
if ($calid = $_REQUEST['calid']) {
    $options['calid'] = array('value' => $calid);
}
if ($_REQUEST['output'] == 'rss') {
    $output = $calendar->output('RSS', $options);
    //display single event, specify calid value
} elseif ($calid) {
    $output = $calendar->output('DisplayHTML', $options);
} else {
    //display result list
    $searchform =& $calendar->getPlugin('Output', 'SearchForm');
    $pager =& $calendar->getPlugin('Output', 'Pager');
    $actionbar =& $calendar->getPlugin('Output', 'Actions');
    if ($calendar->doAction('Search')) {
        $output = (isset($calendar->error) ? $calendar->error . '<BR>' : "") . ($searchform ? $searchform->search_text_header() . $calendar->output('SearchForm') : "") . ($pager ? $pager->execute() : "") . $calendar->output('DisplayHTML') . ($pager ? $pager->execute() : "") . $calendar->output('Index');
    } else {
        $output = $calendar->error . '<BR>' . $calendar->output('SearchForm');
    }
}
print $output;
开发者ID:radicaldesigns,项目名称:amp,代码行数:31,代码来源:calendar.php


注:本文中的Calendar::output方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。