<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) { $eventlists = $events->getalleventlists($page, $rows, null); ?> <table id="eventtable" class="table table-bordered table-hover dataTable" aria-describedby="example2_info"> <thead><tr > <th>Event Id</th> <th>Event Name</th> <th >Description</th> <th >Creatd On</th> <th >Icon</th> </tr></thead> <?php foreach ($eventlists as $rowdata) { ?> <tr > <td ><?php
function GetAllEvents($page, $rows, $earchobj) { include_once CLASSFOLDER . "/events.php"; $events = new eventclass($this->internalDB); return $events->getalleventlists($page, $rows, $earchobj); }