Ejemplo n.º 1
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.º 2
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.º 3
0
  <div class="col-xs-12 col-sm-push-3 col-sm-9">
    <h1>Web Server</h1>

    <form name="install" id="installForm" action="install.php?step=3" method="post">
      <div class="form-group has-feedback">
        <label for="wwwAddress">WWW Address</label>
        <?php 
echo HTML::inputField('HTTP_WWW_ADDRESS', $www_location, 'required aria-required="true" id="wwwAddress" placeholder="http://"');
?>
        <span class="help-block">The web address to the online store.</span>
      </div>

      <div class="form-group has-feedback">
        <label for="webRoot">Webserver Root Directory</label>
        <?php 
echo HTML::inputField('DIR_FS_DOCUMENT_ROOT', str_replace('\\', '/', FileSystem::displayPath($dir_fs_www_root)), 'required aria-required="true" id="webRoot"');
?>
        <span class="help-block">The directory where the online store is installed on the server.</span>
      </div>

      <p><?php 
echo HTML::button('Continue to Step 3', 'triangle-1-e', null, null, 'btn-success');
?>
</p>

<?php 
foreach ($_POST as $key => $value) {
    if ($key != 'x' && $key != 'y') {
        echo HTML::hiddenField($key, $value);
    }
}
Ejemplo n.º 4
0
        <?php 
echo HTML::inputField('telephone', $Qaccount->value('customers_telephone'), 'minlength="' . ENTRY_TELEPHONE_MIN_LENGTH . '" required aria-required="true" id="inputTelephone" placeholder="' . ENTRY_TELEPHONE_NUMBER_TEXT . '"', 'tel');
?>
        <?php 
echo FORM_REQUIRED_INPUT;
?>
      </div>
    </div>
    <div class="form-group">
      <label for="inputFax" class="control-label col-sm-3"><?php 
echo ENTRY_FAX_NUMBER;
?>
</label>
      <div class="col-sm-9">
        <?php 
echo HTML::inputField('fax', $Qaccount->value('customers_fax'), 'id="inputFax" placeholder="' . ENTRY_FAX_NUMBER_TEXT . '"');
?>
      </div>
    </div>


    <br />

    <div class="row">
      <div class="col-xs-6 text-right pull-right"><?php 
echo HTML::button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-chevron-right', null, 'primary', null, 'btn-success');
?>
</div>
      <div class="col-xs-6"><?php 
echo HTML::button(IMAGE_BUTTON_BACK, 'glyphicon glyphicon-chevron-left', OSCOM::link('account.php', '', 'SSL'));
?>
Ejemplo n.º 5
0
</label>
      <div class="col-sm-9">
        <?php 
echo HTML::inputField('to_name', NULL, 'required aria-required="true" id="inputToName" placeholder="' . ENTRY_FORM_FIELD_FRIEND_NAME_TEXT . '"');
echo FORM_REQUIRED_INPUT;
?>
      </div>
    </div>
    <div class="form-group has-feedback">
      <label for="inputToEmail" class="control-label col-sm-3"><?php 
echo FORM_FIELD_FRIEND_EMAIL;
?>
</label>
      <div class="col-sm-9">
        <?php 
echo HTML::inputField('to_email_address', NULL, 'required aria-required="true" id="inputToEmail" placeholder="' . ENTRY_FORM_FIELD_FRIEND_EMAIL_TEXT . '"', 'email');
echo FORM_REQUIRED_INPUT;
?>
      </div>
    </div>
  </div>

  <hr>

  <div class="contentText">
    <div class="form-group has-feedback">
      <label for="inputMessage" class="control-label col-sm-3"><?php 
echo FORM_TITLE_FRIEND_MESSAGE;
?>
</label>
      <div class="col-sm-9">
