当前位置: 首页>>代码示例>>PHP>>正文


PHP lc_image函数代码示例

本文整理汇总了PHP中lc_image函数的典型用法代码示例。如果您正苦于以下问题:PHP lc_image函数的具体用法?PHP lc_image怎么用?PHP lc_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了lc_image函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: initialize

 public function initialize()
 {
     global $lC_Services, $lC_RecentlyVisited, $lC_Language, $lC_Image, $lC_Product;
     if ($lC_Services->isStarted('recently_visited') && $lC_RecentlyVisited->hasHistory()) {
         $this->_content = '';
         if ($lC_RecentlyVisited->hasProducts()) {
             foreach ($lC_RecentlyVisited->getProducts() as $product) {
                 // VQMOD-hookpoint; DO NOT MODIFY OR REMOVE THE LINE BELOW
                 $lC_Product = new lC_Product($product['id']);
                 $this->_content .= '<div class="content-recently-visited-container">' . "\n" . '  <div class="content-recently-visited-name">' . lc_link_object(lc_href_link(FILENAME_PRODUCTS, $lC_Product->getKeyword()), $lC_Product->getTitle()) . '</div>' . "\n";
                 if ($lC_Product->hasImage()) {
                     $this->_content .= '<div class="content-recently-visited-image">' . (SERVICE_RECENTLY_VISITED_SHOW_PRODUCT_IMAGES == '1' ? lc_link_object(lc_href_link(FILENAME_PRODUCTS, $lC_Product->getKeyword()), $lC_Image->show($lC_Product->getImage(), $lC_Product->getTitle(), 'class="content-recently-visited-image-src"', 'small')) : NULL) . '</div>' . "\n";
                 }
                 $this->_content .= '  <div class="content-recently-visited-price pricing-row">' . $lC_Product->getPriceFormated(true) . '</div>' . "\n" . '  <div class="content-recently-visited-from">' . sprintf($lC_Language->get('recently_visited_item_in_category'), lc_link_object(lc_href_link(FILENAME_DEFAULT, 'cPath=' . $product['category_path']), $product['category_name'])) . '</div>' . "\n" . '</div>' . "\n";
             }
         }
         if ($lC_RecentlyVisited->hasCategories()) {
             foreach ($lC_RecentlyVisited->getCategories() as $category) {
                 // VQMOD-hookpoint; DO NOT MODIFY OR REMOVE THE LINE BELOW
                 if (!empty($category['parent_id'])) {
                     $this->_content .= '<div class="content-recently-visited-container">' . "\n" . '  <div class="content-recently-visited-name">' . sprintf($lC_Language->get('recently_visited_item_in_category'), lc_link_object(lc_href_link(FILENAME_DEFAULT, 'cPath=' . $product['category_path']), $product['category_name'])) . '</div>' . "\n";
                     if (isset($category['image']) && empty($category['image']) === false) {
                         $this->_content .= '<div class="content-recently-visited-image">' . (SERVICE_RECENTLY_VISITED_SHOW_CATEGORY_IMAGES == '1' ? lc_link_object(lc_href_link(FILENAME_DEFAULT, 'cPath=' . $category['id']), lc_image('images/categories/' . $category['image'], $category['name'], null, null, 'class="content-recently-visited-image-src"')) : NULL) . '</div>' . "\n";
                     }
                     $this->_content .= '  <div class="content-recently-visited-price pricing-row"></div>' . "\n" . '  <div class="content-recently-visited-from">' . sprintf($lC_Language->get('recently_visited_item_in_category'), lc_link_object(lc_href_link(FILENAME_DEFAULT, 'cPath=' . $category['parent_id']), $category['parent_name'])) . '</div>' . "\n" . '</div>' . "\n";
                 }
             }
         }
         if ($lC_RecentlyVisited->hasSearches()) {
             foreach ($lC_RecentlyVisited->getSearches() as $searchphrase) {
                 //          $this->_content .= '<div class="content-recently-visited-searches">' . lc_link_object(lc_href_link(FILENAME_SEARCH, 'keywords=' . $searchphrase['keywords']), lc_output_string_protected($searchphrase['keywords'])) . ' <i>(' . number_format($searchphrase['results']) . ' results)</i></div>';
             }
         }
     }
 }
开发者ID:abhiesa-tolexo,项目名称:loaded7,代码行数:35,代码来源:recently_visited.php

