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


PHP HTML::inputField方法代码示例

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


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

示例1: initialize

 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";
     }
 }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:8,代码来源:Controller.php

示例2: parse

 public static function parse($data)
 {
     $string = '<table border="0" cellspacing="0" cellpadding="2">';
     $i = 0;
     foreach ($data['data'] as $field) {
         $i++;
         $string .= '  <tr>' . '    <td width="100">' . $field['text'] . ':</td>' . '    <td>' . HTML::inputField('variants[' . $data['group_id'] . '][' . $field['id'] . ']', null, 'id="variants_' . $data['group_id'] . '_' . $i . '"') . '</td>' . '  </tr>';
     }
     $string .= '</table>';
     return $string;
 }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:11,代码来源:TextField.php

示例3:

</div>

<div class="moduleBox">
  <h6><?php 
echo OSCOM::getDef('friend_details_title');
?>
</h6>

  <div class="content">
    <ol>
      <li><?php 
echo HTML::label(OSCOM::getDef('field_tell_a_friend_friends_name'), 'to_name', null, true) . HTML::inputField('to_name');
?>
</li>
      <li><?php 
echo HTML::label(OSCOM::getDef('field_tell_a_friend_friends_email_address'), 'to_email_address', null, true) . HTML::inputField('to_email_address');
?>
</li>
    </ol>
  </div>
</div>

<div class="moduleBox">
  <h6><?php 
echo OSCOM::getDef('tell_a_friend_message');
?>
</h6>

  <div class="content">
    <ol>
      <li><?php 
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:tell_a_friend.php

示例4: array

