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


PHP tep_draw_selection_field函数代码示例

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


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

示例1: tep_draw_radio_field

function tep_draw_radio_field($name, $value = '', $checked = false, $parameters = '')
{
    return tep_draw_selection_field($name, 'radio', $value, $checked, $parameters);
}
开发者ID:eosc,项目名称:EosC-2.3,代码行数:4,代码来源:html_output.php

示例2: tep_get_extra_fields

function tep_get_extra_fields($customer_id, $languages_id, $customer_group_id)
{
    $extra_fields_query = tep_db_query("select ce.fields_id, ce.fields_input_type, ce.fields_input_value, ce.fields_required_status, cei.fields_name, ce.fields_status, ce.fields_input_type from " . TABLE_EXTRA_FIELDS . " ce, " . TABLE_EXTRA_FIELDS_INFO . " cei where NOT find_in_set('" . $customer_group_id . "', ce.fields_cef_cg_hide) and ce.fields_status=1 and cei.fields_id=ce.fields_id and cei.languages_id =" . $languages_id);
    $extra_fields_string = '';
    if (tep_db_num_rows($extra_fields_query) > 0) {
        $extra_fields_string .= '<tr><td class="formAreaTitle"><b>' . CATEGORY_EXTRA_FIELDS . '</b></td></tr>';
        $extra_fields_string .= '<td class="formArea"><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
                                     <tr class="infoBoxContents"><td><table border="0" cellspacing="2" cellpadding="2">';
        while ($extra_fields = tep_db_fetch_array($extra_fields_query)) {
            $value = '';
            if (isset($customer_id)) {
                $value_query = tep_db_query("select value from " . TABLE_CUSTOMERS_TO_EXTRA_FIELDS . " where customers_id=" . $customer_id . " and fields_id=" . $extra_fields['fields_id']);
                $value_info = tep_db_fetch_array($value_query);
                $value_list = explode("\n", $value_info['value']);
                for ($i = 0, $n = sizeof($value_list); $i < $n; $i++) {
                    $value_list[$i] = trim($value_list[$i]);
                }
                $value = $value_list[0];
            }
            $extra_fields_string .= '<tr>
                                        <td class="main" valign="top" width="150">' . $extra_fields['fields_name'] . ': </td><td class="main" valign="top">';
            $select_values_list = explode("\n", $extra_fields['fields_input_value']);
            $select_values = array();
            foreach ($select_values_list as $item) {
                $item = trim($item);
                $select_values[] = array('id' => $item, 'text' => $item);
            }
            switch ($extra_fields['fields_input_type']) {
                case 0:
                    $extra_fields_string .= tep_draw_input_field('fields_' . $extra_fields['fields_id'], $value) . ($extra_fields['fields_required_status'] == 1 ? '<span class="inputRequirement"> *</span>' : '');
                    break;
                case 1:
                    $extra_fields_string .= tep_draw_textarea_field('fields_' . $extra_fields['fields_id'], 50, 6, $value, 'style="width:400px;"') . ($extra_fields['fields_required_status'] == 1 ? '<span class="inputRequirement"> *</span>' : '');
                    break;
                case 2:
                    foreach ($select_values_list as $item) {
                        $item = trim($item);
                        $extra_fields_string .= tep_draw_selection_field('fields_' . $extra_fields['fields_id'], 'radio', $item, $value == $item ? true : false) . $item . ($extra_fields['fields_required_status'] == 1 ? '<span class="inputRequirement"> *</span>' : '') . '<br>';
                        $extra_fields['fields_required_status'] = 0;
                    }
                    break;
                case 3:
                    $cnt = 1;
                    foreach ($select_values_list as $item) {
                        $item = trim($item);
                        $extra_fields_string .= tep_draw_selection_field('fields_' . $extra_fields['fields_id'] . '_' . $cnt++, 'checkbox', $item, @in_array($item, $value_list) ? true : false) . $item . ($extra_fields['fields_required_status'] == 1 ? '<span class="inputRequirement"> *</span>' : '') . '<br>';
                        $extra_fields['fields_required_status'] = 0;
                    }
                    $extra_fields_string .= tep_draw_hidden_field('fields_' . $extra_fields['fields_id'] . '_total', $cnt);
                    break;
                case 4:
                    $extra_fields_string .= tep_draw_pull_down_menu('fields_' . $extra_fields['fields_id'], $select_values, $value) . ($extra_fields['fields_required_status'] == 1 ? '<span class="inputRequirement"> *</span>' : '');
                    break;
                default:
                    $extra_fields_string .= tep_draw_input_field('fields_' . $extra_fields['fields_id'], $value) . ($extra_fields['fields_required_status'] == 1 ? '<span class="inputRequirement"> *</span>' : '');
                    break;
            }
            $extra_fields_string .= ' ' . '</td></tr>';
        }
        $extra_fields_string .= '</table></td></tr></table></td></tr>';
        $extra_fields_string .= '<tr><td>' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td></tr>';
    }
    return $extra_fields_string;
}
开发者ID:digideskio,项目名称:oscmax2,代码行数:64,代码来源:general.php