示例2: getAll

 public static function getAll()
 {
     global $lC_Database, $lC_Language;
     $media = $_GET['media'];
     $lC_Currencies = new lC_Currencies();
     $lC_Tax = new lC_Tax_Admin();
     $lC_GeoIP = lC_GeoIP_Admin::load();
     if ($lC_GeoIP->isInstalled()) {
         $lC_GeoIP->activate();
     }
     $xx_mins_ago = time() - 900;
     // remove entries that have expired
     $Qdelete = $lC_Database->query('delete from :table_whos_online where time_last_click < :time_last_click');
     $Qdelete->bindTable(':table_whos_online', TABLE_WHOS_ONLINE);
     $Qdelete->bindValue(':time_last_click', $xx_mins_ago);
     $Qdelete->execute();
     $result = array('aaData' => array());
     $Qwho = $lC_Database->query('select customer_id, full_name, ip_address, time_entry, time_last_click, session_id from :table_whos_online order by time_last_click desc');
     $Qwho->bindTable(':table_whos_online', TABLE_WHOS_ONLINE);
     $Qwho->execute();
     while ($Qwho->next()) {
         if (STORE_SESSIONS == 'database') {
             $Qsession = $lC_Database->query('select value from :table_sessions where id = :id');
             $Qsession->bindTable(':table_sessions', TABLE_SESSIONS);
             $Qsession->bindValue(':id', $Qwho->value('session_id'));
             $Qsession->execute();
             $session_data = trim($Qsession->value('value'));
         } else {
             if (file_exists($lC_Session->getSavePath() . '/sess_' . $Qwho->value('session_id')) && filesize($lC_Session->getSavePath() . '/sess_' . $Qwho->value('session_id')) > 0) {
                 $session_data = trim(file_get_contents($lC_Session->getSavePath() . '/sess_' . $Qwho->value('session_id')));
             }
         }
         $navigation = unserialize(lc_get_serialized_variable($session_data, 'lC_NavigationHistory_data', 'array'));
         $last_page = is_array($navigation) ? end($navigation) : 0;
         $currency = unserialize(lc_get_serialized_variable($session_data, 'currency', 'string'));
         $cart = unserialize(lc_get_serialized_variable($session_data, 'lC_ShoppingCart_data', 'array'));
         $check = '<td><input class="batch" type="checkbox" name="batch[]" value="' . $Qwho->value('session_id') . '" id="' . $Qwho->value('session_id') . '"></td>';
         if ($lC_GeoIP->isActive() && $lC_GeoIP->isValid($Qwho->value('ip_address'))) {
             $who = '<td>' . lc_image('../images/worldflags/' . $lC_GeoIP->getCountryISOCode2($Qwho->value('ip_address')) . '.png', $lC_GeoIP->getCountryName($Qwho->value('ip_address')) . ', ' . $Qwho->value('ip_address'), 18, 12) . ' ' . strtoupper($lC_GeoIP->getCountryISOCode2($Qwho->value('ip_address'))) . ', ' . $Qwho->value('ip_address') . '</td>';
         } else {
             $who = '<td>' . lc_image('images/pixel_trans.gif', $Qwho->value('ip_address'), 18, 12) . ' ' . $Qwho->value('ip_address') . '</td>';
         }
         $online = '<td>' . gmdate('H:i:s', time() - $Qwho->value('time_entry')) . '</td>';
         $customers = '<td>' . $Qwho->value('full_name') . ' (' . $Qwho->valueInt('customer_id') . ')</td>';
         $click = '<td>' . @date('H:i:s', $Qwho->value('time_last_click')) . '</td>';
         $url = '<td>' . $last_page['page'] . '</td>';
         $total = '<td>' . $lC_Currencies->format($cart['total_cost'], true, $currency) . '</td>';
         $action = '<td class="align-right vertical-center">
                <span class="button-group"> 
                  <a href="' . ((int) ($_SESSION['admin']['access']['whos_online'] < 2) ? '#' : 'javascript://" onclick="showInfo(\'' . $Qwho->value('session_id') . '\')') . '" class="button icon-question-round icon-blue' . ((int) ($_SESSION['admin']['access']['whos_online'] < 2) ? ' disabled' : NULL) . '">' . ($media === 'mobile-portrait' || $media === 'mobile-landscape' ? NULL : $lC_Language->get('button_info')) . '</a>
                </span>
                <span class="button-group">
                  <a href="' . ((int) ($_SESSION['admin']['access']['whos_online'] < 4) ? '#' : 'javascript://" onclick="deleteEntry(\'' . $Qwho->value('session_id') . '\',\'' . $Qwho->value('full_name') . '\')"') . '" class="button icon-trash with-tooltip' . ((int) ($_SESSION['admin']['access']['whos_online'] < 4) ? ' disabled' : NULL) . '" title="' . $lC_Language->get('icon_delete') . '"></a>
                </span>
              </td>';
         $result['aaData'][] = array("{$check}", "{$who}", "{$online}", "{$customers}", "{$click}", "{$url}", "{$total}", "{$action}");
     }
     return $result;
 }
开发者ID:rajeshb001,项目名称:itpl_loaded7,代码行数:59,代码来源:whos_online.php

