當前位置: 首頁>>代碼示例>>PHP>>正文


PHP HTML::button方法代碼示例

本文整理匯總了PHP中osCommerce\OM\Core\HTML::button方法的典型用法代碼示例。如果您正苦於以下問題:PHP HTML::button方法的具體用法?PHP HTML::button怎麽用?PHP HTML::button使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在osCommerce\OM\Core\HTML的用法示例。


在下文中一共展示了HTML::button方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: initialize

 public function initialize()
 {
     $OSCOM_Service = Registry::get('Service');
     $OSCOM_Cache = Registry::get('Cache');
     $OSCOM_Product = Registry::exists('Product') ? Registry::get('Product') : null;
     $OSCOM_Language = Registry::get('Language');
     $OSCOM_PDO = Registry::get('PDO');
     $OSCOM_Image = Registry::get('Image');
     $this->_title_link = OSCOM::getLink(null, 'Products', 'Reviews');
     if ($OSCOM_Service->isStarted('Reviews')) {
         if (BOX_REVIEWS_CACHE > 0 && $OSCOM_Cache->read('box-reviews' . (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid() ? '-' . $OSCOM_Product->getID() : '') . '-' . $OSCOM_Language->getCode(), BOX_REVIEWS_CACHE)) {
             $data = $OSCOM_Cache->getCache();
         } else {
             $data = array();
             $sql_query = 'select r.reviews_id, r.reviews_rating, p.products_id, pd.products_name, pd.products_keyword, i.image from :table_reviews r, :table_products p left join :table_products_images i on (p.products_id = i.products_id and i.default_flag = :default_flag), :table_products_description pd where r.products_id = p.products_id and p.products_status = 1 and r.languages_id = :language_id and p.products_id = pd.products_id and pd.language_id = :language_id and r.reviews_status = 1';
             if (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid()) {
                 $sql_query .= ' and p.products_id = :products_id';
             }
             $sql_query .= ' order by r.reviews_id desc limit :max_random_select_reviews';
             $Qreview = $OSCOM_PDO->prepare($sql_query);
             $Qreview->bindInt(':default_flag', 1);
             $Qreview->bindInt(':language_id', $OSCOM_Language->getID());
             $Qreview->bindInt(':language_id', $OSCOM_Language->getID());
             if (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid()) {
                 $Qreview->bindInt(':products_id', $OSCOM_Product->getID());
             }
             $Qreview->bindInt(':max_random_select_reviews', BOX_REVIEWS_RANDOM_SELECT);
             $Qreview->execute();
             $result = $Qreview->fetchAll();
             if (count($result) > 0) {
                 $result = $result[rand(0, count($result) - 1)];
                 $Qtext = $OSCOM_PDO->prepare('select substring(reviews_text, 1, 60) as reviews_text from :table_reviews where reviews_id = :reviews_id and languages_id = :languages_id');
                 $Qtext->bindInt(':reviews_id', $result['reviews_id']);
                 $Qtext->bindInt(':languages_id', $OSCOM_Language->getID());
                 $Qtext->execute();
                 $data = array_merge($result, $Qtext->fetch());
             }
             $OSCOM_Cache->write($data);
         }
         $this->_content = '';
         if (empty($data)) {
             if (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid()) {
                 $this->_content = '<div style="float: left; width: 55px;">' . HTML::button(array('href' => OSCOM::getLink(null, 'Products', 'Reviews&Write&' . $OSCOM_Product->getKeyword()), 'icon' => 'pencil', 'title' => OSCOM::getDef('button_write_review'))) . '</div>' . HTML::link(OSCOM::getLink(null, 'Products', 'Reviews&Write&' . $OSCOM_Product->getKeyword()), OSCOM::getDef('box_reviews_write')) . '<div style="clear: both;"></div>';
             }
         } else {
             if (!empty($data['image'])) {
                 $this->_content = '<div align="center">' . HTML::link(OSCOM::getLink(null, 'Products', 'Reviews&View=' . $data['reviews_id'] . '&' . $data['products_keyword']), $OSCOM_Image->show($data['image'], $data['products_name'])) . '</div>';
             }
             $this->_content .= HTML::link(OSCOM::getLink(null, 'Products', 'Reviews&View=' . $data['reviews_id'] . '&' . $data['products_keyword']), wordwrap(HTML::outputProtected($data['reviews_text']), 15, '&shy;') . ' ..') . '<br /><div align="center">' . HTML::image(OSCOM::getPublicSiteLink('images/stars_' . $data['reviews_rating'] . '.png'), sprintf(OSCOM::getDef('box_reviews_stars_rating'), $data['reviews_rating'])) . '</div>';
         }
     }
 }
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:52,代碼來源:Controller.php

