本文整理汇总了PHP中OSC\OM\HTML::radioField方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::radioField方法的具体用法?PHP HTML::radioField怎么用?PHP HTML::radioField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OSC\OM\HTML
的用法示例。
在下文中一共展示了HTML::radioField方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
<div class="form-group has-feedback">
<label class="control-label col-sm-3"><?php
echo ENTRY_GENDER;
?>
</label>
<div class="col-sm-9">
<label class="radio-inline">
<?php
echo HTML::radioField('gender', 'm', $male, 'required aria-required="true"') . ' ' . MALE;
?>
</label>
<label class="radio-inline">
<?php
echo HTML::radioField('gender', 'f', $female) . ' ' . FEMALE;
?>
</label>
<?php
echo FORM_REQUIRED_INPUT;
?>
<?php
if (tep_not_null(ENTRY_GENDER_TEXT)) {
echo '<span class="help-block">' . ENTRY_GENDER_TEXT . '</span>';
}
?>
</div>
</div>
<?php
}
示例2:
<?php
echo HTML::radioField('rating', '3') . HTML::stars(3, false);
?>
</label>
</div>
<div class="radio">
<label>
<?php
echo HTML::radioField('rating', '2') . HTML::stars(2, false);
?>
</label>
</div>
<div class="radio">
<label>
<?php
echo HTML::radioField('rating', '1', null, 'required aria-required="true"') . HTML::stars(1, false) . ' ' . TEXT_BAD;
?>
</label>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-xs-6 text-right pull-right"><?php
echo HTML::button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-chevron-right', null, 'primary', null, 'btn-success');
?>
示例3:
?>
<div class="form-group has-feedback">
<label class="control-label col-sm-3"><?php
echo ENTRY_GENDER;
?>
</label>
<div class="col-sm-9">
<label class="radio-inline">
<?php
echo HTML::radioField('gender', 'm', NULL, 'required aria-required="true"') . ' ' . MALE;
?>
</label>
<label class="radio-inline">
<?php
echo HTML::radioField('gender', 'f') . ' ' . FEMALE;
?>
</label>
<?php
echo FORM_REQUIRED_INPUT;
?>
<?php
if (tep_not_null(ENTRY_GENDER_TEXT)) {
echo '<span class="help-block">' . ENTRY_GENDER_TEXT . '</span>';
}
?>
</div>
</div>
<?php
}
示例4:
echo OSCOM::getDef('entry_review_text');
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td class="main"><strong><?php
echo OSCOM::getDef('entry_rating');
?>
</strong> <?php
echo OSCOM::getDef('text_bad');
?>
<?php
for ($i = 1; $i <= 5; $i++) {
echo HTML::radioField('reviews_rating', $i, $rInfo->reviews_rating == $i) . ' ';
}
echo OSCOM::getDef('text_good');
?>
</td>
</tr>
<tr>
<td align="right" class="smallText"><?php
echo HTML::button(OSCOM::getDef('image_preview'), 'fa fa-file-o') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $_GET['rID']));
?>
</td>
</form></tr>
<?php
} else {
if (tep_not_null($_POST)) {
$rInfo->reviews_rating = HTML::sanitize($_POST['reviews_rating']);
示例5:
echo ' <tr class="moduleRow">' . "\n";
}
?>
<td>
<strong><?php
echo HTML::outputProtected($Qab->value('firstname') . ' ' . $Qab->value('lastname'));
?>
</strong>
<div class="help-block"><?php
echo tep_address_format($format_id, $Qab->toArray(), true, ' ', ', ');
?>
</div>
</td>
<td align="right"><?php
echo HTML::radioField('address', $Qab->valueInt('address_book_id'), $Qab->valueInt('address_book_id') == $_SESSION['billto']);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<?php
}
}
示例6: switch
switch ($action) {
case 'backup':
$heading[] = array('text' => OSCOM::getDef('text_info_heading_new_backup'));
$contents = array('form' => HTML::form('backup', OSCOM::link(FILENAME_BACKUP, 'action=backupnow')));
$contents[] = array('text' => OSCOM::getDef('text_info_new_backup'));
$contents[] = array('text' => HTML::radioField('compress', 'no', true) . ' ' . OSCOM::getDef('text_info_use_no_compression'));
if (is_file(LOCAL_EXE_GZIP)) {
$contents[] = array('text' => HTML::radioField('compress', 'gzip') . ' ' . OSCOM::getDef('text_info_use_gzip'));
}
if (is_file(LOCAL_EXE_ZIP)) {
$contents[] = array('text' => HTML::radioField('compress', 'zip') . ' ' . OSCOM::getDef('text_info_use_zip'));
}
if ($dir_ok == true) {
$contents[] = array('text' => HTML::checkboxField('download', 'yes') . ' ' . OSCOM::getDef('text_info_download_only') . '*<br /><br />*' . OSCOM::getDef('text_info_best_through_https'));
} else {
$contents[] = array('text' => HTML::radioField('download', 'yes', true) . ' ' . OSCOM::getDef('text_info_download_only') . '*<br /><br />*' . OSCOM::getDef('text_info_best_through_https'));
}
$contents[] = array('text' => HTML::button(OSCOM::getDef('image_backup'), 'fa fa-copy', null, null, 'btn-success') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_BACKUP), null, 'btn-link'));
break;
case 'restorelocal':
$heading[] = array('text' => OSCOM::getDef('text_info_heading_restore_local'));
$contents = array('form' => HTML::form('restore', OSCOM::link(FILENAME_BACKUP, 'action=restorelocalnow'), 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => OSCOM::getDef('text_info_restore_local') . '<br /><br />' . OSCOM::getDef('text_info_best_through_https'));
$contents[] = array('text' => HTML::fileField('sql_file'));
$contents[] = array('text' => OSCOM::getDef('text_info_restore_local_raw_file'));
$contents[] = array('text' => HTML::button(OSCOM::getDef('image_restore'), 'fa fa-repeat', null, null, 'btn-success') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_BACKUP), null, 'btn-link'));
break;
}
}
if (tep_not_null($heading) && tep_not_null($contents)) {
$show_listing = false;
示例7:
$female = !$male;
?>
<div class="form-group has-feedback">
<label class="control-label col-sm-3"><?php
echo OSCOM::getDef('entry_gender');
?>
</label>
<div class="col-sm-9">
<label class="radio-inline">
<?php
echo HTML::radioField('gender', 'm', $male, 'required aria-required="true" aria-describedby="atGender"') . ' ' . OSCOM::getDef('male');
?>
</label>
<label class="radio-inline">
<?php
echo HTML::radioField('gender', 'f', $female) . ' ' . OSCOM::getDef('female');
?>
</label>
<?php
echo OSCOM::getDef('form_required_input');
?>
<?php
if (tep_not_null(OSCOM::getDef('entry_gender_text'))) {
echo '<span id="atGender" class="help-block">' . OSCOM::getDef('entry_gender_text') . '</span>';
}
?>
</div>
</div>
<?php
}
?>
示例8: isset
</td>
<?php
if ($n > 1 || $n2 > 1) {
?>
<td align="right">
<?php
if (isset($quotes[$i]['error'])) {
// nothing
echo ' ';
} else {
echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0));
?>
<?php
echo HTML::radioField('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], null, 'required aria-required="true"');
}
?>
</td>
<?php
} else {
?>
<td align="right"><?php
echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0)) . HTML::hiddenField('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']);
?>
</td>
<?php
}
示例9: isset
<table class="table table-striped table-condensed table-hover">
<tbody>
<?php
$radio_buttons = 0;
for ($i = 0, $n = sizeof($selection); $i < $n; $i++) {
?>
<tr>
<td><strong><?php
echo $selection[$i]['module'];
?>
</strong></td>
<td align="right">
<?php
if (sizeof($selection) > 1) {
echo HTML::radioField('payment', $selection[$i]['id'], isset($_SESSION['payment']) && $selection[$i]['id'] == $_SESSION['payment'], 'required aria-required="true"');
} else {
echo HTML::hiddenField('payment', $selection[$i]['id']);
}
?>
</td>
</tr>
<?php
if (isset($selection[$i]['error'])) {
?>
<tr>
<td colspan="2"><?php
echo $selection[$i]['error'];
示例10:
echo HTML::radioField('rating', '2');
?>
</label>
<label class="radio-inline">
<?php
echo HTML::radioField('rating', '3');
?>
</label>
<label class="radio-inline">
<?php
echo HTML::radioField('rating', '4');
?>
</label>
<label class="radio-inline">
<?php
echo HTML::radioField('rating', '5', 1, 'required aria-required="true"');
?>
</label>
<?php
echo '<div class="help-block justify" style="width: 150px;">' . OSCOM::getDef('text_bad') . '<p class="pull-right">' . OSCOM::getDef('text_good') . '</p></div>';
?>
</div>
</div>
</div>
<div class="buttonSet row">
<div class="col-xs-6"><?php
echo HTML::button(OSCOM::getDef('image_button_back'), 'fa fa-angle-left', OSCOM::link('product_reviews.php', tep_get_all_get_params(array('reviews_id', 'action'))));
?>
</div>
示例11:
<tr>
<td class="main"><?php
echo OSCOM::getDef('entry_gender');
?>
</td>
<td class="main">
<?php
if ($error == true) {
if ($entry_gender_error == true) {
echo HTML::radioField('customers_gender', 'm', $cInfo->customers_gender == 'm') . ' ' . OSCOM::getDef('male') . ' ' . HTML::radioField('customers_gender', 'f', $cInfo->customers_gender == 'f') . ' ' . OSCOM::getDef('female') . ' ' . OSCOM::getDef('entry_gender_error');
} else {
echo $cInfo->customers_gender == 'm' ? OSCOM::getDef('male') : OSCOM::getDef('female');
echo HTML::hiddenField('customers_gender');
}
} else {
echo HTML::radioField('customers_gender', 'm', $cInfo->customers_gender == 'm') . ' ' . OSCOM::getDef('male') . ' ' . HTML::radioField('customers_gender', 'f', $cInfo->customers_gender == 'f') . ' ' . OSCOM::getDef('female');
}
?>
</td>
</tr>
<?php
}
?>
<tr>
<td class="main"><?php
echo OSCOM::getDef('entry_first_name');
?>
</td>
<td class="main">
<?php
if ($error == true) {
示例12: array
break;
case 'move_product':
$heading[] = array('text' => OSCOM::getDef('text_info_heading_move_product'));
$contents = array('form' => HTML::form('products', OSCOM::link(FILENAME_CATEGORIES, 'action=move_product_confirm&cPath=' . $cPath)) . HTML::hiddenField('products_id', $pInfo->products_id));
$contents[] = array('text' => OSCOM::getDef('text_move_products_intro', ['products_name' => $pInfo->products_name]));
$contents[] = array('text' => OSCOM::getDef('text_info_current_categories') . '<br /><strong>' . tep_output_generated_category_path($pInfo->products_id, 'product') . '</strong>');
$contents[] = array('text' => OSCOM::getDef('text_move', ['item_name' => $pInfo->products_name]) . '<br />' . HTML::selectField('move_to_category_id', tep_get_category_tree(), $current_category_id));
$contents[] = array('text' => HTML::button(OSCOM::getDef('image_move'), 'fa fa-share', null, null, 'btn-success') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id), null, 'btn-link'));
break;
case 'copy_to':
$heading[] = array('text' => OSCOM::getDef('text_info_heading_copy_to'));
$contents = array('form' => HTML::form('copy_to', OSCOM::link(FILENAME_CATEGORIES, 'action=copy_to_confirm&cPath=' . $cPath)) . HTML::hiddenField('products_id', $pInfo->products_id));
$contents[] = array('text' => OSCOM::getDef('text_info_copy_to_intro'));
$contents[] = array('text' => OSCOM::getDef('text_info_current_categories') . '<br /><strong>' . tep_output_generated_category_path($pInfo->products_id, 'product') . '</strong>');
$contents[] = array('text' => OSCOM::getDef('text_categories') . '<br />' . HTML::selectField('categories_id', tep_get_category_tree(), $current_category_id));
$contents[] = array('text' => OSCOM::getDef('text_how_to_copy') . '<br />' . HTML::radioField('copy_as', 'link', true) . ' ' . OSCOM::getDef('text_copy_as_link') . '<br />' . HTML::radioField('copy_as', 'duplicate') . ' ' . OSCOM::getDef('text_copy_as_duplicate'));
$contents[] = array('text' => HTML::button(OSCOM::getDef('image_copy'), 'fa fa-copy', null, null, 'btn-success') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id), null, 'btn-link'));
break;
}
if (tep_not_null($heading) && tep_not_null($contents)) {
$show_listing = false;
echo HTML::panel($heading, $contents, ['type' => 'info']);
}
}
}
if ($show_listing === true) {
?>
<table class="oscom-table table table-hover">
<thead>
<tr class="info">