示例3: quote

 public function quote()
 {
     global $lC_Language, $lC_Currencies;
     $this->quotes = array('id' => $this->_code, 'module' => $this->_title, 'methods' => array(array('id' => $this->_code, 'title' => sprintf($lC_Language->get('shipping_free_for_amount'), $lC_Currencies->format(ADDONS_SHIPPING_FREE_SHIPPING_MINIMUM_ORDER)), 'cost' => 0)), 'tax_class_id' => 0);
     if (!empty($this->icon)) {
         $this->quotes['icon'] = lc_image($this->icon, $this->_title);
     }
     return $this->quotes;
 }
开发者ID:abhiesa-tolexo,项目名称:loaded7,代码行数:9,代码来源:free.php

示例4: getAll

 public static function getAll()
 {
     global $lC_Language, $lC_Vqmod;
     $media = $_GET['media'];
     $lC_DirectoryListing = new lC_DirectoryListing('includes/templates');
     $lC_DirectoryListing->setIncludeDirectories(false);
     $files = $lC_DirectoryListing->getFiles();
     $cnt = 0;
     $result = array('aaData' => array());
     // sort the array of files so the default template is at top
     $default = array();
     $other = array();
     foreach ($files as $file) {
         if (strpos($file['name'], '.') !== (int) 0) {
             $code = substr($file['name'], 0, strrpos($file['name'], '.'));
             if ($code == DEFAULT_TEMPLATE) {
                 $default[] = $file;
             } else {
                 $other[] = $file;
             }
             $sorted = array_merge((array) $default, (array) $other);
         }
     }
     foreach ($sorted as $file) {
         if (strpos($file['name'], '.') !== (int) 0) {
             include $lC_Vqmod->modCheck('includes/templates/' . $file['name']);
             $code = substr($file['name'], 0, strrpos($file['name'], '.'));
             $class = 'lC_Template_' . $code;
             if (class_exists($class)) {
                 $module = new $class();
                 $image = '<a href="' . ((int) ($_SESSION['admin']['access']['templates'] < 3) ? '#' : 'javascript://" onclick="showInfo(\'' . str_ireplace('.php', '', $file['name']) . '\', \'' . $module->getTitle() . '\')') . '" class="' . ((int) ($_SESSION['admin']['access']['templates'] < 3) ? ' disabled' : NULL) . '">' . lc_image(DIR_WS_CATALOG . 'templates/' . $code . '/images/' . $module->getScreenshot(), null, 160, 120) . '</a>';
                 $module_title = $module->getTitle();
                 if ($module->getCode() == DEFAULT_TEMPLATE) {
                     $module_title .= '<small class="tag purple-gradient glossy margin-left">' . $lC_Language->get('default_entry') . '</small>';
                 }
                 $name = '<div class="strong">' . $module_title . '</div><div class="mid-margin-top"><a href="' . $module->getAuthorAddress() . '" target="_blank">' . $module->getAuthorName() . '</a></div><div class="mid-margin-top"><small>' . $module->getMarkup() . ' ' . $module->getMedium() . '</small></div>';
                 $action = '<span class="button-group compact">';
                 if ($module->isInstalled() && $module->isActive()) {
                     if ($module->hasKeys() || $module->getCode() != DEFAULT_TEMPLATE) {
                         $action .= '<a href="' . ((int) ($_SESSION['admin']['access']['templates'] < 3) ? '#' : 'javascript://" onclick="editTemplate(\'' . str_ireplace('.php', '', $file['name']) . '\')') . '" class="button icon-pencil' . ((int) ($_SESSION['admin']['access']['templates'] < 3) ? ' disabled' : NULL) . '">' . ($media === 'mobile-portrait' || $media === 'mobile-landscape' ? NULL : $lC_Language->get('icon_edit')) . '</a>';
                     }
                     if ($module->getCode() != DEFAULT_TEMPLATE) {
                         $action .= '<a href="' . ((int) ($_SESSION['admin']['access']['templates'] < 3) ? '#' : 'javascript://" onclick="uninstallTemplate(\'' . str_ireplace('.php', '', $file['name']) . '\', \'' . $module->getTitle() . '\')') . '" class="button icon-minus-round icon-red with-tooltip' . ((int) ($_SESSION['admin']['access']['templates'] < 3) ? ' disabled' : NULL) . '" title="' . $lC_Language->get('icon_uninstall') . '"></a>';
                     }
                 } else {
                     $action .= '<a href="' . ((int) ($_SESSION['admin']['access']['templates'] < 3) ? '#' : 'javascript://" onclick="installTemplate(\'' . str_ireplace('.php', '', $file['name']) . '\', \'' . $module->getTitle() . '\')') . '" class="button icon-plus-round icon-green with-tooltip' . ((int) ($_SESSION['admin']['access']['templates'] < 3) ? ' disabled' : NULL) . '" title="' . $lC_Language->get('icon_install') . '"></a>';
                 }
                 $action .= '<a href="' . ((int) ($_SESSION['admin']['access']['templates'] < 3) ? '#' : 'javascript://" onclick="showInfo(\'' . str_ireplace('.php', '', $file['name']) . '\', \'' . $module->getTitle() . '\')') . '" class="button icon-camera icon-blue with-tooltip' . ((int) ($_SESSION['admin']['access']['templates'] < 3) ? ' disabled' : NULL) . '" title="' . $lC_Language->get('icon_preview') . '"></a>';
                 $result['aaData'][] = array("{$image}", "{$name}", "{$action}");
                 $cnt++;
             }
         }
     }
     return $result;
 }