示例2:

        ?>
" valign="top" align="center">

<?php 
        if ($OSCOM_Product->hasImage()) {
            echo HTML::link(OSCOM::getLink(null, null, $OSCOM_Product->getKeyword()), $OSCOM_Image->show($OSCOM_Product->getImage(), $OSCOM_Product->getTitle()));
        }
        ?>

    </td>
    <td valign="top"><?php 
        echo HTML::link(OSCOM::getLink(null, null, $OSCOM_Product->getKeyword()), '<b><u>' . $OSCOM_Product->getTitle() . '</u></b>') . '<br />' . OSCOM::getDef('date_added') . ' ' . DateTime::getLong($OSCOM_Product->getDateAdded()) . '<br />' . OSCOM::getDef('manufacturer') . ' ' . $OSCOM_Product->getManufacturer() . '<br /><br />' . OSCOM::getDef('price') . ' ' . $OSCOM_Product->getPriceFormated();
        ?>
</td>
    <td align="right" valign="middle"><?php 
        echo HTML::button(array('href' => OSCOM::getLink(null, 'Cart', 'Add&' . $OSCOM_Product->getKeyword()), 'icon' => 'cart', 'title' => OSCOM::getDef('button_add_to_cart')));
        ?>
</td>
  </tr>
  <tr>
    <td colspan="3">&nbsp;</td>
  </tr>

<?php 
    }
} else {
    ?>

  <tr>
    <td><?php 
    echo OSCOM::getDef('no_new_products');
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:31,代碼來源:all.php

示例3: in

echo HTML::icon('trash.png') . ' ' . OSCOM::getDef('action_heading_batch_delete_tax_rates');
?>
</h3>

  <form name="rDeleteBatch" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'BatchDeleteEntries&Process&id=' . $_GET['id']);
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_batch_delete_tax_rates');
?>
</p>

<?php 
$Qentries = $OSCOM_PDO->query('select tax_rates_id, tax_description from :table_tax_rates where tax_rates_id in ("' . implode('", "', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric'))) . '") order by tax_description');
$Qentries->execute();
$names_string = '';
while ($Qentries->fetch()) {
    $names_string .= HTML::hiddenField('batch[]', $Qentries->valueInt('tax_rates_id')) . '<b>' . $Qentries->valueProtected('tax_description') . '</b>, ';
}
if (!empty($names_string)) {
    $names_string = substr($names_string, 0, -2);
}
echo '<p>' . $names_string . '</p>';
echo '<p>' . HTML::button(array('priority' => 'primary', 'icon' => 'trash', 'title' => OSCOM::getDef('button_delete'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'id=' . $_GET['id']), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))) . '</p>';
?>

  </form>
</div>
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:30,代碼來源:entries_batch_delete.php

示例4: isset

<p><?php 
    echo nl2br(wordwrap(HTML::outputProtected($r['reviews_text']), 60, '&shy;'));
    ?>
</p>

<?php 
}
?>

<div class="listingPageLinks">
  <span style="float: right;"><?php 