Ejemplo n.º 6
0
     $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>');
     $contents[] = array('align' => 'center', 'text' => '<br />' . ($remove_language ? HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=deleteconfirm')) : '') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id)));
     break;
 default:
     if (is_object($lInfo)) {
         $heading[] = array('text' => '<strong>' . $lInfo->name . '</strong>');
         $contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_edit'), 'fa fa-edit', OSCOM::link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=edit')) . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=delete')) . HTML::button(OSCOM::getDef('image_details'), 'fa fa-info', OSCOM::link(FILENAME_DEFINE_LANGUAGE, 'lngdir=' . $lInfo->directory)));
Ejemplo n.º 7
0
$contents = array();
switch ($action) {
    case 'new':
        $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_new_tax_class') . '</strong>');
        $contents = array('form' => HTML::form('classes', OSCOM::link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&action=insert')));
        $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)) {
Ejemplo n.º 8
0
    <div class="form-group">
      <label for="expires_date"><?php 
        echo OSCOM::getDef('text_banners_expires_on');
        ?>
</label>
      <?php 
        echo HTML::inputField('expires_date', $bInfo->expires_date, 'id="expires_date"', 'date');
        ?>

      <label for="expires_impressions"><?php 
        echo OSCOM::getDef('text_banners_or_at');
        ?>
</label>
      <?php 
        echo HTML::inputField('expires_impressions', $bInfo->expires_impressions, 'maxlength="7" size="7"');
        ?>
      <p class="help-block"><?php 
        echo OSCOM::getDef('text_banners_impressions');
        ?>
</p>
    </div>

    <?php 
        echo HTML::button(OSCOM::getDef('image_save'), 'fa fa-save', null, null, 'btn-success') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page']), null, 'btn-link');
        ?>
  </div>
</div>

</form>
Ejemplo n.º 9
0
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_value') . '<br />' . HTML::inputField('value'));
     $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_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $_GET['cID'])));
     break;
 case 'edit':
     $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_edit_currency') . '</strong>');
     $contents = array('form' => HTML::form('currencies', OSCOM::link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=save')));
     $contents[] = array('text' => OSCOM::getDef('text_info_edit_intro'));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_title') . '<br />' . HTML::inputField('title', $cInfo->title));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_code') . '<br />' . HTML::inputField('code', $cInfo->code));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_symbol_left') . '<br />' . HTML::inputField('symbol_left', $cInfo->symbol_left));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_symbol_right') . '<br />' . HTML::inputField('symbol_right', $cInfo->symbol_right));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_decimal_point') . '<br />' . HTML::inputField('decimal_point', $cInfo->decimal_point));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_thousands_point') . '<br />' . HTML::inputField('thousands_point', $cInfo->thousands_point));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_decimal_places') . '<br />' . HTML::inputField('decimal_places', $cInfo->decimal_places));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_value') . '<br />' . HTML::inputField('value', $cInfo->value));
     if (DEFAULT_CURRENCY != $cInfo->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_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id)));
     break;
 case 'delete':
     $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_currency') . '</strong>');
     $contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
     $contents[] = array('text' => '<br /><strong>' . $cInfo->title . '</strong>');
     $contents[] = array('align' => 'center', 'text' => '<br />' . ($remove_currency ? HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=deleteconfirm')) : '') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id)));
     break;
 default:
     if (is_object($cInfo)) {
         $heading[] = array('text' => '<strong>' . $cInfo->title . '</strong>');
         $contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_edit'), 'fa fa-edit', OSCOM::link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=edit')) . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=delete')));
Ejemplo n.º 10
0
    if ($process == true) {
        if ($entry_state_has_zones == true) {
            $zones_array = array();
            $Qzones = $OSCOM_Db->get('zones', 'zone_name', ['zone_country_id' => $country], 'zone_name');
            while ($Qzones->fetch()) {
                $zones_array[] = array('id' => $Qzones->value('zone_name'), 'text' => $Qzones->value('zone_name'));
            }
            echo HTML::selectField('state', $zones_array, 0, 'id="inputState" aria-describedby="atState"');
            if (tep_not_null(OSCOM::getDef('entry_state_text'))) {
                echo '<span id="atState" class="help-block">' . OSCOM::getDef('entry_state_text') . '</span>';
            }
        } else {
            echo HTML::inputField('state', NULL, 'id="inputState" placeholder="' . OSCOM::getDef('entry_state_text') . '"');
        }
    } else {
        echo HTML::inputField('state', NULL, 'id="inputState" placeholder="' . OSCOM::getDef('entry_state_text') . '"');
    }
    ?>
      </div>
    </div>

<?php 
}
?>

    <div class="form-group">
      <label for="inputCountry" class="control-label col-sm-3"><?php 
echo OSCOM::getDef('entry_country');
?>
</label>
      <div class="col-sm-9">
