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


PHP HTML::icon方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     Registry::get('Language')->loadIniFile('modules/Dashboard/Customers.php');
     $this->_title = OSCOM::getDef('admin_indexmodules_customers_title');
     $this->_title_link = OSCOM::getLink(null, 'Customers');
     if (Access::hasAccess(OSCOM::getSite(), 'Customers')) {
         $this->_data = '<table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable">' . '  <thead>' . '    <tr>' . '      <th>' . OSCOM::getDef('admin_indexmodules_customers_table_heading_customers') . '</th>' . '      <th>' . OSCOM::getDef('admin_indexmodules_customers_table_heading_date') . '</th>' . '      <th>' . OSCOM::getDef('admin_indexmodules_customers_table_heading_status') . '</th>' . '    </tr>' . '  </thead>' . '  <tbody>';
         $Qcustomers = Registry::get('PDO')->query('select customers_id, customers_gender, customers_lastname, customers_firstname, customers_status, date_account_created from :table_customers order by date_account_created desc limit 6');
         $Qcustomers->execute();
         $counter = 0;
         while ($Qcustomers->fetch()) {
             $customer_icon = HTML::icon('people.png');
             if (ACCOUNT_GENDER > -1) {
                 switch ($Qcustomers->value('customers_gender')) {
                     case 'm':
                         $customer_icon = HTML::icon('user_male.png');
                         break;
                     case 'f':
                         $customer_icon = HTML::icon('user_female.png');
                         break;
                 }
             }
             $this->_data .= '    <tr onmouseover="$(this).addClass(\'mouseOver\');" onmouseout="$(this).removeClass(\'mouseOver\');"' . ($counter % 2 ? ' class="alt"' : '') . '>' . '      <td>' . HTML::link(OSCOM::getLink(null, 'Customers', 'Save&id=' . $Qcustomers->valueInt('customers_id')), $customer_icon . '&nbsp;' . $Qcustomers->valueProtected('customers_firstname') . ' ' . $Qcustomers->valueProtected('customers_lastname')) . '</td>' . '      <td>' . $Qcustomers->value('date_account_created') . '</td>' . '      <td align="center">' . HTML::icon($Qcustomers->valueInt('customers_status') === 1 ? 'checkbox_ticked.gif' : 'checkbox_crossed.gif', null, null) . '</td>' . '    </tr>';
             $counter++;
         }
         $this->_data .= '  </tbody>' . '</table>';
     }
 }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:28,代码来源:Customers.php

示例2: __construct

 public function __construct()
 {
     $OSCOM_Language = Registry::get('Language');
     $OSCOM_Template = Registry::get('Template');
     $OSCOM_Language->loadIniFile('modules/Dashboard/ErrorLog.php');
     $this->_title = OSCOM::getDef('admin_dashboard_module_errorlog_title');
     $this->_title_link = OSCOM::getLink(null, 'ErrorLog');
     if (Access::hasAccess(OSCOM::getSite(), 'ErrorLog')) {
         $this->_data = '<table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable">' . '  <thead>' . '    <tr>' . '      <th>' . OSCOM::getDef('admin_dashboard_module_errorlog_table_heading_date') . '</th>' . '      <th>' . OSCOM::getDef('admin_dashboard_module_errorlog_table_heading_message') . '</th>' . '    </tr>' . '  </thead>' . '  <tbody>';
         if (ErrorHandler::getTotalEntries() > 0) {
             $counter = 0;
             foreach (ErrorHandler::getAll(6) as $row) {
                 $this->_data .= '    <tr onmouseover="$(this).addClass(\'mouseOver\');" onmouseout="$(this).removeClass(\'mouseOver\');"' . ($counter % 2 ? ' class="alt"' : '') . '>' . '      <td style="white-space: nowrap;">' . $OSCOM_Template->getIcon(16, 'errorlog.png') . '&nbsp;' . DateTime::getShort(DateTime::fromUnixTimestamp($row['timestamp']), true) . '</td>' . '      <td>' . HTML::outputProtected(substr($row['message'], 0, 60)) . '..</td>' . '    </tr>';
                 $counter++;
             }
         } elseif (!is_writable(OSCOM::BASE_DIRECTORY . 'Work/Database/')) {
             $this->_data .= '    <tr onmouseover="$(this).addClass(\'mouseOver\');" onmouseout="$(this).removeClass(\'mouseOver\');">' . '      <td colspan="2">' . HTML::icon('cross.png') . '&nbsp;' . sprintf(OSCOM::getDef('admin_dashboard_module_errorlog_not_writable'), OSCOM::BASE_DIRECTORY . 'Work/Database/') . '</td>' . '    </tr>';
         } else {
             $this->_data .= '    <tr onmouseover="$(this).addClass(\'mouseOver\');" onmouseout="$(this).removeClass(\'mouseOver\');">' . '      <td colspan="2">' . HTML::icon('tick.png') . '&nbsp;' . OSCOM::getDef('admin_dashboard_module_errorlog_no_errors_found') . '</td>' . '    </tr>';
         }
         $this->_data .= '  </tbody>' . '</table>';
     }
 }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:23,代码来源:ErrorLog.php