echo PDO::getBatchPageLinks('page', $reviews_listing['total'], OSCOM::getAllGET('page'));
?>
</span>

  <?php 
echo PDO::getBatchTotalPages(OSCOM::getDef('result_set_number_of_reviews'), isset($_GET['page']) ? $_GET['page'] : 1, $reviews_listing['total']);
?>
</div>

<div class="submitFormButtons">
  <span style="float: right;"><?php 
echo HTML::button(array('href' => OSCOM::getLink(null, null, 'Reviews&Write&' . $OSCOM_Product->getKeyword()), 'icon' => 'pencil', 'title' => OSCOM::getDef('button_write_review')));
?>
</span>

  <?php 
echo HTML::button(array('href' => OSCOM::getLink(null, null, $OSCOM_Product->getKeyword()), 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back')));
?>
</div>
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:30,代碼來源:reviews_product.php

示例5:

    <p><label for="ab_default"><?php 
echo OSCOM::getDef('field_set_as_primary');
?>
</label><?php 
echo HTML::checkboxField('ab_default');
?>
</p>

    </fieldset>

    <p id="abSubmitButtonsNew"><?php 
echo HTML::button(array('type' => 'button', 'params' => 'onclick="processAddress();"', 'priority' => 'primary', 'icon' => 'plus', 'title' => OSCOM::getDef('button_add'))) . ' ' . HTML::button(array('type' => 'button', 'params' => 'onclick="cancelAddressForm();"', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>
    <p id="abSubmitButtonsEdit"><?php 
echo HTML::button(array('type' => 'button', 'params' => 'data-abButtonType="henrysBucket"', 'priority' => 'primary', 'icon' => 'arrowrefresh-1-n', 'title' => OSCOM::getDef('button_update'))) . ' ' . HTML::button(array('type' => 'button', 'params' => 'onclick="cancelAddressForm();"', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>
  </div>
</div>

<script>
$(function() {
  $('#ab_country').change(function() {
    var zone_id, state;

    if ( $(this).data('zone_id') ) {
      zone_id = $(this).data('zone_id');

      $(this).removeData('zone_id');
    } else {
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:31,代碼來源:section_addressBook.php

示例6: array

<?php
  if ( $OSCOM_MessageStack->exists() ) {
    echo $OSCOM_MessageStack->get();
  }
?>

<div id="sectionMenuContainer" style="float: left; padding-bottom: 10px;">
  <span class="ui-widget-header ui-corner-all" style="padding: 10px 4px;">
    <span id="sectionMenu"><?php echo HTML::radioField('sections', array(array('id' => 'general', 'text' => OSCOM::getDef('section_general')), array('id' => 'data', 'text' => OSCOM::getDef('section_data')), array('id' => 'images', 'text' => OSCOM::getDef('section_images')), array('id' => 'variants', 'text' => OSCOM::getDef('section_variants')), array('id' => 'categories', 'text' => OSCOM::getDef('section_categories'))), (isset($_GET['tabIndex']) ? $_GET['tabIndex'] : null), null, ''); ?></span>
  </span>
</div>

<form id="pEditForm" name="product" class="dataForm" action="<?php echo OSCOM::getLink(null, null, 'Save&Process&cid=' . $OSCOM_Application->getCurrentCategoryID()); ?>" method="post">

<div id="formButtons" style="float: right;"><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('type' => 'button', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'), 'params' => 'onclick="$.safetynet.suppressed(true); window.location.href=\'' . OSCOM::getLink(null, null, 'cid=' . $OSCOM_Application->getCurrentCategoryID()) . '\';"')); ?></div>

<div style="clear: both;"></div>

<?php
// HPDL Modularize, zack zack!
  include('section_general.php');
  include('section_data.php');
  include('section_images.php');
  include('section_variants.php');
  include('section_categories.php');
?>

</form>

<script>
開發者ID:haraldpdl,項目名稱:oscommerce,代碼行數:30,代碼來源:new.php

示例7:

?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<form id="liveSearchForm">
  <?php 
echo HTML::inputField('search', null, 'id="liveSearchField" class="searchField" placeholder="' . OSCOM::getDef('placeholder_search') . '"') . HTML::button(array('type' => 'button', 'params' => 'onclick="osC_DataTable.reset();"', 'title' => OSCOM::getDef('button_reset')));
?>

  <span style="float: right;"><?php 
echo HTML::button(array('href' => OSCOM::getLink(null, null, 'UpdateRates'), 'icon' => 'refresh', 'title' => OSCOM::getDef('button_update_currency_exchange_rates'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'Save'), 'icon' => 'plus', 'title' => OSCOM::getDef('button_insert')));
?>
</span>
</form>

<div style="padding: 20px 5px 5px 5px; height: 16px;">
  <span id="batchTotalPages"></span>
  <span id="batchPageLinks"></span>
</div>

<form name="batch" action="#" method="post">

<table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable" id="currenciesDataTable">
  <thead>
    <tr>
      <th><?php 
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:31,代碼來源:main.php

示例8:

    <p align="right"><?php 
echo HTML::button(array('icon' => 'key', 'title' => OSCOM::getDef('button_sign_in')));
?>
</p>
  </div>

  </form>
</div>

<div class="moduleBox" style="width: 49%;">
  <div class="outsideHeading">
    <h6><?php 
echo OSCOM::getDef('login_new_customer_heading');
?>
</h6>
  </div>

  <div class="content">
    <p><?php 
echo OSCOM::getDef('login_new_customer_text');
?>
</p>

    <p align="right"><?php 
echo HTML::button(array('href' => OSCOM::getLink(null, null, 'Create', 'SSL'), 'icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue')));
?>
</p>
  </div>
</div>
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:29,代碼來源:login.php

示例9:

  use osCommerce\OM\Core\HTML;
  use osCommerce\OM\Core\OSCOM;
?>

<h1><?php echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle()); ?></h1>

<?php
  if ( $OSCOM_MessageStack->exists() ) {
    echo $OSCOM_MessageStack->get();
  }
?>

<form id="liveSearchForm">
  <?php echo HTML::inputField('search', null, 'id="liveSearchField" class="searchField" placeholder="' . OSCOM::getDef('placeholder_search') . '"') . HTML::button(array('type' => 'button', 'params' => 'onclick="osC_DataTable.reset();"', 'title' => OSCOM::getDef('button_reset'))); ?>

  <span style="float: right;"><?php echo HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back'))); ?></span>
</form>

<div style="padding: 20px 5px 5px 5px; height: 16px;">
  <span id="batchTotalPages"></span>
  <span id="batchPageLinks"></span>
</div>

<form name="batch" action="#" method="post">

<table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable" id="productAttributesDataTable">
  <thead>
    <tr>
      <th><?php echo OSCOM::getDef('table_heading_product_attributes'); ?></th>
      <th width="150"><?php echo OSCOM::getDef('table_heading_action'); ?></th>
    </tr>
開發者ID:haraldpdl,項目名稱:oscommerce,代碼行數:31,代碼來源:install.php

示例10: in

?>

<div class="infoBox">
  <h3><?php echo HTML::icon('trash.png') . ' ' . OSCOM::getDef('action_heading_batch_delete_cards'); ?></h3>

  <form name="ccDeleteBatch" class="dataForm" action="<?php echo OSCOM::getLink(null, null, 'BatchDelete&Process'); ?>" method="post">

  <p><?php echo OSCOM::getDef('introduction_batch_delete_cards'); ?></p>

<?php
  $Qcc = $OSCOM_PDO->query('select id, credit_card_name from :table_credit_cards where id in (\'' . implode('\', \'', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric'))) . '\') order by credit_card_name');
  $Qcc->execute();

  $names_string = '';

  while ($Qcc->fetch()) {
    $names_string .= HTML::hiddenField('batch[]', $Qcc->valueInt('id')) . '<b>' . $Qcc->valueProtected('credit_card_name') . '</b>, ';
  }

  if ( !empty($names_string) ) {
    $names_string = substr($names_string, 0, -2);
  }

  echo '<p>' . $names_string . '</p>';
?>

  <p><?php echo HTML::button(array('priority' => 'primary', 'icon' => 'trash', 'title' => OSCOM::getDef('button_delete'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?></p>

  </form>
</div>
開發者ID:haraldpdl,項目名稱:oscommerce,代碼行數:30,代碼來源:batch_delete.php

示例11:

unset($content_right);
if ($OSCOM_Template->hasPageHeader()) {
    ?>

<div id="pageHeader">

<?php 
    echo HTML::link(OSCOM::getLink(OSCOM::getDefaultSite(), OSCOM::getDefaultSiteApplication()), HTML::image(OSCOM::getPublicSiteLink('images/store_logo.png'), STORE_NAME), 'id="siteLogo"');
    ?>

  <div id="navigationIcons">

<?php 
    echo HTML::button(array('title' => OSCOM::getDef('cart_contents') . ($OSCOM_ShoppingCart->numberOfItems() > 0 ? ' (' . $OSCOM_ShoppingCart->numberOfItems() . ')' : ''), 'icon' => 'cart', 'href' => OSCOM::getLink(null, 'Cart'))) . HTML::button(array('title' => OSCOM::getDef('checkout'), 'icon' => 'triangle-1-e', 'href' => OSCOM::getLink(null, 'Checkout', null, 'SSL'))) . HTML::button(array('title' => OSCOM::getDef('my_account'), 'icon' => 'person', 'href' => OSCOM::getLink(null, 'Account', null, 'SSL')));
    if ($OSCOM_Customer->isLoggedOn()) {
        echo HTML::button(array('title' => OSCOM::getDef('sign_out'), 'href' => OSCOM::getLink(null, 'Account', 'LogOff', 'SSL')));
    }
    ?>

  </div>

  <script type="text/javascript">
    $('#navigationIcons').buttonset();
  </script>

  <div id="navigationBar">

<?php 
    if ($OSCOM_Service->isStarted('Breadcrumb')) {
        ?>
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:30,代碼來源:oscom.php

示例12: elseif

    echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue')));
    ?>
</span>

<?php 
    if ($OSCOM_NavigationHistory->hasSnapshot()) {
        $back_link = $OSCOM_NavigationHistory->getSnapshotURL();
    } elseif ($OSCOM_Customer->hasDefaultAddress() === false) {
        $back_link = OSCOM::getLink(null, null, null, 'SSL');
    } else {
        $back_link = OSCOM::getLink(null, null, 'AddressBook', 'SSL');
    }
    echo HTML::button(array('href' => $back_link, 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back')));
    ?>

</div>

</form>

<?php 
} else {
    ?>

<div class="submitFormButtons">
  <?php 
    HTML::button(array('href' => OSCOM::getLink(null, null, 'AddressBook', 'SSL'), 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back')));
    ?>
</div>

<?php 
}
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:31,代碼來源:address_book_process.php

示例13:

              <p><label for="variants_weight"><?php echo OSCOM::getDef('field_weight'); ?></label><?php echo HTML::inputField('variants_weight', null, 'size="6"'). HTML::selectMenu('variants_weight_class', $OSCOM_Application->getWeightClassesList(), SHIPPING_WEIGHT_UNIT); ?></p>
              <p><label for="variants_default"><?php echo OSCOM::getDef('field_default'); ?></label><?php echo HTML::checkboxField('variants_default'); ?></p>
            </fieldset>

<script>
$(function() {
  $('#vstatus').buttonset();
});
</script>

          </td>
        </tr>
      </table>

      <p id="variantSubmitButtonsNew"><?php echo HTML::button(array('type' => 'button', 'params' => 'onclick="processVariantForm();"', 'priority' => 'primary', 'icon' => 'plus', 'title' => OSCOM::getDef('button_add'))) . ' ' . HTML::button(array('type' => 'button', 'params' => 'onclick="closeVariantForm();"', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?></p>
      <p id="variantSubmitButtonsEdit"><?php echo HTML::button(array('type' => 'button', 'params' => 'data-vButtonType="henrysBucket"', 'priority' => 'primary', 'icon' => 'arrowrefresh-1-n', 'title' => OSCOM::getDef('button_update'))) . ' ' . HTML::button(array('type' => 'button', 'params' => 'onclick="closeVariantForm();"', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?></p>
    </div>
  </div>
</div>

<div id="dialogDeleteVariant" title="<?php echo HTML::output(OSCOM::getDef('dialog_delete_variant_title')); ?>">
  <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_delete_variant_desc'); ?></p>
</div>

<div id="dialogDeleteNewVariant" title="<?php echo HTML::output(OSCOM::getDef('dialog_delete_new_variant_title')); ?>">
  <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_delete_new_variant_desc'); ?></p>
</div>

<div id="dialogDeleteDefaultVariant" title="<?php echo HTML::output(OSCOM::getDef('dialog_delete_default_variant_title')); ?>">
  <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_delete_default_variant_desc'); ?></p>
</div>
開發者ID:haraldpdl,項目名稱:oscommerce,代碼行數:31,代碼來源:section_variants.php

示例14:

  use osCommerce\OM\Core\HTML;
  use osCommerce\OM\Core\OSCOM;
?>

<h1><?php echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle()); ?></h1>

<?php
  if ( $OSCOM_MessageStack->exists() ) {
    echo $OSCOM_MessageStack->get();
  }
?>

<form id="liveSearchForm">
  <?php echo HTML::inputField('search', null, 'id="liveSearchField" class="searchField" placeholder="' . OSCOM::getDef('placeholder_search') . '"') . HTML::button(array('type' => 'button', 'params' => 'onclick="osC_DataTable.reset();"', 'title' => OSCOM::getDef('button_reset'))); ?>

  <span style="float: right;"><?php echo HTML::button(array('href' => OSCOM::getLink(null, null, 'Install'), 'icon' => 'plus', 'title' => OSCOM::getDef('button_install'))); ?></span>
</form>

<div style="padding: 20px 5px 5px 5px; height: 16px;">
  <span id="batchTotalPages"></span>
  <span id="batchPageLinks"></span>
</div>

<form name="batch" action="#" method="post">

<table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable" id="productAttributesDataTable">
  <thead>
    <tr>
      <th><?php echo OSCOM::getDef('table_heading_product_attributes'); ?></th>
      <th width="150"><?php echo OSCOM::getDef('table_heading_action'); ?></th>
    </tr>
開發者ID:haraldpdl,項目名稱:oscommerce,代碼行數:31,代碼來源:main.php

示例15:

?>
</label><?php 
echo HTML::inputField('user_name', null, 'tabindex="1"');
?>
</p>
    <p><label for="user_password"><?php 
echo OSCOM::getDef('field_password');
?>
</label><?php 
echo HTML::passwordField('user_password', 'tabindex="2"');
?>
</p>
  </fieldset>

  <p><?php 
echo HTML::button(array('icon' => 'key', 'title' => OSCOM::getDef('button_login')));
?>
</p>

  </form>
</div>

<script type="text/javascript">
  $('#user_name').focus();

  if (typeof webkitNotifications != 'undefined') {
    $('#formLogin').submit(function() {
      if ( webkitNotifications.checkPermission() == 1 ) {
        webkitNotifications.requestPermission();
      }
    });
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:31,代碼來源:main.php


注:本文中的osCommerce\OM\Core\HTML::button方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。