<?php 
$communityid = isset($_POST['postvalue']) ? $_POST['postvalue'] : 0;
include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php";
include_once CLASSFOLDER . "/dbconnection.php";
include_once CLASSFOLDER . "/communities.php";
$community = new communityclass($dbconnection->dbconnector);
include_once CLASSFOLDER . "/catalogs.php";
$catalog = new catalogclass($dbconnection->dbconnector);
include_once CLASSFOLDER . "/events.php";
$event = new eventclass($dbconnection->dbconnector);
$communitydata = !empty($communityid) ? $community->getcommunitybyid($communityid) : array();
$selectedState = !empty($communityid) ? $community->getSelectedState($communityid) : array();
$selectedZone = !empty($communityid) ? $community->getSelectedZone($communityid) : array();
$selectedEvents = !empty($communityid) ? $event->getSelectedEventByCommunityId($communityid) : array();
?>
 
  <form  id="update-communitydetails" name="update-communitydetails" action="" method="post" novalidate="novalidate">
    <input type="hidden" id="communityid" name="communityid" value="<?php 
echo !empty($communityid) ? $communityid : 0;
?>
" />
    <div class="box box-primary">
      <div class="box-body"> 
        <div class="row">
         <div class="form-group margin">
          <label><span class="text-error">*</span> Community Name</label>
          <input type="text"  id="eventname" name="name" value="<?php 
echo !empty($communitydata['name']) ? $communitydata['name'] : '';
?>
" maxlength="25" placeholder="Login Name" class="form-control" >
        </div>
Example #2
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php";
include_once CLASSFOLDER . "/dbconnection.php";
include_once CLASSFOLDER . "/events.php";
$events = new eventclass($dbconnection->dbconnector);
$searchObject = isset($_POST['postvalue']) ? $_POST['postvalue'] : null;
if (!empty($searchObject)) {
    $rows = $searchObject['rows'];
    $page = $searchObject['page'];
} else {
    $rows = 20;
    $page = 1;
}
?>

<div id="gridcontent" class ="content">
	<div class="row">
		<div class="col-xs-12">
			<div class="box">
				<div class="box-header">
					<h3 class="box-title">Event List</h3>
						<a title="Update Event" class="btn btn-default pull-right btn-sm " href="javascript:void(0)" 
                    onclick="getcontents('pages/events/updateevents.php','content')" > <i class="glyphicon glyphicon-plus-sign"></i>Add New</a>
				</div>	
				<div class="box-body">
					<div id="example2_wrapper" class="dataTables_wrapper form-inline" role="grid">
						<?php 
$totalEvents = $events->getTotalEvents(null);
if ($totalEvents > 0) {
    if ($totalEvents >= ($page - 1) * $rows) {
Example #3
0
<?php

include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php";
include_once CLASSFOLDER . "/dbconnection.php";
include_once CLASSFOLDER . "/common.php";
include_once CLASSFOLDER . "/events.php";
$events = new eventclass($dbconnection->dbconnector);
//ob_start("ob_gzhandler");
switch ($_POST['action']) {
    /*--------------------------------------------------------------*/
    case "saveevents":
        if (!empty($_POST['eventdetails'])) {
            $params = array();
            parse_str($_POST['eventdetails'], $params);
            $ritualids = isset($_POST['ritualids']) && !empty($_POST['ritualids']) ? $_POST['ritualids'] : null;
            $serviceids = isset($_POST['serviceids']) && !empty($_POST['serviceids']) ? $_POST['serviceids'] : null;
            $response = $events->updateevent($params, $ritualids, $serviceids);
            if (empty($response["Exception"])) {
                $response['Message'] = "Event details updated successfully";
            }
            echo json_encode($response);
        } else {
            $response['Exception'] = "Please specify valid event details";
            echo json_encode($response);
        }
        break;
}
  <?php 
if (!isset($_SESSION)) {
    session_start();
}
$eventid = isset($_POST['postvalue']) ? $_POST['postvalue'] : 0;
include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php";
include_once CLASSFOLDER . "/dbconnection.php";
include_once CLASSFOLDER . "/events.php";
$event = new eventclass($dbconnection->dbconnector);
$eventdata = !empty($eventid) ? $event->geteventbyid($eventid) : array();
include_once CLASSFOLDER . "/rituals.php";
$rituals = new ritualclass($dbconnection->dbconnector);
$ritualtitles = $rituals->getAllRitualNames();
include_once CLASSFOLDER . "/catalogs.php";
$catalog = new catalogclass($dbconnection->dbconnector);
$servicecatalogs = $catalog->GetAllCatalogValues('Services');
$attachments = !empty($eventid) ? $event->getAllEventAttachments($eventid) : null;
?>
  <link href="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" />
  <form  id="update-eventdetails" name="update-eventdetails" action="" method="post" novalidate="novalidate">
    <input type="hidden" id="eventid" name="eventid" value="<?php 
echo !empty($eventid) ? $eventid : 0;
?>
" />
    <div class="box box-primary">
      <div class="box-body"> 
        <div class="row">
          <div class="col-lg-6">
            <div class="row">
              <div class="col-lg-12">
                <div class="form-group margin">
Example #5
0
 function GetAllRitualsByEventId($eventId)
 {
     include_once CLASSFOLDER . "/events.php";
     $events = new eventclass($this->internalDB);
     return $events->GetAllRitualsByEventId($eventId);
 }