示例3: get

 public function get($group = null)
 {
     if (empty($group)) {
         $group = OSCOM::getSiteApplication();
     }
     $result = false;
     if ($this->exists($group)) {
         $data = array();
         foreach ($this->_data[$group] as $message) {
             $data['messageStack' . ucfirst($message['type'])][] = $message['text'];
         }
         $result = '';
         foreach ($data as $type => $messages) {
             $result .= '<div class="' . HTML::outputProtected($type) . '" onmouseover="$(this).find(\'span:first\').show();" onmouseout="$(this).find(\'span:first\').hide();"><span style="float: right; display: none;"><a href="#" onclick="$(this).parent().parent().slideFadeToggle();">' . HTML::icon('minimize.png', 'Hide') . '</a></span>';
             foreach ($messages as $message) {
                 $result .= '<p>' . HTML::outputProtected($message) . '</p>';
             }
             $result .= '</div>';
         }
         unset($this->_data[$group]);
     }
     return $result;
 }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:23,代码来源:MessageStack.php

示例4: feedDataTable

  var countryEditLink = '<?php 
echo OSCOM::getLink(null, null, 'Save&id=COUNTRYID');
?>
';
  var countryEditLinkIcon = '<?php 
echo HTML::icon('edit.png');
?>
';

  var countryDeleteLink = '<?php 
echo OSCOM::getLink(null, null, 'Delete&id=COUNTRYID');
?>
';
  var countryDeleteLinkIcon = '<?php 
