Ejemplo n.º 1
0
 function getData()
 {
     global $request_type, $oscTemplate;
     $OSCOM_Db = Registry::get('Db');
     $data = '';
     $Qmanufacturers = $OSCOM_Db->query('select manufacturers_id, manufacturers_name from :table_manufacturers order by manufacturers_name');
     $manufacturers = $Qmanufacturers->fetchAll();
     if (!empty($manufacturers)) {
         if (count($manufacturers) <= MAX_DISPLAY_MANUFACTURERS_IN_A_LIST) {
             // Display a list
             $manufacturers_list = '<ul class="nav nav-pills nav-stacked">';
             foreach ($manufacturers as $m) {
                 $manufacturers_name = strlen($m['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($m['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $m['manufacturers_name'];
                 if (isset($_GET['manufacturers_id']) && $_GET['manufacturers_id'] == $m['manufacturers_id']) {
                     $manufacturers_name = '<strong>' . $manufacturers_name . '</strong>';
                 }
                 $manufacturers_list .= '<li><a href="' . OSCOM::link('index.php', 'manufacturers_id=' . (int) $m['manufacturers_id']) . '">' . $manufacturers_name . '</a></li>';
             }
             $manufacturers_list .= '</ul>';
             $data = $manufacturers_list;
         } else {
             // Display a drop-down
             $manufacturers_array = array();
             if (MAX_MANUFACTURERS_LIST < 2) {
                 $manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT);
             }
             foreach ($manufacturers as $m) {
                 $manufacturers_name = strlen($m['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($m['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $m['manufacturers_name'];
                 $manufacturers_array[] = array('id' => $m['manufacturers_id'], 'text' => $manufacturers_name);
             }
             $data = HTML::form('manufacturers', OSCOM::link('index.php', '', $request_type, false), 'get', null, ['session_id' => true]) . HTML::selectField('manufacturers_id', $manufacturers_array, isset($_GET['manufacturers_id']) ? $_GET['manufacturers_id'] : '', 'onchange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '"') . '</form>';
         }
     }
     return $data;
 }
Ejemplo n.º 2
0
 function execute()
 {
     global $request_type, $oscTemplate;
     $form_output = HTML::form('quick_find', OSCOM::link('advanced_search_result.php', '', $request_type, false), 'get', null, ['session_id' => true]) . '<div class="input-group">' . HTML::inputField('keywords', '', 'required aria-required="true" placeholder="' . TEXT_SEARCH_PLACEHOLDER . '"', 'search') . '<span class="input-group-btn"><button type="submit" class="btn btn-search"><i class="glyphicon glyphicon-search"></i></button></span></div>' . HTML::hiddenField('search_in_description', '0') . '</form>';
     ob_start();
     include 'includes/modules/boxes/templates/search.php';
     $data = ob_get_clean();
     $oscTemplate->addBlock($data, $this->group);
 }
Ejemplo n.º 3
0
 function execute()
 {
     global $oscTemplate;
     $content_width = MODULE_CONTENT_HEADER_SEARCH_CONTENT_WIDTH;
     $search_box = '<div class="searchbox-margin">';
     $search_box .= HTML::form('quick_find', OSCOM::link('advanced_search_result.php', '', false), 'get', 'class="form-horizontal"', ['session_id' => true]);
     $search_box .= '  <div class="input-group">' . HTML::inputField('keywords', '', 'required placeholder="' . OSCOM::getDef('text_search_placeholder') . '"', 'search') . '<span class="input-group-btn"><button type="submit" class="btn btn-info"><i class="fa fa-search"></i></button></span>' . '  </div>';
     $search_box .= '</form>';
     $search_box .= '</div>';
     ob_start();
     include 'includes/modules/content/' . $this->group . '/templates/search.php';
     $template = ob_get_clean();
     $oscTemplate->addContent($template, $this->group);
 }
Ejemplo n.º 4
0
 function execute()
 {
     global $PHP_SELF, $currencies, $oscTemplate;
     if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
         if (isset($currencies) && is_object($currencies) && count($currencies->currencies) > 1) {
             reset($currencies->currencies);
             $currencies_array = array();
             foreach ($currencies->currencies as $key => $value) {
                 $currencies_array[] = array('id' => $key, 'text' => $value['title']);
             }
             $hidden_get_variables = '';
             foreach ($_GET as $key => $value) {
                 if (is_string($value) && $key != 'currency' && $key != session_name() && $key != 'x' && $key != 'y') {
                     $hidden_get_variables .= HTML::hiddenField($key, $value);
                 }
             }
             $form_output = HTML::form('currencies', OSCOM::link($PHP_SELF, '', false), 'get', null, ['session_id' => true]) . HTML::selectField('currency', $currencies_array, $_SESSION['currency'], 'onchange="this.form.submit();"') . $hidden_get_variables . '</form>';
             ob_start();
             include 'includes/modules/boxes/templates/currencies.php';
             $data = ob_get_clean();
             $oscTemplate->addBlock($data, $this->group);
         }
     }
 }
<div class="page-header">
  <h1><?php 
echo HEADING_TITLE;
?>
</h1>
</div>

<?php 
if ($messageStack->size('checkout_address') > 0) {
    echo $messageStack->output('checkout_address');
}
?>

<?php 
echo HTML::form('checkout_address', OSCOM::link('checkout_payment_address.php', '', 'SSL'), 'post', 'class="form-horizontal" role="form"', ['tokenize' => true]);
?>

<div class="contentContainer">

<?php 
if ($process == false) {
    ?>

  <div class="page-header">
    <h4><?php 
    echo TABLE_HEADING_PAYMENT_ADDRESS;
    ?>
</h4>
  </div>
Ejemplo n.º 6
0
     $contents[] = array('text' => OSCOM::getDef('text_info_insert_intro'));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_class_title') . '<br />' . HTML::inputField('tax_class_title'));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_class_description') . '<br />' . HTML::inputField('tax_class_description'));
     $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'])));
     break;
 case 'edit':
     $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_edit_tax_class') . '</strong>');
     $contents = array('form' => HTML::form('classes', OSCOM::link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=save')));
     $contents[] = array('text' => OSCOM::getDef('text_info_edit_intro'));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_class_title') . '<br />' . HTML::inputField('tax_class_title', $tcInfo->tax_class_title));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_class_description') . '<br />' . HTML::inputField('tax_class_description', $tcInfo->tax_class_description));
     $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id)));
     break;
 case 'delete':
     $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_tax_class') . '</strong>');
     $contents = array('form' => HTML::form('classes', OSCOM::link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=deleteconfirm')));
     $contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
     $contents[] = array('text' => '<br /><strong>' . $tcInfo->tax_class_title . '</strong>');
     $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id)));
     break;
 default:
     if (isset($tcInfo) && is_object($tcInfo)) {
         $heading[] = array('text' => '<strong>' . $tcInfo->tax_class_title . '</strong>');
         $contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_edit'), 'fa fa-edit', OSCOM::link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit')) . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete')));
         $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_date_added') . ' ' . DateTime::toShort($tcInfo->date_added));
         if (isset($tcInfo->last_modified)) {
             $contents[] = array('text' => OSCOM::getDef('text_info_last_modified') . ' ' . DateTime::toShort($tcInfo->last_modified));
         }
         $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_class_description') . '<br />' . $tcInfo->tax_class_description);
     }
     break;
