<?php include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php"; session_start(); include_once CLASSFOLDER . "/dbconnection.php"; include_once CLASSFOLDER . "/common.php"; include_once CLASSFOLDER . "/rituals.php"; $ritual = new ritualclass($dbconnection->dbconnector); //ob_start("ob_gzhandler"); switch ($_POST['action']) { /*--------------------------------------------------------------*/ case "saveritual": if (!empty($_POST['ritualdetails'])) { $params = array(); parse_str($_POST['ritualdetails'], $params); $serviceids = isset($_POST['serviceids']) && !empty($_POST['serviceids']) ? $_POST['serviceids'] : null; $response = $ritual->updateRitual($params, $serviceids); if (empty($response["Exception"])) { $response['Message'] = "Ritual details updated successfully"; } echo json_encode($response); } else { $response['Exception'] = "Please specify valid 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">
<?php if (!isset($_SESSION)) { session_start(); } $ritualid = isset($_POST['postvalue']) ? $_POST['postvalue'] : 0; include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php"; include_once CLASSFOLDER . "/dbconnection.php"; include_once CLASSFOLDER . "/rituals.php"; $rituals = new ritualclass($dbconnection->dbconnector); include_once CLASSFOLDER . "/catalogs.php"; $catalog = new catalogclass($dbconnection->dbconnector); $servicecatalogs = $catalog->GetAllCatalogValues('Services'); $ritualData = !empty($ritualid) ? $rituals->getRitualById($ritualid) : array(); ?> <link href="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" /> <form id="update-ritualdetails" name="update-ritualdetails" action="" method="post" novalidate="novalidate"> <input type="hidden" id="ritualid" name="ritualid" value="<?php echo !empty($ritualid) ? $ritualid : 0; ?> " /> <div class="box box-primary"> <div class="box-body"> <div class="row"> <div class="form-group margin"> <label><span class="text-error">*</span>Title</label> <input type="text" id="title" name="title" value="<?php echo !empty($ritualData['title']) ? $ritualData['title'] : ''; ?> " maxlength="55" placeholder="Ritual Title" class="form-control" > </div> <div class="form-group margin">
<?php $ritualid = isset($_POST['postvalue']) ? filter_input(INPUT_POST, 'postvalue') : 0; include_once filter_input(INPUT_SERVER, 'DOCUMENT_ROOT', FILTER_SANITIZE_STRING) . "/eventconfig.php"; include_once CLASSFOLDER . "/dbconnection.php"; include_once CLASSFOLDER . "/rituals.php"; $rituals = new ritualclass($dbconnection->dbconnector); include_once CLASSFOLDER . "/catalogs.php"; $catalog = new catalogclass($dbconnection->dbconnector); $servicecatalogs = $catalog->GetAllCatalogValues('Services'); $ritualData = !empty($ritualid) ? $rituals->getRitualById($ritualid) : array(); $attachment = !empty($ritualid) ? $rituals->getRitualAttachments($ritualid) : null; ?> <link href="../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" /> <form id="update-ritualdetails" name="update-ritualdetails" action="" method="post" novalidate="novalidate"> <input type="hidden" id="ritualid" name="ritualid" value="<?php echo !empty($ritualid) ? $ritualid : 0; ?> " /> <div class="box box-primary"> <div class="box-body"> <div class="row"> <div class="form-group margin"> <label><span class="text-error">*</span>Title</label> <input type="text" id="title" name="title" value="<?php echo !empty($ritualData['title']) ? $ritualData['title'] : ''; ?> " maxlength="55" placeholder="Ritual Title" class="form-control" > </div> <div class="form-group margin"> <div class="col-sm-6"> <label><span class="text-error">*</span> Description</label>
function GetAllRitualTitles() { include_once CLASSFOLDER . "/rituals.php"; $rituals = new ritualclass($this->internalDB); return $rituals->getAllRitualNames(); }
<?php include_once $_SERVER['DOCUMENT_ROOT'] . "/eventconfig.php"; include_once CLASSFOLDER . "/dbconnection.php"; include_once CLASSFOLDER . "/rituals.php"; $rituals = new ritualclass($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">Ritual List</h3> <a title="Update Event" class="btn btn-default pull-right btn-sm " href="javascript:void(0)" onclick="getcontents('pages/events/updaterituals.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 $totalRituals = $rituals->getTotalRituals(null); if ($totalRituals > 0) { if ($totalRituals >= ($page - 1) * $rows) {