<div class="content-wrapper clearfix features"> <h2>Features of <?php echo $hotels->hotelName(); ?></h2> <div class="group-set"> <?php $hotelFeatureType = new HotelFetursType(); $hFeatureType_data = $hotelFeatureType-> getAllHotelFeatureType(); for($ft=0; $ft<count($hFeatureType_data); $ft++){ $hotelFeatureType->extractor($hFeatureType_data,$ft); ?> <div class="acc-inner-cont"> <div class="left-sec"><?php echo $hotelFeatureType->hotelFeatureTypeName(); ?></div> <ul class="right-sec"> <?php //get feature list $hotelFeatureList = new HotelFetursList();//hotel_feature_type_id $hotelFeatureList->setHotelFeatureListTypeId($hotelFeatureType->hotelFeatureTypeId()); $hfeatureList_data = $hotelFeatureList->getHotelFeatureListFromTypeId(); for($fl=0; $fl<count($hfeatureList_data); $fl++){ $hotelFeatureList->extractor($hfeatureList_data,$fl); $featursIDlist = explode(",", $hotels->hotelFeatures()); $listID = $hotelFeatureList->hotelFeatureListId(); if(in_array($listID,$featursIDlist)){ ?><li class="check-mark"><?php echo $hotelFeatureList->hotelFeatureListName(); ?></li><?php } } ?> </ul>
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(); }