echo HTML::selectMenu('ab_state', array());
?>
');

          for (var i = 0; i < len; i++) {
            html += '<option value="' + response.zones[i].id + '">' + response.zones[i].name + '</option>';
          }

          $('#ab_state').append(html);

          if ( zone_id > 0 ) {
            $('#ab_state').val(zone_id);
          }
        } else {
          $('#ab_state').replaceWith('<?php 
echo HTML::inputField('ab_state');
?>
');

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

var gender_male_icon = '<?php 
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:section_addressBook.php

示例5:

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

  <fieldset>
    <p><label for="tax_class_title"><?php 
echo OSCOM::getDef('field_title');
?>
</label><?php 
echo HTML::inputField('tax_class_title', $OSCOM_ObjectInfo->get('tax_class_title'));
?>
</p>
    <p><label for="tax_class_description"><?php 
echo OSCOM::getDef('field_description');
?>
</label><?php 
echo HTML::inputField('tax_class_description', $OSCOM_ObjectInfo->get('tax_class_description'));
?>
</p>
  </fieldset>

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

  </form>
</div>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:29,代码来源:edit.php

示例6:

</div>

<form name="contact" action="<?php 
echo OSCOM::getLink(null, null, 'Contact&Process');
?>
" method="post">

<div class="moduleBox">
  <div class="content">
    <ol>
      <li><?php 
echo HTML::label(OSCOM::getDef('contact_name_title'), 'name') . HTML::inputField('name');
?>
</li>
      <li><?php 
echo HTML::label(OSCOM::getDef('contact_email_address_title'), 'email') . HTML::inputField('email');
?>
</li>
      <li><?php 
echo HTML::label(OSCOM::getDef('contact_enquiry_title'), 'enquiry') . HTML::textareaField('enquiry', null, 50, 15);
?>
</li>
    </ol>
  </div>
</div>

<div class="submitFormButtons" style="text-align: right;">
  <?php 
echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue')));
?>
</div>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:contact.php

示例7:

?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo OSCOM::getDef('param_administrator_username') . '<br />' . HTML::inputField('CFG_ADMINISTRATOR_USERNAME', null, 'class="text"');
?>
</td>
        <td class="inputDescription"><?php 
echo OSCOM::getDef('param_administrator_username_description');
?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo OSCOM::getDef('param_administrator_password') . '<br />' . HTML::inputField('CFG_ADMINISTRATOR_PASSWORD', null, 'class="text"');
?>
</td>
        <td class="inputDescription"><?php 
echo OSCOM::getDef('param_administrator_password_description');
?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo OSCOM::getDef('param_time_zone') . '<br />' . HTML::timeZoneSelectMenu('CFG_TIME_ZONE', ini_get('date.timezone') ?: null);
?>
</td>
        <td class="inputDescription"><?php 
echo OSCOM::getDef('param_time_zone_description');
?>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:step_2.php

示例8:

    <p><label for="tax_rate"><?php 
echo OSCOM::getDef('field_tax_rate');
?>
</label><?php 
echo HTML::inputField('tax_rate');
?>
</p>
    <p><label for="tax_description"><?php 
echo OSCOM::getDef('field_tax_rate_description');
?>
</label><?php 
echo HTML::inputField('tax_description');
?>
</p>
    <p><label for="tax_priority"><?php 
echo OSCOM::getDef('field_tax_rate_priority');
?>
</label><?php 
echo HTML::inputField('tax_priority');
?>
</p>
  </fieldset>

  <p><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . 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_new.php

示例9: json_encode

echo OSCOM::getDef('field_definition_value');
?>
</label>

<?php 
foreach ($OSCOM_Language->getAll() as $l) {
    echo '<br />' . $OSCOM_Language->showImage($l['code']) . '<br />' . HTML::textareaField('value[' . $l['id'] . ']');
}
?>

    </p>
    <p><label for="defgroup"><?php 
echo OSCOM::getDef('field_definition_group');
?>
</label><?php 
echo HTML::inputField('defgroup', isset($_GET['group']) ? $_GET['group'] : null);
?>
</p>
  </fieldset>

  <p><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'id=' . $_GET['id'] . (isset($_GET['group']) ? '&group=' . $_GET['group'] : '')), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>

  </form>
</div>

<script type="text/javascript">
  var suggestGroups = <?php 
echo json_encode($groups_array);
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:definitions_new.php

示例10:

</label><?php 
echo HTML::inputField('credit_card_name', $OSCOM_ObjectInfo->get('credit_card_name'));
?>
</p>
    <p><label for="pattern"><?php 
echo OSCOM::getDef('field_pattern');
?>
</label><?php 
echo HTML::inputField('pattern', $OSCOM_ObjectInfo->get('pattern'));
?>
</p>
    <p><label for="sort_order"><?php 
echo OSCOM::getDef('field_sort_order');
?>
</label><?php 
echo HTML::inputField('sort_order', $OSCOM_ObjectInfo->get('sort_order'));
?>
</p>
    <p><label for="credit_card_status"><?php 
echo OSCOM::getDef('field_status');
?>
</label><?php 
echo HTML::checkboxField('credit_card_status', '1', $OSCOM_ObjectInfo->get('credit_card_status'));
?>
</p>
  </fieldset>

  <p><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:edit.php

示例11: array

</li>

<?php 
if (ACCOUNT_DATE_OF_BIRTH == '1') {
    ?>

      <li><?php 
    echo HTML::label(OSCOM::getDef('field_customer_date_of_birth'), 'dob_days', null, true) . ' ' . HTML::dateSelectMenu('dob', array('year' => $Qaccount->value('customers_dob_year'), 'month' => $Qaccount->value('customers_dob_month'), 'date' => $Qaccount->value('customers_dob_date')), false, null, null, date('Y') - 1901, -5);
    ?>
</li>

<?php 
}
?>

      <li><?php 
echo HTML::label(OSCOM::getDef('field_customer_email_address'), 'email_address', null, true) . ' ' . HTML::inputField('email_address', $Qaccount->value('customers_email_address'));
?>
</li>
    </ol>
  </div>
</div>

<div class="submitFormButtons" style="text-align: right;">
  <?php 
echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue')));
?>
</div>

</form>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:edit.php

示例12:

</div>

<div class="moduleBox">
  <form name="checkout" action="<?php 
echo OSCOM::getLink(null, 'Checkout', null, 'SSL');
?>
" method="post">

  <div style="float: right;">
    <?php 
echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_checkout')));
?>
  </div>

<?php 
if (!$OSCOM_Customer->isLoggedOn() && $OSCOM_Application->requireCustomerAccount()) {
    ?>

  <div class="content">
    <?php 
    echo 'E-Mail Address: ' . HTML::inputField('email', $OSCOM_Customer->getEMailAddress()) . ' or ' . HTML::link(OSCOM::getLink(null, 'Account', 'LogIn', 'SSL'), 'Sign-In') . ' to process this order';
    ?>
  </div>

<?php 
}
?>

  </form>
</div>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:main.php

示例13:

    echo OSCOM::getDef('field_date_of_birth');
    ?>
</label><?php 
    echo HTML::inputField('dob', $new_customer ? null : DateTime::fromUnixTimestamp(DateTime::getTimestamp($OSCOM_ObjectInfo->get('customers_dob')), 'Y-m-d'));
    ?>
</p>

      <script>$('#dob').datepicker({dateFormat: 'yy-mm-dd', changeMonth: true, changeYear: true, yearRange: '-100:+0'});</script>

<?php 
}
?>

      <p><label for="email_address"><?php 
