Beispiel #1
0
 function getEvents($feedURL, $maxItems = 10, $backfill = 0)
 {
     $eventsXML = simplexml_load_file($feedURL);
     if (!$eventsXML) {
         echo 'Visit events.uoit.ca to see all events.';
     }
     $minItems = 5;
     $itemCount = 1;
     foreach ($eventsXML->channel->item as $event) {
         if ($itemCount <= $maxItems) {
             $title = $event->title;
             $description = $event->description;
             $url = $event->link;
             $unixdate = $event->date;
             $date = new DateTime();
             $date->setTimestamp((int) $unixdate);
             $monthDisplay = $date->format('M');
             $dayDisplay = $date->format('d');
             $time = $event->time;
             $location = $event->location;
             echo "<li data-equalizer style='display:block;float:none;width:100%;padding:0;'>\n\t\t\t\t    \t<a href='" . $url . "' target='_blank'>\n\t\t\t\t        <p class='event_date' data-equalizer-watch>" . $monthDisplay . "\n\t\t\t\t            <span>" . $dayDisplay . "</span>\n\t\t\t\t        </p>\n\t\t\t\t        <p class='event_info' data-equalizer-watch>\n\t\t\t\t          <span class='event_title'>" . $title . "</span>\n\t\t\t\t          <span class='event_time'>" . $location . "\n\t\t\t\t          <br>" . $time . "</span>\n\t\t\t\t        </p>\n\t\t\t\t      </a>\n\t\t\t\t    </li>";
             $itemCount++;
         }
     }
     if ($itemCount <= 5 && $backfill == '1') {
         getEvents("http://events.uoit.ca/api/v1/rss");
     }
 }
Beispiel #2
0
function deleteEvent($id)
{
    $details = getEvents($id);
    if ($details) {
        $requete = 'DELETE FROM evenement WHERE id = :id;
					DELETE FROM invitation WHERE id_evenement= :id;
					DELETE FROM commentaire WHERE id_evenement= :id;
					DELETE FROM modere WHERE id_evenement = :id;';
        $execution = [':id' => $id];
        // Supprime les Images
        if ($details["id_media_principal"]) {
            unlink(PHOTO_EVENT . $details['id_media_principal']);
        }
        $images = getImagesAndId($id);
        if (isset($images[0][0])) {
            foreach ($images as $key => $value) {
                removeEventMedia($id, $images[$key][0]);
                unlink(PHOTO_EVENT . $images[$key][1]);
            }
        }
        $bdd = new PDO(DSN, DBUSER, DBPASS);
        $query = $bdd->prepare($requete);
        if ($query->execute($execution)) {
            return True;
        } else {
            var_dump($query->errorInfo());
            return False;
        }
    } else {
        return False;
    }
}
/**
* es construix un objecte JSON amb tota la informació que l'usuari necessita quan s'autentifica:
	* - bbdd privada
	*  - 
* els següents continguts estaran disponibles per a tots els usuaris.
* per a usuaris anònims, els formularis no tenen efecte real, pero permeten veure el funcionament
	* - formularis per a usuaris registrats 
	* - contingut html per a usuaris registrats
	* - plantilles html per a usuaris registrats
*/
function getUserWS($user)
{
    //declarations
    $res = array();
    //entitats:
    $res['bancal'] = getBancals($user);
    $res['parcela'] = getParceles($user);
    $res['planta'] = getPlantes($user);
    $res['familia'] = getFamilies($user);
    $res['grup'] = getGrups($user);
    $res['plaga'] = getPlagues($user);
    $res['remei'] = getRemeis($user);
    $res['tasca_fixa'] = getTasquesFixes($user);
    $res['event'] = getEvents($user);
    $res['cultiu'] = getCultius($user);
    return $res;
}
Beispiel #4
0
function delegate($action)
{
    //cleanCache();
    $ds = dataSetName($_GET);
    $data = loadFromCache($ds);
    if ($data) {
        echo $data;
        exit(0);
    }
    switch ($action) {
        //Twitter
        case 'topTweets':
            $data = topTweets();
            break;
            //Google Analytics
        //Google Analytics
        case 'chart':
            $data = getChart();
            break;
            //Events
        //Events
        case 'events':
            $data = getEvents();
            break;
            //Statistics
        //Statistics
        case 'stats':
            $data = getStatistics();
            break;
            //Social badge
        //Social badge
        case 'social':
            $data = generateSocialBadge();
            break;
    }
    if (!empty($data)) {
        $val = storeInCache($ds, output($data));
        if (!$val) {
        }
    }
    echo output($data);
    exit(0);
}
Beispiel #5
0
function getCompleteEvents()
{
    $data = array();
    $connection = new mysqli(MYSQL_HOSTNAME, MYSQL_USERNAME, MYSQL_PASSWORD, MYSQL_DATABASE);
    // Get events in the future
    $events = getEvents();
    // For each one of these events
    foreach ($events as $event) {
        $pricegroups = array();
        // Get its id
        $eId = $event['id'];
        // Get its genre id
        $genreid = $event['fk_genre_id'];
        // Select the pricgroups of it in veranstaltung_hat_preisgruppe table
        $result = $connection->query("SELECT fk_preisgruppe_id FROM veranstaltung_hat_preisgruppe WHERE fk_veranstaltung_id = '{$eId}'");
        // Save all foreign keys from query in array
        while ($row = $result->fetch_assoc()) {
            $pricegroups[] = $row;
        }
        // Get for each foreign key the pricegroup
        $finalpricegroups = array();
        foreach ($pricegroups as $pricegroup) {
            $id = $pricegroup['fk_preisgruppe_id'];
            $pricegrouplines = $connection->query("SELECT * FROM preisgruppe WHERE ID = '{$id}'");
            while ($row = $pricegrouplines->fetch_assoc()) {
                $finalpricegroups[] = $row;
            }
        }
        // Get the genre from the id
        $genreresult = $connection->query("SELECT * FROM genre WHERE id = '{$genreid}'");
        $genre = $genreresult->fetch_assoc();
        // Save everything into one big array
        $data[] = array("event" => $event, "pricegroups" => $finalpricegroups, "genre" => $genre);
    }
    return $data;
}
Beispiel #6
0
 <?php 
