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>'; } } }
?> " valign="top" align="center"> <?php if ($OSCOM_Product->hasImage()) { echo HTML::link(OSCOM::getLink(null, null, $OSCOM_Product->getKeyword()), $OSCOM_Image->show($OSCOM_Product->getImage(), $OSCOM_Product->getTitle())); } ?> </td> <td valign="top"><?php echo HTML::link(OSCOM::getLink(null, null, $OSCOM_Product->getKeyword()), '<b><u>' . $OSCOM_Product->getTitle() . '</u></b>') . '<br />' . OSCOM::getDef('date_added') . ' ' . DateTime::getLong($OSCOM_Product->getDateAdded()) . '<br />' . OSCOM::getDef('manufacturer') . ' ' . $OSCOM_Product->getManufacturer() . '<br /><br />' . OSCOM::getDef('price') . ' ' . $OSCOM_Product->getPriceFormated(); ?> </td> <td align="right" valign="middle"><?php echo HTML::button(array('href' => OSCOM::getLink(null, 'Cart', 'Add&' . $OSCOM_Product->getKeyword()), 'icon' => 'cart', 'title' => OSCOM::getDef('button_add_to_cart'))); ?> </td> </tr> <tr> <td colspan="3"> </td> </tr> <?php } } else { ?> <tr> <td><?php echo OSCOM::getDef('no_new_products');
echo HTML::icon('trash.png') . ' ' . OSCOM::getDef('action_heading_batch_delete_tax_rates'); ?> </h3> <form name="rDeleteBatch" class="dataForm" action="<?php echo OSCOM::getLink(null, null, 'BatchDeleteEntries&Process&id=' . $_GET['id']); ?> " method="post"> <p><?php echo OSCOM::getDef('introduction_batch_delete_tax_rates'); ?> </p> <?php $Qentries = $OSCOM_PDO->query('select tax_rates_id, tax_description from :table_tax_rates where tax_rates_id in ("' . implode('", "', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric'))) . '") order by tax_description'); $Qentries->execute(); $names_string = ''; while ($Qentries->fetch()) { $names_string .= HTML::hiddenField('batch[]', $Qentries->valueInt('tax_rates_id')) . '<b>' . $Qentries->valueProtected('tax_description') . '</b>, '; } if (!empty($names_string)) { $names_string = substr($names_string, 0, -2); } echo '<p>' . $names_string . '</p>'; echo '<p>' . HTML::button(array('priority' => 'primary', 'icon' => 'trash', 'title' => OSCOM::getDef('button_delete'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'id=' . $_GET['id']), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))) . '</p>'; ?> </form> </div>
<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')); ?> </span> <?php echo PDO::getBatchTotalPages(OSCOM::getDef('result_set_number_of_reviews'), isset($_GET['page']) ? $_GET['page'] : 1, $reviews_listing['total']); ?> </div> <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 echo HTML::button(array('href' => OSCOM::getLink(null, null, $OSCOM_Product->getKeyword()), 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back'))); ?> </div>
<p><label for="ab_default"><?php echo OSCOM::getDef('field_set_as_primary'); ?> </label><?php echo HTML::checkboxField('ab_default'); ?> </p> </fieldset> <p id="abSubmitButtonsNew"><?php echo HTML::button(array('type' => 'button', 'params' => 'onclick="processAddress();"', 'priority' => 'primary', 'icon' => 'plus', 'title' => OSCOM::getDef('button_add'))) . ' ' . HTML::button(array('type' => 'button', 'params' => 'onclick="cancelAddressForm();"', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?> </p> <p id="abSubmitButtonsEdit"><?php echo HTML::button(array('type' => 'button', 'params' => 'data-abButtonType="henrysBucket"', 'priority' => 'primary', 'icon' => 'arrowrefresh-1-n', 'title' => OSCOM::getDef('button_update'))) . ' ' . HTML::button(array('type' => 'button', 'params' => 'onclick="cancelAddressForm();"', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?> </p> </div> </div> <script> $(function() { $('#ab_country').change(function() { var zone_id, state; if ( $(this).data('zone_id') ) { zone_id = $(this).data('zone_id'); $(this).removeData('zone_id'); } else {
<?php if ( $OSCOM_MessageStack->exists() ) { echo $OSCOM_MessageStack->get(); } ?> <div id="sectionMenuContainer" style="float: left; padding-bottom: 10px;"> <span class="ui-widget-header ui-corner-all" style="padding: 10px 4px;"> <span id="sectionMenu"><?php echo HTML::radioField('sections', array(array('id' => 'general', 'text' => OSCOM::getDef('section_general')), array('id' => 'data', 'text' => OSCOM::getDef('section_data')), array('id' => 'images', 'text' => OSCOM::getDef('section_images')), array('id' => 'variants', 'text' => OSCOM::getDef('section_variants')), array('id' => 'categories', 'text' => OSCOM::getDef('section_categories'))), (isset($_GET['tabIndex']) ? $_GET['tabIndex'] : null), null, ''); ?></span> </span> </div> <form id="pEditForm" name="product" class="dataForm" action="<?php echo OSCOM::getLink(null, null, 'Save&Process&cid=' . $OSCOM_Application->getCurrentCategoryID()); ?>" method="post"> <div id="formButtons" style="float: right;"><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('type' => 'button', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'), 'params' => 'onclick="$.safetynet.suppressed(true); window.location.href=\'' . OSCOM::getLink(null, null, 'cid=' . $OSCOM_Application->getCurrentCategoryID()) . '\';"')); ?></div> <div style="clear: both;"></div> <?php // HPDL Modularize, zack zack! include('section_general.php'); include('section_data.php'); include('section_images.php'); include('section_variants.php'); include('section_categories.php'); ?> </form> <script>
?> </h1> <?php if ($OSCOM_MessageStack->exists()) { echo $OSCOM_MessageStack->get(); } ?> <form id="liveSearchForm"> <?php echo HTML::inputField('search', null, 'id="liveSearchField" class="searchField" placeholder="' . OSCOM::getDef('placeholder_search') . '"') . HTML::button(array('type' => 'button', 'params' => 'onclick="osC_DataTable.reset();"', 'title' => OSCOM::getDef('button_reset'))); ?> <span style="float: right;"><?php echo HTML::button(array('href' => OSCOM::getLink(null, null, 'UpdateRates'), 'icon' => 'refresh', 'title' => OSCOM::getDef('button_update_currency_exchange_rates'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'Save'), 'icon' => 'plus', 'title' => OSCOM::getDef('button_insert'))); ?> </span> </form> <div style="padding: 20px 5px 5px 5px; height: 16px;"> <span id="batchTotalPages"></span> <span id="batchPageLinks"></span> </div> <form name="batch" action="#" method="post"> <table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable" id="currenciesDataTable"> <thead> <tr> <th><?php
<p align="right"><?php echo HTML::button(array('icon' => 'key', 'title' => OSCOM::getDef('button_sign_in'))); ?> </p> </div> </form> </div> <div class="moduleBox" style="width: 49%;"> <div class="outsideHeading"> <h6><?php echo OSCOM::getDef('login_new_customer_heading'); ?> </h6> </div> <div class="content"> <p><?php echo OSCOM::getDef('login_new_customer_text'); ?> </p> <p align="right"><?php echo HTML::button(array('href' => OSCOM::getLink(null, null, 'Create', 'SSL'), 'icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))); ?> </p> </div> </div>
use osCommerce\OM\Core\HTML; use osCommerce\OM\Core\OSCOM; ?> <h1><?php echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle()); ?></h1> <?php if ( $OSCOM_MessageStack->exists() ) { echo $OSCOM_MessageStack->get(); } ?> <form id="liveSearchForm"> <?php echo HTML::inputField('search', null, 'id="liveSearchField" class="searchField" placeholder="' . OSCOM::getDef('placeholder_search') . '"') . HTML::button(array('type' => 'button', 'params' => 'onclick="osC_DataTable.reset();"', 'title' => OSCOM::getDef('button_reset'))); ?> <span style="float: right;"><?php echo HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back'))); ?></span> </form> <div style="padding: 20px 5px 5px 5px; height: 16px;"> <span id="batchTotalPages"></span> <span id="batchPageLinks"></span> </div> <form name="batch" action="#" method="post"> <table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable" id="productAttributesDataTable"> <thead> <tr> <th><?php echo OSCOM::getDef('table_heading_product_attributes'); ?></th> <th width="150"><?php echo OSCOM::getDef('table_heading_action'); ?></th> </tr>
?> <div class="infoBox"> <h3><?php echo HTML::icon('trash.png') . ' ' . OSCOM::getDef('action_heading_batch_delete_cards'); ?></h3> <form name="ccDeleteBatch" class="dataForm" action="<?php echo OSCOM::getLink(null, null, 'BatchDelete&Process'); ?>" method="post"> <p><?php echo OSCOM::getDef('introduction_batch_delete_cards'); ?></p> <?php $Qcc = $OSCOM_PDO->query('select id, credit_card_name from :table_credit_cards where id in (\'' . implode('\', \'', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric'))) . '\') order by credit_card_name'); $Qcc->execute(); $names_string = ''; while ($Qcc->fetch()) { $names_string .= HTML::hiddenField('batch[]', $Qcc->valueInt('id')) . '<b>' . $Qcc->valueProtected('credit_card_name') . '</b>, '; } if ( !empty($names_string) ) { $names_string = substr($names_string, 0, -2); } echo '<p>' . $names_string . '</p>'; ?> <p><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'trash', 'title' => OSCOM::getDef('button_delete'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?></p> </form> </div>
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(); </script> <div id="navigationBar"> <?php if ($OSCOM_Service->isStarted('Breadcrumb')) { ?>
echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))); ?> </span> <?php if ($OSCOM_NavigationHistory->hasSnapshot()) { $back_link = $OSCOM_NavigationHistory->getSnapshotURL(); } elseif ($OSCOM_Customer->hasDefaultAddress() === false) { $back_link = OSCOM::getLink(null, null, null, 'SSL'); } else { $back_link = OSCOM::getLink(null, null, 'AddressBook', 'SSL'); } echo HTML::button(array('href' => $back_link, 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back'))); ?> </div> </form> <?php } else { ?> <div class="submitFormButtons"> <?php HTML::button(array('href' => OSCOM::getLink(null, null, 'AddressBook', 'SSL'), 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back'))); ?> </div> <?php }
<p><label for="variants_weight"><?php echo OSCOM::getDef('field_weight'); ?></label><?php echo HTML::inputField('variants_weight', null, 'size="6"'). HTML::selectMenu('variants_weight_class', $OSCOM_Application->getWeightClassesList(), SHIPPING_WEIGHT_UNIT); ?></p> <p><label for="variants_default"><?php echo OSCOM::getDef('field_default'); ?></label><?php echo HTML::checkboxField('variants_default'); ?></p> </fieldset> <script> $(function() { $('#vstatus').buttonset(); }); </script> </td> </tr> </table> <p id="variantSubmitButtonsNew"><?php echo HTML::button(array('type' => 'button', 'params' => 'onclick="processVariantForm();"', 'priority' => 'primary', 'icon' => 'plus', 'title' => OSCOM::getDef('button_add'))) . ' ' . HTML::button(array('type' => 'button', 'params' => 'onclick="closeVariantForm();"', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?></p> <p id="variantSubmitButtonsEdit"><?php echo HTML::button(array('type' => 'button', 'params' => 'data-vButtonType="henrysBucket"', 'priority' => 'primary', 'icon' => 'arrowrefresh-1-n', 'title' => OSCOM::getDef('button_update'))) . ' ' . HTML::button(array('type' => 'button', 'params' => 'onclick="closeVariantForm();"', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?></p> </div> </div> </div> <div id="dialogDeleteVariant" title="<?php echo HTML::output(OSCOM::getDef('dialog_delete_variant_title')); ?>"> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_delete_variant_desc'); ?></p> </div> <div id="dialogDeleteNewVariant" title="<?php echo HTML::output(OSCOM::getDef('dialog_delete_new_variant_title')); ?>"> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_delete_new_variant_desc'); ?></p> </div> <div id="dialogDeleteDefaultVariant" title="<?php echo HTML::output(OSCOM::getDef('dialog_delete_default_variant_title')); ?>"> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_delete_default_variant_desc'); ?></p> </div>
use osCommerce\OM\Core\HTML; use osCommerce\OM\Core\OSCOM; ?> <h1><?php echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle()); ?></h1> <?php if ( $OSCOM_MessageStack->exists() ) { echo $OSCOM_MessageStack->get(); } ?> <form id="liveSearchForm"> <?php echo HTML::inputField('search', null, 'id="liveSearchField" class="searchField" placeholder="' . OSCOM::getDef('placeholder_search') . '"') . HTML::button(array('type' => 'button', 'params' => 'onclick="osC_DataTable.reset();"', 'title' => OSCOM::getDef('button_reset'))); ?> <span style="float: right;"><?php echo HTML::button(array('href' => OSCOM::getLink(null, null, 'Install'), 'icon' => 'plus', 'title' => OSCOM::getDef('button_install'))); ?></span> </form> <div style="padding: 20px 5px 5px 5px; height: 16px;"> <span id="batchTotalPages"></span> <span id="batchPageLinks"></span> </div> <form name="batch" action="#" method="post"> <table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable" id="productAttributesDataTable"> <thead> <tr> <th><?php echo OSCOM::getDef('table_heading_product_attributes'); ?></th> <th width="150"><?php echo OSCOM::getDef('table_heading_action'); ?></th> </tr>
?> </label><?php echo HTML::inputField('user_name', null, 'tabindex="1"'); ?> </p> <p><label for="user_password"><?php echo OSCOM::getDef('field_password'); ?> </label><?php echo HTML::passwordField('user_password', 'tabindex="2"'); ?> </p> </fieldset> <p><?php echo HTML::button(array('icon' => 'key', 'title' => OSCOM::getDef('button_login'))); ?> </p> </form> </div> <script type="text/javascript"> $('#user_name').focus(); if (typeof webkitNotifications != 'undefined') { $('#formLogin').submit(function() { if ( webkitNotifications.checkPermission() == 1 ) { webkitNotifications.requestPermission(); } });
$Qzones->execute(); $names_string = ''; while ( $Qzones->fetch() ) { if ( ZoneGroups::hasTaxRates($Qzones->valueInt('geo_zone_id')) ) { $check_tax_zones_flag[] = $Qzones->value('geo_zone_name'); } $names_string .= HTML::hiddenField('batch[]', $Qzones->valueInt('geo_zone_id')) . '<b>' . $Qzones->valueProtected('geo_zone_name') . ' (' . sprintf(OSCOM::getDef('total_entries'), ZoneGroups::getNumberOfEntries($Qzones->valueInt('geo_zone_id'))) . ')</b>, '; } if ( !empty($names_string) ) { $names_string = substr($names_string, 0, -2); } echo '<p>' . $names_string . '</p>'; if ( empty($check_tax_zones_flag) ) { echo '<p>' . HTML::button(array('priority' => 'primary', 'icon' => 'trash', 'title' => OSCOM::getDef('button_delete'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))) . '</p>'; } else { echo '<p><b>' . OSCOM::getDef('batch_delete_warning_group_in_use_tax_rate') . '</b></p>' . '<p>' . implode(', ', $check_tax_zones_flag) . '</p>'; echo '<p>' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'primary', 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back'))) . '</p>'; } ?> </form> </div>
?> </h1> <?php if ($OSCOM_MessageStack->exists()) { echo $OSCOM_MessageStack->get(); } ?> <form id="liveSearchForm"> <?php echo HTML::inputField('search', null, 'id="liveSearchField" class="searchField" placeholder="' . OSCOM::getDef('placeholder_search') . '"') . HTML::button(array('type' => 'button', 'params' => 'onclick="osC_DataTable.reset();"', 'title' => OSCOM::getDef('button_reset'))); ?> <span style="float: right;"><?php echo HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'InsertDefinition&id=' . $_GET['id']), 'icon' => 'plus', 'title' => OSCOM::getDef('button_insert'))); ?> </span> </form> <div style="padding: 20px 5px 5px 5px; height: 16px;"> <span id="batchTotalPages"></span> <span id="batchPageLinks"></span> </div> <table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable" id="langDefGroupDataTable"> <thead> <tr> <th><?php echo OSCOM::getDef('table_heading_definition_groups'); ?>
?> </h6> <div class="content"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php foreach ($status as $s) { echo ' <tr>' . "\n" . ' <td valign="top" width="70">' . DateTime::getShort($s['date_added']) . '</td>' . "\n" . ' <td valign="top" width="70">' . $s['orders_status_name'] . '</td>' . "\n" . ' <td valign="top">' . (strlen(HTML::outputProtected($s['comments'])) > 0 ? nl2br(HTML::outputProtected($s['comments'])) : ' ') . '</td>' . "\n" . ' </tr>' . "\n"; } ?> </table> </div> </div> <?php } // HPDL // if ( DOWNLOAD_ENABLED == '1' ) { // include('includes/modules/downloads.php'); // } ?> <div class="submitFormButtons"> <?php echo HTML::button(array('href' => OSCOM::getLink(null, null, 'Orders' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'SSL'), 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back'))); ?> </div>
?> </h1> <?php if ($OSCOM_MessageStack->exists()) { echo $OSCOM_MessageStack->get(); } ?> <form id="cEditForm" name="cEdit" class="dataForm" action="<?php echo OSCOM::getLink(null, null, 'Save&Process&cid=' . $OSCOM_ObjectInfo->getInt('parent_id') . '&id=' . $OSCOM_ObjectInfo->getInt('categories_id')); ?> " method="post" enctype="multipart/form-data"> <div id="formButtons" style="float: right;"><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('type' => 'button', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'), 'params' => 'onclick="$.safetynet.suppressed(true); window.location.href=\'' . OSCOM::getLink(null, null, 'cid=' . $OSCOM_ObjectInfo->getInt('parent_id')) . '\';"')); ?> </div> <div style="clear: both;"></div> <div class="infoBox"> <h3><?php echo HTML::icon('edit.png') . ' ' . $OSCOM_ObjectInfo->getProtected('categories_name'); ?> </h3> <fieldset> <p><label for="parent_id"><?php echo OSCOM::getDef('field_parent_category'); ?>
echo '<br />' . $OSCOM_Language->showImage($l['code']) . '<br />' . HTML::textareaField('value[' . $l['id'] . ']'); } ?> </p> <p><label for="defgroup"><?php echo OSCOM::getDef('field_definition_group'); ?> </label><?php echo HTML::inputField('defgroup', isset($_GET['group']) ? $_GET['group'] : null); ?> </p> </fieldset> <p><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'id=' . $_GET['id'] . (isset($_GET['group']) ? '&group=' . $_GET['group'] : '')), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?> </p> </form> </div> <script type="text/javascript"> var suggestGroups = <?php echo json_encode($groups_array); ?> ; $("#defgroup").autocomplete({ source: suggestGroups, minLength: 0
<?php /** * osCommerce Online Merchant * * @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com * @license BSD License; http://www.oscommerce.com/bsdlicense.txt */ use osCommerce\OM\Core\HTML; use osCommerce\OM\Core\OSCOM; $products_listing = $OSCOM_Search->getResult(); ?> <h1><?php echo $OSCOM_Template->getPageTitle(); ?> </h1> <?php require OSCOM::BASE_DIRECTORY . 'Core/Site/Shop/Application/Products/pages/product_listing.php'; ?> <div class="submitFormButtons"> <?php echo HTML::button(array('href' => OSCOM::getLink(), 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back'))); ?> </div>
<p><?php echo OSCOM::getDef('introduction_import_language'); ?> </p> <fieldset> <p><label for="language_import"><?php echo OSCOM::getDef('field_language_selection'); ?> </label><?php echo HTML::selectMenu('language_import', $languages_array); ?> </p> <p><label for="import_type"><?php echo OSCOM::getDef('field_import_type'); ?> </label><br /><?php echo HTML::radioField('import_type', array(array('id' => 'add', 'text' => OSCOM::getDef('only_add_new_records')), array('id' => 'update', 'text' => OSCOM::getDef('only_update_existing_records')), array('id' => 'replace', 'text' => OSCOM::getDef('replace_all'))), 'add', null, '<br />'); ?> </p> </fieldset> <p><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'triangle-1-se', 'title' => OSCOM::getDef('button_import'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?> </p> </form> </div>
</p> <fieldset> <?php $keys = ''; foreach ($OSCOM_ObjectInfo->get('keys') as $key) { $Qkey = $OSCOM_PDO->prepare('select configuration_title, configuration_value, configuration_description, use_function, set_function from :table_configuration where configuration_key = :configuration_key'); $Qkey->bindValue(':configuration_key', $key); $Qkey->execute(); $keys .= '<p><label for="' . $key . '">' . $Qkey->value('configuration_title') . '</label><br />' . $Qkey->value('configuration_description'); if (strlen($Qkey->value('set_function')) > 0) { $keys .= Configuration::callUserFunc($Qkey->value('set_function'), $Qkey->value('configuration_value'), $key); } else { $keys .= HTML::inputField('configuration[' . $key . ']', $Qkey->value('configuration_value')); } $keys .= '</p>'; } echo $keys; ?> </fieldset> <p><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?> </p> </form> </div>
?> </h1> <?php if ($OSCOM_MessageStack->exists()) { echo $OSCOM_MessageStack->get(); } ?> <form id="liveSearchForm"> <?php echo HTML::inputField('search', null, 'id="liveSearchField" class="searchField" placeholder="' . OSCOM::getDef('placeholder_search') . '"') . HTML::button(array('type' => 'button', 'params' => 'onclick="osC_DataTable.reset();"', 'title' => OSCOM::getDef('button_reset'))); ?> <span style="float: right;"><?php echo HTML::button(array('href' => OSCOM::getLink(null, null, 'Import'), 'icon' => 'triangle-1-se', 'title' => OSCOM::getDef('button_import'))); ?> </span> </form> <div style="padding: 20px 5px 5px 5px; height: 16px;"> <span id="batchTotalPages"></span> <span id="batchPageLinks"></span> </div> <form name="batch" action="#" method="post"> <table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable" id="langDataTable"> <thead> <tr> <th><?php
</td> </tr> <tr> <td class="inputField"><?php echo OSCOM::getDef('param_database_prefix') . '<br />' . HTML::inputField('DB_TABLE_PREFIX', 'osc_', 'class="text"'); ?> </td> <td class="inputDescription"><?php echo OSCOM::getDef('param_database_prefix_description'); ?> </td> </tr> </table> <p align="right"><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?> </p> </form> </div> </div> <script type="text/javascript"> $("#installForm").submit(function(e) { if ( formSuccess == false ) { e.preventDefault(); prepareDB(); } });
?> <h1><?php echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle()); ?> </h1> <?php if ($OSCOM_MessageStack->exists()) { echo $OSCOM_MessageStack->get(); } ?> <form id="liveSearchForm"> <?php echo HTML::inputField('search', null, 'id="liveSearchField" class="searchField" placeholder="' . OSCOM::getDef('placeholder_search') . '"') . HTML::button(array('type' => 'button', 'params' => 'onclick="osC_DataTable.reset();"', 'title' => OSCOM::getDef('button_reset'))); ?> </form> <div style="padding: 20px 5px 5px 5px; height: 16px;"> <span id="batchTotalPages"></span> <span id="batchPageLinks"></span> </div> <form name="batch" action="#" method="post"> <table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable" id="configurationDataTable"> <thead> <tr> <th><?php echo OSCOM::getDef('table_heading_groups');
?> </h1> <?php if ($OSCOM_MessageStack->exists()) { echo $OSCOM_MessageStack->get(); } ?> <form id="liveSearchForm"> <?php echo HTML::inputField('search', null, 'id="liveSearchField" class="searchField" placeholder="' . OSCOM::getDef('placeholder_search') . '"') . HTML::button(array('type' => 'button', 'params' => 'onclick="osC_DataTable.reset();"', 'title' => OSCOM::getDef('button_reset'))); ?> <span style="float: right;"><?php echo HTML::button(array('href' => OSCOM::getLink(null, null, 'Save'), 'icon' => 'plus', 'title' => OSCOM::getDef('button_insert'))); ?> </span> </form> <div style="padding: 20px 5px 5px 5px; height: 16px;"> <span id="batchTotalPages"></span> <span id="batchPageLinks"></span> </div> <form name="batch" action="#" method="post"> <table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable" id="countryDataTable"> <thead> <tr> <th><?php
echo $OSCOM_MessageStack->get(); } ?> <form id="liveSearchForm"> <?php echo HTML::inputField('search', null, 'id="liveSearchField" class="searchField" placeholder="' . OSCOM::getDef('placeholder_search') . '"') . HTML::button(array('type' => 'button', 'params' => 'onclick="osC_DataTable.reset();"', 'title' => OSCOM::getDef('button_reset'))) . ' ' . HTML::selectMenu('cid', array_merge(array(array('id' => '0', 'text' => OSCOM::getDef('top_category'))), $OSCOM_Application->getCategoryList())); ?> <span style="float: right;"> <?php if ($OSCOM_Application->getCurrentCategoryID() > 0) { echo HTML::button(array('href' => OSCOM::getLink(null, null, 'cid=' . $OSCOM_CategoryTree->getParentID($OSCOM_Application->getCurrentCategoryID())), 'priority' => 'secondary', 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back'))) . ' '; } echo HTML::button(array('href' => OSCOM::getLink(null, null, 'Save&cid=' . $OSCOM_Application->getCurrentCategoryID()), 'icon' => 'plus', 'title' => OSCOM::getDef('button_insert'))); ?> </span> </form> <script> $(function() { $('#cid').change(function() { window.location.href='<?php echo OSCOM::getLink(null, null, 'cid=CATEGORYID'); ?> '.replace('CATEGORYID', $('#cid option:selected').val()); }); }); </script>
<div style="margin: 10px 30px 10px 30px;"> <?php require OSCOM::BASE_DIRECTORY . 'Core/Site/Shop/Application/Account/pages/address_book_details.php'; ?> </div> </div> </div> <?php } ?> <br /> <div class="moduleBox"> <div class="content"> <div style="float: right;"> <?php echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))); ?> </div> <?php echo '<b>' . OSCOM::getDef('continue_checkout_procedure_title') . '</b><br />' . OSCOM::getDef('continue_checkout_procedure_to_payment'); ?> </div> </div> </form>
<?php /** * osCommerce Online Merchant * * @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com * @license BSD License; http://www.oscommerce.com/bsdlicense.txt */ use osCommerce\OM\Core\HTML; use osCommerce\OM\Core\OSCOM; ?> <h1><?php echo $OSCOM_Template->getPageTitle(); ?> </h1> <p><?php echo OSCOM::getDef('product_not_found'); ?> </p> <div class="submitFormButtons" style="text-align: right;"> <?php echo HTML::button(array('href' => OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()), 'icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))); ?> </div>