예제 #1
0
    function schd_booking_form()
    {
        global $booking_payment_methods;
        $schd_id = base64_decode($_REQUEST['schd_id']);
        $loc_id = base64_decode($_REQUEST['loc_id']);
        $date = base64_decode($_REQUEST['date']);
        $mc = new booking_message_class();
        $mc->show_message();
        if ($schd_id == '' or $loc_id == '' or $date == '') {
            return;
        }
        ?>
    <div id="book_forms">
    <form name="f" action="" method="post">
    <input type="hidden" name="option" value="SchdBookingSubmit">
    <input type="hidden" name="schd_id" value="<?php 
        echo $schd_id;
        ?>
">
    <input type="hidden" name="loc_id" value="<?php 
        echo $loc_id;
        ?>
">
    <input type="hidden" name="schd_date" value="<?php 
        echo $date;
        ?>
">
    <div class="form-group">
        <label for="name"><?php 
        _e('Name', 'wpb');
        ?>
 </label>
        <input type="text" name="c_name" required="required" placeholder="<?php 
        _e('Name', 'wpb');
        ?>
"/>
    </div>
    <div class="form-group">
        <label for="email"><?php 
        _e('Email', 'wpb');
        ?>
 </label>
        <input type="text" name="c_email" required="required" placeholder="<?php 
        _e('Email', 'wpb');
        ?>
"/>
    </div>
    <div class="form-group">
        <label for="phone"><?php 
        _e('Phone', 'wpb');
        ?>
 </label>
        <input type="text" name="c_phone" required="required" placeholder="<?php 
        _e('Phone', 'wpb');
        ?>
"/>
    </div>
    
    <div class="form-group"><input name="submit" type="submit" value="<?php 
        _e('Book Now', 'wpb');
        ?>
" /></div>
    </form>
    </div>
    <?php 
    }
 function display_list()
 {
     $mc = new booking_message_class();
     $mc->show_message();
     echo $this->wrap_div_start();
     if (isset($_REQUEST['action']) and $_REQUEST['action'] == 'edit') {
         $this->edit();
     } elseif (isset($_REQUEST['action']) and $_REQUEST['action'] == 'add') {
         $this->add();
     } else {
         $this->lists();
     }
     echo $this->wrap_div_end();
 }