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


PHP osc_draw_input_field函数代码示例

本文整理汇总了PHP中osc_draw_input_field函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_draw_input_field函数的具体用法?PHP osc_draw_input_field怎么用?PHP osc_draw_input_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: initialize

 function initialize()
 {
     global $osC_Language, $osC_Template, $osC_Product;
     if (isset($osC_Product) && is_a($osC_Product, 'osC_Product') && $osC_Template->getModule() != 'tell_a_friend') {
         $this->_content = '<form name="tell_a_friend" action="' . osc_href_link(FILENAME_PRODUCTS, 'tell_a_friend&' . $osC_Product->getID()) . '" method="post">' . "\n" . osc_draw_input_field('to_email_address', null, 'style="width: 80%;"') . '&nbsp;' . osc_draw_image_submit_button('button_tell_a_friend.gif', $osC_Language->get('box_tell_a_friend_text')) . '<br />' . $osC_Language->get('box_tell_a_friend_text') . "\n" . '</form>' . "\n";
     }
 }
开发者ID:sajad1441,项目名称:TomatoShop-v1,代码行数:7,代码来源:tell_a_friend.php

示例2: 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" . osc_draw_input_field('to_email_address', null, 'style="width: 80%;"') . '&nbsp;' . osc_draw_image_submit_button('button_tell_a_friend.gif', OSCOM::getDef('box_tell_a_friend_text')) . '<br />' . OSCOM::getDef('box_tell_a_friend_text') . "\n" . '</form>' . "\n";
     }
 }
开发者ID:kdexter,项目名称:oscommerce,代码行数:8,代码来源:Controller.php

示例3: 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>' . osc_draw_input_field('variants[' . $data['group_id'] . '][' . $field['id'] . ']', null, 'id="variants_' . $data['group_id'] . '_' . $i . '"') . '</td>' . '  </tr>';
     }
     $string .= '</table>';
     return $string;
 }
开发者ID:heshuai64,项目名称:gamestore,代码行数:11,代码来源:text_field.php

示例4: selection

 function selection()
 {
     global $osC_Language, $osC_ShoppingCart;
     $account_types_array = array();
     foreach ($this->_getAccountTypes() as $key => $type) {
         $account_types_array[] = array('id' => $key, 'text' => $type);
     }
     $selection = array('id' => $this->_code, 'module' => $this->_method_title, 'fields' => array(array('title' => $osC_Language->get('payment_wirecard_eft_bank_owner_firstname'), 'field' => osc_draw_input_field('wirecard_eft_owner_first', $osC_ShoppingCart->getBillingAddress('firstname'))), array('title' => $osC_Language->get('payment_wirecard_eft_bank_owner_lastname'), 'field' => osc_draw_input_field('wirecard_eft_owner_last', $osC_ShoppingCart->getBillingAddress('lastname'))), array('title' => $osC_Language->get('payment_wirecard_eft_account_type'), 'field' => osc_draw_pull_down_menu('wirecard_eft_account_type', $account_types_array)), array('title' => $osC_Language->get('payment_wirecard_eft_bank_account_number'), 'field' => osc_draw_input_field('wirecard_eft_account')), array('title' => $osC_Language->get('payment_wirecard_eft_bank_code'), 'field' => osc_draw_input_field('wirecard_eft_bank')), array('title' => $osC_Language->get('payment_wirecard_eft_check_number'), 'field' => osc_draw_input_field('wirecard_eft_check_number'))));
     if ($osC_ShoppingCart->getBillingAddress('country_iso_code_2') == 'IT') {
         $selection['fields'][] = array('title' => $osC_Language->get('payment_wirecard_eft_id_number'), 'field' => osc_draw_input_field('wirecard_eft_id_number'));
     }
     return $selection;
 }
开发者ID:Doluci,项目名称:tomatocart,代码行数:13,代码来源:wirecard_eft.php

示例5: selection

 function selection()
 {
     global $osC_Database, $osC_Language, $osC_ShoppingCart;
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1)));
     }
     $year = date('Y');
     for ($i = $year; $i < $year + 10; $i++) {
         $expires_year[] = array('id' => $i, 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->_code, 'module' => $this->_method_title, 'fields' => array(array('title' => $osC_Language->get('payment_cc_credit_card_owner'), 'field' => osc_draw_input_field('cc_owner', $osC_ShoppingCart->getBillingAddress('firstname') . ' ' . $osC_ShoppingCart->getBillingAddress('lastname'))), array('title' => $osC_Language->get('payment_cc_credit_card_number'), 'field' => osc_draw_input_field('cc_number')), array('title' => $osC_Language->get('payment_cc_credit_card_expiry_date'), 'field' => osc_draw_pull_down_menu('cc_expires_month', $expires_month) . '&nbsp;' . osc_draw_pull_down_menu('cc_expires_year', $expires_year))));
     return $selection;
 }