Ejemplo n.º 7
0
</td>
                    <td class="smallText" align="right"><?php 
    echo $Qreviews->getPageSetLinks();
    ?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'delete':
            $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_review') . '</strong>');
            $contents = array('form' => HTML::form('reviews', OSCOM::link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=deleteconfirm')));
            $contents[] = array('text' => OSCOM::getDef('text_info_delete_review_intro'));
            $contents[] = array('text' => '<br /><strong>' . $rInfo->products_name . '</strong>');
            $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id)));
            break;
        default:
            if (isset($rInfo) && is_object($rInfo)) {
                $heading[] = array('text' => '<strong>' . $rInfo->products_name . '</strong>');
                $contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_edit'), 'fa fa-edit', OSCOM::link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit')) . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=delete')));
                $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_date_added') . ' ' . DateTime::toShort($rInfo->date_added));
                if (tep_not_null($rInfo->last_modified)) {
                    $contents[] = array('text' => OSCOM::getDef('text_info_last_modified') . ' ' . DateTime::toShort($rInfo->last_modified));
                }
                $contents[] = array('text' => '<br />' . tep_info_image($rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
                $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_review_author') . ' ' . $rInfo->customers_name);
                $contents[] = array('text' => OSCOM::getDef('text_info_review_rating') . ' ' . HTML::image(OSCOM::linkImage('Shop/stars_' . $rInfo->reviews_rating . '.gif')));
Ejemplo n.º 8
0
}
require DIR_WS_LANGUAGES . $_SESSION['language'] . '/checkout_success.php';
$breadcrumb->add(NAVBAR_TITLE_1);
$breadcrumb->add(NAVBAR_TITLE_2);
require 'includes/template_top.php';
?>

<div class="page-header">
  <h1><?php 
echo HEADING_TITLE;
?>
</h1>
</div>

<?php 
echo HTML::form('order', OSCOM::link('checkout_success.php', 'action=update', 'SSL'), 'post', 'class="form-horizontal" role="form"');
?>

<div class="contentContainer">
  <?php 
echo $page_content;
?>
</div>

<div><?php 
echo HTML::button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-chevron-right', null, 'primary', null, 'btn-success btn-block');
?>
</div>

</form>
Ejemplo n.º 9
0
}
switch ($action) {
    case 'edit':
        $keys = '';
        foreach ($mInfo->keys as $key => $value) {
            $keys .= '<strong>' . $value['title'] . '</strong><br />' . $value['description'] . '<br />';
            if ($value['set_function']) {
                eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
            } else {
                $keys .= HTML::inputField('configuration[' . $key . ']', $value['value']);
            }
            $keys .= '<br /><br />';
        }
        $keys = substr($keys, 0, strrpos($keys, '<br /><br />'));
        $heading[] = array('text' => '<strong>' . $mInfo->title . '</strong>');
        $contents = array('form' => HTML::form('modules', OSCOM::link(FILENAME_MODULES, 'set=' . $set . '&module=' . $_GET['module'] . '&action=save')));
        $contents[] = array('text' => $keys);
        $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_MODULES, 'set=' . $set . '&module=' . $_GET['module'])));
        break;
    default:
        $heading[] = array('text' => '<strong>' . $mInfo->title . '</strong>');
        if (in_array($mInfo->code . $file_extension, $modules_installed) && $mInfo->status > 0) {
            $keys = '';
            foreach ($mInfo->keys as $value) {
                $keys .= '<strong>' . $value['title'] . '</strong><br />';
                if ($value['use_function']) {
                    $use_function = $value['use_function'];
                    if (preg_match('/->/', $use_function)) {
                        $class_method = explode('->', $use_function);
                        if (!isset(${$class_method[0]}) || !is_object(${$class_method[0]})) {
                            include 'includes/classes/' . $class_method[0] . '.php';
Ejemplo n.º 10
0
<div class="page-header">
  <h1><?php 
echo sprintf(HEADING_TITLE, $Qproduct->value('products_name'));
?>
</h1>
</div>

<?php 
if ($messageStack->size('friend') > 0) {
    echo $messageStack->output('friend');
}
?>

<?php 
echo HTML::form('email_friend', OSCOM::link('tell_a_friend.php', 'action=process&products_id=' . $Qproduct->value('products_id'), $request_type), 'post', 'class="form-horizontal" role="form"', ['tokenize' => true]);
?>

<div class="contentContainer">

  <p class="inputRequirement text-right"><?php 
echo FORM_REQUIRED_INFORMATION;
?>
</p>

  <div class="page-header">
    <h4><?php 
echo FORM_TITLE_CUSTOMER_DETAILS;
?>
</h4>
  </div>
Ejemplo n.º 11
0
$contents = array();
switch ($action) {
    case 'edit':
        $keys = '';
        foreach ($mInfo->keys as $key => $value) {
            $keys .= '<strong>' . $value['title'] . '</strong><br />' . $value['description'] . '<br />';
            if ($value['set_function']) {
                eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
            } else {
                $keys .= HTML::inputField('configuration[' . $key . ']', $value['value']);
            }
            $keys .= '<br /><br />';
        }
        $keys = substr($keys, 0, strrpos($keys, '<br /><br />'));
        $heading[] = array('text' => '<strong>' . $mInfo->title . '</strong>');
        $contents = array('form' => HTML::form('modules', OSCOM::link('modules_content.php', 'module=' . $mInfo->code . '&action=save')));
        $contents[] = array('text' => $keys);
        $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link('modules_content.php', 'module=' . $mInfo->code)));
        break;
    default:
        if (isset($mInfo)) {
            $heading[] = array('text' => '<strong>' . $mInfo->title . '</strong>');
            if ($action == 'list_new') {
                $contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_module_install'), 'fa fa-plus', OSCOM::link('modules_content.php', 'module=' . $mInfo->code . '&action=install')));
                if (isset($mInfo->signature) && (list($scode, $smodule, $sversion, $soscversion) = explode('|', $mInfo->signature))) {
                    $contents[] = array('text' => '<br />' . HTML::image(OSCOM::linkImage('icon_info.gif'), OSCOM::getDef('image_icon_info')) . '&nbsp;<strong>' . OSCOM::getDef('text_info_version') . '</strong> ' . $sversion . ' (<a href="http://sig.oscommerce.com/' . $mInfo->signature . '" target="_blank">' . OSCOM::getDef('text_info_online_status') . '</a>)');
                }
                if (isset($mInfo->api_version)) {
                    $contents[] = array('text' => HTML::image(OSCOM::linkImage('icon_info.gif'), OSCOM::getDef('image_icon_info')) . '&nbsp;<strong>' . OSCOM::getDef('text_info_api_version') . '</strong> ' . $mInfo->api_version);
                }
                $contents[] = array('text' => '<br />' . $mInfo->description);
Ejemplo n.º 12
0
</h1>
    <h1 class="col-sm-4 text-right-not-xs"><?php 
echo $products_price;
?>
</h1>
  </div>
</div>

<?php 
if ($messageStack->size('review') > 0) {
    echo $messageStack->output('review');
}
?>

<?php 
echo HTML::form('product_reviews_write', OSCOM::link('product_reviews_write.php', 'action=process&products_id=' . $Qcheck->valueInt('products_id')), 'post', 'class="form-horizontal" role="form"', ['tokenize' => true]);
?>

<div class="contentContainer">

<?php 
if (!empty($Qcheck->value('products_image'))) {
    ?>

    <div class="col-sm-4 text-center pull-right">
      <?php 
    echo '<a href="' . OSCOM::link('product_info.php', 'products_id=' . $Qcheck->valueInt('products_id')) . '">' . HTML::image(DIR_WS_IMAGES . $Qcheck->value('products_image'), $Qcheck->value('products_name'), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</a>';
    ?>

      <p><?php 
    echo HTML::button(IMAGE_BUTTON_IN_CART, 'glyphicon glyphicon-shopping-cart', OSCOM::link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now'), null, null, 'btn-success btn-block');
Ejemplo n.º 13
0
switch ($action) {
    case 'new':
        $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_new_language') . '</strong>');
        $contents = array('form' => HTML::form('languages', OSCOM::link(FILENAME_LANGUAGES, 'action=insert')));
        $contents[] = array('text' => OSCOM::getDef('text_info_insert_intro'));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_name') . '<br />' . HTML::inputField('name'));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_code') . '<br />' . HTML::inputField('code'));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_image') . '<br />' . HTML::selectField('image', $icons));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_directory') . '<br />' . HTML::selectField('directory', $directories));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_sort_order') . '<br />' . HTML::inputField('sort_order'));
        $contents[] = array('text' => '<br />' . HTML::checkboxField('default') . ' ' . OSCOM::getDef('text_set_default'));
        $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $_GET['lID'])));
        break;
    case 'edit':
        $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_edit_language') . '</strong>');
        $contents = array('form' => HTML::form('languages', OSCOM::link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=save')));
        $contents[] = array('text' => OSCOM::getDef('text_info_edit_intro'));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_name') . '<br />' . HTML::inputField('name', $lInfo->name));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_code') . '<br />' . HTML::inputField('code', $lInfo->code));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_image') . '<br />' . HTML::selectField('image', $icons, $lInfo->image));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_directory') . '<br />' . HTML::selectField('directory', $directories, $lInfo->directory));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_sort_order') . '<br />' . HTML::inputField('sort_order', $lInfo->sort_order));
        if (DEFAULT_LANGUAGE != $lInfo->code) {
            $contents[] = array('text' => '<br />' . HTML::checkboxField('default') . ' ' . OSCOM::getDef('text_set_default'));
        }
        $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id)));
        break;
    case 'delete':
        $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_language') . '</strong>');
        $contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
        $contents[] = array('text' => '<br /><strong>' . $lInfo->name . '</strong>');