开发者ID:rajeshb001,项目名称:itpl_loaded7,代码行数:55,代码来源:templates.php

示例5: process

 function process()
 {
     global $lC_Coupons, $lC_Currencies;
     if (defined('MODULE_SERVICES_INSTALLED') && in_array('coupons', explode(';', MODULE_SERVICES_INSTALLED)) && isset($lC_Coupons)) {
         foreach ($lC_Coupons->getAll() as $code => $val) {
             if ($val['total'] > 0) {
                 $this->output[] = array('title' => $val['title'], 'text' => '<span onclick="removeCoupon(\'' . $code . '\');" style="padding:0; cursor:pointer;">' . lc_image(DIR_WS_CATALOG . 'templates/core/images/icons/16/cross_round.png', null, null, null, 'style="vertical-align:middle;"') . '&nbsp;-' . $lC_Currencies->format($val['total']) . '</span>', 'value' => $val['total']);
             }
         }
     }
 }
开发者ID:abhiesa-tolexo,项目名称:loaded7,代码行数:11,代码来源:coupon.php

示例6: initialize

 public function initialize()
 {
     global $lC_Database, $lC_Services, $lC_Cache, $lC_Language, $lC_Product, $lC_Image;
     $this->_title_link = lc_href_link(FILENAME_PRODUCTS, 'reviews');
     if ($lC_Services->isStarted('reviews')) {
         if ($lC_Cache->isEnabled() && BOX_REVIEWS_CACHE > 0 && $lC_Cache->read('box-reviews' . (isset($lC_Product) && is_a($lC_Product, 'lC_Product') && $lC_Product->isValid() ? '-' . $lC_Product->getID() : '') . '-' . $lC_Language->getCode(), BOX_REVIEWS_CACHE)) {
             $data = $lC_Cache->getCache();
         } else {
             $data = array();
             $Qreview = $lC_Database->query('select r.reviews_id, r.reviews_rating, p.products_id, pd.products_name, pd.products_keyword, i.image from :table_reviews r, :table_products p left join :table_products_images i on (p.products_id = i.products_id and i.default_flag = :default_flag), :table_products_description pd where r.products_id = p.products_id and p.products_status = 1 and r.languages_id = :language_id and p.products_id = pd.products_id and pd.language_id = :language_id and r.reviews_status = 1');
             $Qreview->bindTable(':table_reviews', TABLE_REVIEWS);
             $Qreview->bindTable(':table_products_images', TABLE_PRODUCTS_IMAGES);
             $Qreview->bindTable(':table_products', TABLE_PRODUCTS);
             $Qreview->bindTable(':table_products_description', TABLE_PRODUCTS_DESCRIPTION);
             $Qreview->bindInt(':default_flag', 1);
             $Qreview->bindInt(':language_id', $lC_Language->getID());
             $Qreview->bindInt(':language_id', $lC_Language->getID());
             if (isset($lC_Product) && is_a($lC_Product, 'lC_Product') && $lC_Product->isValid()) {
                 $Qreview->appendQuery('and p.products_id = :products_id');
                 $Qreview->bindInt(':products_id', $lC_Product->getID());
             }
             $Qreview->appendQuery('order by r.reviews_id desc limit :max_random_select_reviews');
             $Qreview->bindInt(':max_random_select_reviews', BOX_REVIEWS_RANDOM_SELECT);
             $Qreview->executeRandomMulti();
             if ($Qreview->numberOfRows()) {
                 $Qtext = $lC_Database->query('select substring(reviews_text, 1, 60) as reviews_text from :table_reviews where reviews_id = :reviews_id and languages_id = :languages_id');
                 $Qtext->bindTable(':table_reviews', TABLE_REVIEWS);
                 $Qtext->bindInt(':reviews_id', $Qreview->valueInt('reviews_id'));
                 $Qtext->bindInt(':languages_id', $lC_Language->getID());
                 $Qtext->execute();
                 $data = array_merge($Qreview->toArray(), $Qtext->toArray());
                 $Qtext->freeResult();
                 $Qreview->freeResult();
             }
             if ($lC_Cache->isEnabled()) {
                 $lC_Cache->write($data);
             }
         }
         $this->_content = '';
         if (empty($data)) {
             if (isset($lC_Product) && is_a($lC_Product, 'lC_Product') && $lC_Product->isValid()) {
                 $this->_content = '<li class="box-reviews-write">' . lc_link_object(lc_href_link(FILENAME_PRODUCTS, 'reviews=new&' . $lC_Product->getKeyword()), $lC_Language->get('box_reviews_write')) . '</li>' . "\n";
             }
         } else {
             if (!empty($data['image'])) {
                 $this->_content = '<li class="box-reviews-image">' . lc_link_object(lc_href_link(FILENAME_PRODUCTS, 'reviews=' . $data['reviews_id'] . '&' . $data['products_keyword']), $lC_Image->show($data['image'], $data['products_name'], 'class="box-reviews-image-src"')) . '</li>';
             }
             $this->_content .= '<li class="box-reviews-text">' . lc_link_object(lc_href_link(FILENAME_PRODUCTS, 'reviews=' . $data['reviews_id'] . '&' . $data['products_keyword']), wordwrap(lc_output_string_protected($data['reviews_text']), 15, "\n") . '...') . "\n" . '<li class="box-reviews-rating">' . $lC_Language->get('box_reviews_average_rating') . ' ' . lc_image(DIR_WS_TEMPLATE_IMAGES . 'stars_' . $data['reviews_rating'] . '.png', sprintf($lC_Language->get('box_reviews_stars_rating'), $data['reviews_rating'])) . '</li>';
         }
     }
 }
