function lists($where = '') { if ($where != '') { $where = ' && ' . $where; } $where = 'lang = ' . $_SESSION['lang'] . $where; $result = $this->db->lists($this->table, '', $where, 'position,ordering'); $i = 0; $target = ''; while ($row = $this->db->fetch_assoc($result)) { $list[$i]->menu_id = $row[$this->key]; $list[$i]->name = $row['name']; if ($row['target'] != '') { $target = 'target =' . $row['target']; } if (strpos($row['link'], '&id=') == true || strpos($row['link'], '&cha=') == true || strpos($row['link'], '&cat=') == true) { $alias = '&alias=' . seourl($row['name']); } else { $alias = ''; } $list[$i]->link = change_url($row['link'] . $alias); $list[$i]->position = $row['position']; $list[$i]->ordering = $row['ordering']; $list[$i]->alow = $row['alow']; $list[$i]->child = $row['child']; $list[$i]->target = $target; $i++; } $this->db->free_result($result); return $list; }
<div class="namecardText2"> <?php echo $top_type_name2; ?> </div> </div> <?php } foreach ($ca as $id) { echo $counter2++; $card = $credit_cards->detail1('*', $id, $type_args); if ($card) { if ($card['alias'] != '') { $alias = $card['alias']; } else { $alias = seourl($card['OfferName']); } $good = intval($card['good']); $top = $card['top']; //echo $alias."<br>"; ?> <!-- bat dau infor card--> <?php if ($card['OfferId'] != $featured) { $card['OfferName2'] = $listid == 4 && isset($top_list_names[$card['OfferId']]) && trim($top_list_names[$card['OfferId']]) ? $top_list_names[$card['OfferId']] : ""; ?> <div class="infocard2 card-details"> <?php
echo $row->link_demo; ?> "><?php echo $template->show_image($row->image, $product->path . 'resize/', 'alt="Website " title=" website" width="120px" align="center" '); ?> </a> <br /><br /> <div><span style="font-weight: bold;">Price: </span><span style="font-weight: bold; color: red;"><?php echo $price; ?> </span></div> <div class="dathang"><a target="_blank" class="xanhlacay" href="<?php echo $row->link_demo; ?> ">Xem Demo</a> | <a class="xanhlacay" href="<?php echo change_url('index.php?module=request&id=' . $row->pro_id . '&alias=' . seourl($row->name) . '"'); ?> ">Order</a></div> </td> </tr> </tbody> </table> </td> <?php if ($i % 3 == 0) { echo '</tr><tr>'; } $i++; }
?> <tr> <td colspan="2"> <b>Danh sách câu hỏi:</b> </td> </tr> <tr> <td width="2%"> <b><?php echo $i; ?> .</b> </td> <td> <a class="faq_question" href="<?php echo change_url('index.php?module=faq&id=' . $row->faq_id . '&alias=' . seourl($row->question)); ?> "><?php echo $row->question; ?> </a> </td> </tr> <?php $i++; } echo '</table>'; } ?>
<?php if (!defined('INCLUDED')) { die("Access Denied"); } $cards = $credit_cards->lists('special=1', 'ordering ASC'); $i = 1; foreach ($cards as $card) { if ($card->alias != '') { $alias = $card->alias; } else { $alias = seourl($card->OfferName); } if ($i == 3) { $border = ''; } if (intval($card->BigCreative) != 0) { $image = intval($card->BigCreative); $row_img = $advertise->detail1($image); $img = "upload/adv/" . $row_img['image']; } else { $img = $card->BigCreative; } $dt = $card->Textdisplay ? $card->Textdisplay : "visit credit card website for complete details"; /* start word limiter */ //comment out entire word limiter for all text //* $dt = explode('</li>', $dt); $dt = str_replace('<ul>', '', $dt[0]); $dt = str_replace('<li>', '', $dt); $dt = word_limiter($dt, 33);
<?php if ($setting['seo_on'] == 0) { $message_url = 'index.php?task=messages'; } else { $message_url = 'messages'; } $url = ProfileUrl($_COOKIE['ava_userid'], seourl($_COOKIE['ava_username'])); if (isset($_COOKIE["ava_username"])) { $new_messages = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM ava_messages WHERE `read` = 0 AND user_id=" . $userid . ""), 0); echo '<b>' . $_COOKIE['ava_username'] . ' logged in</b><br /><a href=' . $setting['site_url'] . '/login.php?action=logout>' . LOGOUT . '</a><br /><a href="' . $setting['site_url'] . '/' . $message_url . '">' . MESSAGES . '</a> (' . $new_messages . ')<br><a href=' . $setting['site_url'] . '/' . $url . '>' . MY_PROFILE . '</a>'; $sql = mysql_query("SELECT * FROM ava_users WHERE id=" . $userid . ""); while ($row = mysql_fetch_array($sql)) { if ($row['admin'] == 1) { echo "<br /><a href=" . $setting['site_url'] . "/admin/>Administration</a>"; } } } else { echo '<div align="center">'; if ($setting['play_limit'] == 1) { if ($setting['plays'] <= $_COOKIE["ava_plays"]) { echo '<strong>' . REGISTER_NOW . '</strong>'; } else { $left = $setting['plays'] - $_COOKIE["ava_plays"]; echo '<strong>' . YOU_HAVE . ' ' . $left . ' ' . YOU_HAVE2 . '</strong>'; } } include 'content/login.php'; }
echo 'COM_BOOKINGFORCONNECTOR_SEARCHONSELL_VIEW_SEARCHRESULTS_TITLE-' . $total; ?> </h1> <div class="com_bookingforconnector-resourcelist"> <?php foreach ($results as $result) { ?> <?php $resource = $result; $resource->Price = $result->MinPrice; $resourceName = BFCHelper::getLanguage($resource->Name, $language, null, array('ln2br' => 'ln2br', 'striptags' => 'striptags')); $showResourceMap = false; //(($resourceLat != null) && ($resourceLon !=null) && $isMapVisible && $isMapMarkerVisible); $route = url('merchant-details/sale/' . $resource->ResourceId . '-' . seourl($resourceName)); $routeInfoRequest = ''; $routeRapidView = url('merchant-details/sale/' . $resource->ResourceId . '-' . seourl($resourceName), array('query' => array('layout' => 'rapidview'))); ?> <div class="com_bookingforconnector_search-resource"> <div class="com_bookingforconnector_merchantdetails-resource" id="container<?php echo $resource->ResourceId; ?> "> <div class="row-fluid "> <div class="span12 minhlist"> <div class="com_bookingforconnector_merchantdetails-resource-features"> <!-- img --> <a class="lensimg boxedpopup" id="lensimg<?php echo $resource->ResourceId; ?> " href="<?php echo $routeRapidView;
foreach ($cards as $card) { $holdcard = ""; $details = $credit_cards->detail2('OfferName,RedirectLink,alias,BigCreative,TextDetails', $card); if ($details['OfferName'] != '') { $mycount++; $img_id = $details['BigCreative']; if (intval($img_id) != 0) { $image = intval($details['BigCreative']); $row_img = $advertise->detail1($image); $img = "upload/adv/resize/" . $row_img['image']; } else { $img = $details['BigCreative']; } $holdcard .= "<div class='text_detail' style='list-style: none;text-align:center;'>"; $holdcard .= '<img src="' . $img . '" style="border-width: 0px;margin: 5px;" >'; $holdcard .= "<div class=\"text-title-Content-card-top1\"><a href=\"{$details['alias']}\" target=\"_blank\">{$details['OfferName']}</a></div> \n \n <div style=\"margin-left:6px;margin-bottom:3px;list-style: none;\">" . $details['TextDetails'] . "</div>\n \n <div style=\"margin-left: 26px;margin-bottom: -5px;\"><a title=\"Apply Now\" href=\"" . change_url('index.php?module=request&id=' . $card . '&alias=' . seourl($details['OfferName'])) . "\" target=\"_blank\"><img src=\"images/applynowdetails.gif\" width=\"140px\" height=\"40px\"/></a></div>"; } $holdcards .= $holdcards ? "</div><br><hr width='100%' style='margin-left:-0px;'>{$holdcard}" : "{$holdcard}"; } echo $holdcards ? $holdcards . "<br>" : $holdcards; ?> </div> <?php } else { ?> <div class="content-apply-text2"> <div class="detail_news"> <?php if ($row['description'] != '') { echo "<p>";
printf(__('%1$s Results Found'), $total); ?> </h1> <div class="com_bookingforconnector-resourcelist"> <?php foreach ($results as $result) { ?> <?php $resource = $result; $resource->Price = $result->MinPrice; $resourceName = BFCHelper::getLanguage($resource->Name, $language, null, array('ln2br' => 'ln2br', 'striptags' => 'striptags')); $showResourceMap = false; //(($resourceLat != null) && ($resourceLon !=null) && $isMapVisible && $isMapMarkerVisible); $route = $base_url . '/merchant-details/sale/' . $resource->ResourceId . '-' . seourl($resourceName); $routeInfoRequest = ''; $routeRapidView = $base_url . '/merchant-details/sale/' . $resource->ResourceId . '-' . seourl($resourceName) . '/?layout=rapidview'; ?> <div class="com_bookingforconnector_search-resource"> <div class="com_bookingforconnector_merchantdetails-resource" id="container<?php echo $resource->ResourceId; ?> "> <div class="<?php echo COM_BOOKINGFORCONNECTOR_BOOTSTRAP_ROW; ?> "> <div class="<?php echo COM_BOOKINGFORCONNECTOR_BOOTSTRAP_COL; ?> 12 minhlist"> <div class="com_bookingforconnector_merchantdetails-resource-features">