public static function execute(ApplicationAbstract $application) { $OSCOM_ShoppingCart = Registry::get('ShoppingCart'); $OSCOM_Service = Registry::get('Service'); $OSCOM_Breadcrumb = Registry::get('Breadcrumb'); $OSCOM_Template = Registry::get('Template'); global $osC_oiAddress; // HPDL $application->setPageTitle(OSCOM::getDef('payment_method_heading')); $application->setPageContent('billing.php'); if ($OSCOM_Service->isStarted('Breadcrumb')) { $OSCOM_Breadcrumb->add(OSCOM::getDef('breadcrumb_checkout_payment'), OSCOM::getLink(null, null, 'Billing', 'SSL')); } // load billing address page if no default address exists if (!$OSCOM_ShoppingCart->hasBillingAddress()) { $application->setPageTitle(OSCOM::getDef('payment_address_heading')); $application->setPageContent('billing_address.php'); $OSCOM_Template->addJavascriptFilename(OSCOM::getPublicSiteLink('javascript/checkout_payment_address.js')); $OSCOM_Template->addJavascriptPhpFilename(OSCOM::BASE_DIRECTORY . 'Core/Site/Shop/assets/form_check.js.php'); if (!$OSCOM_Customer->isLoggedOn()) { $osC_oiAddress = new ObjectInfo($OSCOM_ShoppingCart->getBillingAddress()); } } else { $OSCOM_Template->addJavascriptFilename(OSCOM::getPublicSiteLink('javascript/checkout_payment.js')); // load all enabled payment modules $OSCOM_Payment = Registry::get('Payment'); $OSCOM_Payment->loadAll(); $OSCOM_Template->addJavascriptBlock($OSCOM_Payment->getJavascriptBlocks()); } // HPDL // if (isset($_GET['payment_error']) && is_object(${$_GET['payment_error']}) && ($error = ${$_GET['payment_error']}->get_error())) { // $OSCOM_MessageStack->add('CheckoutBilling', $error['error'], 'error'); // } }
public function getIcon($size = 16, $icon = null, $title = null) { if (empty($icon)) { $icon = $this->_application->getIcon(); } return '<img src="' . OSCOM::getPublicSiteLink('images/applications/' . (int) $size . '/' . $icon) . '" border="0" alt="" title="' . osc_output_string_protected($title) . '" width="' . (int) $size . '" height="' . (int) $size . '" />'; }
public static function execute(ApplicationAbstract $application) { $OSCOM_ShoppingCart = Registry::get('ShoppingCart'); $OSCOM_Service = Registry::get('Service'); $OSCOM_Breadcrumb = Registry::get('Breadcrumb'); $OSCOM_Template = Registry::get('Template'); $OSCOM_Customer = Registry::get('Customer'); global $osC_oiAddress; // HPDL $application->setPageTitle(OSCOM::getDef('shipping_method_heading')); $application->setPageContent('shipping.php'); if ($OSCOM_Service->isStarted('Breadcrumb')) { $OSCOM_Breadcrumb->add(OSCOM::getDef('breadcrumb_checkout_shipping'), OSCOM::getLink(null, null, 'Shipping', 'SSL')); } // load shipping address page if no default address exists if (!$OSCOM_ShoppingCart->hasShippingAddress()) { $application->setPageTitle(OSCOM::getDef('shipping_address_heading')); $application->setPageContent('shipping_address.php'); $OSCOM_Template->addJavascriptFilename(OSCOM::getPublicSiteLink('javascript/checkout_shipping_address.js')); $OSCOM_Template->addJavascriptPhpFilename(OSCOM::BASE_DIRECTORY . 'Core/Site/Shop/assets/form_check.js.php'); if (!$OSCOM_Customer->isLoggedOn()) { $osC_oiAddress = new ObjectInfo($OSCOM_ShoppingCart->getShippingAddress()); } } else { $OSCOM_Template->addJavascriptFilename(OSCOM::getPublicSiteLink('javascript/checkout_shipping.js')); // load all enabled shipping modules Registry::set('Shipping', new ShippingClass(), true); } }
public function getIcon($size = 16, $icon = null, $title = null) { if (!isset($icon)) { $icon = $this->_application->getIcon(); } return HTML::image(OSCOM::getPublicSiteLink('images/applications/' . $size . '/' . $icon), $title, $size, $size); }
/** * Display an icon from a template set * * @param string $image The icon to display * @param string $title The title of the icon * @param string $group The size group of the icon * @param string $parameters The parameters to pass to the image * @access public */ function osc_icon($image, $title = null, $group = null, $parameters = null) { if (is_null($title)) { $title = OSCOM::getDef('icon_' . substr($image, 0, strpos($image, '.'))); } if (is_null($group)) { $group = '16x16'; } return osc_image(OSCOM::getPublicSiteLink('templates/' . Registry::get('Template')->getCode() . '/images/icons/' . (!empty($group) ? $group . '/' : null) . $image), $title, null, null, $parameters); }
public function initialize() { $OSCOM_Service = Registry::get('Service'); $OSCOM_Cache = Registry::get('Cache'); $OSCOM_Product = Registry::exists('Product') ? Registry::get('Product') : null; $OSCOM_Language = Registry::get('Language'); $OSCOM_PDO = Registry::get('PDO'); $OSCOM_Image = Registry::get('Image'); $this->_title_link = OSCOM::getLink(null, 'Products', 'Reviews'); if ($OSCOM_Service->isStarted('Reviews')) { if (BOX_REVIEWS_CACHE > 0 && $OSCOM_Cache->read('box-reviews' . (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid() ? '-' . $OSCOM_Product->getID() : '') . '-' . $OSCOM_Language->getCode(), BOX_REVIEWS_CACHE)) { $data = $OSCOM_Cache->getCache(); } else { $data = array(); $sql_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'; if (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid()) { $sql_query .= ' and p.products_id = :products_id'; } $sql_query .= ' order by r.reviews_id desc limit :max_random_select_reviews'; $Qreview = $OSCOM_PDO->prepare($sql_query); $Qreview->bindInt(':default_flag', 1); $Qreview->bindInt(':language_id', $OSCOM_Language->getID()); $Qreview->bindInt(':language_id', $OSCOM_Language->getID()); if (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid()) { $Qreview->bindInt(':products_id', $OSCOM_Product->getID()); } $Qreview->bindInt(':max_random_select_reviews', BOX_REVIEWS_RANDOM_SELECT); $Qreview->execute(); $result = $Qreview->fetchAll(); if (count($result) > 0) { $result = $result[rand(0, count($result) - 1)]; $Qtext = $OSCOM_PDO->prepare('select substring(reviews_text, 1, 60) as reviews_text from :table_reviews where reviews_id = :reviews_id and languages_id = :languages_id'); $Qtext->bindInt(':reviews_id', $result['reviews_id']); $Qtext->bindInt(':languages_id', $OSCOM_Language->getID()); $Qtext->execute(); $data = array_merge($result, $Qtext->fetch()); } $OSCOM_Cache->write($data); } $this->_content = ''; if (empty($data)) { if (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid()) { $this->_content = '<div style="float: left; width: 55px;">' . HTML::button(array('href' => OSCOM::getLink(null, 'Products', 'Reviews&Write&' . $OSCOM_Product->getKeyword()), 'icon' => 'pencil', 'title' => OSCOM::getDef('button_write_review'))) . '</div>' . HTML::link(OSCOM::getLink(null, 'Products', 'Reviews&Write&' . $OSCOM_Product->getKeyword()), OSCOM::getDef('box_reviews_write')) . '<div style="clear: both;"></div>'; } } else { if (!empty($data['image'])) { $this->_content = '<div align="center">' . HTML::link(OSCOM::getLink(null, 'Products', 'Reviews&View=' . $data['reviews_id'] . '&' . $data['products_keyword']), $OSCOM_Image->show($data['image'], $data['products_name'])) . '</div>'; } $this->_content .= HTML::link(OSCOM::getLink(null, 'Products', 'Reviews&View=' . $data['reviews_id'] . '&' . $data['products_keyword']), wordwrap(HTML::outputProtected($data['reviews_text']), 15, '­') . ' ..') . '<br /><div align="center">' . HTML::image(OSCOM::getPublicSiteLink('images/stars_' . $data['reviews_rating'] . '.png'), sprintf(OSCOM::getDef('box_reviews_stars_rating'), $data['reviews_rating'])) . '</div>'; } } }
protected function initialize() { $OSCOM_Language = Registry::get('Language'); $OSCOM_Session = Registry::get('Session'); $OSCOM_Template = Registry::get('Template'); $OSCOM_Service = Registry::get('Service'); $OSCOM_Breadcrumb = Registry::get('Breadcrumb'); $OSCOM_Language->load('products'); $requested_product = null; $product_check = false; if (count($_GET) > 1) { $requested_product = basename(key(array_slice($_GET, 1, 1, true))); if ($requested_product == OSCOM::getSiteApplication()) { unset($requested_product); if (count($_GET) > 2) { $requested_product = basename(key(array_slice($_GET, 2, 1, true))); } } } if (isset($requested_product)) { if (!self::siteApplicationActionExists($requested_product)) { if (Product::checkEntry($requested_product)) { $product_check = true; Registry::set('Product', new Product($requested_product)); $OSCOM_Product = Registry::get('Product'); $OSCOM_Product->incrementCounter(); $OSCOM_Template->addPageTags('keywords', $OSCOM_Product->getTitle()); $OSCOM_Template->addPageTags('keywords', $OSCOM_Product->getModel()); if ($OSCOM_Product->hasTags()) { $OSCOM_Template->addPageTags('keywords', $OSCOM_Product->getTags()); } $OSCOM_Template->addJavascriptFilename(OSCOM::getPublicSiteLink('javascript/products/info.js')); // HPDL osC_Services_category_path::process($osC_Product->getCategoryID()); if ($OSCOM_Service->isStarted('Breadcrumb')) { $OSCOM_Breadcrumb->add($OSCOM_Product->getTitle(), OSCOM::getLink(null, null, $OSCOM_Product->getKeyword())); } $this->_page_title = $OSCOM_Product->getTitle(); } } } if ($product_check === false) { $this->_page_title = OSCOM::getDef('product_not_found_heading'); $this->_page_contents = 'not_found.php'; } }
public static function execute(ApplicationAbstract $application) { $OSCOM_Template = Registry::get('Template'); $OSCOM_Service = Registry::get('Service'); $OSCOM_Breadcrumb = Registry::get('Breadcrumb'); $OSCOM_Customer = Registry::get('Customer'); $OSCOM_ShoppingCart = Registry::get('ShoppingCart'); global $osC_oiAddress; $application->setPageTitle(OSCOM::getDef('payment_address_heading')); $application->setPageContent('billing_address.php'); $OSCOM_Template->addJavascriptFilename(OSCOM::getPublicSiteLink('javascript/checkout_payment_address.js')); $OSCOM_Template->addJavascriptPhpFilename(OSCOM::BASE_DIRECTORY . 'Core/Site/Shop/assets/form_check.js.php'); if ($OSCOM_Service->isStarted('Breadcrumb')) { $OSCOM_Breadcrumb->add(OSCOM::getDef('breadcrumb_checkout_payment_address'), OSCOM::getLink(null, null, 'Billing&Address', 'SSL')); } if (!$OSCOM_Customer->isLoggedOn()) { $osC_oiAddress = new ObjectInfo($OSCOM_ShoppingCart->getShippingAddress()); } }
?> " /> </head> <body> <div id="pageHeader"> <div> <div style="float: right; padding-top: 40px; padding-right: 15px; color: #000000; font-weight: bold;"><a href="http://www.oscommerce.com" target="_blank">osCommerce Website</a> | <a href="http://www.oscommerce.com/support" target="_blank">Support</a></div> <a href="<?php echo OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()); ?> "><img src="<?php echo OSCOM::getPublicSiteLink('images/oscommerce.png'); ?> " border="0" alt="" title="osCommerce Online Merchant v3.0" style="margin: 10px 10px 0px 10px;" /></a> </div> </div> <div id="pageContent"> <?php require $OSCOM_Template->getPageContentsFile(); ?> </div> <div id="pageFooter"> Copyright © 2000-2011 <a href="http://www.oscommerce.com" target="_blank">osCommerce</a> (<a href="http://www.oscommerce.com/about/copyright" target="_blank">Copyright Policy</a>, <a href="http://www.oscommerce.com/about/trademark" target="_blank">Trademark Policy</a>)<br />osCommerce is a registered trademark of Harald Ponce de Leon</a> </div>
public function showImage($code = null, $width = 16, $height = 10, $parameters = null) { if (!isset($code)) { $code = $this->_code; } $image_code = strtolower(substr($code, 3)); if (!is_numeric($width)) { $width = 16; } if (!is_numeric($height)) { $height = 10; } return HTML::image(OSCOM::getPublicSiteLink('images/worldflags/' . $image_code . '.png', null, 'Shop'), $this->_languages[$code]['name'], $width, $height, $parameters); }
var dataTableDataURL = '<?php echo OSCOM::getRPCLink(null, null, 'GetAll'); ?> '; var languageLink = '<?php echo OSCOM::getLink(null, null, 'id=LANGUAGEID'); ?> '; var languageLinkIcon = '<?php echo HTML::icon('folder.png'); ?> '; var languageIcon = '<?php echo HTML::image(OSCOM::getPublicSiteLink('images/worldflags/LANGUAGECODE.png', null, 'Shop'), 'LANGUAGENAME'); ?> '; var languageEditLink = '<?php echo OSCOM::getLink(null, null, 'Save&id=LANGUAGEID'); ?> '; var languageEditLinkIcon = '<?php echo HTML::icon('edit.png'); ?> '; var languageExportLink = '<?php echo OSCOM::getLink(null, null, 'Export&id=LANGUAGEID'); ?>
<title><?php echo STORE_NAME . ($OSCOM_Template->hasPageTitle() ? ': ' . $OSCOM_Template->getPageTitle() : ''); ?> </title> <link rel="icon" type="image/png" href="<?php echo OSCOM::getPublicSiteLink('images/store_icon.png'); ?> " /> <meta name="generator" value="osCommerce Online Merchant" /> <script type="text/javascript" src="public/external/jquery/jquery-1.4.2.min.js"></script> <link rel="stylesheet" type="text/css" href="<?php echo OSCOM::getPublicSiteLink('templates/oscom/stylesheets/general.css'); ?> " /> <?php if ($OSCOM_Template->hasPageTags()) { echo $OSCOM_Template->getPageTags(); } if ($OSCOM_Template->hasJavascript()) { $OSCOM_Template->getJavascript(); } ?> </head> <body>
?> (<?php echo sprintf(OSCOM::getDef('reviewed_by'), HTML::outputProtected($r['customers_name'])); ?> )</h6> <div class="content"> <?php if (!empty($r['image'])) { echo HTML::link(OSCOM::getLink(null, 'Products', 'Reviews&View=' . $r['reviews_id'] . '&' . $r['products_keyword']), $OSCOM_Image->show($r['image'], $r['products_name'], 'style="float: left;"')); } ?> <p style="padding-left: 100px;"><?php echo wordwrap(HTML::outputProtected($r['reviews_text']), 60, '­') . (strlen(HTML::outputProtected($r['reviews_text'])) >= 100 ? '..' : '') . '<br /><br /><i>' . sprintf(OSCOM::getDef('review_rating'), HTML::image(OSCOM::getPublicSiteLink('images/stars_' . (int) $r['reviews_rating'] . '.png'), sprintf(OSCOM::getDef('rating_of_5_stars'), (int) $r['reviews_rating'])), sprintf(OSCOM::getDef('rating_of_5_stars'), (int) $r['reviews_rating'])) . '</i>'; ?> </p> <div style="clear: both;"></div> </div> </div> <?php } ?> <div class="listingPageLinks"> <span style="float: right;"><?php echo PDO::getBatchPageLinks('page', $reviews_listing['total'], OSCOM::getAllGET('page')); ?>
?> '.replace('RESETAPP', resetApplication), function (data) { $.each(data, function(key, val) { if ( $('#shortcut-' + key + ' .notBubble').html != val ) { if ( val > 0 || val.length > 0 ) { $('#shortcut-' + key + ' .notBubble').html(val).show(); if ( (typeof webkitNotifications != 'undefined') && (webkitNotifications.checkPermission() == 0) ) { if ( typeof wkn[key] == 'undefined' ) { wkn[key] = new Object; } if ( wkn[key].value != val ) { wkn[key].value = val; wkn[key].n = webkitNotifications.createNotification('<?php echo OSCOM::getPublicSiteLink('images/applications/32/APPICON.png'); ?> '.replace('APPICON', key), key, val); wkn[key].n.replaceId = key; wkn[key].n.ondisplay = function(event) { setTimeout(function() { event.currentTarget.cancel(); }, 5000); }; wkn[key].n.show(); } } } else { $('#shortcut-' + key + ' .notBubble').hide(); } }
<script type="text/javascript" src="public/external/jquery/jquery-1.7.1.min.js"></script> <link rel="stylesheet" type="text/css" href="public/external/jquery/ui/themes/smoothness/jquery-ui-1.8.17.custom.css" /> <script type="text/javascript" src="public/external/jquery/ui/jquery-ui-1.8.17.custom.min.js"></script> <link rel="stylesheet" type="text/css" href="<?php echo OSCOM::getPublicSiteLink('templates/default/stylesheets/general.css'); ?>" /> </head> <body> <div id="pageHeader"> <div> <div style="float: right; padding-top: 40px; padding-right: 15px; color: #000000; font-weight: bold;"><a href="http://www.oscommerce.com" target="_blank">osCommerce Website</a> | <a href="http://www.oscommerce.com/support" target="_blank">Support</a></div> <a href="<?php echo OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()); ?>"><img src="<?php echo OSCOM::getPublicSiteLink('images/oscommerce.png'); ?>" border="0" alt="" title="osCommerce Online Merchant v3.0" style="margin: 10px 10px 0px 10px;" /></a> </div> </div> <div id="pageContent"> <?php require($OSCOM_Template->getPageContentsFile()); ?> </div> <div id="pageFooter"> Copyright © 2000-2011 <a href="http://www.oscommerce.com" target="_blank">osCommerce</a> (<a href="http://www.oscommerce.com/about/copyright" target="_blank">Copyright Policy</a>, <a href="http://www.oscommerce.com/about/trademark" target="_blank">Trademark Policy</a>)<br />osCommerce is a registered trademark of Harald Ponce de Leon</a> </div> </body> </html>
var dataTableDataURL = '<?php echo OSCOM::getRPCLink(null, null, 'GetAll'); ?> '; var countryLink = '<?php echo OSCOM::getLink(null, null, 'id=COUNTRYID'); ?> '; var countryLinkIcon = '<?php echo HTML::icon('folder.png'); ?> '; var countryFlag = '<?php echo HTML::image(OSCOM::getPublicSiteLink('images/worldflags/COUNTRYISOCODE2.png', null, 'Shop'), 'COUNTRYNAME'); ?> '; var countryEditLink = '<?php echo OSCOM::getLink(null, null, 'Save&id=COUNTRYID'); ?> '; var countryEditLinkIcon = '<?php echo HTML::icon('edit.png'); ?> '; var countryDeleteLink = '<?php echo OSCOM::getLink(null, null, 'Delete&id=COUNTRYID'); ?>
?> " /> </head> <body> <div id="pageHeader" class="round"> <div> <div style="float: right; padding-top: 40px; padding-right: 15px; color: #000000; font-weight: bold;"><a href="http://www.oscommerce.com" target="_blank">osCommerce Website</a> | <a href="http://www.oscommerce.com/support" target="_blank">Support</a></div> <a href="<?php echo OSCOM::getLink(null, 'Index'); ?> "><img src="<?php echo OSCOM::getPublicSiteLink('images/oscommerce_logo-silver.jpg'); ?> " border="0" width="250" height="50" alt="" title="osCommerce Online Merchant v3.0" style="margin: 10px 10px 0px 10px;" /></a> </div> </div> <div id="pageContent"> <?php require OSCOM::BASE_DIRECTORY . 'Core/Site/' . OSCOM::getSite() . '/Application/' . OSCOM::getSiteApplication() . '/pages/' . $OSCOM_Template->getPageContentsFilename(); ?> </div> <div id="pageFooter"> Copyright © 2000-2010 <a href="http://www.oscommerce.com" target="_blank">osCommerce</a> (<a href="http://www.oscommerce.com/about/copyright" target="_blank">Copyright Policy</a>, <a href="http://www.oscommerce.com/about/trademark" target="_blank">Trademark Policy</a>)<br />osCommerce provides no warranty and is redistributable under the <a href="http://www.fsf.org/licenses/gpl.txt" target="_blank">GNU General Public License v2 (1991)</a> </div>
#pageColumnLeft { width: 16%; } //--></style> <?php } unset($content_left); unset($content_right); if ($OSCOM_Template->hasPageHeader()) { ?> <div id="pageHeader"> <?php echo HTML::link(OSCOM::getLink(OSCOM::getDefaultSite(), OSCOM::getDefaultSiteApplication()), HTML::image(OSCOM::getPublicSiteLink('images/store_logo.png'), STORE_NAME), 'id="siteLogo"'); ?> <div id="navigationIcons"> <?php echo HTML::button(array('title' => OSCOM::getDef('cart_contents') . ($OSCOM_ShoppingCart->numberOfItems() > 0 ? ' (' . $OSCOM_ShoppingCart->numberOfItems() . ')' : ''), 'icon' => 'cart', 'href' => OSCOM::getLink(null, 'Cart'))) . HTML::button(array('title' => OSCOM::getDef('checkout'), 'icon' => 'triangle-1-e', 'href' => OSCOM::getLink(null, 'Checkout', null, 'SSL'))) . HTML::button(array('title' => OSCOM::getDef('my_account'), 'icon' => 'person', 'href' => OSCOM::getLink(null, 'Account', null, 'SSL'))); if ($OSCOM_Customer->isLoggedOn()) { echo HTML::button(array('title' => OSCOM::getDef('sign_out'), 'href' => OSCOM::getLink(null, 'Account', 'LogOff', 'SSL'))); } ?> </div> <script type="text/javascript"> $('#navigationIcons').buttonset();
/* osCommerce Online Merchant $osCommerce-SIG$ Copyright (c) 2010 osCommerce (http://www.oscommerce.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 (1991) as published by the Free Software Foundation. */ use osCommerce\OM\Core\OSCOM; use osCommerce\OM\Core\Access; ?> <div id="adminMenu"> <ul class="apps"> <li class="shortcuts"><?php echo osc_link_object(OSCOM::getLink(OSCOM::getSite(), 'Index'), osc_image(OSCOM::getPublicSiteLink('images/oscommerce_icon.png'), null, 16, 16)); ?> </li> <?php if (isset($_SESSION[OSCOM::getSite()]['id'])) { echo ' <li><a href="#"><span class="ui-icon ui-icon-triangle-1-s" style="float: right;"></span>Applications</a>' . ' <ul>'; foreach (Access::getLevels() as $group => $links) { $application = current($links); echo ' <li><a href="' . OSCOM::getLink(null, $application['module']) . '"><span class="ui-icon ui-icon-triangle-1-e" style="float: right;"></span>' . Access::getGroupTitle($group) . '</a>' . ' <ul>'; foreach ($links as $link) { echo ' <li><a href="' . OSCOM::getLink(null, $link['module']) . '">' . $OSCOM_Template->getIcon(16, $link['icon']) . ' ' . $link['title'] . '</a></li>'; } echo ' </ul>' . ' </li>'; } echo ' </ul>' . ' </li>';
<script src="public/sites/Admin/javascript/jquery/jquery.buttonsetTabs.js"></script> <script src="public/sites/Admin/javascript/jquery/jquery.equalResize.js"></script> <script src="public/sites/Admin/javascript/jquery/jquery.imageSelector.js"></script> <link rel="stylesheet" type="text/css" href="public/external/fileuploader/fileuploader.css" /> <script src="public/external/fileuploader/fileuploader.min.js"></script> <link rel="stylesheet" type="text/css" href="public/external/jquery/ui/themes/smoothness/jquery-ui-1.8.17.custom.css" /> <script type="text/javascript" src="public/external/jquery/ui/jquery-ui-1.8.17.custom.min.js"></script> <script type="text/javascript" src="public/external/alexei/sprintf.js"></script> <script type="text/javascript" src="<?php echo OSCOM::getPublicSiteLink('javascript/general.js'); ?>"></script> <script type="text/javascript" src="<?php echo OSCOM::getPublicSiteLink('javascript/datatable.js'); ?>"></script> <link rel="stylesheet" type="text/css" href="<?php echo OSCOM::getPublicSiteLink('templates/oscom/stylesheets/general.css'); ?>" /> <script type="text/javascript"> var pageURL = '<?php echo OSCOM::getLink(); ?>'; var pageModule = '<?php echo OSCOM::getSiteApplication(); ?>'; var batchSize = parseInt('<?php echo MAX_DISPLAY_SEARCH_RESULTS; ?>'); var batchTotalPagesText = '<?php echo addslashes(OSCOM::getDef('batch_results_number_of_entries')); ?>'; var batchCurrentPageset = '<?php echo addslashes(OSCOM::getDef('result_set_current_page')); ?>'; var batchIconNavigationBack = '<?php echo HTML::icon('nav_back.png'); ?>'; var batchIconNavigationBackGrey = '<?php echo HTML::icon('nav_back_grey.png'); ?>'; var batchIconNavigationForward = '<?php echo HTML::icon('nav_forward.png'); ?>'; var batchIconNavigationForwardGrey = '<?php echo HTML::icon('nav_forward_grey.png'); ?>'; var batchIconNavigationReload = '<?php echo HTML::icon('reload.png'); ?>'; var batchIconProgress = '<?php echo HTML::icon('progress_ani.gif'); ?>';
<td><?php echo OSCOM::getDef('box_server_curl'); ?> </td> <td align="right"><img src="<?php echo OSCOM::getPublicSiteLink('templates/default/images/' . (extension_loaded('curl') ? 'tick.gif' : 'cross.gif')); ?> " alt="" border="0" width="16" height="16" /></td> </tr> <tr> <td><?php echo OSCOM::getDef('box_server_openssl'); ?> </td> <td align="right"><img src="<?php echo OSCOM::getPublicSiteLink('templates/default/images/' . (extension_loaded('openssl') ? 'tick.gif' : 'cross.gif')); ?> " alt="" border="0" width="16" height="16" /></td> </tr> </table> </div> </div> <div class="contentPane"> <h2><?php echo OSCOM::getDef('page_heading_server_requirements'); ?> </h2> <ul> <li>PHP v5.3+ (with MySQL or MySQLi extension)</li>
<div style="float: right; text-align: center;"> <?php echo HTML::link(OSCOM::getLink(null, null, 'Images&' . $OSCOM_Product->getKeyword()), $OSCOM_Image->show($OSCOM_Product->getImage(), $OSCOM_Product->getTitle(), 'hspace="5" vspace="5"', 'thumbnail'), 'target="_blank" onclick="window.open(\'' . OSCOM::getLink(null, null, 'Images&' . $OSCOM_Product->getKeyword()) . '\', \'popUp\', \'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=' . ($OSCOM_Product->numberOfImages() > 1 ? $OSCOM_Image->getWidth('large') + $OSCOM_Image->getWidth('thumbnails') * 2 + 70 : $OSCOM_Image->getWidth('large') + 20) . ',height=' . ($OSCOM_Image->getHeight('large') + 20) . '\'); return false;"'); ?> <?php echo '<p>' . HTML::button(array('href' => OSCOM::getLink(null, 'Cart', 'Add&' . $OSCOM_Product->getKeyword()), 'icon' => 'cart', 'title' => OSCOM::getDef('button_add_to_cart'))) . '</p>'; ?> </div> <?php } ?> <p><?php echo HTML::image(OSCOM::getPublicSiteLink('images/stars_' . $Qreviews->valueInt('reviews_rating') . '.png'), sprintf(OSCOM::getDef('rating_of_5_stars'), $Qreviews->valueInt('reviews_rating'))) . ' ' . sprintf(OSCOM::getDef('reviewed_by'), $Qreviews->valueProtected('customers_name')) . '; ' . DateTime::getLong($Qreviews->value('date_added')); ?> </p> <p><?php echo nl2br(wordwrap($Qreviews->valueProtected('reviews_text'), 60, '­')); ?> </p> <div class="submitFormButtons"> <span style="float: right;"><?php echo HTML::button(array('href' => OSCOM::getLink(null, null, 'Reviews&Write&' . $OSCOM_Product->getKeyword()), 'icon' => 'pencil', 'title' => OSCOM::getDef('button_write_review'))); ?> </span> <?php
} else { $('#mBoxContents').html('<p><img src="<?php echo OSCOM::getPublicSiteLink('templates/default/images/failed.gif'); ?>" align="right" hspace="5" vspace="5" border="0" /><?php echo OSCOM::getDef('rpc_database_connection_error'); ?></p>'.replace('%s', data.error_message)); formSubmited = false; } } function prepareDB() { if (formSubmited == true) { return false; } formSubmited = true; $('#mBox').css('visibility', 'visible').show(); $('#mBoxContents').html('<p><img src="<?php echo OSCOM::getPublicSiteLink('templates/default/images/progress.gif'); ?>" align="right" hspace="5" vspace="5" border="0" /><?php echo OSCOM::getDef('rpc_database_connection_test'); ?></p>'); dbServer = encodeURIComponent($('#DB_SERVER').val()); dbUsername = encodeURIComponent($('#DB_SERVER_USERNAME').val()); dbPassword = encodeURIComponent($('#DB_SERVER_PASSWORD').val()); dbName = encodeURIComponent($('#DB_DATABASE').val()); dbPort = encodeURIComponent($('#DB_SERVER_PORT').val()); dbClass = encodeURIComponent($('#DB_DATABASE_CLASS').val()); dbPrefix = encodeURIComponent($('#DB_TABLE_PREFIX').val()); $.post('<?php echo OSCOM::getRPCLink(null, null, 'DBCheck'); ?>', 'server=' + dbServer + '&username='******'&password='******'&name=' + dbName + '&port=' + dbPort + '&class=' + dbClass, handleHttpResponse, 'json'); } </script>
} $counter = 0; $reviews_listing = Reviews::getListing($OSCOM_Product->getID()); foreach ($reviews_listing['entries'] as $r) { $counter++; if ($counter > 1) { ?> <hr style="height: 1px; width: 150px; text-align: left; margin-left: 0px" /> <?php } ?> <p><?php echo HTML::image(OSCOM::getPublicSiteLink('images/stars_' . (int) $r['reviews_rating'] . '.png'), sprintf(OSCOM::getDef('rating_of_5_stars'), (int) $r['reviews_rating'])) . ' ' . sprintf(OSCOM::getDef('reviewed_by'), HTML::outputProtected($r['customers_name'])) . '; ' . DateTime::getLong($r['date_added']); ?> </p> <p><?php echo nl2br(wordwrap(HTML::outputProtected($r['reviews_text']), 60, '­')); ?> </p> <?php } ?> <div class="listingPageLinks"> <span style="float: right;"><?php echo PDO::getBatchPageLinks('page', $reviews_listing['total'], OSCOM::getAllGET('page'));
/** * Generate a public url to an icon from a template set * * @param string $image The icon to display * @param string $group The size group of the icon * @return string * @since v3.0.0 */ public static function iconRaw($image, $group = null) { if (is_null($group)) { $group = '16x16'; } return OSCOM::getPublicSiteLink('templates/' . Registry::get('Template')->getCode() . '/images/icons/' . (!empty($group) ? $group . '/' : null) . $image); }
formSubmited = false; } } function prepareDB() { if ( $('#DB_INSERT_SAMPLE_DATA').attr('checked') ) { if (formSubmited == true) { return false; } formSubmited = true; $('#mBox').css('visibility', 'visible').show(); $('#mBoxContents').html('<p><img src="<?php echo OSCOM::getPublicSiteLink('templates/default/images/progress.gif'); ?> " align="right" hspace="5" vspace="5" border="0" /><?php echo OSCOM::getDef('rpc_database_sample_data_importing'); ?> </p>'); $.post('<?php echo OSCOM::getRPCLink(null, null, 'DBImportSample'); ?> ', 'server=' + dbServer + '&username='******'&password='******'&name=' + dbName + '&port=' + dbPort + '&class=' + dbClass + '&prefix=' + dbPrefix, handleHttpResponse, 'json'); } else { formSuccess = true;
function updateShortcutNotifications(resetApplication) { $.getJSON('<?php echo OSCOM::getRPCLink('Admin', 'Dashboard', 'GetShortcutNotifications&reset=RESETAPP'); ?>'.replace('RESETAPP', resetApplication), function (data) { if ( ('rpcStatus' in data) && (data['rpcStatus'] == 1) ) { $.each(data['entries'], function(key, val) { if ( $('#shortcut-' + key + ' .notBubble').html != val ) { if ( val > 0 || val.length > 0 ) { $('#shortcut-' + key + ' .notBubble').html(val).show(); if ( (typeof webkitNotifications != 'undefined') && (webkitNotifications.checkPermission() == 0) ) { if ( typeof wkn[key] == 'undefined' ) { wkn[key] = new Object; } if ( wkn[key].value != val ) { wkn[key].value = val; wkn[key].n = webkitNotifications.createNotification('<?php echo OSCOM::getPublicSiteLink('images/applications/32/APPICON.png'); ?>'.replace('APPICON', key), key, val); wkn[key].n.replaceId = key; wkn[key].n.ondisplay = function(event) { setTimeout(function() { event.currentTarget.cancel(); }, 5000); }; wkn[key].n.show(); } } } else { $('#shortcut-' + key + ' .notBubble').hide(); } } }); }