开发者ID:Doluci,项目名称:tomatocart,代码行数:13,代码来源:cc.php

示例6: selection

 function selection()
 {
     global $osC_Database, $osC_Language, $osC_ShoppingCart;
     $selection = array('id' => $this->_code, 'module' => $this->_method_title);
     if (MODULE_PAYMENT_EWAYPAYMENT_PROCESSING_METHOD == REAL_TIME || MODULE_PAYMENT_EWAYPAYMENT_PROCESSING_METHOD == REAL_TIME_CVN || MODULE_PAYMENT_EWAYPAYMENT_PROCESSING_METHOD == GEO_IP_ANTI_FRAUD) {
         for ($i = 1; $i < 13; $i++) {
             $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1)));
         }
         $year = date('Y');
         for ($i = $year; $i < $year + 10; $i++) {
             $expires_year[] = array('id' => $i, 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
         }
         $selection['fields'] = array(array('title' => $osC_Language->get('payment_eway_au_credit_card_owner'), 'field' => osc_draw_input_field('eway_au_cc_owner', $osC_ShoppingCart->getBillingAddress('firstname') . ' ' . $osC_ShoppingCart->getBillingAddress('lastname'))), array('title' => $osC_Language->get('payment_eway_au_credit_card_number'), 'field' => osc_draw_input_field('eway_au_cc_number')), array('title' => $osC_Language->get('payment_eway_au_credit_card_expiry_date'), 'field' => osc_draw_pull_down_menu('eway_au_cc_expires_month', $expires_month) . '&nbsp;' . osc_draw_pull_down_menu('eway_au_cc_expires_year', $expires_year)), array('title' => $osC_Language->get('payment_eway_au_credit_card_cvv'), 'field' => osc_draw_input_field('eway_au_cc_cvv')));
     }
     return $selection;
 }
开发者ID:4DvAnCeBoY,项目名称:tomatocart-shoppingcart,代码行数:16,代码来源:eway_au.php

示例7: countryChange

 /**
  * handle the country change event
  *
  * @access  public
  * @return json
  */
 function countryChange()
 {
     global $toC_Json, $osC_Database, $osC_Language;
     $Qzones = $osC_Database->query('select zone_name from :table_zones where zone_country_id = :zone_country_id order by zone_name');
     $Qzones->bindTable(':table_zones', TABLE_ZONES);
     $Qzones->bindInt(':zone_country_id', $_REQUEST['country_id']);
     $Qzones->execute();
     $zones_array = array();
     while ($Qzones->next()) {
         $zones_array[] = array('id' => $Qzones->value('zone_name'), 'text' => $Qzones->value('zone_name'));
     }
     if (sizeof($zones_array) > 0) {
         $response = array('success' => true, 'html' => osc_draw_pull_down_menu('state', $zones_array));
     } else {
         $response = array('success' => true, 'html' => osc_draw_input_field('state'));
     }
     echo $toC_Json->encode($response);
 }
开发者ID:4DvAnCeBoY,项目名称:tomatocart-shoppingcart,代码行数:24,代码来源:account.php