Ejemplo n.º 14
0
    ?>
</div>
    <div class="col-sm-6"><?php 
    echo HTML::button(IMAGE_BUTTON_BACK, 'glyphicon glyphicon-chevron-left', OSCOM::link('address_book.php', '', 'SSL'));
    ?>
</div>
  </div>

</div>

<?php 
} else {
    ?>

<?php 
    echo HTML::form('addressbook', OSCOM::link('address_book_process.php', isset($_GET['edit']) ? 'edit=' . $_GET['edit'] : '', 'SSL'), 'post', 'class="form-horizontal" role="form"', ['tokenize' => true]);
    ?>

<div class="contentContainer">

<?php 
    if (isset($_GET['edit']) && is_numeric($_GET['edit'])) {
        ?>
  <div class="row">
    <div class="col-sm-8">
      <div class="alert alert-warning"><?php 
        echo EDIT_ADDRESS_DESCRIPTION;
        ?>
</div>
    </div>
    <div class="col-sm-4">
Ejemplo n.º 15
0
">
  <h2><?php 
echo MODULE_CONTENT_LOGIN_HEADING_RETURNING_CUSTOMER;
?>
</h2>

  <div class="contentText">
    <div class="alert alert-success">
      <p><?php 
echo MODULE_CONTENT_LOGIN_TEXT_RETURNING_CUSTOMER;
?>
</p>
    </div>

    <?php 
echo HTML::form('login', OSCOM::link('login.php', 'action=process', 'SSL'), 'post', 'class="form-horizontal" role="form"', ['tokenize' => true]);
?>
    
    <div class="form-group">
      <label for="inputEmail" class="control-label col-xs-4"><?php 
echo ENTRY_EMAIL_ADDRESS;
?>
</label>
      <div class="col-xs-8">
        <?php 
echo HTML::inputField('email_address', NULL, 'autofocus="autofocus" required aria-required="true" id="inputEmail" placeholder="' . ENTRY_EMAIL_ADDRESS_TEXT . '"', 'email');
?>
      </div>
    </div>

    <div class="form-group">
Ejemplo n.º 16
0
<?php 
    // optional Product List Filter
    if (PRODUCT_LIST_FILTER > 0) {
        if (isset($_GET['manufacturers_id']) && !empty($_GET['manufacturers_id'])) {
            $Qfilter = $OSCOM_Db->prepare('select SQL_CALC_FOUND_ROWS distinct c.categories_id as id, cd.categories_name as name from :table_products p, :table_products_to_categories p2c, :table_categories c, :table_categories_description cd where p.manufacturers_id = :manufacturers_id and p.products_status = "1" and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.categories_id = cd.categories_id and cd.language_id = :language_id order by cd.categories_name');
            $Qfilter->bindInt(':language_id', $_SESSION['languages_id']);
            $Qfilter->bindInt(':manufacturers_id', $_GET['manufacturers_id']);
            $Qfilter->execute();
        } else {
            $Qfilter = $OSCOM_Db->prepare('select SQL_CALC_FOUND_ROWS distinct m.manufacturers_id as id, m.manufacturers_name as name from :table_products p, :table_products_to_categories p2c, :table_manufacturers m where p.products_status = 1 and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = :categories_id order by m.manufacturers_name');
            $Qfilter->bindInt(':categories_id', $current_category_id);
            $Qfilter->execute();
        }
        if ($Qfilter->getPageSetTotalRows() > 1) {
            echo '<div>' . HTML::form('filter', OSCOM::link('index.php', '', $request_type, false), 'get', null, ['session_id' => true]) . '<p align="right">' . TEXT_SHOW . '&nbsp;';
            if (isset($_GET['manufacturers_id']) && !empty($_GET['manufacturers_id'])) {
                echo HTML::hiddenField('manufacturers_id', $_GET['manufacturers_id']);
                $options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES));
            } else {
                echo HTML::hiddenField('cPath', $cPath);
                $options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS));
            }
            echo HTML::hiddenField('sort', $_GET['sort']);
            while ($Qfilter->fetch()) {
                $options[] = array('id' => $Qfilter->valueInt('id'), 'text' => $Qfilter->value('name'));
            }
            echo HTML::selectField('filter_id', $options, isset($_GET['filter_id']) ? $_GET['filter_id'] : '', 'onchange="this.form.submit()"');
            echo '</p></form></div>' . "\n";
        }
    }
