예제 #1
0
  <?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">
예제 #2
0
 function GetAllRitualTitles()
 {
     include_once CLASSFOLDER . "/rituals.php";
     $rituals = new ritualclass($this->internalDB);
     return $rituals->getAllRitualNames();
 }