Ejemplo n.º 11
0
 function confirmation()
 {
     global $order, $currencies;
     $OSCOM_Db = Registry::get('Db');
     $months_array = array();
     for ($i = 1; $i < 13; $i++) {
         $months_array[] = array('id' => tep_output_string(sprintf('%02d', $i)), 'text' => tep_output_string_protected(sprintf('%02d', $i)));
     }
     $today = getdate();
     $years_array = array();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $years_array[] = array('id' => tep_output_string(strftime('%Y', mktime(0, 0, 0, 1, 1, $i))), 'text' => tep_output_string_protected(strftime('%Y', mktime(0, 0, 0, 1, 1, $i))));
     }
     $content = '';
     if (!$this->isValidCurrency($_SESSION['currency'])) {
         $content .= sprintf(MODULE_PAYMENT_BRAINTREE_CC_CURRENCY_CHARGE, $currencies->format($order->info['total'], true, DEFAULT_CURRENCY), DEFAULT_CURRENCY, $_SESSION['currency']);
     }
     if (MODULE_PAYMENT_BRAINTREE_CC_TOKENS == 'True') {
         $Qtokens = $OSCOM_Db->get('customers_braintree_tokens', ['id', 'card_type', 'number_filtered', 'expiry_date'], ['customers_id' => $_SESSION['customer_id']], 'date_added');
         if ($Qtokens->fetch() !== false) {
             $content .= '<table id="braintree_table" border="0" width="100%" cellspacing="0" cellpadding="2">';
             do {
                 $content .= '<tr class="moduleRow" id="braintree_card_' . $Qtokens->valueInt('id') . '">' . '  <td width="40" valign="top"><input type="radio" name="braintree_card" value="' . $Qtokens->valueInt('id') . '" /></td>' . '  <td valign="top">' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_LAST_4 . '&nbsp;' . $Qtokens->valueProtected('number_filtered') . '&nbsp;&nbsp;' . tep_output_string_protected(substr($Qtokens->value('expiry_date'), 0, 2) . '/' . substr($Qtokens->value('expiry_date'), 2)) . '&nbsp;&nbsp;' . $Qtokens->valueProtected('card_type') . '</td>' . '</tr>';
                 if (MODULE_PAYMENT_BRAINTREE_CC_VERIFY_WITH_CVV == 'True') {
                     $content .= '<tr class="moduleRowExtra" id="braintree_card_cvv_' . $Qtokens->valueInt('id') . '">' . '  <td width="40" valign="top">&nbsp;</td>' . '  <td valign="top">' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_CVV . '&nbsp;<input type="text" size="5" maxlength="4" autocomplete="off" data-encrypted-name="token_cvv[' . $Qtokens->valueInt('id') . ']" /></td>' . '</tr>';
                 }
             } while ($Qtokens->fetch());
             $content .= '<tr class="moduleRow" id="braintree_card_0">' . '  <td width="40" valign="top"><input type="radio" name="braintree_card" value="0" /></td>' . '  <td valign="top">' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_NEW . '</td>' . '</tr>' . '</table>';
         }
     }
     $content .= '<table id="braintree_table_new_card" border="0" width="100%" cellspacing="0" cellpadding="2">' . '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_OWNER . '</td>' . '  <td>' . HTML::inputField('name', $order->billing['firstname'] . ' ' . $order->billing['lastname']) . '</td>' . '</tr>' . '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_NUMBER . '</td>' . '  <td><input type="text" maxlength="20" autocomplete="off" data-encrypted-name="number" /></td>' . '</tr>' . '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_EXPIRY . '</td>' . '  <td>' . HTML::selectField('month', $months_array) . ' / ' . HTML::selectField('year', $years_array) . '</td>' . '</tr>';
     if (MODULE_PAYMENT_BRAINTREE_CC_VERIFY_WITH_CVV == 'True') {
         $content .= '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_CVV . '</td>' . '  <td><input type="text" size="5" maxlength="4" autocomplete="off" data-encrypted-name="cvv" /></td>' . '</tr>';
     }
     if (MODULE_PAYMENT_BRAINTREE_CC_TOKENS == 'True') {
         $content .= '<tr>' . '  <td width="30%">&nbsp;</td>' . '  <td>' . HTML::checkboxField('cc_save', 'true') . ' ' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_SAVE . '</td>' . '</tr>';
     }
     $content .= '</table>';
     if (!$this->templateClassExists()) {
         $content .= $this->getSubmitCardDetailsJavascript();
     }
     $confirmation = array('title' => $content);
     return $confirmation;
 }