Ejemplo n.º 17
0
    foreach ($_POST as $key => $value) {
        if (!is_array($_POST[$key])) {
            echo HTML::hiddenField($key, $value);
        }
    }
    echo HTML::button(OSCOM::getDef('image_send_email'), 'fa fa-envelope') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_MAIL));
    ?>
                </td>
              </tr>
            </table></td>
          </form></tr>
<?php 
} else {
    ?>
          <tr><?php 
    echo HTML::form('mail', OSCOM::link(FILENAME_MAIL, 'action=preview'));
    ?>
            <td><table border="0" cellpadding="0" cellspacing="2">
<?php 
    $customers = [['id' => '', 'text' => OSCOM::getDef('text_select_customer')], ['id' => '***', 'text' => OSCOM::getDef('text_all_customers')], ['id' => '**D', 'text' => OSCOM::getDef('text_newsletter_customers')]];
    $Qcustomers = $OSCOM_Db->get('customers', ['customers_email_address', 'customers_firstname', 'customers_lastname'], null, 'customers_lastname');
    while ($Qcustomers->fetch()) {
        $customers[] = ['id' => $Qcustomers->value('customers_email_address'), 'text' => $Qcustomers->value('customers_lastname') . ', ' . $Qcustomers->value('customers_firstname') . ' (' . $Qcustomers->value('customers_email_address') . ')'];
    }
    ?>
              <tr>
                <td class="main"><?php 
    echo OSCOM::getDef('text_customer');
    ?>
</td>
                <td><?php 
Ejemplo n.º 18
0
     $contents[] = array('text' => OSCOM::getDef('text_info_new_zone_intro'));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_zone_name') . '<br />' . HTML::inputField('geo_zone_name'));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_zone_description') . '<br />' . HTML::inputField('geo_zone_description'));
     $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'])));
     break;
 case 'edit_zone':
     $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_edit_zone') . '</strong>');
     $contents = array('form' => HTML::form('zones', OSCOM::link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=save_zone')));
     $contents[] = array('text' => OSCOM::getDef('text_info_edit_zone_intro'));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_zone_name') . '<br />' . HTML::inputField('geo_zone_name', $zInfo->geo_zone_name));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_zone_description') . '<br />' . HTML::inputField('geo_zone_description', $zInfo->geo_zone_description));
     $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id)));
     break;
 case 'delete_zone':
     $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_zone') . '</strong>');
     $contents = array('form' => HTML::form('zones', OSCOM::link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=deleteconfirm_zone')));
     $contents[] = array('text' => OSCOM::getDef('text_info_delete_zone_intro'));
     $contents[] = array('text' => '<br /><strong>' . $zInfo->geo_zone_name . '</strong>');
     $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id)));
     break;
 default:
     if (isset($zInfo) && is_object($zInfo)) {
         $heading[] = array('text' => '<strong>' . $zInfo->geo_zone_name . '</strong>');
         $contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_edit'), 'fa fa-edit', OSCOM::link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=edit_zone')) . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=delete_zone')) . HTML::button(OSCOM::getDef('image_details'), 'fa fa-info', OSCOM::link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=list')));
         $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_number_zones') . ' ' . $zInfo->num_zones);
         $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_date_added') . ' ' . DateTime::toShort($zInfo->date_added));
         if (tep_not_null($zInfo->last_modified)) {
             $contents[] = array('text' => OSCOM::getDef('text_info_last_modified') . ' ' . DateTime::toShort($zInfo->last_modified));
         }
         $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_zone_description') . '<br />' . $zInfo->geo_zone_description);
     }
