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


PHP HTML::iconRaw方法代碼示例

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


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

示例1:

?>
</th>
      <th width="150"><?php 
echo OSCOM::getDef('table_heading_action');
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th align="right" colspan="4"><?php 
echo HTML::submitImage(HTML::iconRaw('trash.png'), OSCOM::getDef('icon_trash'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchDelete') . '\';"');
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </tfoot>
  <tbody>
  </tbody>
</table>

</form>

<div style="padding: 2px;">
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:31,代碼來源:main.php

示例2:

?>
</th>
      <th width="150"><?php 
echo OSCOM::getDef('table_heading_action');
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th align="right" colspan="2"><?php 
echo HTML::submitImage(HTML::iconRaw('move.png'), OSCOM::getDef('icon_move'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchMove&cid=' . $OSCOM_Application->getCurrentCategoryID()) . '\';"') . '&nbsp;<a href="#" onclick="$(\'#dialogBatchDeleteConfirm\').dialog(\'open\'); return false;">' . HTML::icon('trash.png') . '</a>';
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </tfoot>
  <tbody>
  </tbody>
</table>

</form>

<div style="padding: 2px;">
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:31,代碼來源:main.php

示例3: alert

            $('#ab_state').val(state);
          }
        }
      } else {
        alert('Error: The country zones list could not be populated.'); // HPDL improve
      }
    });
  });
});

var gender_male_icon = '<?php 
echo HTML::iconRaw('user_male.png', '32x32');
?>
';
var gender_female_icon = '<?php 
echo HTML::iconRaw('user_female.png', '32x32');
?>
';
var telephone_icon = '<?php 
echo HTML::icon('telephone.png', null, null, 'style="margin-right: 6px;"');
?>
';
var fax_icon = '<?php 
echo HTML::icon('fax.png', null, null, 'style="margin-right: 6px;"');
?>
';
var edit_icon = '<?php 
echo HTML::icon('edit.png');
?>
';
var trash_icon = '<?php 
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:31,代碼來源:section_addressBook.php

示例4:

?>
</th>
      <th width="150"><?php 
echo OSCOM::getDef('table_heading_action');
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th align="right" colspan="3"><?php 
echo HTML::submitImage(HTML::iconRaw('edit.png'), OSCOM::getDef('icon_edit'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchSaveDefinitions&id=' . $_GET['id'] . '&group=' . $_GET['group']) . '\';"') . '&nbsp;' . HTML::submitImage(HTML::iconRaw('trash.png'), OSCOM::getDef('icon_trash'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchDeleteDefinitions&id=' . $_GET['id'] . '&group=' . $_GET['group']) . '\';"');
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </tfoot>
  <tbody>
  </tbody>
</table>

</form>

<div style="padding: 2px;">
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:31,代碼來源:definitions.php

示例5:

?>
</th>
      <th width="150"><?php 
echo OSCOM::getDef('table_heading_action');
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th align="right" colspan="3"><?php 
echo HTML::submitImage(HTML::iconRaw('edit.png'), OSCOM::getDef('icon_edit'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchSaveEntries&id=' . $_GET['id']) . '\';"');
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </tfoot>
  <tbody>
  </tbody>
</table>

</form>

<div style="padding: 2px; min-height: 16px;">
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:31,代碼來源:entries.php

示例6: get

 /**
  * Get the messages belonging to a group. The messages are placed into an
  * unsorted list wrapped in a DIV element with the "messageStack" style sheet
  * class.
  *
  * @param string $group The name of the group to get the messages from
  * @since v3.0.0
  */
 public function get($group = null)
 {
     if (!isset($group)) {
         $group = OSCOM::getSiteApplication();
     }
     $result = false;
     if ($this->exists($group)) {
         $result = '<div class="messageStack"><ul>';
         foreach ($this->_data[$group] as $message) {
             switch ($message['type']) {
                 case 'error':
                     $bullet_image = 'error.gif';
                     break;
                 case 'warning':
                     $bullet_image = 'warning.gif';
                     break;
                 case 'success':
                 default:
                     $bullet_image = 'success.gif';
                     break;
             }
             $result .= '<li style="list-style-image: url(\'' . HTML::iconRaw($bullet_image) . '\')">' . HTML::output($message['text']) . '</li>';
         }
         $result .= '</ul></div>';
         unset($this->_data[$group]);
     }
     return $result;
 }
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:36,代碼來源:MessageStack.php

示例7: testSubmitImage

 public function testSubmitImage()
 {
     $this->assertEquals('<input type="image" src="public/sites/Shop/templates/oscom/images/icons/16x16/edit.png" title="Edit" id="editSubmitImage" />', HTML::submitImage(HTML::iconRaw('edit.png'), 'Edit', 'id="editSubmitImage"'));
 }
開發者ID:digitaldevelopers,項目名稱:oscommerce,代碼行數:4,代碼來源:HTMLTest.php

示例8:

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

<table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable" id="productsDataTable">
  <thead>
    <tr>
      <th><?php echo OSCOM::getDef('table_heading_products'); ?></th>
      <th><?php echo OSCOM::getDef('table_heading_price'); ?></th>
      <th><?php echo OSCOM::getDef('table_heading_quantity'); ?></th>
      <th width="150"><?php echo OSCOM::getDef('table_heading_action'); ?></th>
      <th align="center" width="20"><?php echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"'); ?></th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th align="right" colspan="4"><?php echo HTML::submitImage(HTML::iconRaw('copy.png'), OSCOM::getDef('icon_copy'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchCopy&cid=' . $OSCOM_Application->getCurrentCategoryID()) . '\';"') . '&nbsp;<a href="#" onclick="$(\'#dialogBatchDeleteConfirm\').dialog(\'open\'); return false;">' . HTML::icon('trash.png') . '</a>'; ?></th>
      <th align="center" width="20"><?php echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"'); ?></th>
    </tr>
  </tfoot>
  <tbody>
  </tbody>
</table>

</form>

<div style="padding: 2px;">
  <span id="dataTableLegend"><?php echo '<b>' . OSCOM::getDef('table_action_legend') . '</b> ' . HTML::icon('edit.png') . '&nbsp;' . OSCOM::getDef('icon_edit') . '&nbsp;&nbsp;' . HTML::icon('copy.png') . '&nbsp;' . OSCOM::getDef('icon_copy') . '&nbsp;&nbsp;' . HTML::icon('trash.png') . '&nbsp;' . OSCOM::getDef('icon_trash'); ?></span>
  <span id="batchPullDownMenu"></span>
</div>

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


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