Ejemplo n.º 12
0
         $orders_status_inputs_string .= '<br />' . $OSCOM_Language->getImage($languages[$i]['code']) . '&nbsp;' . HTML::inputField('orders_status_name[' . $languages[$i]['id'] . ']');
     }
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_orders_status_name') . $orders_status_inputs_string);
     $contents[] = array('text' => '<br />' . HTML::checkboxField('public_flag', '1') . ' ' . OSCOM::getDef('text_set_public_status'));
     $contents[] = array('text' => HTML::checkboxField('downloads_flag', '1') . ' ' . OSCOM::getDef('text_set_downloads_status'));
     $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_ORDERS_STATUS, 'page=' . $_GET['page'])));
     break;
 case 'edit':
     $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_edit_orders_status') . '</strong>');
     $contents = array('form' => HTML::form('status', OSCOM::link(FILENAME_ORDERS_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->orders_status_id . '&action=save')));
     $contents[] = array('text' => OSCOM::getDef('text_info_edit_intro'));
     $orders_status_inputs_string = '';
     $languages = tep_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $orders_status_inputs_string .= '<br />' . $OSCOM_Language->getImage($languages[$i]['code']) . '&nbsp;' . HTML::inputField('orders_status_name[' . $languages[$i]['id'] . ']', tep_get_orders_status_name($oInfo->orders_status_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_orders_status_name') . $orders_status_inputs_string);
     $contents[] = array('text' => '<br />' . HTML::checkboxField('public_flag', '1', $oInfo->public_flag) . ' ' . OSCOM::getDef('text_set_public_status'));
     $contents[] = array('text' => HTML::checkboxField('downloads_flag', '1', $oInfo->downloads_flag) . ' ' . OSCOM::getDef('text_set_downloads_status'));
     if (DEFAULT_ORDERS_STATUS_ID != $oInfo->orders_status_id) {
         $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_ORDERS_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->orders_status_id)));
     break;
 case 'delete':
     $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_orders_status') . '</strong>');
     $contents = array('form' => HTML::form('status', OSCOM::link(FILENAME_ORDERS_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->orders_status_id . '&action=deleteconfirm')));
     $contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
     $contents[] = array('text' => '<br /><strong>' . $oInfo->orders_status_name . '</strong>');
     if ($remove_status) {
Ejemplo n.º 13
0
</label>
      <div class="col-sm-9">
        <?php 
    echo HTML::inputField('name', NULL, 'required autofocus="autofocus" aria-required="true" id="inputFromName" placeholder="' . OSCOM::getDef('entry_name_text') . '"');
    echo OSCOM::getDef('form_required_input');
    ?>
      </div>
    </div>
    <div class="form-group has-feedback">
      <label for="inputFromEmail" class="control-label col-sm-3"><?php 
    echo OSCOM::getDef('entry_email');
    ?>
</label>
      <div class="col-sm-9">
        <?php 
    echo HTML::inputField('email', NULL, 'required aria-required="true" id="inputFromEmail" placeholder="' . OSCOM::getDef('entry_email_address_text') . '"', 'email');
    echo OSCOM::getDef('form_required_input');
    ?>
      </div>
    </div>
    <div class="form-group has-feedback">
      <label for="inputEnquiry" class="control-label col-sm-3"><?php 
    echo OSCOM::getDef('entry_enquiry');
    ?>
</label>
      <div class="col-sm-9">
        <?php 
    echo HTML::textareaField('enquiry', 50, 15, NULL, 'required aria-required="true" id="inputEnquiry" placeholder="' . OSCOM::getDef('entry_enquiry_text') . '"');
    echo OSCOM::getDef('form_required_input');
    ?>
      </div>
Ejemplo n.º 14
0
 function confirmation()
 {
     global $order;
     $OSCOM_Db = Registry::get('Db');
     $card_types = array();
     foreach ($this->getCardTypes() as $key => $value) {
         $card_types[] = array('id' => $key, 'text' => $value);
     }
     $today = getdate();
     $months_array = array();
     for ($i = 1; $i < 13; $i++) {
         $months_array[] = array('id' => sprintf('%02d', $i), 'text' => sprintf('%02d', $i));
     }
     $year_valid_to_array = array();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $year_valid_to_array[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $year_valid_from_array = array();
     for ($i = $today['year'] - 4; $i < $today['year'] + 1; $i++) {
         $year_valid_from_array[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $content = '';
     if (MODULE_PAYMENT_SAGE_PAY_DIRECT_TOKENS == 'True') {
         $Qtokens = $OSCOM_Db->get('customers_sagepay_tokens', ['id', 'card_type', 'number_filtered', 'expiry_date'], ['customers_id' => $_SESSION['customer_id']], 'date_added');
         if ($Qtokens->fetch() !== false) {
             $content .= '<table id="sagepay_table" border="0" width="100%" cellspacing="0" cellpadding="2">';
             do {
                 $content .= '<tr class="moduleRow" id="sagepay_card_' . $Qtokens->valueInt('id') . '">' . '  <td width="40" valign="top"><input type="radio" name="sagepay_card" value="' . $Qtokens->valueInt('id') . '" /></td>' . '  <td valign="top">' . $Qtokens->valueProtected('number_filtered') . '&nbsp;&nbsp;' . tep_output_string_protected(substr($Qtokens->value('expiry_date'), 0, 2)) . '/' . strftime('%Y', mktime(0, 0, 0, 1, 1, 2000 + substr($Qtokens->value('expiry_date'), 2))) . '&nbsp;&nbsp;' . $Qtokens->valueProtected('card_type') . '</td>' . '</tr>';
                 if (MODULE_PAYMENT_SAGE_PAY_DIRECT_VERIFY_WITH_CVC == 'True') {
                     $content .= '<tr class="moduleRowExtra" id="sagepay_card_cvc_' . $Qtokens->valueInt('id') . '">' . '  <td width="40" valign="top">&nbsp;</td>' . '  <td valign="top">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_CVC . '&nbsp;' . HTML::inputField('cc_cvc_tokens_nh-dns[' . $Qtokens->valueInt('id') . ']', '', 'size="5" maxlength="4"') . '</td>' . '</tr>';
                 }
             } while ($Qtokens->fetch());
             $content .= '<tr class="moduleRow" id="sagepay_card_0">' . '  <td width="40" valign="top"><input type="radio" name="sagepay_card" value="0" /></td>' . '  <td valign="top">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_NEW . '</td>' . '</tr>' . '</table>';
         }
     }
     $content .= '<table id="sagepay_table_new_card" border="0" width="100%" cellspacing="0" cellpadding="2">' . '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_TYPE . '</td>' . '  <td>' . HTML::selectField('cc_type', $card_types, '', 'id="sagepay_card_type"') . '</td>' . '</tr>' . '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_OWNER . '</td>' . '  <td>' . HTML::inputField('cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'], 'maxlength="50"') . '</td>' . '</tr>' . '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_NUMBER . '</td>' . '  <td>' . HTML::inputField('cc_number_nh-dns', '', 'maxlength="20"') . '</td>' . '</tr>';
     if (MODULE_PAYMENT_SAGE_PAY_DIRECT_ALLOW_MAESTRO == 'True' || MODULE_PAYMENT_SAGE_PAY_DIRECT_ALLOW_AMEX == 'True') {
         $content .= '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_STARTS . '</td>' . '  <td>' . HTML::selectField('cc_starts_month', $months_array, '', 'id="sagepay_card_date_start"') . '&nbsp;' . HTML::selectField('cc_starts_year', $year_valid_from_array) . '&nbsp;' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_STARTS_INFO . '</td>' . '</tr>';
     }
     $content .= '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_EXPIRES . '</td>' . '  <td>' . HTML::selectField('cc_expires_month', $months_array) . '&nbsp;' . HTML::selectField('cc_expires_year', $year_valid_to_array) . '</td>' . '</tr>';
     if (MODULE_PAYMENT_SAGE_PAY_DIRECT_ALLOW_MAESTRO == 'True') {
         $content .= '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_ISSUE_NUMBER . '</td>' . '  <td>' . HTML::inputField('cc_issue_nh-dns', '', 'id="sagepay_card_issue" size="3" maxlength="2"') . '&nbsp;' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_ISSUE_NUMBER_INFO . '</td>' . '</tr>';
     }
     if (MODULE_PAYMENT_SAGE_PAY_DIRECT_VERIFY_WITH_CVC == 'True') {
         $content .= '<tr>' . '  <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_CVC . '</td>' . '  <td>' . HTML::inputField('cc_cvc_nh-dns', '', 'size="5" maxlength="4"') . '</td>' . '</tr>';
     }
     if (MODULE_PAYMENT_SAGE_PAY_DIRECT_TOKENS == 'True') {
         $content .= '<tr>' . '  <td width="30%">&nbsp;</td>' . '  <td>' . HTML::checkboxField('cc_save', 'true') . ' ' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_SAVE . '</td>' . '</tr>';
     }
     $content .= '</table>';
     $content .= !$this->templateClassExists() ? $this->getSubmitCardDetailsJavascript() : '';
     $confirmation = array('title' => $content);
     return $confirmation;
 }
Ejemplo n.º 15
0
    <div class="form-group">
      <label for="dfrom" class="control-label col-sm-3"><?php 
echo OSCOM::getDef('entry_date_from');
?>
</label>
      <div class="col-sm-9">
        <?php 
echo HTML::inputField('dfrom', '', 'id="dfrom" placeholder="' . OSCOM::getDef('entry_date_from_text') . '"');
?>
      </div>
    </div>
    <div class="form-group">
      <label for="dto" class="control-label col-sm-3"><?php 
echo OSCOM::getDef('entry_date_to');
?>
</label>
      <div class="col-sm-9">
        <?php 
echo HTML::inputField('dto', '', 'id="dto" placeholder="' . OSCOM::getDef('entry_date_to_text') . '"');
?>
      </div>
    </div>
  </div>

</div>

</form>

<?php 
require $oscTemplate->getFile('template_bottom.php');
require 'includes/application_bottom.php';
Ejemplo n.º 16
0
</td>
                <td><?php 
    echo HTML::inputField('from', EMAIL_FROM);
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td class="main"><?php 
    echo OSCOM::getDef('text_subject');
    ?>
</td>
                <td><?php 
    echo HTML::inputField('subject');
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td valign="top" class="main"><?php 
    echo OSCOM::getDef('text_message');
    ?>
</td>
                <td>
                  <ul class="nav nav-tabs" role="tablist">
                    <li role="presentation" class="active"><a href="#html_email" aria-controls="html_email" role="tab" data-toggle="tab"><?php 
    echo OSCOM::getDef('email_type_html');
Ejemplo n.º 17
0
          <?php 
    if ($process == true) {
        if ($entry_state_has_zones == true) {
            $zones_array = array();
            $Qzones = $OSCOM_Db->prepare('select zone_name from :table_zones where zone_country_id = :zone_country_id order by zone_name');
            $Qzones->bindInt(':zone_country_id', $country);
            $Qzones->execute();
            while ($Qzones->fetch()) {
                $zones_array[] = array('id' => $Qzones->value('zone_name'), 'text' => $Qzones->value('zone_name'));
            }
            echo HTML::selectField('state', $zones_array);
        } else {
            echo HTML::inputField('state');
        }
    } else {
        echo HTML::inputField('state', isset($entry['entry_country_id']) ? tep_get_zone_name($entry['entry_country_id'], $entry['entry_zone_id'], $entry['entry_state']) : '');
    }
    if (tep_not_null(ENTRY_STATE_TEXT)) {
        echo '<span class="help-block">' . ENTRY_STATE_TEXT . '</span>';
    }
    ?>
        </div>
      </div>

<?php 
}
?>

      <div class="form-group has-feedback">
        <label for="inputCountry" class="control-label col-sm-3"><?php 
echo ENTRY_COUNTRY;
Ejemplo n.º 18
0
                        break;
                    case 'delete':
                        $heading[] = array('text' => HTML::outputProtected($aInfo->user_name));
                        $contents = array('form' => HTML::form('administrator', OSCOM::link(FILENAME_ADMINISTRATORS, 'aID=' . $aInfo->id . '&action=deleteconfirm')));
                        $contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
                        $contents[] = array('text' => '<strong>' . HTML::outputProtected($aInfo->user_name) . '</strong>');
                        $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_ADMINISTRATORS), null, 'btn-link'));
                        break;
                }
            }
        }
    } else {
        $heading[] = array('text' => OSCOM::getDef('text_info_heading_new_administrator'));
        $contents = array('form' => HTML::form('administrator', OSCOM::link(FILENAME_ADMINISTRATORS, 'action=insert'), 'post', 'autocomplete="off"'));
        $contents[] = array('text' => OSCOM::getDef('text_info_insert_intro'));
        $contents[] = array('text' => OSCOM::getDef('text_info_username') . '<br />' . HTML::inputField('username'));
        $contents[] = array('text' => OSCOM::getDef('text_info_password') . '<br />' . HTML::passwordField('password'));
        $contents[] = array('text' => HTML::button(OSCOM::getDef('image_save'), 'fa fa-save', null, null, 'btn-success') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_ADMINISTRATORS), null, 'btn-link'));
    }
    if (tep_not_null($heading) && tep_not_null($contents)) {
        $show_listing = false;
        echo HTML::panel($heading, $contents, ['type' => 'info']);
    }
}
if ($show_listing === true) {
    ?>

<table class="oscom-table table table-hover">
  <thead>
    <tr class="info">
      <th><?php 
Ejemplo n.º 19
0
      <?php 
echo HTML::inputField('telephone', $Qaccount->value('customers_telephone'), 'required aria-required="true" id="inputTelephone" placeholder="' . OSCOM::getDef('entry_telephone_number_text') . '"', 'tel');
?>
      <?php 
echo OSCOM::getDef('form_required_input');
?>
    </div>
  </div>
  <div class="form-group">
    <label for="inputFax" class="control-label col-sm-3"><?php 
echo OSCOM::getDef('entry_fax_number');
?>
</label>
    <div class="col-sm-9">
      <?php 
echo HTML::inputField('fax', $Qaccount->value('customers_fax'), 'id="inputFax" placeholder="' . OSCOM::getDef('entry_fax_number_text') . '"');
?>
    </div>
  </div>

  <div class="buttonSet row">
    <div class="col-xs-6"><?php 
echo HTML::button(OSCOM::getDef('image_button_back'), 'fa fa-angle-left', OSCOM::link('account.php'));
?>
</div>
    <div class="col-xs-6 text-right"><?php 
echo HTML::button(OSCOM::getDef('image_button_continue'), 'fa fa-angle-right', null, null, 'btn-success');
?>
</div>
  </div>
</div>
Ejemplo n.º 20
0
</label>
      <div class="col-sm-9">
        <?php 
    echo HTML::inputField('name', NULL, 'required aria-required="true" autofocus="autofocus" id="inputFromName" placeholder="' . ENTRY_NAME_TEXT . '"');
    echo FORM_REQUIRED_INPUT;
    ?>
      </div>
    </div>
    <div class="form-group has-feedback">
      <label for="inputFromEmail" class="control-label col-sm-3"><?php 
    echo ENTRY_EMAIL;
    ?>
</label>
      <div class="col-sm-9">
        <?php 
    echo HTML::inputField('email', NULL, 'required aria-required="true" id="inputFromEmail" placeholder="' . ENTRY_EMAIL_ADDRESS_TEXT . '"', 'email');
    echo FORM_REQUIRED_INPUT;
    ?>
      </div>
    </div>
    <div class="form-group has-feedback">
      <label for="inputEnquiry" class="control-label col-sm-3"><?php 
    echo ENTRY_ENQUIRY;
    ?>
</label>
      <div class="col-sm-9">
        <?php 
    echo HTML::textareaField('enquiry', 50, 15, NULL, 'required aria-required="true" id="inputEnquiry" placeholder="' . ENTRY_ENQUIRY_TEXT . '"');
    echo FORM_REQUIRED_INPUT;
    ?>
      </div>
Ejemplo n.º 21
0
?>
</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">
      <label for="inputPassword" class="control-label col-xs-4"><?php 
echo ENTRY_PASSWORD;
?>
</label>
      <div class="col-xs-8">
        <?php 
echo HTML::passwordField('password', NULL, 'required aria-required="true" id="inputPassword" placeholder="' . ENTRY_PASSWORD_TEXT . '"');
?>
      </div>
    </div>
Ejemplo n.º 22
0
</label>
      <div class="col-sm-9">
        <?php 
echo HTML::inputField('to_name', NULL, 'required aria-required="true" id="inputToName" placeholder="' . OSCOM::getDef('form_field_friend_name') . '"');
echo OSCOM::getDef('form_required_input');
?>
      </div>
    </div>
    <div class="form-group has-feedback">
      <label for="inputToEmail" class="control-label col-sm-3"><?php 
echo OSCOM::getDef('form_field_friend_email');
?>
</label>
      <div class="col-sm-9">
        <?php 
echo HTML::inputField('to_email_address', NULL, 'required aria-required="true" id="inputToEmail" placeholder="' . OSCOM::getDef('form_field_friend_email') . '"', 'email');
echo OSCOM::getDef('form_required_input');
?>
      </div>
    </div>
  </div>

  <hr>

  <div class="contentText">
    <div class="form-group has-feedback">
      <label for="inputMessage" class="control-label col-sm-3"><?php 
echo OSCOM::getDef('form_title_friend_message');
?>
</label>
      <div class="col-sm-9">
Ejemplo n.º 23
0
</label>
      <div class="col-sm-9">
        <?php 
echo HTML::inputField('telephone', NULL, 'minlength="' . ENTRY_TELEPHONE_MIN_LENGTH . '" required aria-required="true" id="inputTelephone" placeholder="' . ENTRY_TELEPHONE_NUMBER_TEXT . '"', 'tel');
echo FORM_REQUIRED_INPUT;
?>
      </div>
    </div>
    <div class="form-group">
      <label for="inputFax" class="control-label col-sm-3"><?php 
echo ENTRY_FAX_NUMBER;
?>
</label>
      <div class="col-sm-9">
        <?php 
echo HTML::inputField('fax', '', 'id="inputFax" placeholder="' . ENTRY_FAX_NUMBER_TEXT . '"');
?>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-sm-3"><?php 
echo ENTRY_NEWSLETTER;
?>
</label>
      <div class="col-sm-9">
        <div class="checkbox">
          <label>
            <?php 
echo HTML::checkboxField('newsletter', '1') . '&nbsp;';
?>
            <?php 
Ejemplo n.º 24
0
    for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
        $products_name .= '<tr>';
        $products_name .= '  <td valign="top" class="hidden-xs"><a href="' . OSCOM::link('product_info.php', 'products_id=' . $products[$i]['id']) . '">' . HTML::image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . '  <td valign="top"><a href="' . OSCOM::link('product_info.php', 'products_id=' . $products[$i]['id']) . '">' . $products[$i]['name'] . '</a>';
        if (STOCK_CHECK == 'true') {
            $stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']);
            if (tep_not_null($stock_check)) {
                $any_out_of_stock = 1;
                $products_name .= $stock_check;
            }
        }
        if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
            foreach ($products[$i]['attributes'] as $option => $value) {
                $products_name .= '<br /><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>';
            }
        }
        $products_name .= '<br>' . HTML::inputField('cart_quantity[]', $products[$i]['quantity'], 'style="width: 65px; display: inline;" min="0"', 'number') . HTML::hiddenField('products_id[]', $products[$i]['id']) . ' ' . HTML::button(NULL, 'glyphicon glyphicon-refresh', NULL, NULL, NULL, 'btn-info btn-sm') . ' ' . HTML::button(NULL, 'glyphicon glyphicon-remove', OSCOM::link('shopping_cart.php', 'products_id=' . $products[$i]['id'] . '&action=remove_product'), NULL, NULL, 'btn-danger btn-sm');
        $products_name .= '</td>';
        $products_name .= '  <td class="text-right" valign="top">' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</td>' . '</tr>';
    }
    echo $products_name;
    ?>

      </tbody>
    </table>

    <p class="text-right"><strong><?php 
    echo SUB_TITLE_SUB_TOTAL;
    ?>
 <?php 
    echo $currencies->format($_SESSION['cart']->show_total());
    ?>
