コード例 #1
0
 public function initialize()
 {
     $OSCOM_Product = Registry::exists('Product') ? Registry::get('Product') : null;
     if (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid()) {
         // HPDL && ($osC_Template->getModule() != 'tell_a_friend')) {
         $this->_content = '<form name="tell_a_friend" action="' . OSCOM::getLink(null, null, 'TellAFriend&' . $OSCOM_Product->getKeyword()) . '" method="post">' . "\n" . HTML::inputField('to_email_address', null, 'style="width: 80%;"') . '&nbsp;' . HTML::submitImage('button_tell_a_friend.gif', OSCOM::getDef('box_tell_a_friend_text')) . '<br />' . OSCOM::getDef('box_tell_a_friend_text') . "\n" . '</form>' . "\n";
     }
 }
コード例 #2
0
ファイル: main.php プロジェクト: digitaldevelopers/oscommerce
?>
</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;">
コード例 #3
0
ファイル: main.php プロジェクト: digitaldevelopers/oscommerce
?>
</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;">
コード例 #4
0
?>
</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;">
コード例 #5
0
?>
</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;">
コード例 #6
0
 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"'));
 }
コード例 #7
0
ファイル: main.php プロジェクト: haraldpdl/oscommerce
<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>