Ejemplo n.º 19
0
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_address_format') . '<br />' . HTML::selectField('address_format_id', tep_get_address_formats()));
        $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'])));
        break;
    case 'edit':
        $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_edit_country') . '</strong>');
        $contents = array('form' => HTML::form('countries', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=save')));
        $contents[] = array('text' => OSCOM::getDef('text_info_edit_intro'));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_name') . '<br />' . HTML::inputField('countries_name', $cInfo->countries_name));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_code_2') . '<br />' . HTML::inputField('countries_iso_code_2', $cInfo->countries_iso_code_2));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_code_3') . '<br />' . HTML::inputField('countries_iso_code_3', $cInfo->countries_iso_code_3));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_address_format') . '<br />' . HTML::selectField('address_format_id', tep_get_address_formats(), $cInfo->address_format_id));
        $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id)));
        break;
    case 'delete':
        $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_country') . '</strong>');
        $contents = array('form' => HTML::form('countries', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=deleteconfirm')));
        $contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
        $contents[] = array('text' => '<br /><strong>' . $cInfo->countries_name . '</strong>');
        $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id)));
        break;
    default:
        if (is_object($cInfo)) {
            $heading[] = array('text' => '<strong>' . $cInfo->countries_name . '</strong>');
            $contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_edit'), 'fa fa-edit', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=edit')) . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->countries_id . '&action=delete')));
            $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_name') . '<br />' . $cInfo->countries_name);
            $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_code_2') . ' ' . $cInfo->countries_iso_code_2);
            $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_code_3') . ' ' . $cInfo->countries_iso_code_3);
            $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_address_format') . ' ' . $cInfo->address_format_id);
        }
        break;
}
Ejemplo n.º 20
0
require 'includes/template_top.php';
?>