Ejemplo n.º 25
0
      <div class="form-group has-feedback">
        <label for="adminPassword">Administrator Password</label>
        <?php 
echo HTML::inputField('CFG_ADMINISTRATOR_PASSWORD', null, 'required aria-required="true" id="adminPassword"');
?>
        <span class="help-block">The password to use for the administrator account.</span>
      </div>

<?php 
if (FileSystem::isWritable($dir_fs_document_root) && FileSystem::isWritable($dir_fs_document_root . 'admin')) {
    ?>

      <div class="form-group has-feedback">
        <label for="adminDir">Administration Directory Name</label>
        <?php 
    echo HTML::inputField('CFG_ADMIN_DIRECTORY', 'admin', 'required aria-required="true" id="adminDir"');
    ?>
        <span class="help-block">This is the directory where the administration section will be installed. You should change this for security reasons.</span>
      </div>

<?php 
}
?>

      <div class="form-group has-feedback">
        <label for="Zulu">Time Zone</label>
        <?php 
echo HTML::selectField('TIME_ZONE', DateTime::getTimeZones(), date_default_timezone_get(), 'id="Zulu"');
?>
        <span class="help-block">The time zone to base the date and time on.</span>
      </div>
Ejemplo n.º 26
0
     $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_new_country') . '</strong>');
     $contents = array('form' => HTML::form('countries', OSCOM::link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&action=insert')));
     $contents[] = array('text' => OSCOM::getDef('text_info_insert_intro'));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_name') . '<br />' . HTML::inputField('countries_name'));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_code_2') . '<br />' . HTML::inputField('countries_iso_code_2'));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_country_code_3') . '<br />' . HTML::inputField('countries_iso_code_3'));
     $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);