开发者ID:abhiesa-tolexo,项目名称:loaded7,代码行数:51,代码来源:reviews.php

示例7: United_Parcel_Service

 public function United_Parcel_Service()
 {
     global $lC_Language;
     /**
      * The addon type (category)
      * valid types; payment, shipping, themes, checkout, catalog, admin, reports, connectors, other 
      */
     $this->_type = 'shipping';
     /**
      * The addon class name
      */
     $this->_code = 'United_Parcel_Service';
     /**
      * The addon title used in the addons store listing
      */
     $this->_title = $lC_Language->get('addon_shipping_ups_title');
     /**
      * The addon blurb used in the addons store listing
      */
     $this->_blurb = $lC_Language->get('addon_shipping_ups_blurb');
     /**
      * The addon description used in the addons store listing
      */
     $this->_description = $lC_Language->get('addon_shipping_ups_description');
     /**
      * The developers name
      */
     $this->_author = 'Loaded Commerce, LLC';
     /**
      * The developers web address
      */
     $this->_authorWWW = 'http://www.loadedcommerce.com';
     /**
      * The addon version
      */
     $this->_version = '1.0.0';
     /**
      * The Loaded 7 core compatibility version
      */
     $this->_compatibility = '7.0.1.1';
     // the addon is compatible with this core version and later
     /**
      * The base64 encoded addon image used in the addons store listing
      */
     $this->_thumbnail = lc_image(DIR_WS_CATALOG . 'addons/' . $this->_code . '/images/ups.png', $this->_title);
     /**
      * The addon enable/disable switch
      */
     $this->_enabled = defined('ADDONS_SHIPPING_' . strtoupper($this->_code) . '_STATUS') && @constant('ADDONS_SHIPPING_' . strtoupper($this->_code) . '_STATUS') == '1' ? true : false;
 }
开发者ID:rajeshb001,项目名称:itpl_loaded7,代码行数:50,代码来源:controller.php

示例8: Pro_Pack_598

 public function Pro_Pack_598()
 {
     global $lC_Language;
     /**
      * The addon type (category)
      * valid types; payment, shipping, themes, checkout, catalog, admin, reports, connectors, other 
      */
     $this->_type = 'pro template pack';
     /**
      * The addon class name
      */
     $this->_code = 'Pro_Pack_598';
     /**
      * The addon title used in the addons store listing
      */
     $this->_title = $lC_Language->get('addon_pro_pack_598_title');
     /**
      * The addon description used in the addons store listing
      */
     $this->_description = $lC_Language->get('addon_pro_pack_598_description');
     /**
      * The developers name
      */
     $this->_author = 'Algozone, Inc.';
     /**
      * The developers web address
      */
     $this->_authorWWW = 'http://www.algozone.com';
     /**
      * The addon version
      */
     $this->_version = '1.0.0';
     /**
      * The Loaded 7 core compatibility version
      */
     $this->_compatibility = '7.0';
     // the addon is compatible with this core version and later
     /**
      * The addon image used in the addons store listing
      */
     $this->_thumbnail = '<span onclick="showInfo(\'Pro_Pack_598\',\'LCAZ00598\', \'' . $this->_title . '\');">' . lc_image(DIR_WS_CATALOG . 'addons/' . $this->_code . '/images/LCAZ00598.png', null, 160, 120) . '</span>';
     /**
      * The addon enable/disable switch
      */
     $this->_enabled = true;
     $this->_rating = '5';
 }