echo HTML::icon('trash.png');
?>
';

  var osC_DataTable = new osC_DataTable();
  osC_DataTable.load();

  function feedDataTable(data) {
    var rowCounter = 0;

    for ( var r in data.entries ) {
      var record = data.entries[r];

      var newRow = $('#' + dataTableName)[0].tBodies[0].insertRow(rowCounter);
      newRow.id = 'row' + parseInt(record.countries_id);
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:29,代码来源:main.php

示例5: showNewAddressForm

';
var edit_icon = '<?php 
echo HTML::icon('edit.png');
?>
';
var trash_icon = '<?php 
echo HTML::icon('trash.png');
?>
';
var undo_icon = '<?php 
echo HTML::icon('undo.png');
?>
';

var ab_default_marker = '<div class="abDefault" style="float: left;"><?php 
echo HTML::icon('default.png', OSCOM::getDef('primary_address'));
?>
</div>';
var ab_default_orig = 'abEntry' + $('input[name="ab_default_id"]').val();
var ab_default = ab_default_orig;

$('#' + ab_default).append(ab_default_marker);

function showNewAddressForm() {
  $('#sectionMenuContainer').animate({'opacity': '0.30'}, 'fast').children().attr('disabled', true);
  $('#formButtons').animate({'opacity': '0.30'}, 'fast').children().attr('disabled', true);

  $('#sectionMenu_addressBook').hide();

  $('#addressBookForm #abSubmitButtonsNew').show();
  $('#addressBookForm #abSubmitButtonsEdit').hide();
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:section_addressBook.php

示例6:

?>

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

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

<div class="infoBox">
  <h3><?php 
echo HTML::icon('trash.png') . ' ' . $OSCOM_ObjectInfo->getProtected('name');
?>
</h3>

<?php 
if ($OSCOM_ObjectInfo->get('code') == DEFAULT_LANGUAGE) {
    ?>

  <p><?php 
    echo '<b>' . OSCOM::getDef('introduction_delete_language_invalid') . '</b>';
    ?>
</p>

  <p><?php 
    echo HTML::button(array('href' => OSCOM::getLink(), 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back')));
    ?>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:delete.php

示例7: feedDataTable

  var customerEditLinkIcon = '<?php 
echo HTML::icon('edit.png');
?>
';

  var customerDeleteLinkIcon = '<?php 
echo HTML::icon('trash.png');
?>
';

  var customerGenderMaleIcon = '<?php 
echo HTML::icon('user_male.png');
?>
';
  var customerGenderFemaleIcon = '<?php 
echo HTML::icon('user_female.png');
?>
';

  var showCustomerGender = '<?php 
echo ACCOUNT_GENDER;
?>
';

  var osC_DataTable = new osC_DataTable();
  osC_DataTable.load();

  function feedDataTable(data) {
    var rowCounter = 0;

    for ( var r in data.entries ) {
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:main.php

示例8:

<form id="cMoveBatchForm" name="cMoveBatch" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'BatchMove&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>

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

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

  <fieldset>

<?php 
$categories = '';
foreach ($_POST['batch'] as $c) {
    $categories .= HTML::hiddenField('batch[]', $c) . '<b>' . $OSCOM_CategoryTree->getData($c, 'name') . '</b>, ';
}
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:batch_move.php

示例9:

?>

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

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

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

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

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

  <fieldset>
    <p><label for="tax_zone_id"><?php 
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:entries_new.php

示例10:

?>

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

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

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

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

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

  <fieldset>
    <p><label for="key"><?php 
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:definitions_new.php

示例11:

?>

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

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

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

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

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

  <fieldset>
    <p><?php 
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:update_rates.php

示例12:

?>

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

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

<div class="infoBox">
  <h3><?php 
echo HTML::icon('trash.png') . ' ' . $OSCOM_ObjectInfo->get('tax_class_title') . ': ' . $OSCOM_ObjectInfo->getProtected('geo_zone_name');
?>
</h3>

  <form name="rDelete" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'EntryDelete&Process&id=' . $_GET['id'] . '&rID=' . $OSCOM_ObjectInfo->getInt('tax_rates_id'));
?>
" method="post">

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

  <p><?php 
echo '<b>' . $OSCOM_ObjectInfo->getProtected('tax_class_title') . ': ' . $OSCOM_ObjectInfo->getProtected('geo_zone_name') . '</b>';
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:entries_delete.php

示例13:

?>

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

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

<div class="infoBox">
  <h3><?php 
echo HTML::icon('edit.png') . ' ' . $OSCOM_ObjectInfo->getProtected('geo_zone_name');
?>
</h3>

  <form name="zEdit" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'Save&Process&id=' . $OSCOM_ObjectInfo->getInt('geo_zone_id'));
?>
" method="post">

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

  <fieldset>
    <p><label for="zone_name"><?php 
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:edit.php

示例14: foreach

       '  </li>';
?>

  </ul>

<?php
  $total_shortcuts = 0;

  if ( isset($_SESSION[OSCOM::getSite()]['id']) ) {
    echo '<ul class="apps" style="float: right;">';

    if ( $OSCOM_Application->canLinkTo() ) {
      if ( Access::isShortcut(OSCOM::getSiteApplication()) ) {
        echo '  <li class="shortcuts">' . HTML::link(OSCOM::getLink(null, 'Dashboard', 'RemoveShortcut&shortcut=' . OSCOM::getSiteApplication()), HTML::icon('shortcut_remove.png')) . '</li>';
      } else {
        echo '  <li class="shortcuts">' . HTML::link(OSCOM::getLink(null, 'Dashboard', 'AddShortcut&shortcut=' . OSCOM::getSiteApplication()), HTML::icon('shortcut_add.png')) . '</li>';
      }
    }

    if ( Access::hasShortcut() ) {
      echo '  <li class="shortcuts">';

      foreach ( Access::getShortcuts() as $shortcut ) {
        echo '<a href="' . OSCOM::getLink(null, $shortcut['module']) . '" id="shortcut-' . $shortcut['module'] . '">' . $OSCOM_Template->getIcon(16, $shortcut['icon'], $shortcut['title']) . '<div class="notBubble"></div></a>';

        $total_shortcuts++;
      }

      echo '  </li>';
    }
开发者ID:haraldpdl,项目名称:oscommerce,代码行数:30,代码来源:header.php

示例15: Object

  var moduleParamsCookieName = 'oscom_admin_' + pageModule;
  var dataTablePageSetName = 'install_page';

  var moduleParams = new Object();
  moduleParams[dataTablePageSetName] = 1;
  moduleParams['search'] = '';

  if ( $.cookie(moduleParamsCookieName) != null ) {
    moduleParams = $.secureEvalJSON($.cookie(moduleParamsCookieName));
  }

  var dataTableName = 'productAttributesDataTable';
  var dataTableDataURL = '<?php echo OSCOM::getRPCLink(null, null, 'GetUninstalled'); ?>';

  var paInstallLink = '<?php echo OSCOM::getLink(null, null, 'Install&Process&code=PACODE'); ?>';
  var paInstallLinkIcon = '<?php echo HTML::icon('install.png'); ?>';

  var osC_DataTable = new osC_DataTable();
  osC_DataTable.load();

  function feedDataTable(data) {
    var rowCounter = 0;

    for ( var r in data.entries ) {
      var record = data.entries[r];

      var newRow = $('#' + dataTableName)[0].tBodies[0].insertRow(rowCounter);
      newRow.id = 'row' + record.code;

      $('#row' + record.code).hover( function() { $(this).addClass('mouseOver'); }, function() { $(this).removeClass('mouseOver'); }).css('cursor', 'pointer');
开发者ID:haraldpdl,项目名称:oscommerce,代码行数:30,代码来源:install.php


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