Ejemplo n.º 27
0
echo OSCOM::getDef('text_module_directory') . ' ' . OSCOM::getConfig('dir_root', 'Shop') . 'includes/modules/content/';
?>
</p>
            </td>
<?php 
$heading = array();
$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))) {
Ejemplo n.º 28
0
} else {
    switch ($action) {
        case 'new_zone':
            $heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_new_zone') . '</strong>');
            $contents = array('form' => HTML::form('zones', OSCOM::link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=insert_zone')));
            $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));
Ejemplo n.º 29
0
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_class_title') . '<br />' . tep_tax_classes_pull_down('name="tax_class_id" style="font-size:10px"'));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_zone_name') . '<br />' . tep_geo_zones_pull_down('name="tax_zone_id" style="font-size:10px"'));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_tax_rate') . '<br />' . HTML::inputField('tax_rate'));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_rate_description') . '<br />' . HTML::inputField('tax_description'));
     $contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_tax_rate_priority') . '<br />' . HTML::inputField('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'])));
     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));
Ejemplo n.º 30
0
    for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
        $products_name .= '<tr>';
        $products_name .= '  <td valign="top" align="center"><a href="' . OSCOM::link('product_info.php', 'products_id=' . $products[$i]['id']) . '">' . HTML::image(OSCOM::linkImage($products[$i]['image']), $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . '  <td valign="top"><a href="' . OSCOM::link('product_info.php', 'products_id=' . $products[$i]['id']) . '"><strong>' . $products[$i]['name'] . '</strong></a>';
        if (STOCK_CHECK == 'true') {
            $stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']);
            if (tep_not_null($stock_check)) {
                $any_out_of_stock = 1;
                $products_name .= $stock_check;
            }
        }
        if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
            foreach ($products[$i]['attributes'] as $option => $value) {
                $products_name .= '<br /><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>';
            }
        }
        $products_name .= '<br>' . HTML::inputField('cart_quantity[]', $products[$i]['quantity'], 'style="width: 65px;" min="0"', 'number') . HTML::hiddenField('products_id[]', $products[$i]['id']) . ' ' . HTML::button(OSCOM::getDef('text_cart_button_update'), 'fa fa-refresh', null, null, 'btn-info btn-xs') . ' ' . HTML::button(OSCOM::getDef('text_cart_button_remove'), 'fa fa-remove', OSCOM::link('shopping_cart.php', 'products_id=' . $products[$i]['id'] . '&action=remove_product'), null, 'btn-danger btn-xs');
        $products_name .= '</td>';
        $products_name .= '  <td align="right" valign="top"><strong>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</strong></td>' . '</tr>';
    }
    echo $products_name;
    ?>

      </tbody>
    </table>

    <p class="text-right"><strong><?php 
    echo OSCOM::getDef('sub_title_sub_total');
    ?>
 <?php 
    echo $currencies->format($_SESSION['cart']->show_total());
    ?>