开发者ID:abhiesa-tolexo,项目名称:loaded7,代码行数:47,代码来源:controller.php

示例9: show

 public function show($image, $title, $parameters = '', $group = '')
 {
     if (empty($group) || !$this->exists($group)) {
         $group = $this->getCode(DEFAULT_IMAGE_GROUP_ID);
     }
     $group_id = $this->getID($group);
     $width = $height = '';
     if ($this->_groups[$group_id]['force_size'] == '1' || empty($image)) {
         $width = $this->_groups[$group_id]['size_width'];
         $height = $this->_groups[$group_id]['size_height'];
     }
     if (empty($image)) {
         $image = 'no_image.png';
     } else {
         $image = 'products/' . $this->_groups[$group_id]['code'] . '/' . $image;
     }
     return lc_image(DIR_WS_IMAGES . $image, $title, $width, $height, $parameters);
 }
开发者ID:rajeshb001,项目名称:itpl_loaded7,代码行数:18,代码来源:image.php

示例10: _setData

 protected function _setData()
 {
     global $lC_Database, $lC_Language;
     if (!$this->enabled) {
         $this->_data = '';
     } else {
         $this->_data = '<div class="four-columns six-columns-tablet twelve-columns-mobile">' . '  <h2 class="relative thin">' . $this->_title . '</h2>' . '  <ul class="list spaced">';
         $Qreviews = $lC_Database->query('select r.reviews_id, r.products_id, greatest(r.date_added, greatest(r.date_added, r.last_modified)) as date_last_modified, r.reviews_rating, pd.products_name, l.name as languages_name, l.code as languages_code from :table_reviews r left join :table_products_description pd on (r.products_id = pd.products_id and r.languages_id = pd.language_id), :table_languages l where r.languages_id = l.languages_id order by date_last_modified desc limit 6');
         $Qreviews->bindTable(':table_reviews', TABLE_REVIEWS);
         $Qreviews->bindTable(':table_products_description', TABLE_PRODUCTS_DESCRIPTION);
         $Qreviews->bindTable(':table_languages', TABLE_LANGUAGES);
         $Qreviews->execute();
         while ($Qreviews->next()) {
             $this->_data .= '    <li>' . '      <span class="list-link icon-speech icon-purple" title="' . $lC_Language->get('orders') . '">' . '        <strong>' . $Qreviews->value('products_name') . '</strong> ' . lc_image('../images/stars_' . $Qreviews->valueInt('reviews_rating') . '.png', $Qreviews->valueInt('reviews_rating') . '/5') . '      </span>' . '    </li>';
         }
         $this->_data .= '  </ul>' . '</div>';
         $Qreviews->freeResult();
     }
 }
开发者ID:abhiesa-tolexo,项目名称:loaded7,代码行数:19,代码来源:reviews.php

示例11: initialize

 public function initialize()
 {
     global $lC_Database, $lC_Language, $lC_Image, $lC_carousel, $lC_Services;
     $caption_enabled = defined('MODULE_CONTENT_MAINPAGE_CAROUSEL_CAPTION') && @constant('MODULE_CONTENT_MAINPAGE_CAROUSEL_CAPTION') == '1' ? true : false;
     $indicator_enabled = defined('MODULE_CONTENT_MAINPAGE_CAROUSEL_INDICATOR') && @constant('MODULE_CONTENT_MAINPAGE_CAROUSEL_INDICATOR') == '1' ? true : false;
     if ($lC_Services->isStarted('banner')) {
         $Qbanner = $lC_Database->query('select * from :table_banners where status = 1 and banners_group = :banners_group');
         $Qbanner->bindTable(':table_banners', TABLE_BANNERS);
         $Qbanner->bindValue(':banners_group', 'banner_slider');
         $Qbanner->execute();
         $this->_content .= '<div id="CarouselModule" class="carousel slide" data-ride="carousel">';
         $this->_content .= '<div class="carousel-inner" role="listbox">';
         $n = 0;
         while ($Qbanner->next()) {
             $this->_content .= '<div class="item ' . ($n == 0 ? 'active' : '') . '">';
             $this->_content .= lc_link_object(lc_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $Qbanner->valueInt('banners_id')), lc_image(DIR_WS_IMAGES . $Qbanner->value('banners_image'), $Qbanner->value('banners_title')), $Qbanner->valueInt('banners_target') === 1 ? ' target="_blank" ' : ' target="_self" ');
             if ($caption_enabled === true) {
                 $this->_content .= '<div class="carousel-caption">' . $Qbanner->value('banners_title') . '</div>';
             }
             $this->_content .= '</div>';
             $n++;
         }
         $this->_content .= '</div>';
         if ($Qbanner->numberOfRows() > 0) {
             $this->_content .= '<ol class="carousel-indicators">';
             for ($i = 0; $i < $n; $i++) {
                 $this->_content .= '<li data-target="#CarouselModule" data-slide-to="' . $i . '"' . ($n == 0 ? ' class="active"' : '') . '></li>';
             }
             $this->_content .= '</ol>';
             $this->_content .= '  <a class="left carousel-control" href="#CarouselModule" role="button" data-slide="prev">';
             $this->_content .= '    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>';
             $this->_content .= '    <span class="sr-only">Previous</span>';
             $this->_content .= '  </a>';
             $this->_content .= '  <a class="right carousel-control" href="#CarouselModule" role="button" data-slide="next">';
             $this->_content .= '    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>';
             $this->_content .= '    <span class="sr-only">Next</span>';
             $this->_content .= '  </a>';
         }
         $this->_content .= '</div>';
     }
 }