示例8: selection

 function selection()
 {
     global $order, $osC_Database;
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $Qcredit_cards = $osC_Database->query('select credit_card_name, credit_card_code from :table_credit_cards where credit_card_status = :credit_card_status');
     $Qcredit_cards->bindRaw(':table_credit_cards', TABLE_CREDIT_CARDS);
     $Qcredit_cards->bindInt(':credit_card_status', '1');
     $Qcredit_cards->setCache('credit-cards');
     $Qcredit_cards->execute();
     while ($Qcredit_cards->next()) {
         $credit_cards[] = array('id' => $Qcredit_cards->value('credit_card_code'), 'text' => $Qcredit_cards->value('credit_card_name'));
     }
     $Qcredit_cards->freeResult();
     $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER, 'field' => osc_draw_input_field('cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_TYPE, 'field' => osc_draw_pull_down_menu('cc_type', $credit_cards)), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER, 'field' => osc_draw_input_field('cc_number')), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES, 'field' => osc_draw_pull_down_menu('cc_expires_month', $expires_month) . '&nbsp;' . osc_draw_pull_down_menu('cc_expires_year', $expires_year))));
     return $selection;
 }
开发者ID:itnovator,项目名称:oscommerce_cvs,代码行数:22,代码来源:cc.php

示例9: confirmation

 function confirmation()
 {
     global $osC_ShoppingCart, $osC_Language;
     $types_array = array();
     foreach ($this->cc_types as $key => $value) {
         $types_array[] = array('id' => $key, 'text' => $value);
     }
     $today = getdate();
     $months_array = array();
     for ($i = 1; $i < 13; $i++) {
         $months_array[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $year_valid_from_array = array();
     for ($i = $today['year'] - 10; $i < $today['year'] + 1; $i++) {
         $year_valid_from_array[] = array('id' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $year_expires_array = array();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $year_expires_array[] = array('id' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $confirmation = array('fields' => array(array('title' => $osC_Language->get('payment_paypal_direct_card_owner'), 'field' => osc_draw_input_field('cc_owner', $osC_ShoppingCart->getBillingAddress('firstname') . ' ' . $osC_ShoppingCart->getBillingAddress('lastname'))), array('title' => $osC_Language->get('payment_paypal_direct_card_type'), 'field' => osc_draw_pull_down_menu('cc_type', $types_array)), array('title' => $osC_Language->get('payment_paypal_direct_card_number'), 'field' => osc_draw_input_field('cc_number_nh-dns')), array('title' => $osC_Language->get('payment_paypal_direct_card_valid_from'), 'field' => osc_draw_pull_down_menu('cc_starts_month', $months_array) . '&nbsp;' . osc_draw_pull_down_menu('cc_starts_year', $year_valid_from_array) . ' ' . $osC_Language->get('payment_paypal_direct_card_valid_from_info')), array('title' => $osC_Language->get('payment_paypal_direct_card_expires'), 'field' => osc_draw_pull_down_menu('cc_expires_month', $months_array) . '&nbsp;' . osc_draw_pull_down_menu('cc_expires_year', $year_expires_array)), array('title' => $osC_Language->get('payment_paypal_direct_card_cvc'), 'field' => osc_draw_input_field('cc_cvc_nh-dns', '', 'size="5" maxlength="4"')), array('title' => $osC_Language->get('payment_paypal_direct_card_issue_number'), 'field' => osc_draw_input_field('cc_issue_nh-dns', '', 'size="3" maxlength="2"') . ' ' . $osC_Language->get('payment_paypal_direct_card_issue_number_info'))));
     return $confirmation;
 }
开发者ID:Doluci,项目名称:tomatocart,代码行数:23,代码来源:paypal_direct.php

示例10: osc_draw_input_field

  <p><?php 
echo $osC_Language->get('introduction_edit_zone_group');
?>
</p>

  <fieldset>
    <div><label for="zone_name"><?php 
echo $osC_Language->get('field_name');
?>
</label><?php 
echo osc_draw_input_field('zone_name', $osC_ObjectInfo->get('geo_zone_name'));
?>
</div>
    <div><label for="zone_description"><?php 
echo $osC_Language->get('field_description');
?>
</label><?php 
echo osc_draw_input_field('zone_description', $osC_ObjectInfo->get('geo_zone_description'));
?>
</div>
  </fieldset>

  <p align="center"><?php 
echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_save') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()) . '\';" class="operationButton" />';
?>
</p>

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

示例11: osc_draw_input_field

?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo OSCOM::getDef('param_administrator_username') . '<br />' . osc_draw_input_field('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 />' . osc_draw_input_field('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 osc_draw_checkbox_field('DB_INSERT_SAMPLE_DATA', 'true', true) . '&nbsp;' . OSCOM::getDef('param_database_import_sample_data');
?>
</td>
        <td class="inputDescription"><?php 
echo OSCOM::getDef('param_database_import_sample_data_description');
?>
开发者ID:kdexter,项目名称:oscommerce,代码行数:31,代码来源:step_2.php

示例12: Copyright

  Copyright (c) 2004 osCommerce

  Released under the GNU General Public License
*/
?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr>
    <td><h1><?php 
echo HEADING_TITLE;
?>
</h1></td>
    <td class="smallText" align="right">
<?php 
echo tep_draw_form('search', FILENAME_CUSTOMERS, '', 'get') . HEADING_TITLE_SEARCH . ' ' . osc_draw_input_field('search') . '<input type="submit" value="GO" class="operationButton"></form>';
?>
    </td>
  </tr>
</table>

<div id="infoBox_cDefault" <?php 
if (!empty($action)) {
    echo 'style="display: none;"';
}
?>
>
  <table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable">
    <thead>
      <tr>
        <th><?php 
开发者ID:itnovator,项目名称:oscommerce_cvs,代码行数:30,代码来源:customers.php

示例13: tep_draw_separator

              </tr>
              <tr>
                <td class="main" colspan="2"><?php 
echo TEXT_MAIN;
?>
</td>
              </tr>
              <tr>
                <td><?php 
echo tep_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
              </tr>
              <tr>
                <td class="main"><?php 
echo '<b>' . ENTRY_EMAIL_ADDRESS . '</b> ' . osc_draw_input_field('email_address');
?>
</td>
              </tr>
              <tr>
                <td><?php 
echo tep_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
开发者ID:itnovator,项目名称:oscommerce_cvs,代码行数:31,代码来源:password_forgotten.php

示例14: osc_draw_password_field

      <div class="form-group has-feedback">
        <label for="passWord" class="control-label col-xs-3">Password</label>
        <div class="col-xs-9">
          <?php 
echo osc_draw_password_field('DB_SERVER_PASSWORD', NULL, 'required aria-required="true" id="passWord"');
?>
          <span class="fa fa-asterisk form-control-feedback text-danger"></span>
          <span class="help-block">The password that is used together with the username to connect to the database server.</span>
        </div>
      </div>
    
      <div class="form-group has-feedback">
        <label for="dbName" class="control-label col-xs-3">Database Name</label>
        <div class="col-xs-9">
          <?php 
echo osc_draw_input_field('DB_DATABASE', NULL, 'required aria-required="true" id="dbName" placeholder="Database"');
?>
          <span class="fa fa-asterisk form-control-feedback text-danger"></span>
          <span class="help-block">The name of the database to hold the data in.</span>
        </div>
      </div>

      <p><?php 
echo osc_draw_button('Continue To Step 2', 'triangle-1-e', null, 'primary', null, 'btn-success btn-block');
?>
</p>

    </form>
    
  </div>
  <div class="col-xs-12 col-sm-pull-9 col-sm-3">
开发者ID:katapofatico,项目名称:Responsive-osCommerce,代码行数:31,代码来源:install.php

示例15: selection

 function selection()
 {
     global $osC_Database, $osC_Language, $order;
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $Qcredit_cards = $osC_Database->query('select credit_card_name, credit_card_code from :table_credit_cards where credit_card_status = :credit_card_status');
     $Qcredit_cards->bindRaw(':table_credit_cards', TABLE_CREDIT_CARDS);
     $Qcredit_cards->bindInt(':credit_card_status', '1');
     $Qcredit_cards->setCache('credit-cards');
     $Qcredit_cards->execute();
     while ($Qcredit_cards->next()) {
         $credit_cards[] = array('id' => $Qcredit_cards->value('credit_card_code'), 'text' => $Qcredit_cards->value('credit_card_name'));
     }
     $Qcredit_cards->freeResult();
     $selection = array('id' => $this->_code, 'module' => $this->_title, 'fields' => array(array('title' => $osC_Language->get('payment_ipayment_credit_card_owner'), 'field' => osc_draw_input_field('ipayment_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => $osC_Language->get('payment_ipayment_credit_card_type'), 'field' => osc_draw_pull_down_menu('ipayment_cc_type', $credit_cards)), array('title' => $osC_Language->get('payment_ipayment_credit_card_number'), 'field' => osc_draw_input_field('ipayment_cc_number')), array('title' => $osC_Language->get('payment_ipayment_credit_card_expiry_date'), 'field' => osc_draw_pull_down_menu('ipayment_cc_expires_month', $expires_month) . '&nbsp;' . osc_draw_pull_down_menu('ipayment_cc_expires_year', $expires_year)), array('title' => $osC_Language->get('payment_ipayment_credit_card_checknumber'), 'field' => osc_draw_input_field('ipayment_cc_checkcode', null, 'size="4" maxlength="4"') . '&nbsp;<small>' . $osC_Language->get('payment_ipayment_credit_card_checknumber_location') . '</small>')));
     return $selection;
 }
开发者ID:heshuai64,项目名称:gamestore,代码行数:22,代码来源:ipayment.php


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