<?php
ob_start();
include_once 'classes/common.php';
include_once 'classes/DB.class.php';
include_once 'session/admin-session.php';
ini_set("display_errors", 0);
$db = new DB();

$admin_id = $_SESSION['rcuesr_room_admin_id'];

// Getting the List Of Compnay
$EventListArr = $db->selectWithCols("rcuesr_event_tbl", "event_pk_id, event_name, event_details", "1 AND status='1'");
?>
<div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12 ">
        <h3>Event List</h3>
        <div class="box box-primary">
            <div class="box-body">
                <div class="row">
                    <a href="event-add.php" class="btn btn-success" style="float: right;">Add Event</a>
                </div>
                <div class="clearfix"></div><br/>
                <div class="table-responsive ">
                    <table class="table table-striped table-hover table-bordered table-condensed" id="company_id">
                        <thead>
                            <tr>
                                <th width="3%">
                                    #
                                </th>
                                <th width="20%">
                                    Event Name
                                </th>
                                <th width="56%">
                                    Event Detail
                                </th>
                                   <th width="10%">
                                    Action
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $c = 1;
                            foreach ($EventListArr as $ELA) { ?>
                                <tr><td><?php echo $c; ?></td>
                                    <td><?php echo common::StrFromDb($ELA['event_name']); ?></td>
                                    <td><?php echo common::StrFromDb($ELA['event_details']); ?></td>
                                    <td>
                                        <a href="event-edit.php?EventID=<?php echo $ELA['event_pk_id']; ?>" class="fa fa-edit"></a> &nbsp; | &nbsp;
                                        <a href="room-booking.php?EventID=<?php echo $ELA['event_pk_id']; ?>" class="fa fa-home"></a> &nbsp; | &nbsp;
                                        <!--<a href="transfer-guest.php?EventID=<?php echo $ELA['event_pk_id']; ?>" class="fa fa-arrow-right"></a>-->
                                    </td>
                                </tr>
                                <?php $c = $c + 1;
                            } ?>
                        </tbody>
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<div class="clearfix"></div><br/><br/>
<?php
$mainpagecontent = ob_get_contents();
ob_clean();
include 'admin-master.php';
?>