<div class="page-header">
  <h1><?php 
echo HEADING_TITLE;
?>
</h1>
</div>

<?php 
if ($_SESSION['cart']->count_contents() > 0) {
    ?>

<?php 
    echo HTML::form('cart_quantity', OSCOM::link('shopping_cart.php', 'action=update_product'), 'post', 'role="form"');
    ?>

<div class="contentContainer">

  <div class="contentText">

<?php 
    $any_out_of_stock = 0;
    $products = $_SESSION['cart']->get_products();
    for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
        // Push all attributes information in an array
        if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
            foreach ($products[$i]['attributes'] as $option => $value) {
                echo HTML::hiddenField('id[' . $products[$i]['id'] . '][' . $option . ']', $value);
                $Qattributes = $OSCOM_Db->prepare('select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix
Ejemplo n.º 21
0
    if ($Qproduct->value('products_date_available') > date('Y-m-d H:i:s')) {
        $products_price .= '<link itemprop="availability" href="http://schema.org/PreOrder" />';
    } elseif (STOCK_CHECK == 'true' && $Qproduct->valueInt('products_quantity') < 1) {
        $products_price .= '<link itemprop="availability" href="http://schema.org/OutOfStock" />';
    } else {
        $products_price .= '<link itemprop="availability" href="http://schema.org/InStock" />';
    }
    $products_price .= '<meta itemprop="priceCurrency" content="' . HTML::output($_SESSION['currency']) . '" />';
    $products_name = '<a href="' . OSCOM::link('product_info.php', 'products_id=' . $Qproduct->valueInt('products_id')) . '" itemprop="url"><span itemprop="name">' . $Qproduct->value('products_name') . '</span></a>';
    if (!empty($Qproduct->value('products_model'))) {
        $products_name .= '<br /><small>[<span itemprop="model">' . $Qproduct->value('products_model') . '</span>]</small>';
    }
    ?>

<?php 
    echo HTML::form('cart_quantity', OSCOM::link('product_info.php', tep_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'class="form-horizontal" role="form"');
    ?>

<div itemscope itemtype="http://schema.org/Product">

<div class="page-header">
  <div class="row">
    <h1 class="col-sm-8"><?php 
    echo $products_name;
    ?>
</h1>
    <h2 class="col-sm-4 text-right-not-xs" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><?php 
    echo $products_price;
    ?>
</h2>
  </div>
Ejemplo n.º 22
0
                if (is_file(LOCAL_EXE_GZIP)) {
                    $contents[] = array('text' => HTML::radioField('compress', 'gzip') . ' ' . OSCOM::getDef('text_info_use_gzip'));
                }
                if (is_file(LOCAL_EXE_ZIP)) {
                    $contents[] = array('text' => HTML::radioField('compress', 'zip') . ' ' . OSCOM::getDef('text_info_use_zip'));
                }
                if ($dir_ok == true) {
                    $contents[] = array('text' => HTML::checkboxField('download', 'yes') . ' ' . OSCOM::getDef('text_info_download_only') . '*<br /><br />*' . OSCOM::getDef('text_info_best_through_https'));
                } else {
                    $contents[] = array('text' => HTML::radioField('download', 'yes', true) . ' ' . OSCOM::getDef('text_info_download_only') . '*<br /><br />*' . OSCOM::getDef('text_info_best_through_https'));
                }
                $contents[] = array('text' => HTML::button(OSCOM::getDef('image_backup'), 'fa fa-copy', null, null, 'btn-success') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_BACKUP), null, 'btn-link'));
                break;
            case 'restorelocal':
                $heading[] = array('text' => OSCOM::getDef('text_info_heading_restore_local'));
                $contents = array('form' => HTML::form('restore', OSCOM::link(FILENAME_BACKUP, 'action=restorelocalnow'), 'post', 'enctype="multipart/form-data"'));
                $contents[] = array('text' => OSCOM::getDef('text_info_restore_local') . '<br /><br />' . OSCOM::getDef('text_info_best_through_https'));
                $contents[] = array('text' => HTML::fileField('sql_file'));
                $contents[] = array('text' => OSCOM::getDef('text_info_restore_local_raw_file'));
                $contents[] = array('text' => HTML::button(OSCOM::getDef('image_restore'), 'fa fa-repeat', null, null, 'btn-success') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_BACKUP), null, 'btn-link'));
                break;
        }
    }
    if (tep_not_null($heading) && tep_not_null($contents)) {
        $show_listing = false;
        echo HTML::panel($heading, $contents, ['type' => 'info']);
    }
}
if ($show_listing === true) {
    ?>
Ejemplo n.º 23
0
<div class="page-header">
  <h1><?php 
echo MODULE_CONTENT_ACCOUNT_SET_PASSWORD_HEADING_TITLE;
?>
</h1>
</div>

<?php 
if ($messageStack->size('account_password') > 0) {
    echo $messageStack->output('account_password');
}
?>

<?php 
echo HTML::form('account_password', OSCOM::link('ext/modules/content/account/set_password.php', '', 'SSL'), 'post', 'class="form-horizontal" role="form"', ['tokenize' => true, 'action' => 'process']);
?>

<div class="contentContainer">
  <p class="inputRequirement text-right"><?php 
echo FORM_REQUIRED_INFORMATION;
?>
</p>

  <div class="contentText">
    <div class="form-group has-feedback">
      <label for="inputPassword" class="control-label col-xs-3"><?php 
echo ENTRY_PASSWORD_NEW;
?>
</label>
      <div class="col-xs-9">
Ejemplo n.º 24
0
<div class="page-header">
  <h1><?php 
echo OSCOM::getDef('heading_title');
?>
</h1>
</div>

<?php 
if ($messageStack->size('password_reset') > 0) {
    echo $messageStack->output('password_reset');
}
?>

<?php 
echo HTML::form('password_reset', OSCOM::link('password_reset.php', 'account=' . $email_address . '&key=' . $password_key . '&action=process'), 'post', 'class="form-horizontal"', ['tokenize' => true]);
?>

<div class="contentContainer">
  <div class="contentText">
    <div class="alert alert-info"><?php 
echo OSCOM::getDef('text_main');
?>
</div>

    <div class="form-group has-feedback">
      <label for="inputPassword" class="control-label col-sm-3"><?php 
echo OSCOM::getDef('entry_password');
?>
</label>
      <div class="col-sm-9">
Ejemplo n.º 25
0
    OSCOM::redirect('account.php');
}
$breadcrumb->add(OSCOM::getDef('navbar_title_1'), OSCOM::link('account.php'));
$breadcrumb->add(OSCOM::getDef('navbar_title_2'), OSCOM::link('account_newsletters.php'));
require $oscTemplate->getFile('template_top.php');
?>