示例3: tep_draw_radio_field

function tep_draw_radio_field($name, $value = '', $checked = false, $parameters = ' style="background:none;"')
{
    return tep_draw_selection_field($name, 'radio', $value, $checked, $parameters);
}
开发者ID:laiello,项目名称:hotel-os,代码行数:4,代码来源:html_output.php

示例4: tep_draw_selection_field

</td>
              </tr>
			  <tr class="dataTableRow">
			    <td class="dataTableContent">Show orders without comments?<br>
		      (Will NOT show order with comments placed by the customer at time of order.)</td>
			    <td><?php 
    echo tep_draw_selection_field('show_comments', 'checkbox', true, false);
    ?>
</td>
	      </tr>
			  <tr class="dataTableRow">
			    <td class="dataTableContent">Notify the customer via e-mail?<br>
(This will notify the customer via e-mail with the comments in the batch print
  language file.) </td>
			    <td><?php 
    echo tep_draw_selection_field('notify', 'checkbox', true, false);
    ?>
</td>
	      </tr>
              <tr>
              <td align="right" colspan="2"><?php 
    echo tep_image_submit('button_send.gif', IMAGE_SEND_EMAIL);
    ?>
</td>
              </tr>
			  </table>
</td>
</form>
</tr>
<?php 
} else {
开发者ID:rrecurse,项目名称:IntenseCart,代码行数:31,代码来源:batch_print_body.php

示例5: tep_draw_radio_field

function tep_draw_radio_field($name, $value = '', $checked = false, $compare = '', $extra = '')
{
    return tep_draw_selection_field($name, 'radio', $value, $checked, $compare, $extra);
}
开发者ID:rrecurse,项目名称:IntenseCart,代码行数:4,代码来源:html_output.php

示例6: tep_draw_selection_field

                    <td class="infoBoxContent"><?php 
echo TEXT_PAYMENT_INFORMATION;
?>
</td>
                    <td class="infoBoxContent" width="10%"><?php 
echo tep_draw_selection_field('show_pay_method', 'checkbox', true, true);
?>
</td>
                </tr>
                <tr>
                    <td class="infoBoxContent"><?php 
echo TEXT_SHOW_CREDIT_CARD_NUMBER;
?>
</td>
                    <td class="infoBoxContent" width="10%"><?php 
echo tep_draw_selection_field('show_cc', 'checkbox', true, true);
?>
</td>
                </tr>
            </table>
            </div>
            <div id="No_Options">
            <table border="0" cellspacing="0" cellpadding="2" width="100%">
                <tr class="infoBoxHeading">
                	<td class="infoBoxHeading" colspan="2"><?php 
echo TEXT_BPC_OPTIONS;
?>
</td>
                </tr>
                <tr>
                    <td class="infoBoxContent"><?php 
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:batch_print_body.php


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