// EM Code starts here
$eventid = trim($_REQUEST['eventid']);
require "fn.cal.php";
$events = getEvents($eventid);
?>
  <html>
  <head>
<link rel="stylesheet" href="http://www.soundbooka.com/version1/webpublisher/css/layout.css" type="text/css" media="screen,projection" />
  <script type="text/javascript" language="javascript">
  function selsize()
		{		
			
			
			var check = document.getElementById('repeater').checked;
			if(check == true)
			{
				document.getElementById('RadioGroup1_0').disabled=false;
				document.getElementById('RadioGroup1_1').disabled=false;	
				document.getElementById('RadioGroup1_2').disabled=false;
				document.getElementById('radio_yearly').disabled=false;		
				document.getElementById('occurencetd').style.display ='block';	
			}
			else
			{
				document.getElementById('RadioGroup1_0').disabled=true;
				document.getElementById('RadioGroup1_1').disabled=true;
				document.getElementById('RadioGroup1_2').disabled=true;
				document.getElementById('radio_yearly').disabled=true;
				
				document.getElementById('RadioGroup1_0').checked =false;
            </div>
            <!--/.nav-collapse --> 
          
        </div>
        <!--/.container-fluid -->

      </nav>
      <!-- /.navbar -->

    <div class="jumbotron">

      <!-- If event has a question -->
      <?php 
if (isset($_SESSION['firstname']) && $val > 0) {
    $i = 1;
    $eData = getEvents($eid);
    $rData = mysql_fetch_assoc($eData);
    echo "<h1><center>" . $rData['title'] . "</h1></center>";
    echo "<h3>" . $rData['description'];
    if ($rData['place'] != "") {
        echo "<br><br>Place: " . $rData['place'];
        if ($rData['date'] != "") {
            echo "<br>Date: " . $rData['date'];
        }
    }
    echo "<br><br>Lütfen bu etkinlikle ilgili fikirlerinizi belirtiniz: </h3>";
    ?>
      <br>
      
      <form id="formSurvey" action="survey_record.php?eid=<?php 
    echo $eid;
//we only have this here in order to have events-search.css
require 'events_functions.php';
$page = (int) $_POST['page'];
/**
 * Implements block_view_alter().
 * Adds events search filters, javascript to create array string, and manages showing previously selected elements
 * This is a bit tricky because we're using the apachesolr module to display the results and the url has to be
 * constructed in a particular way, so we have to hack the url slightly
 */
$vendorPath = libraries_get_path('vendor');
require "{$vendorPath}/solarium/solarium/bizusa_conf/init.php";
$client = new Solarium\Client($config);
if ($_POST['keyword'] == 'Search Events' || $_POSTs['applySubmit']) {
    $_POST['keyword'] = '';
}
$events = getEvents($client, $_POST, $page);
$eventsCount = $events->getNumFound();
if ($eventsCount === 0) {
    echo '
    <br/>
    <h3>There are no events matching your selected criteria.</h3>
    <br/>';
} else {
    echo "<div id='block-system-main' class='block block-system block-odd first last clearfix'>";
    echo "<div class='col-sm-12'>";
    $count = 0;
    foreach ($events as $event) {
        // the documents are also iterable, to get all fields
        $event = node_load($event['entity_id']);
        include 'event-result.tpl.php';
    }
Beispiel #9
0
<?php

require MODELES . 'events/getEventDetails.php';
require MODELES . 'membres/checkUsed.php';
require MODELES . 'events/insertInvite.php';
require MODELES . 'membres/getUserAuth.php';
require MODELES . 'events/checkParticipation.php';
$event = getEvents($_GET['id']);
$expediteur = $_SESSION['id'];
$contents['titreEvenement'] = $event['titre'];
$title = "Inviter un ami à l'évènement " . $contents['titreEvenement'];
$styles = ['events.css', 'form.css'];
$blocks = ['invite'];
if (connected()) {
    if (empty($_POST)) {
        ///Si le bloc est vide///
        vue($blocks, $styles, $title, $contents);
    } else {
        $destinataire = getUserAuth($_POST['destinataire']);
        if (!checkUsed($_POST['destinataire'], NULL)) {
            ///si le pseudo n'existe pas///
            alert('error', 'Le pseudo renseigné n\'est pas valide !');
            vue($blocks, $styles, $title, $contents);
        } else {
            if ($expediteur === $destinataire[0]) {
                alert('error', 'Vous ne pouvez pas vous inviter vous-même !');
                vue($blocks, $styles, $title, $contents);
            } else {
                ///On récupère l'ID du pseudo rentré et on fait l'insertion en BDD///
                insertInvite($expediteur, $_GET['id'], $destinataire['id']);
                alert('info', 'Votre message a bien été envoyé !');
Beispiel #10
0
if (!defined('GLOBAL_PATH')) {
    define('GLOBAL_PATH', '../../../../');
}
if (!defined('ROOT_PATH')) {
    define('ROOT_PATH', '../../../');
}
if (!defined('CURRENT_CATEGORY')) {
    define('CURRENT_CATEGORY', 'athletica_tech');
}
if (!defined('CURRENT_PAGE')) {
    define('CURRENT_PAGE', 'results');
}
require_once ROOT_PATH . 'lib/inc.init.php';
require_once ROOT_PATH . 'lib/cls.result_tech.php';
$events = getEvents(CFG_CURRENT_MEETING, CFG_CURRENT_EVENT);
$type = $glb_types_results[$events['disc_type']];
$wind = $events['event_wind'];
$result_id = $_GET['result'];
$athlete_id = $_GET['athlete'];
$attempt = $_GET['attempt'];
$result = getResult($result_id);
$athlete = getAthleteDetails($athlete_id, false, 'ath_pos', 0, true);
?>
<script type="text/javascript">
    $(document).ready(function(){
        $('button').button();
        
         $('#result_edit_result, #result_edit_wind').keyup(function(){
            validate();   
        });
function main()
{
    global $isLogined;
    // チェック済みのパラメータを取得する。
    $received = getReceivedParameter();
    // 公演詳細画面表示内容
    $display = (object) array();
    $display->stage_date = isset($received->stage_date) ? $received->stage_date : getSqlNowDate();
    //$stageDate = null;
    if (isset($received->stage_register) && $isLogined) {
        // 登録ボタン押下
        if (!$received->stage_register) {
            // 入力チェックの結果NG。画面再表示
            $display = $received;
        } else {
            // 公演を登録する
            $stageId = registerStage($received);
            if ($stageId > 0) {
                header("Location: /stage?stage_id=" . $stageId);
                return;
            } else {
                $display = $received;
                $display->error_message = "現在、登録ができません。";
                // 				include_once('page-templates/page-stage-input.tpl');
                // 				return;
            }
        }
    } else {
        if (isset($_GET["stage_id"]) && is_numeric($_GET["stage_id"])) {
            $display = (object) array();
            $display->is_update = true;
            // 変更画面であることを示す
            $stageId = $_GET["stage_id"];
            // リビジョンを指定する
            $revision = -1;
            if (isset($_GET['revision']) && is_numeric($_GET['revision'])) {
                $revision = intval($_GET['revision']);
            }
            // 公演情報取得
            $stageInfos = getStageDetail($stageId, $revision);
            if ($stageInfos != null && count($stageInfos) > 0) {
                $stageInfo = $stageInfos[0];
                $display->stage_id = $stageInfo->stage_id;
                $display->revision = $stageInfo->revision;
                // 公演日
                $display->stage_date = $stageInfo->stage_date;
                // チーム
                $display->stage_team = $stageInfo->team_id;
                // その日の回数
                $display->stage_time = array(0 => $stageInfo->stage_time);
                // 公演
                $display->stage_program = $stageInfo->program_id;
                // シャッフル?
                $display->stage_shuffled = $stageInfo->is_shuffled == 1;
                // 非公式か?
                $display->stage_unofficial = $stageInfo->is_unofficial == 1;
                // 出演メンバー
                $display->memberNameList = array();
                if (isset($stageInfo->memberList)) {
                    foreach ($stageInfo->memberList as $member) {
                        $display->memberNameList[] = $member->member_name;
                    }
                }
                // 関連リンク
                $display->linkStringList = array();
                if (isset($stageInfo->linkList)) {
                    foreach ($stageInfo->linkList as $link) {
                        $display->linkStringList[] = $link->link;
                    }
                }
                // イベント
                $display->stage_events = array();
                if (isset($stageInfo->eventMemberList) && count($stageInfo->eventMemberList) > 0) {
                    $i = 1;
                    foreach ($stageInfo->eventMemberList as $eventMember) {
                        $display->stage_events[] = (object) array('event_id' => $eventMember->event_id, 'member_id' => $eventMember->member_id);
                    }
                }
                // コメント
                // 				$display->stage_comment = array();
                $display->stage_comment = "";
                // 				foreach ($stageInfo->commentList as $comment) {
                // 					if ($comment != "") {
                // 						$display->stage_comment[] = $comment;
                // 					}
                // 				}
                if (count($stageInfo->commentList) > 0) {
                    $display->stage_comment = $stageInfo->commentList[0]->comment;
                }
            } else {
                $display->stage_date = getSqlNowDate();
                $display->revision = 0;
                $display->error_message = "該当する公演が見つかりません。";
            }
        } else {
            // 入力画面初期表示
            // 			// 日付が指定されていた場合は、その日の編集を行う
            // 			if (isset($_GET["stage_date"]) && $_GET["stage_date"] != "")
            // 			{
            // 				$display = (object) array();
            // 				$display->stage_date = $_GET["stage_date"];
            // 			}
            // デフォルトで、ダブルチェックが必要である旨のチェックをつけておく
            $display->stage_unofficial = true;
            $display->revision = 0;
            $display->stage_time[] = 1;
            if (!$isLogined) {
                $display->error_message = "現在、公演の登録・更新にはログインが必要です。";
            }
        }
    }
    // 前後の公演
    $display->previousStage = getPreviousStage(!empty($display->stage_id) ? $display->stage_id : 0, $display->stage_date);
    $display->nextStage = getNextStage(!empty($display->stage_id) ? $display->stage_id : 0, $display->stage_date);
    // イベントリスト
    $display->eventInfoList = getEvents();
    // メンバーリスト
    $display->memberInfoList = getMembers($display->stage_date);
    return $display;
}
<?php

$events = getEvents(1);
foreach ($events as $event) {
    $month = date("F", $event->eventDateInt);
    $day = date("d", $event->eventDateInt);
    ?>
<span class="myriad_pro_bold_condensed sidebarheader">Philippine Festival</span>
<div class="calendar">
	<div class="calendarbg">
		<span class="month myriad_pro_bold_condensed"><?php 
    echo $month;
    ?>
</span>
		<span class="date myriad_pro_bold_condensed"><?php 
    echo $day;
    ?>
</span>
	</div>
	<div class="calendardetails">
		<strong class="calendartitle"><?php 
    echo $event->titleOfActivity;
    ?>
</strong>
		<?php 
    echo $event->activityTags;
    ?>
		<div class="desc">
			<?php 
    echo stripcslashes($event->descriptionOfActivity);
    ?>
Beispiel #13
0
    $statement->execute();
    $gameSession = $statement->fetchAll(PDO::FETCH_ASSOC)[0];
    if (!empty($gameSession)) {
        return $gameSession['occupied'] !== '0' ? 'occupied' : 'unoccupied';
    }
    return "not found";
}
$value = "An error has occurred";
$action = getParamGET('action');
if ($action) {
    switch ($action) {
        case "creategame":
            $value = createGame($db);
            break;
        case "joingame":
            $value = joinGame($db);
            break;
        case "addevent":
            $value = addEvent($db);
            break;
        case "getevents":
            $value = getEvents($db);
            break;
        case "getoccupied":
            $value = getOccupied($db);
            break;
        default:
            $value = "unknown command";
    }
}
echo $value;
<!DOCTYPE html>
<html lang="tr-TR">

<?php 
include 'functions.php';
include 'connectdb.php';
$id = $_GET["id"];
$eventsdb = getEvents($id);
$events = mysql_fetch_array($eventsdb);
?>

<head>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="assets/img/ico/favicon.png">
	<title>Etkinlik Detayı - İzmir Üniversitesi Mezun Bilgi Sistemi</title>

	<!-- Bootstrap core CSS -->

	<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

	<!-- Custom styles for this template -->

	<link href="assets/css/app.css" rel="stylesheet">
	<link href="assets/css/responsive.css" rel="stylesheet">
	<link href='http://fonts.googleapis.com/css?family=Open+Sans&subset=latin,latin-ext' rel='stylesheet' type='text/css'>

	<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
Beispiel #15
0
<?php

/*
 * Function requested by Ajax
 */
if (isset($_POST['func']) && !empty($_POST['func'])) {
    switch ($_POST['func']) {
        case 'getCalender':
            getCalender($_POST['year'], $_POST['month']);
            break;
        case 'getEvents':
            getEvents($_POST['date']);
            break;
        default:
            break;
    }
}
/*
 * Get calendar full HTML
 */
function getCalender($year = '', $month = '')
{
    $dateYear = $year != '' ? $year : date("Y");
    $dateMonth = $month != '' ? $month : date("m");
    $date = $dateYear . '-' . $dateMonth . '-01';
    $currentMonthFirstDay = date("N", strtotime($date));
    $totalDaysOfMonth = cal_days_in_month(CAL_GREGORIAN, $dateMonth, $dateYear);
    $totalDaysOfMonthDisplay = $currentMonthFirstDay == 7 ? $totalDaysOfMonth : $totalDaysOfMonth + $currentMonthFirstDay;
    $boxDisplay = $totalDaysOfMonthDisplay <= 35 ? 35 : 42;
    ?>
	<div id="calender_section">
Beispiel #16
0
function displayAllEvents($user, $cal)
{
    $allEvents = getEvents($user, $cal);
    foreach ($allEvents as $r) {
        foreach ($r as $v) {
            print $v . "\t";
        }
        print "\n";
    }
    return $allEvents;
}
Beispiel #17
0
<?php

session_start();
if (empty($_SESSION['user'])) {
    header('Location: index.php');
    exit;
}
$Mail = $_SESSION['user'];
require "Date.php";
$events = getEvents($num_an, $Mail);
?>

<!DOCTYPE html>
<html>
<head>
<title>Calendrier</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>

<table>

		<thead>
			<tr>
				<th><img src="fleche_precedent.png"
					onclick=" location.href='Calendrier.php?mois=<?php 
echo $num_mois - 1;
?>
&amp;annee=<?php 
echo $num_an;
?>
Beispiel #18
0
This file renders the initial front-end interface.
All requests to the actual data for the map is handled by query.php and is loaded asynchronously.
*/
?>

<div id="world-map" style="width: 100%; height: 600px"></div>
<script src="data/scripts/populate-map.js"></script>

<br>

<div id="input-form">
	<select class="ajaxSelect" name="event">
		<?php 
// Gather events list
$db = getDb();
$events = getEvents($db);
$db->close();
// Generate select element from events list
foreach ($events as $name => $description) {
    echo "<option value=\"{$name}\">{$description}</option>\n\t\t";
}
?>
	</select>
	<select class="ajaxSelect" name="gender">
		<option value="*">Any</option>
		<option value="m">Male</option>
		<option value="f">Female</option>
	</select>
	<select class="ajaxSelect" name="stat">
		<option value="topBest">Top Best</option>
		<option value="topAverage">Top Average</option>
<?php

require_once '/opt/httpd/shs.masstransmit.net/API/toEMT/bh/bullhorn_get_events.php';
require_once '/opt/httpd/shs.masstransmit.net/API/toEMT/emt/emt_event.php';
//inserts
function getEvents($entity, $event)
{
    $inserts = new BullhornEvents($entity, $event);
    return $inserts->resultasXML();
}
function EMTevent($entity, $action, $list)
{
    $eventObj = new EMTevent($entity, $action, $list);
    return $eventObj->ToEmt();
}
//CANDIDATES
getEvents("Candidate", "Inserts");
getEvents("Candidate", "Updates");
getEvents("Candidate", "Deletes");
//CLIENT CONTACTS
getEvents("ClientContact", "Inserts");
getEvents("ClientContact", "Updates");
getEvents("ClientContact", "Deletes");
//TO EMT
EMTevent("Candidate", "Inserts", "11761");
EMTevent("Candidate", "Updates", "11761");
EMTevent("Candidate", "Deletes", "11830");
EMTevent("CLientContact", "Inserts", "11762");
EMTevent("ClientContact", "Updates", "11762");
EMTevent("ClientContact", "Deletes", "11883");
Beispiel #20
0
        $results[$i]['start_date'] = $start_date;
        $results[$i]['end_date'] = $end_date;
        $results[$i]['title'] = $title;
        $results[$i]['type_title'] = $type_title;
        $results[$i]['category_title'] = $category_title;
        $results[$i]['image_thumb'] = $image_thumb;
        $results[$i]['image_large'] = $image_large;
        $results[$i]['alt'] = $alt;
        $results[$i]['tile_id'] = $tile_id;
        $i++;
    }
    $stmt->close();
    $mysqli->close();
    return $results;
}
$events = getEvents($DB_SERVER, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE);
$featureEvents = getFeaturedEvent($DB_SERVER, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE);
?>
<body>
<?php 
include 'includes/nav.php';
?>
<section class="breadcrumbsHolder">
    <div class="row">
        <div class="large-12 columns breadcrumbs">
            <a href="<?php 
echo $baseURL;
?>
/">Home</a><span>Events</span>
        </div>
    </div>
Beispiel #21
0
<?php

require 'functions.php';
if (isset($_GET['getEvents'])) {
    die(getEvents());
}
if (isset($_GET['getViews'])) {
    die(getViews());
}
if (!empty($_GET['saveView'])) {
    die(insertView($_GET['saveView'], $_GET['datefrom'], $_GET['dateuntil'], $_GET['filter']));
}
if (!empty($_GET['deleteView'])) {
    $d = $_GET['deleteView'];
    if ($d === false || $d < 1 || $d > 1000 * 1000 * 500) {
        die('huh');
    }
    $rowid = intval($d);
    $db->exec('DELETE FROM views WHERE rowid = ' . $rowid) or die('false');
    die('true');
}
if (!empty($_GET['deleteEvent'])) {
    $d = $_GET['deleteEvent'];
    if ($d === false || $d < 1 || $d > 1000 * 1000 * 500) {
        die('huh');
    }
    $rowid = intval($d);
    $db->exec('DELETE FROM events WHERE rowid = ' . $rowid) or die('false');
    die('true');
}
Beispiel #22
0
}
if (ALLOW_ACCESS_BY == 'ip' && !User::ipAllowed()) {
    header('location: ' . FULLCAL_URL . '/noaccess.html');
    // fill in a website where you want to redirect
    exit;
} else {
    if (ALLOW_ACCESS_BY == 'login' || ADMIN_CAN_LOGIN_FROM_ADMIN_URL === true && stristr($_SERVER['SCRIPT_NAME'], '/admin')) {
        if (!User::isLoggedIn()) {
            echo json_encode(array('success' => false, 'notloggedin' => true, 'error' => 'You are not logged in'));
            exit;
        }
    }
}
switch ($_GET['action']) {
    case 'start':
        getEvents();
        break;
    case 'add':
        addEvent();
        break;
    case 'update':
        updateEvent();
        break;
    case 'resize':
        resizeEvent();
        break;
    case 'del':
        deleteEvent();
        break;
    case 'get_cal':
        getCalendar();
Beispiel #23
0
<?php

session_start();
include_once "connection.php";
include_once "templates/nav.php";
include_once "events.php";
$events = getEvents();
?>

<header>
	<div id = "footer_listevents">
		
		<h1>Events</h1>

		<form name="form" method="post" >
			<input name="search" type="text" size="40" maxlength="50" placeholder="search">
		</form>

		<?php 
if (count($events) <= 0) {
    echo 'There are no events!';
}
?>
		<ul id="li_events">
			<?php 
foreach ($events as $event) {
    if (empty($_POST)) {
        ?>
					<li><a href="show_event.php?id=<?php 
        echo $event['id'];
        ?>
Beispiel #24
0
    <div class="span3">
      <select name="select2" id="select2" onchange="location = this.options[this.selectedIndex].value;">
        <option value = "Social.php">Select Location</option>
        <option value = "?param=All">All Locations</option>
        <option value = "?param=CapeTown">Cape Town</option>
        <option value = "?param=Durban">Durban</option>
        <option value = "?param=Johannesburg">Johannesburg</option>
    </select></div>
    <div class="span6">
    </div>
  </div>
  <div class="row">
      <?php 
if (isset($_GET['param'])) {
    $param = $_GET['param'];
    echo getEvents($db, $category, $param);
}
?>
  </div>
</div>
<section class="location hidden-phone">
 
</section>
<footer class="hidden-phone">
  <div class="container">
    <div class="row">
      <div class="span3">
        <address>
        <strong>Product Owner</strong><br />
        Nicholas Gamarra<br />
        <i class="icon-white icon-signal"></i> (561) 456-7890<br />
            $condition = " AND ";
        } else {
            // 特別公演のみ
            $query .= $condition . " s.program_id = 51 ";
            $condition = " AND ";
        }
    }
    // ダブルチェックが必要な公演のみか
    if ($notDoubleCheckedOnly) {
        $query .= $condition . " s.is_unofficial = b'1' ";
        $condition = " AND ";
    }
    $query .= $condition . " s.delete_time IS NULL ";
    $query .= " ORDER BY s.stage_id ";
    // 出演回数指定
    if ($stageCount > 0) {
        $query .= " limit %d ";
        $param[] = $stageCount;
    }
    if ($needPreparedStatement != 0) {
        $query = $wpdb->prepare($query, $param);
    }
    $rows = $wpdb->get_results($query);
}
// メンバーリスト
$memberInfoList = getMembers();
// 演目リスト
$programList = getPrograms();
// イベントリスト
$eventList = getEvents();
include_once 'page-templates/page-stage-list.tpl';
                            <div class="alert alert-info">
                                <h1 >Kesinleşmiş etkinlikler</h1>
                                <p>Etkinlikleri içeriğinde değişiklik yapmak istiyorsanız Düzenle butonunu kullanınız.</p>
                            </div>
                            
                            <table class="table table-bordered table-hover">
                                <tr>
                                    <th>Başlık</th>
                                    <th>Açıklama</th>
                                    <th>Yer</th>
                                    <th>Zaman</th>
                                    <th>Düzenle</th>
                                </tr>

                                <?php 
$allEvents = getEvents();
?>
                                <?php 
while ($events = mysql_fetch_array($allEvents)) {
    ?>
                                
                                <tr>
                                    <td>
                                        <?php 
    echo $events[2];
    ?>
                                    </td>

                                    <td>
                                        <?php 
    echo $events[3];
Beispiel #27
0
        $getevent = $eventname . "-" . $type_event;
    }
    if ($eventname == "" && $type_event != "") {
        $tevent = $type_event;
    } else {
        if ($type_event == "" && $eventname != "") {
            $gev = $eventname;
        } else {
            if ($eventname == "") {
                $gev = "";
            } else {
                $gev = $getevent;
            }
        }
    }
    if ($ret = getEvents(array('sdate' => $get_sdate, 'edate' => $get_edate, 'user' => $form_user, 'sortby' => $_GET['sortby'], 'levent' => $gev, 'tevent' => $tevent))) {
        foreach ($ret as $iter) {
            //translate comments
            $patterns = array('/^success/', '/^failure/', '/ encounter/');
            $replace = array(xl('success'), xl('failure'), xl('encounter', '', ' '));
            $trans_comments = preg_replace($patterns, $replace, $iter["comments"]);
            ?>
 <TR class="oneresult">
  <TD class="text"><?php 
            echo oeFormatShortDate(substr($iter["date"], 0, 10)) . substr($iter["date"], 10);
            ?>
</TD>
  <TD class="text"><?php 
            echo xl($iter["event"]);
            ?>
</TD>
Beispiel #28
0
require MODELES . 'events/checkOrganiser.php';
require MODELES . 'membres/checkUsed.php';
require MODELES . 'membres/getUserDetails.php';
require MODELES . 'membres/getUserAuth.php';
require MODELES . 'events/getEventDetails.php';
require MODELES . 'events/deleteEvent.php';
//Si il n'y a pas d'eventID dans le GET
if (!isset($_GET['id'])) {
    alert("error", "Vous n'avez pas précisé quel évènement vous vouliez !");
    header("Location: " . getLink(["accueil", "404"]));
    exit;
}
$_GET['id'] = htmlspecialchars($_GET['id']);
//Si le EventID dans le GET n'est pas attribué.
$contents['values'] = getEvents($_GET['id']);
if (empty($contents["values"])) {
    alert("error", "Cet évènement n'existe pas !");
    header("Location: " . getLink(["accueil", "404"]));
    exit;
}
// Fonction qui check s'il a le droit de modifier.
if (connected() && (checkOrganiser($_SESSION['id'], $_GET['id']) or $_SESSION['niveau'] == 2 or $_SESSION['niveau'] == 3)) {
} else {
    if (!connected()) {
        alert("error", "Vous devez être connecté !");
        header("Location: " . getLink(["membres", "connexion"]));
        exit;
    } else {
        alert("error", "Vous n'avez pas le droit de modifier cet évènement!");
        header("Location: " . getLink(["accueil"]));
Beispiel #29
0
<?php

include_once "../database.php";
header('Content-type: application/json');
//print_r(retrieve_agency());
echo json_encode(getEvents());
Beispiel #30
0
                ?>
  <TD class="text"><?php 
                echo $iter["checksum"];
                ?>
</TD>
  <?php 
            }
            ?>
 </TR>

<?php 
        }
    }
    if ($eventname == "disclosure" || $gev == "") {
        $eventname = "disclosure";
        if ($ret = getEvents(array('sdate' => $get_sdate, 'edate' => $get_edate, 'user' => $form_user, 'patient' => $form_pid, 'sortby' => $_GET['sortby'], 'event' => $eventname))) {
            foreach ($ret as $iter) {
                $comments = xl('Recipient Name') . ":" . $iter["recipient"] . ";" . xl('Disclosure Info') . ":" . $iter["description"];
                ?>
<TR class="oneresult">
  <TD class="text"><?php 
                echo htmlspecialchars(oeFormatShortDate(substr($iter["date"], 0, 10)) . substr($iter["date"], 10), ENT_NOQUOTES);
                ?>
</TD>
  <TD class="text"><?php 
                echo htmlspecialchars(xl($iter["event"]), ENT_NOQUOTES);
                ?>
</TD>
  <TD class="text"><?php 
                echo htmlspecialchars($iter["user"], ENT_NOQUOTES);
                ?>