开发者ID:abhiesa-tolexo,项目名称:loaded7,代码行数:41,代码来源:mainpage_carousel.php

示例12: initialize

 public function initialize()
 {
     global $lC_Database, $lC_Language, $lC_Product;
     if (isset($lC_Product) && is_a($lC_Product, 'lC_Product')) {
         $Qmanufacturer = $lC_Database->query('select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image, mi.manufacturers_url from :table_manufacturers m left join :table_manufacturers_info mi on (m.manufacturers_id = mi.manufacturers_id and mi.languages_id = :languages_id), :table_products p  where p.products_id = :products_id and p.manufacturers_id = m.manufacturers_id');
         $Qmanufacturer->bindTable(':table_manufacturers', TABLE_MANUFACTURERS);
         $Qmanufacturer->bindTable(':table_manufacturers_info', TABLE_MANUFACTURERS_INFO);
         $Qmanufacturer->bindTable(':table_products', TABLE_PRODUCTS);
         $Qmanufacturer->bindInt(':languages_id', $lC_Language->getID());
         $Qmanufacturer->bindInt(':products_id', $lC_Product->getID());
         $Qmanufacturer->execute();
         if ($Qmanufacturer->numberOfRows()) {
             $this->_content = '';
             if (!lc_empty($Qmanufacturer->value('manufacturers_image'))) {
                 $this->_content .= '<li class="box-manufacturers-info-image">' . lc_link_object(lc_href_link(FILENAME_DEFAULT, 'manufacturers=' . $Qmanufacturer->valueInt('manufacturers_id')), lc_image(DIR_WS_IMAGES . 'manufacturers/' . $Qmanufacturer->value('manufacturers_image'), $Qmanufacturer->value('manufacturers_name'))) . '</li>' . "\n";
             }
             if (!lc_empty($Qmanufacturer->value('manufacturers_url'))) {
                 $this->_content .= '<li class="box-manufacturers-info-url">' . lc_link_object(lc_href_link(FILENAME_REDIRECT, 'action=manufacturer&manufacturers_id=' . $Qmanufacturer->valueInt('manufacturers_id')), sprintf($lC_Language->get('box_manufacturer_info_website'), $Qmanufacturer->value('manufacturers_name')), 'target="_blank"') . '</li>' . "\n";
             }
             $this->_content .= '<li class="box-manufacturers-info-link">' . lc_link_object(lc_href_link(FILENAME_DEFAULT, 'manufacturers=' . $Qmanufacturer->valueInt('manufacturers_id')), $lC_Language->get('box_manufacturer_info_products')) . '</li>' . "\n";
         }
     }
 }
开发者ID:abhiesa-tolexo,项目名称:loaded7,代码行数:23,代码来源:manufacturer_info.php

示例13: initialize

 public function initialize()
 {
     global $lC_Database, $lC_Language, $lC_CategoryTree;
     $Qcategories = $lC_Database->query('select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.categories_mode, c.categories_link_target, c.categories_custom_url from :table_categories c, :table_categories_description cd where c.parent_id = :parent_id and c.categories_id = cd.categories_id and cd.language_id = :language_id and c.categories_status = 1 and c.categories_visibility_box = 1 order by sort_order, cd.categories_name');
     $Qcategories->bindTable(':table_categories', TABLE_CATEGORIES);
     $Qcategories->bindTable(':table_categories_description', TABLE_CATEGORIES_DESCRIPTION);
     $Qcategories->bindInt(':parent_id', 0);
     $Qcategories->bindInt(':language_id', $lC_Language->getID());
     $Qcategories->execute();
     $number_of_categories = $Qcategories->numberOfRows();
     $rows = 0;
     $output = '';
     while ($Qcategories->next()) {
         $url = $Qcategories->value('categories_custom_url') != null ? $Qcategories->value('categories_custom_url') : FILENAME_DEFAULT . '?cPath=' . $lC_CategoryTree->buildBreadcrumb($Qcategories->valueInt('categories_id'));
         $image = $Qcategories->value('categories_image') != null ? $Qcategories->value('categories_image') : 'no_image.png';
         $output .= '<div class="content-categories-container">' . "\n";
         if (file_exists(DIR_WS_IMAGES . 'categories/' . $image)) {
             $output .= '  <div class="content-categories-image">' . lc_link_object(lc_href_link($url), lc_image(DIR_WS_IMAGES . 'categories/' . $image, $Qcategories->value('categories_name'), null, null, 'class="content-categories-image-src padding-top"')) . '</div>' . "\n";
         }
         $output .= '  <div class="content-categories-name">' . lc_link_object(lc_href_link($url), $Qcategories->value('categories_name')) . '</div>' . "\n" . '</div>' . "\n";
     }
     $this->_content = $output;
 }