<div class="page-header">
  <h1><?php 
echo OSCOM::getDef('heading_title');
?>
</h1>
</div>

<?php 
echo HTML::form('account_newsletter', OSCOM::link('account_newsletters.php'), 'post', 'class="form-horizontal"', ['tokenize' => true, 'action' => 'process']);
?>

<div class="contentContainer">
  <div class="contentText">
    <div class="form-group">
      <label class="control-label col-sm-4"><?php 
echo OSCOM::getDef('my_newsletters_general_newsletter');
?>
</label>
      <div class="col-sm-8">
        <div class="checkbox">
          <label>
            <?php 
echo HTML::checkboxField('newsletter_general', '1', $Qnewsletter->value('customers_newsletter') == '1' ? true : false);
?>
Ejemplo n.º 26
0
<p>
  <?php 
        echo OSCOM::getDef('text_banners_banner_note') . '<br />' . OSCOM::getDef('text_banners_insert_note') . '<br />' . OSCOM::getDef('text_banners_expircy_note') . '<br />' . OSCOM::getDef('text_banners_schedule_note');
        ?>
</p>

<?php 
    } else {
        $heading = $contents = [];
        if (isset($_GET['bID'])) {
            $Qbanner = $OSCOM_Db->get('banners', '*', ['banners_id' => (int) $_GET['bID']]);
            if ($Qbanner->fetch() !== false) {
                $bInfo = new objectInfo($Qbanner->toArray());
                if ($action == 'delete') {
                    $heading[] = array('text' => $bInfo->banners_title);
                    $contents = array('form' => HTML::form('banners', OSCOM::link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $bInfo->banners_id . '&action=deleteconfirm')));
                    $contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
                    $contents[] = array('text' => '<strong>' . $bInfo->banners_title . '</strong>');
                    if ($bInfo->banners_image) {
                        $contents[] = array('text' => HTML::checkboxField('delete_image', 'on', true) . ' ' . OSCOM::getDef('text_info_delete_image'));
                    }
                    $contents[] = array('text' => HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', null, null, 'btn-danger') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $_GET['bID']), null, 'btn-link'));
                }
            }
        }
        if (tep_not_null($heading) && tep_not_null($contents)) {
            $show_listing = false;
            echo HTML::panel($heading, $contents, ['type' => 'info']);
        }
    }
}
Ejemplo n.º 27
0
<div class="page-header">
  <h1><?php 
echo HEADING_TITLE;
?>
</h1>
</div>

<?php 
if ($messageStack->size('account_edit') > 0) {
    echo $messageStack->output('account_edit');
}
?>

<?php 
echo HTML::form('account_edit', OSCOM::link('account_edit.php', '', 'SSL'), 'post', 'class="form-horizontal" role="form"', ['tokenize' => true, 'action' => 'process']);
?>

<div class="contentContainer">
  <div class="inputRequirement text-right"><?php 
echo FORM_REQUIRED_INFORMATION;
?>
</div>

