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


PHP HTML::form方法代码示例

本文整理汇总了PHP中OSC\OM\HTML::form方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::form方法的具体用法?PHP HTML::form怎么用?PHP HTML::form使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在OSC\OM\HTML的用法示例。


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

示例1: getData

 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;
 }
开发者ID:Akofelaz,项目名称:oscommerce2,代码行数:35,代码来源:bm_manufacturers.php

示例2: execute

 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);
 }
开发者ID:Akofelaz,项目名称:oscommerce2,代码行数:9,代码来源:bm_search.php

示例3: execute

 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);
 }
开发者ID:haraldpdl,项目名称:oscommerce2,代码行数:14,代码来源:cm_header_search.php

示例4: execute

 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);
         }
     }
 }
开发者ID:haraldpdl,项目名称:oscommerce2,代码行数:24,代码来源:bm_currencies.php

示例5:

<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>
开发者ID:Akofelaz,项目名称:oscommerce2,代码行数:29,代码来源:checkout_payment_address.php

示例6: array

     $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;
开发者ID:haraldpdl,项目名称:oscommerce2,代码行数:31,代码来源:tax_classes.php

示例7: array

</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')));
开发者ID:haraldpdl,项目名称:oscommerce2,代码行数:31,代码来源:reviews.php

示例8:

}
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>
开发者ID:tiansiyuan,项目名称:oscommerce2,代码行数:30,代码来源:checkout_success.php

示例9: foreach

}
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';
开发者ID:haraldpdl,项目名称:oscommerce2,代码行数:31,代码来源:modules.php

示例10: sprintf

<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>
开发者ID:tiansiyuan,项目名称:oscommerce2,代码行数:30,代码来源:tell_a_friend.php

示例11: 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))) {
                    $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);
开发者ID:haraldpdl,项目名称:oscommerce2,代码行数:31,代码来源:modules_content.php

示例12:

</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');
开发者ID:Akofelaz,项目名称:oscommerce2,代码行数:31,代码来源:product_reviews_write.php

示例13: array

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>');
开发者ID:haraldpdl,项目名称:oscommerce2,代码行数:31,代码来源:languages.php

示例14: isset

    ?>
</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">
开发者ID:tiansiyuan,项目名称:oscommerce2,代码行数:31,代码来源:address_book_process.php

示例15:

">
  <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">
开发者ID:Akofelaz,项目名称:oscommerce2,代码行数:31,代码来源:login_form.php


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