开发者ID:abhiesa-tolexo,项目名称:loaded7,代码行数:23,代码来源:mainpage_categories.php

示例14: getFormData

 public static function getFormData($id = null)
 {
     global $lC_Database, $lC_Language;
     $result = array();
     foreach ($lC_Language->getAll() as $l) {
         $result['mfgUrl'] .= '<span class="input" style="width:88%"><label for="name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('manufacturers_url[' . $l['id'] . ']', null, 'class="input-unstyled"') . '</span><br />';
     }
     if ($id != null && is_numeric($id)) {
         $manufacturers_array = array();
         $Qmanufacturer = $lC_Database->query('select manufacturers_url, languages_id from :table_manufacturers_info where manufacturers_id = :manufacturers_id');
         $Qmanufacturer->bindTable(':table_manufacturers_info', TABLE_MANUFACTURERS_INFO);
         $Qmanufacturer->bindInt(':manufacturers_id', $id);
         $Qmanufacturer->execute();
         while ($Qmanufacturer->next()) {
             $manufacturers_array[$Qmanufacturer->valueInt('languages_id')] = $Qmanufacturer->value('manufacturers_url');
         }
         foreach ($lC_Language->getAll() as $l) {
             $result['editMfgUrl'] .= '<span class="input" style="width:88%"><label for="name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('manufacturers_url[' . $l['id'] . ']', $manufacturers_array[$l['id']], 'class="input-unstyled"') . '</span><br />';
         }
         $result['mData'] = lC_Manufacturers_Admin::getData($id, $lC_Language->getID());
         $result['mImage'] = lc_image('../' . DIR_WS_IMAGES . 'manufacturers/' . $result['mData']['manufacturers_image'], $result['mData']['manufacturers_name']) . '<br />' . DIR_WS_CATALOG . DIR_WS_IMAGES . 'manufacturers/' . $result['mData']['manufacturers_image'] . '<br />';
     }
     return $result;
 }
开发者ID:abhiesa-tolexo,项目名称:loaded7,代码行数:24,代码来源:manufacturers.php

示例15: formData

 public static function formData($id = null)
 {
     global $lC_Database, $lC_Language;
     $lC_Language->loadIniFile('reviews.php');
     $result = array();
     if ($id != null) {
         $result['rData'] = lC_Reviews_Admin::getData($id);
         $result['dateShort'] = lC_DateTime::getShort($result['rData']['date_added']);
         switch ($result['rData']['reviews_status']) {
             case 1:
                 // approved
                 $result['rData']['reviews_status_text'] = $lC_Language->get('review_status_approved');
                 break;
             case 2:
                 // rejected
                 $result['rData']['reviews_status_text'] = $lC_Language->get('review_status_rejected');
                 break;
             default:
                 //new
                 $result['rData']['reviews_status_text'] = $lC_Language->get('review_status_pending');
                 break;
         }
         $result['ratingRadio'] = '';
         for ($i = 1; $i <= 5; $i++) {
             $checked = $result['rData']['reviews_rating'] == $i ? 'checked' : NULL;
             $result['ratingRadio'] .= '<label for="reviews_rating-' . $i . '" class="button blue-active"><input type="radio" name="reviews_rating" id="reviews_rating-' . $i . '" value="' . $i . '" ' . $checked . '>' . $i . '</label>';
         }
         $result['ratingStars'] = lc_image('../images/stars_' . $result['rData']['reviews_rating'] . '.png', sprintf($lC_Language->get('rating_from_5_stars'), $result['rData']['reviews_rating'])) . '&nbsp;[' . sprintf($lC_Language->get('rating_from_5_stars'), $result['rData']['reviews_rating']) . ']';
     }
     return $result;
 }
开发者ID:rajeshb001,项目名称:itpl_loaded7,代码行数:31,代码来源:reviews.php


注:本文中的lc_image函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。