<?php 
if (ACCOUNT_GENDER == 'true') {
    if (isset($gender)) {
        $male = $gender == 'm' ? true : false;
    } else {
        $male = $Qaccount->value('customers_gender') == 'm' ? true : false;
    }
Ejemplo n.º 28
0
  <h1><?php 
echo HEADING_TITLE;
?>
</h1>
</div>

<?php 
if ($messageStack->size('checkout_confirmation') > 0) {
    echo $messageStack->output('checkout_confirmation');
}
if (isset(${$_SESSION}['payment']->form_action_url)) {
    $form_action_url = ${$_SESSION}['payment']->form_action_url;
} else {
    $form_action_url = OSCOM::link('checkout_process.php', '', 'SSL');
}
echo HTML::form('checkout_confirmation', $form_action_url, 'post');
?>

<div class="contentContainer">

  <table class="table table-striped">
    <thead>
      <tr>
      <?php 
if (sizeof($order->info['tax_groups']) > 1) {
    ?>
        <th colspan="2"><?php 
    echo '<strong>' . HEADING_PRODUCTS . '</strong> ' . HTML::button(TEXT_EDIT, 'glyphicon glyphicon-edit', OSCOM::link('shopping_cart.php'), NULL, NULL, 'pull-right btn-default btn-xs');
    ?>
</th>
        <th align="right"><strong><?php 
Ejemplo n.º 29
0
        $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_TAX_RATES, 'page=' . $_GET['page'])));
        break;
    case 'edit':
        $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_edit_tax_rate') . '</strong>');
        $contents = array('form' => HTML::form('rates', OSCOM::link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=save')));
        $contents[] = array('text' => OSCOM::getDef('text_info_edit_intro'));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_class_title') . '<br />' . tep_tax_classes_pull_down('name="tax_class_id" style="font-size:10px"', $trInfo->tax_class_id));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_zone_name') . '<br />' . tep_geo_zones_pull_down('name="tax_zone_id" style="font-size:10px"', $trInfo->geo_zone_id));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_tax_rate') . '<br />' . HTML::inputField('tax_rate', $trInfo->tax_rate));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_rate_description') . '<br />' . HTML::inputField('tax_description', $trInfo->tax_description));
        $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_tax_rate_priority') . '<br />' . HTML::inputField('tax_priority', $trInfo->tax_priority));
        $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id)));
        break;
    case 'delete':
        $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_tax_rate') . '</strong>');
        $contents = array('form' => HTML::form('rates', OSCOM::link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=deleteconfirm')));
        $contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
        $contents[] = array('text' => '<br /><strong>' . $trInfo->tax_class_title . ' ' . number_format($trInfo->tax_rate, TAX_DECIMAL_PLACES) . '%</strong>');
        $contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id)));
        break;
    default:
        if (is_object($trInfo)) {
            $heading[] = array('text' => '<strong>' . $trInfo->tax_class_title . '</strong>');
            $contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_edit'), 'fa fa-edit', OSCOM::link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=edit')) . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=delete')));
            $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_date_added') . ' ' . DateTime::toShort($trInfo->date_added));
            $contents[] = array('text' => '' . OSCOM::getDef('text_info_last_modified') . ' ' . DateTime::toShort($trInfo->last_modified));
            $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_rate_description') . '<br />' . $trInfo->tax_description);
        }
        break;
}
if (tep_not_null($heading) && tep_not_null($contents)) {
Ejemplo n.º 30
0
<?php 
    // optional Product List Filter
    if (PRODUCT_LIST_FILTER > 0) {
        if (isset($_GET['manufacturers_id']) && !empty($_GET['manufacturers_id'])) {
            $Qfilter = $OSCOM_Db->prepare('select SQL_CALC_FOUND_ROWS distinct c.categories_id as id, cd.categories_name as name from :table_products p, :table_products_to_categories p2c, :table_categories c, :table_categories_description cd where p.manufacturers_id = :manufacturers_id and p.products_status = "1" and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.categories_id = cd.categories_id and cd.language_id = :language_id order by cd.categories_name');
            $Qfilter->bindInt(':language_id', $OSCOM_Language->getId());
            $Qfilter->bindInt(':manufacturers_id', $_GET['manufacturers_id']);
            $Qfilter->execute();
        } else {
            $Qfilter = $OSCOM_Db->prepare('select SQL_CALC_FOUND_ROWS distinct m.manufacturers_id as id, m.manufacturers_name as name from :table_products p, :table_products_to_categories p2c, :table_manufacturers m where p.products_status = 1 and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = :categories_id order by m.manufacturers_name');
            $Qfilter->bindInt(':categories_id', $current_category_id);
            $Qfilter->execute();
        }
        if ($Qfilter->getPageSetTotalRows() > 1) {
            echo '<div>' . HTML::form('filter', OSCOM::link('index.php', '', false), 'get', null, ['session_id' => true]) . '<p align="right">' . OSCOM::getDef('text_show') . '&nbsp;';
            if (isset($_GET['manufacturers_id']) && !empty($_GET['manufacturers_id'])) {
                echo HTML::hiddenField('manufacturers_id', $_GET['manufacturers_id']);
                $options = array(array('id' => '', 'text' => OSCOM::getDef('text_all_categories')));
            } else {
                echo HTML::hiddenField('cPath', $cPath);
                $options = array(array('id' => '', 'text' => OSCOM::getDef('text_all_manufacturers')));
            }
            echo HTML::hiddenField('sort', $_GET['sort']);
            while ($Qfilter->fetch()) {
                $options[] = array('id' => $Qfilter->valueInt('id'), 'text' => $Qfilter->value('name'));
            }
            echo HTML::selectField('filter_id', $options, isset($_GET['filter_id']) ? $_GET['filter_id'] : '', 'onchange="this.form.submit()"');
            echo '</p></form></div>' . "\n";
        }
    }