echo OSCOM::getDef('field_email_address');
?>
</label><?php 
echo HTML::inputField('email_address', $new_customer ? null : $OSCOM_ObjectInfo->get('customers_email_address'));
?>
</p>
      <p><label for="status"><?php 
echo OSCOM::getDef('field_status');
?>
</label><?php 
echo HTML::checkboxField('status', null, $new_customer ? true : $OSCOM_ObjectInfo->get('customers_status') == '1');
?>
</p>
    </fieldset>
  </div>
</div>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:section_personal.php

示例14: array

          <td width="70%" valign="top">
            <h4><?php echo OSCOM::getDef('subsection_price'); ?></h4>

            <fieldset>
              <p><label for="variants_price_tax_class"><?php echo OSCOM::getDef('field_tax_class'); ?></label><?php echo HTML::selectMenu('variants_price_tax_class', $OSCOM_Application->getTaxClassesList(), null, 'onchange="updateGross(\'variants_price\');"'); ?></p>
              <p><label for="variants_price"><?php echo OSCOM::getDef('field_price_net'); ?></label><?php echo HTML::inputField('variants_price', null, 'onkeyup="updateGross(\'variants_price\')"'); ?></p>
              <p><label for="variants_price_gross"><?php echo OSCOM::getDef('field_price_gross'); ?></label><?php echo HTML::inputField('variants_price_gross', null, 'onkeyup="updateNet(\'variants_price\')"'); ?></p>
            </fieldset>

            <h4><?php echo OSCOM::getDef('subsection_data'); ?></h4>

            <fieldset>
              <p id="vstatus"><label for="variants_status"><?php echo OSCOM::getDef('field_status'); ?></label><?php echo HTML::radioField('variants_status', array(array('id' => '1', 'text' => OSCOM::getDef('status_enabled')), array('id' => '0', 'text' => OSCOM::getDef('status_disabled')))); ?></p>
              <p><label for="variants_model"><?php echo OSCOM::getDef('field_model'); ?></label><?php echo HTML::inputField('variants_model', null); ?></p>
              <p><label for="variants_quantity"><?php echo OSCOM::getDef('field_quantity'); ?></label><?php echo HTML::inputField('variants_quantity', null); ?></p>
              <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>
开发者ID:haraldpdl,项目名称:oscommerce,代码行数:31,代码来源:section_variants.php

示例15:

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

  <fieldset>
    <p><label for="zone_name"><?php 
echo OSCOM::getDef('field_name');
?>
</label><?php 
echo HTML::inputField('zone_name');
?>
</p>
    <p><label for="zone_description"><?php 
echo OSCOM::getDef('field_description');
?>
</label><?php 
echo HTML::inputField('zone_description');
?>
</p>
  </fieldset>

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

  </form>
</div>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:29,代码来源:new.php


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