function viewTable($data, $count) { $maincity = new MainCity(); $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewMainCitys"); $paginations->setTotalPages($count); $paginations->makePagination(); ?> <div class="mws-panel-header"> <span class="mws-i-24 i-table-1">View Main City</span> </div> <div class="mws-panel-body"> <table cellpadding="0" cellspacing="0" border="0" class="mws-datatable-fn mws-table"> <colgroup> <col class="con0"/> <col class="con1"/> </colgroup> <thead> <tr> <th class="head1">Main City Name</th> <th class="head0">Main City SEO</th> <th class="head0"> </th> <th class="head1"> </th> </tr> </thead> <tbody> <?php if (count($data) > 0) { ?> <?php for ($i = 0; $i < count($data); $i++) { $maincity->extractor($data, $i); ?> <tr id="row_<?php echo $maincity->mainCityId(); ?> "> <td class="con1"><?php echo $maincity->mainCityName(); ?> </td> <td class="con0"><?php echo $maincity->mainCitySeo(); ?> </td> <td class="con0"><?php //echo $admins->username(); ?> </td> <td class="center"><a onclick="loadGUIContent('maincity','edit','<?php echo $maincity->mainCityId(); ?> ')">Edit</a> <a onclick="deleteMainCity(<?php echo $maincity->mainCityId(); ?> )" class="toggle">Delete</a> </td> </tr> <?php } ?> <?php } ?> </tbody> </table> <?php $paginations->drawPagination(); }
function viewTable($data, $count) { $clients = new Clients(); $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewClients"); $paginations->setTotalPages($count); $paginations->makePagination(); ?> <div class="mws-panel-header"> <span class="mws-i-24 i-table-1">View Client</span> </div> <div class="mws-panel-body"> <table cellpadding="0" cellspacing="0" border="0" class="mws-datatable-fn mws-table"> <thead> <tr> <th>Client Name</th> <th>Client Address</th> <th>Client Email</th> </tr> </thead> <tbody> <?php if (count($data) > 0) { ?> <?php for ($i = 0; $i < count($data); $i++) { $clients->extractor($data, $i); ?> <tr id="row_<?php echo $clients->clientId(); ?> "> <td><?php echo $clients->clientFirstName() . ' ' . $clients->clientLastName(); ?> </td> <td><?php echo $clients->clientAddress(); ?> </td> <td><?php echo $clients->clientEmail(); ?> </td> </tr> <?php } ?> <?php } ?> </tbody> </table> <?php $paginations->drawPagination(); }
function viewTable($data, $count) { $member_bank_details = new MemberBankDetails(); $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewMemberBankDetails"); $paginations->setTotalPages($count); $paginations->makePagination(); ?> <table cellpadding="0" cellspacing="0" border="0" class="stdtable stdtablequick"> <colgroup> <col class="con0"/> <col class="con1"/> </colgroup> <thead> <tr> <th class="head1">Name</th> <th class="head0">Email</th> <th class="head0">Username</th> <th class="head1"> </th> </tr> </thead> <tbody> <?php if (count($data) > 0) { ?> <?php for ($i = 0; $i < count($data); $i++) { $member_bank_details->extractor($data, $i); ?> <tr id="row_<?php echo $member_bank_details->bankId(); ?> "> <td class="con1"><?php echo $member_bank_details->bankName(); ?> </td> <td class="con0"><?php echo $member_bank_details->bankBranch(); ?> </td> <td class="con0"><?php echo $member_bank_details->bankAccountNumber(); ?> </td> <td class="center"><a href="category.php?id=<?php echo $member_bank_details->bankId(); ?> ">Edit</a> | <a href="javascript:;" onclick="deleteCategory(<?php echo $member_bank_details->bankId(); ?> )" class="toggle">Delete</a> </td> </tr> <?php } ?> <?php } ?> </tbody> </table> <?php $paginations->drawPagination(); }
function viewTable($data, $count) { $category = new Category(); $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewCategory"); $paginations->setTotalPages($count); $paginations->makePagination(); ?> <div class="mws-panel-header"> <span class="mws-i-24 i-table-1">View Category</span> </div> <div class="mws-panel-body"> <table cellpadding="0" cellspacing="0" border="0" class="mws-datatable-fn mws-table"> <thead> <tr> <th>Category Name</th> <th>Category Seo Name</th> <th>Action</th> </tr> </thead> <tbody> <?php if (count($data) > 0) { ?> <?php for ($i = 0; $i < count($data); $i++) { $category->extractor($data, $i); ?> <tr id="row_<?php echo $category->categoryId(); ?> "> <td><?php echo $category->categoryName(); ?> </td> <td><?php echo $category->categorySeoName(); ?> </td> <td class="center"> <a onclick="loadGUIContent('category','edit','<?php echo $category->categoryId(); ?> ')" class="link_hand">Edit</a> <a onclick="deleteCategory(<?php echo $category->categoryId(); ?> )" class="toggle" class="link_hand">Delete</a></td> </tr> <?php } ?> <?php } ?> </tbody> </table> </div> <?php $paginations->drawPagination(); }
function viewTable($data, $count) { $admins = new Administrators(); $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewAdministrators"); $paginations->setTotalPages($count); $paginations->makePagination(); ?> <table cellpadding="0" cellspacing="0" border="0" class="stdtable stdtablequick"> <colgroup> <col class="con0"/> <col class="con1"/> </colgroup> <thead> <tr> <th class="head1">Name</th> <th class="head0">Email</th> <th class="head0">Username</th> <th class="head1"> </th> </tr> </thead> <tbody> <?php if (count($data) > 0) { ?> <?php for ($i = 0; $i < count($data); $i++) { $admins->extractor($data, $i); ?> <tr id="row_<?php echo $admins->id(); ?> "> <td class="con1"><?php echo $admins->name(); ?> </td> <td class="con0"><?php echo $admins->email(); ?> </td> <td class="con0"><?php echo $admins->username(); ?> </td> <td class="center"><a href="administrator.php?id=<?php echo $admins->id(); ?> ">Edit</a> | <a href="javascript:;" onclick="deleteAdministrator(<?php echo $admins->id(); ?> )" class="toggle">Delete</a></td> </tr> <?php } ?> <?php } ?> </tbody> </table> <?php $paginations->drawPagination(); }
function viewTable($data, $count) { $subscribe = new Subscribe(); $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewSubscribe"); $paginations->setTotalPages($count); $paginations->makePagination(); ?> <div class="mws-panel-header"> <span class="mws-i-24 i-table-1">View Subscribe</span> </div> <div class="mws-panel-body"> <table cellpadding="0" cellspacing="0" border="0" class="mws-datatable-fn mws-table"> <thead> <tr> <th>Subscribe Email Address</th> <th>Action</th> </tr> </thead> <tbody> <?php foreach ($data as $sdtata) { ?> <tr id="row_<?php echo $sdtata['id']; ?> "> <td><?php echo $sdtata['email']; ?> </td> <td> <a onclick="deleteSubscribe(<?php echo $sdtata['id']; ?> );" style="cursor:pointer;">Delete This Email Address</a> </td> </tr> <?php } ?> </tbody> </table> <?php $paginations->drawPagination(); }
function viewTable($data, $count) { $offers = new Offers(); $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("view"); $paginations->setTotalPages($count); $paginations->makePagination(); ?> <div class="mws-panel-header"> <span class="mws-i-24 i-table-1">View Offers</span> </div> <table cellpadding="0" cellspacing="0" border="0" class="mws-datatable-fn mws-table"> <colgroup> <col class="con0"/> <col class="con1"/> </colgroup> <thead> <tr> <th class="head1">Title</th> <th class="head0">From Date</th> <th class="head0">To Date</th> <th class="head0">Status</th> <th class="head1">Action</th> </tr> </thead> <tbody> <?php if (count($data) > 0) { ?> <?php for ($i = 0; $i < count($data); $i++) { $offers->extractor($data, $i); $status = Libs::get("all_status"); ?> <tr id="row_<?php echo $offers->id(); ?> "> <td class="con1"><?php echo $offers->title(); ?> </td> <td class="con1"><?php echo $offers->fromDate(); ?> </td> <td class="con1"><?php echo $offers->toDate(); ?> </td> <td class="con0"><?php echo $status[$offers->status()]; ?> </td> <td class="center"> <a onclick="loadGUIContent('offers','edit','<?php echo $offers->id(); ?> ')">Edit</a> <a onclick="_delete(<?php echo $offers->id(); ?> )" class="toggle">Delete</a> <!-- <a href="offers.php?id=--> <?php //echo $offers->id(); ?> <!--" >Edit</a> | <a href="javascript:;" onclick="_delete(--> <?php //echo $offers->id(); ?> <!--)" class="toggle">Delete</a>--> </td> </tr> <?php } ?> <?php } ?> </tbody> </table> <?php $paginations->drawPagination(); }
function viewTableSpecialOfferHotels($data, $count) { $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewSpecialOfferHotelsFront"); $paginations->setTotalPages($count); $paginations->makePagination(); $mainCity = new MainCity(); $hotels = new Hotels(); $country = new country(); $SubCity = new SubCity(); $hotelimages = new HotelImages(); $discount = new HotelRoomRates(); ?> <div class="after-mid"> <div class="accordian-cont"> <ul id="ulHotelList" class="hotelList"> <?php for ($x = 0; $x < count($data); $x++) { $hotels->extractor($data, $x); $discount->setHotelId($hotels->hotelId()); $discount_data = $discount->getRatesFromHotelId(); $discount->extractor($discount_data); $rateAvailable = $hotels->getLowestRate(); if ($rateAvailable['RateAvailable'] == true) { $new_hotel = new Hotels(); $new_hotel->setHotelId($hotels->hotelId()); $new_hotel_data = $new_hotel->getHotelFromId(); $new_hotel->extractor($new_hotel_data); $hotelimages->setImageHotelId($new_hotel->hotelId()); $hotelimages->extractor($hotelimages->getImageFromHotelsIdOne()); $mainCity_discount = new MainCity(); $mainCity_discount->setMainCityId($new_hotel->hotelMainCityId()); $mainCity_discount->extractor($mainCity_discount->getMainCityFromId()); $filename = DOC_ROOT . 'uploads/hotels/thumbnails/' . $hotelimages->imageName(); ?> <li> <a href="<?php echo HTTP_PATH; echo $new_hotel->hotelSeoUrl(); ?> .html"> <?php if (file_exists($filename) && $hotelimages->imageName() != "") { ?> <img src="<?php echo HTTP_PATH . 'uploads/hotels/thumbnails/' . $hotelimages->imageName(); ?> " width="151" height="130" alt="new_hotel"/> <?php } else { ?> <img src="images/no_image.jpg" alt="image" width="151" height="130"/> <?php } ?> <div class="hotel-name-price"> <h5 onclick="makeAlert(<?php echo $new_hotel->hotelId(); ?> );"><?php echo $new_hotel->hotelName(); ?> </h5> <input type="hidden" id="<?php echo $new_hotel->hotelId(); ?> " name="<?php echo $new_hotel->hotelId(); ?> " value="<?php echo $new_hotel->hotelSeoUrl(); ?> "/> </div> <div> <span><?php echo $mainCity_discount->mainCityName(); ?> </span> </div> <div class="price-box"> <span>From</span> <span class="price"> <?php echo $_SESSION['defaultCurrency'] . ' ' . $rateAvailable['Rate']; ?> </span> <p></p> </div> </a> </li> <?php } ?> <div id="pagination"><?php $paginations->drawPagination(); ?> </div> <?php } ?> </ul> </div> </div> <?php }
function viewTable($data, $count) { $currency = new Currency(); $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewCurrencys"); $paginations->setTotalPages($count); $paginations->makePagination(); ?> <div class="mws-panel-header"> <span class="mws-i-24 i-table-1">View Currency</span> </div> <div class="mws-panel-body"> <table cellpadding="0" cellspacing="0" border="0" class="mws-datatable-fn mws-table"> <colgroup> <col class="con0"/> <col class="con1"/> </colgroup> <thead> <tr> <th class="head1">Currency Code</th> <th class="head0">Currency Perfix</th> <th class="head0">Currency Suffix</th> <th class="head1"> </th> </tr> </thead> <tbody> <?php if (count($data) > 0) { ?> <?php for ($i = 0; $i < count($data); $i++) { $currency->extractor($data, $i); ?> <tr id="row_<?php echo $currency->currId(); ?> "> <td class="con1"><?php echo $currency->currCode(); ?> </td> <td class="con0"><?php echo $currency->currPrefix(); ?> </td> <td class="con0"><?php echo $currency->currSuffix(); ?> </td> <td class="center"> <a onclick="loadGUIContent('currency','edit','<?php echo $currency->currId(); ?> ')">Edit</a> <a onclick="deleteCurrency(<?php echo $currency->currId(); ?> )" class="toggle">Delete</a> </td> </tr> <?php } ?> <?php } ?> </tbody> </table> </div> <?php $paginations->drawPagination(); }
function viewTableFront($data, $count) { $news = new News(); $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewNewsFront"); $paginations->setTotalPages($count); $paginations->makePagination(); ?> <?php for ($k = 0; $k < count($data); $k++) { $news->extractor($data, $k); ?> <div class="event-display-box-r"> <div class="event-box-txt-r"> <h3><span class="tour-box-title-col"><?php echo $news->title(); ?> </span></h3> <span class="event-date"><!--Duration Period From 2013-12-01 To 2013-04-30--></span> <p> <?php echo $news->body(); ?> </p> <!--<div class="tour-box-more"><a href="">+ more</a></div>--> </div> <div class="tour-box-image"><img src="<?php HTTP_PATH; ?> uploads/news/<?php echo $news->image(); ?> " width="150" height="110"/></div> <div style="clear:both"></div> </div> <?php } ?> <div id="pagination"> <?php $paginations->drawPagination(); }
function viewTableFront($data, $count) { $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewHotelsFront"); $paginations->setTotalPages($count); $paginations->makePagination(); $mainCity = new MainCity(); $hotels = new Hotels(); $dicount_hotel = new Hotels(); $country = new country(); $SubCity = new SubCity(); $hotelimages = new hotelimages(); $discount = new HotelRoomRates(); ?> <?php for ($x = 0; $x < count($data); $x++) { $dicount_hotel->extractor($data, $x); $discount->setHotelId($dicount_hotel->hotelId()); $discount_data = $discount->getRatesFromHotelId(); $discount->extractor($discount_data); if (round($discount->discountRatesUpLocal()) >= 0) { $new_hotel = new Hotels(); $new_hotel->setHotelId($dicount_hotel->hotelId()); $new_hotel_data = $new_hotel->getHotelFromId(); $new_hotel->extractor($new_hotel_data); $hotelimages->setImageHotelId($new_hotel->hotelId()); $hotelimages->extractor($hotelimages->getImageFromHotelsIdOne()); $mainCity_discount = new MainCity(); $mainCity_discount->setMainCityId($new_hotel->hotelMainCityId()); $mainCity_discount->extractor($mainCity_discount->getMainCityFromId()); $filename = '../../uploads/hotels/thumbnails/' . $hotelimages->imageName(); ?> <div class="offer-listing"> <?php if (file_exists($filename) && $hotelimages->imageName() != "") { ?> <img src="uploads/hotels/thumbnails/<?php echo $hotelimages->imageName(); ?> " width="157" height="130" alt="new_hotel"/> <?php } else { ?> <img src="images/no_image.jpg" alt="image" width="151" height="130"/> <?php } ?> <h4 onclick="makeAlert(<?php echo $new_hotel->hotelId(); ?> );" style="cursor:pointer;"><?php echo $new_hotel->hotelName(); ?> </h4> <input type="hidden" id="<?php echo $new_hotel->hotelId(); ?> " name="<?php echo $new_hotel->hotelId(); ?> " value="<?php echo $new_hotel->hotelSeoUrl(); ?> "/> <h5><?php echo $mainCity_discount->mainCityName(); ?> </h5> <p> <?php echo substr($new_hotel->hotelDescription(), 0, 250); ?> </p> <div class="price_tag"> <span class="striked_price"><!--Rs. 5,600--></span> <span class="actual_price"><?php if ($discount->dblBbSellLocal()) { echo 'LKR ' . $discount->dblBbSellLocal(); } else { echo 'N/A'; } ?> </span> <span class="label">Price Per Night</span> </div> <button onclick="makeAlert(<?php echo $new_hotel->hotelId(); ?> );">Book Now ></button> </div> <?php } } ?> <div id="pagination"><?php $paginations->drawPagination(); ?> </div><?php }
function viewTable($data, $count) { $reservation = new Reservations(); $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewReservations"); $paginations->setTotalPages($count); $paginations->makePagination(); ?> <div class="mws-panel-header"> <span class="mws-i-24 i-table-1">View Reservations</span> </div> <div class="mws-panel-body"> <table cellpadding="0" cellspacing="0" border="0" class="mws-datatable-fn mws-table"> <colgroup> <col class="con0"/> <col class="con1"/> </colgroup> <thead> <tr> <th class="head1">Hotel</th> <th class="head0">Client</th> <th class="head0">Room Rate</th> <th class="head1">Total Price</th> </tr> </thead> <tbody> <?php if (count($data) > 0) { ?> <?php for ($i = 0; $i < count($data); $i++) { $reservation->extractor($data, $i); $hotels = new Hotels(); $hotels->setHotelId($reservation->reservationHotelId()); $hotels->extractor($hotels->getHotelFromId()); $clients = new Clients(); $clients->setClientId($reservation->reservationClientId()); $clients->extractor($clients->getClientFromId()); ?> <tr id="row_<?php echo $reservation->reservationId(); ?> "> <td class="con1"><?php echo $hotels->hotelName(); ?> </td> <td class="con0"><?php echo $clients->clientFirstName() . ' - ' . $clients->clientFirstName(); ?> </td> <td class="con0"><?php echo $reservation->reservationRoomRate(); ?> </td> <td class="center"><?php echo $reservation->reservationTotalPrice(); ?> </td> </tr> <?php } ?> <?php } ?> </tbody> </table> </div> <?php $paginations->drawPagination(); }
function viewTable($data, $count) { $hotelfeatureslist = new HotelFetursList(); $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewHotelFetursList"); $paginations->setTotalPages($count); $paginations->makePagination(); ?> <div class="mws-panel-header"> <span class="mws-i-24 i-table-1">View Hotel Feature List</span> </div> <div class="mws-panel-body"> <table cellpadding="0" cellspacing="0" border="0" class="mws-datatable-fn mws-table"> <colgroup> <col class="con0"/> <col class="con1"/> </colgroup> <thead> <tr> <th class="head1">Name</th> <th class="head0"> </th> <th class="head0"> </th> <th class="head1"> </th> </tr> </thead> <tbody> <?php if (count($data) > 0) { ?> <?php for ($i = 0; $i < count($data); $i++) { $hotelfeatureslist->extractor($data, $i); ?> <tr id="row_<?php echo $hotelfeatureslist->hotelFeatureListId(); ?> "> <td class="con1"><?php echo $hotelfeatureslist->hotelFeatureListName(); ?> </td> <td class="con0"><?php //echo $hotelfeatureslist->categorySeoName(); ?> </td> <td class="con0"><?php //echo $hotelfeatureslist->username(); ?> </td> <td class="center"> <a onclick="loadGUIContent('hotelfeturslist','edit','<?php echo $hotelfeatureslist->hotelFeatureListId(); ?> ')">Edit</a> <a onclick="deleteHotelFetursList(<?php echo $hotelfeatureslist->hotelFeatureListId(); ?> )" class="toggle">Delete</a></td> </td> </tr> <?php } ?> <?php } ?> </tbody> </table> </div> <?php $paginations->drawPagination(); }