* Calendar Event Listing Page * * Allows search for events, admin side * * * *****/ $modid = 1; $mod_id = 67; $mod_name = "calendar"; ob_start(); 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');
<?php #make_labels.php #makes labels from a search #require_once('AMP/UserData/Search.inc.php'); #require_once ("Modules/UDM/Output/labels.inc.php"); /* $label_list=new UserLabels; if (isset($_REQUEST['sqlsend'])) { $label_list->current_sql= "Select Concat(First_Name, \" \", Last_Name) as Name, occupation, Company, Street, Street_2, Street_3, City, State, Zip, Country ".stripslashes($_REQUEST['sqlsend'])." ORDER BY Zip"; $label_list->runSearch($dbcon); $label_list->list2labels('labels.pdf', $_REQUEST['UDM_label_type']); } */ require "AMP/System/Base.php"; require "AMP/System/BaseTemplate.php"; $template = new AMPSystem_BaseTemplate(); $template->setToolName('system'); $script = "\n<script type = 'text/javascript'>\n//<!--\nhistory.go(-1);\nalert('Label creation is currently disabled -- \\nplease export the list and make labels locally');\n//-->\n</script>"; print $template->outputHeader(); print 'Label creation is currently disabled -- please export the list and make labels locally'; print $script; print $template->outputFooter(); ?> ?>
<?php require_once "AMP/System/Base.php"; require_once "AMP/System/BaseTemplate.php"; trigger_error('actually hitting the flush'); $template = new AMPSystem_BaseTemplate(); $script = "\n<script type = 'text/javascript'>\n//<!--\nhistory.go(-1);\nalert( '" . AMP_TEXT_CACHE_RESET . "' );\n//-->\n</script>"; print $template->outputHeader(); if (isset($_GET['action']) && $_GET['action'] == 'flush') { $dbcon = AMP_Registry::getDbcon(); trigger_error('actually hitting the global flush'); $dbcon->Execute('RESET QUERY CACHE'); print AMP_TEXT_CACHE_RESET; print $script; } print $template->outputFooter();