本文整理汇总了PHP中lc_draw_checkbox_field函数的典型用法代码示例。如果您正苦于以下问题:PHP lc_draw_checkbox_field函数的具体用法?PHP lc_draw_checkbox_field怎么用?PHP lc_draw_checkbox_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了lc_draw_checkbox_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getParameters
public function getParameters()
{
global $lC_Language;
$groups = array();
$groups_ids = array();
foreach ($this->_groups as $group) {
if ($group['id'] != '1') {
$groups[] = array('text' => $group['title'], 'id' => $group['id']);
$groups_ids[] = $group['id'];
}
}
return array(array('key' => $lC_Language->get('images_resize_field_groups'), 'field' => lc_draw_pull_down_menu('groups[]', $groups, $groups_ids, 'multiple="multiple" size="5" class="input full-width"')), array('key' => $lC_Language->get('images_resize_field_overwrite_images'), 'field' => lc_draw_checkbox_field('overwrite', '1', null, 'class="input"')));
}
示例2: lc_cfg_set_credit_cards_checkbox_field
/**
@package admin::functions
@author Loaded Commerce
@copyright Copyright 2003-2014 Loaded Commerce, LLC
@copyright Portions Copyright 2003 osCommerce
@license https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
@version $Id: lc_cfg_set_credit_cards_checkbox_field.php v1.0 2013-08-08 datazen $
*/
function lc_cfg_set_credit_cards_checkbox_field($default, $key = null)
{
global $lC_Database;
$name = empty($key) ? 'configuration_value' : 'configuration[' . $key . '][]';
$cc_array = array();
$Qcc = $lC_Database->query('select id, credit_card_name from :table_credit_cards where credit_card_status = :credit_card_status order by sort_order, credit_card_name');
$Qcc->bindTable(':table_credit_cards', TABLE_CREDIT_CARDS);
$Qcc->bindInt(':credit_card_status', 1);
$Qcc->execute();
while ($Qcc->next()) {
$cc_array[] = array('id' => $Qcc->valueInt('id'), 'text' => $Qcc->value('credit_card_name'));
}
return lc_draw_checkbox_field($name, $cc_array, explode(',', $default), 'class="checkbox"', '<br />');
}
示例3: lc_draw_input_field
?>
"></span></label>
<?php
echo lc_draw_input_field('HTTP_WWW_ADDRESS', $www_location, 'class="input" style="width:93%;"');
?>
</div>
<div class="field-block button-height">
<label for="web_use_ssl" class="label"><b><?php
echo $lC_Language->get('param_web_use_ssl');
?>
</b> <span style="cursor:pointer;" class="hide-on-mobile hide-on-tablet icon-info-round icon-blue with-tooltip with-small-padding" data-tooltip-options='{"classes":["blue-gradient"],"position":"right"}' title="<?php
echo $lC_Language->get('param_web_use_ssl_description');
?>
"></span></label>
<?php
echo lc_draw_checkbox_field('web_use_ssl', 'true', true, 'onclick="$(\'#sslInputContainer\').toggle();"');
?>
</div>
<div id="sslInputContainer" class="field-block button-height">
<label for="HTTPS_WEB_ADDRESS" class="label"><b><?php
echo $lC_Language->get('param_web_ssl_address');
?>
</b> <span style="cursor:pointer;" class="hide-on-mobile hide-on-tablet icon-info-round icon-blue with-tooltip with-small-padding" data-tooltip-options='{"classes":["blue-gradient"],"position":"right"}' title="<?php
echo $lC_Language->get('param_web_ssl_address_description');
?>
"></span></label>
<?php
echo lc_draw_input_field('HTTPS_WEB_ADDRESS', $www_ssl_location, 'class="input" style="width:93%;"');
?>
</div>
<div class="field-block button-height">
示例4: lc_draw_password_field
?>
"></span></label>
<?php
echo lc_draw_password_field('CFG_ADMINISTRATOR_PASSWORD', 'class="input" style="width:93%;"');
?>
</div>
<div class="field-block button-height">
<label for="DB_INSERT_SAMPLE_DATA" class="label"><b><?php
echo $lC_Language->get('param_database_import_sample_data');
?>
</b> <span style="cursor:pointer;" class="hide-on-mobile hide-on-tablet icon-info-round icon-blue with-tooltip with-small-padding" data-tooltip-options='{"classes":["blue-gradient"],"position":"right"}' title="<?php
echo $lC_Language->get('param_database_import_sample_data_description');
?>
"></span></label>
<?php
echo lc_draw_checkbox_field('DB_INSERT_SAMPLE_DATA', 'true', true) . ' ' . $lC_Language->get('param_database_import_sample_data');
?>
</div>
<div id="buttonContainer" class="margin-right" style="float:right">
<a href="index.php" class="button">
<span class="button-icon red-gradient glossy"><span class="icon-cross"></span></span>
<?php
echo addslashes($lC_Language->get('image_button_cancel'));
?>
</a>
<a href="javascript:void(0);" onclick="$('#mBox').hide(); $('#pBox').hide(); $('#installForm3').submit();" class="button">
<span class="button-icon blue-gradient glossy"><span class="icon-right-round"></span></span>
<?php
echo addslashes($lC_Language->get('image_button_continue'));
?>
</a>
示例5: lc_draw_checkbox_field
);
win.closeModal();
}
}
},
buttonsLowPadding: true
});
$("#editTemplateFormKeys").html(data.keys);
var defaultTemplate = '<?php
echo DEFAULT_TEMPLATE;
?>
';
if (data.code != defaultTemplate) {
$("#editTemplateFormDefault").html('<table border="0" width="100%" cellspacing="0" cellpadding="2"><tr><td width="30%"><?php
echo '<b>' . $lC_Language->get('field_set_as_default') . '</b>';
?>
</td><td width="70%"><?php
echo lc_draw_checkbox_field('default');
?>
</td></tr></table>');
}
if ($.template.mediaQuery.isSmallerThan('desktop')) {
$('.modal').attr('style', 'top:10px !important; left: 25%; margin-left: -50px;');
}
if ($.template.mediaQuery.isSmallerThan('tablet-portrait')) {
$('.modal').attr('style', 'top:10px !important; left: 19%; margin-left: -50px;');
}
}
);
}
</script>
示例6: foreach
@version $Id: relationships.php v1.0 2013-08-08 datazen $
*/
global $lC_Language, $product_categories_array, $assignedCategoryTree;
?>
<div id="section_relationships_content" class="with-padding">
<fieldset class="fieldset">
<legend class="legend"><?php
echo $lC_Language->get('text_categories');
?>
</legend>
<table border="0" width="100%" cellspacing="0" cellpadding="2" style="margin-top:-10px;">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tbody>
<?php
foreach ($assignedCategoryTree->getArray() as $value) {
if ($value['mode'] == 'category') {
echo '<tr>' . "\n" . ' <td width="30px" class="cat_rel_td">' . lc_draw_checkbox_field('categories[]', $value['id'], in_array($value['id'], $product_categories_array), 'class="input" id="categories_' . $value['id'] . '"') . '</td>' . "\n" . ' <td class="cat_rel_td"><a href="#" onclick="document.product.categories_' . $value['id'] . '.checked=!document.product.categories_' . $value['id'] . '.checked;">' . $value['title'] . '</a></td>' . "\n" . '</tr>' . "\n";
}
}
?>
</tbody>
</table></td>
</tr>
</table>
<br />
</fieldset>
<?php
// VQMOD-hookpoint; DO NOT MODIFY OR REMOVE THIS LINE
?>
</div>
示例7: lc_draw_input_field
' <label for="expires_impressions" class="label"><?php
echo $lC_Language->get('field_maximum_impressions');
?>
</label>'+
' <?php
echo lc_draw_input_field('expires_impressions', null, 'class="input" maxlength="7" size="7"');
?>
'+
' </p>'+
' <p class="button-height inline-label">'+
' <label for="status" class="label"><?php
echo $lC_Language->get('field_status');
?>
</label>'+
' <?php
echo ' ' . lc_draw_checkbox_field('status', null, null, 'class="switch medium checked" checked="checked" data-text-on="' . strtoupper($lC_Language->get('button_yes')) . '" data-text-off="' . strtoupper($lC_Language->get('button_no')) . '"');
?>
'+
' </p>'+
' </form>'+
' <hr>'+
' <div id="bannerNotes"><?php
echo $lC_Language->get('info_banner_fields');
?>
</div>'+
' </div>'+
'</div>',
title: '<?php
echo $lC_Language->get('modal_heading_new_banner');
?>
',
示例8: lc_draw_label
@version $Id: address_book_details.php v1.0 2013-08-08 datazen $
*/
if (ACCOUNT_GENDER > -1) {
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_gender'), null, 'fake', ACCOUNT_GENDER > 0) . lc_draw_radio_field('gender', array(array('id' => 'm', 'text' => $lC_Language->get('gender_male')), array('id' => 'f', 'text' => $lC_Language->get('gender_female'))), isset($Qentry) ? $Qentry->value('entry_gender') : (!$lC_Customer->hasDefaultAddress() ? $lC_Customer->getGender() : null)) . '</li>';
}
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_first_name'), null, 'firstname', true) . lc_draw_input_field('firstname', isset($Qentry) ? $Qentry->value('entry_firstname') : (!$lC_Customer->hasDefaultAddress() ? $lC_Customer->getFirstName() : null)) . '</li>';
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_last_name'), null, 'lastname', true) . lc_draw_input_field('lastname', isset($Qentry) ? $Qentry->value('entry_lastname') : (!$lC_Customer->hasDefaultAddress() ? $lC_Customer->getLastName() : null)) . '</li>';
if (ACCOUNT_COMPANY > -1) {
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_company'), null, 'company', ACCOUNT_COMPANY > 0) . lc_draw_input_field('company', isset($Qentry) ? $Qentry->value('entry_company') : null) . '</li>';
}
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_street_address'), null, 'street_address', true) . lc_draw_input_field('street_address', isset($Qentry) ? $Qentry->value('entry_street_address') : null) . '</li>';
if (ACCOUNT_SUBURB > -1) {
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_suburb'), null, 'suburb', ACCOUNT_SUBURB > 0) . lc_draw_input_field('suburb', isset($Qentry) ? $Qentry->value('entry_suburb') : null) . '</li>';
}
if (ACCOUNT_POST_CODE > -1) {
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_post_code'), null, 'postcode', ACCOUNT_POST_CODE > 0) . lc_draw_input_field('postcode', isset($Qentry) ? $Qentry->value('entry_postcode') : null) . '</li>';
}
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_city'), null, 'city', true) . lc_draw_input_field('city', isset($Qentry) ? $Qentry->value('entry_city') : null) . '</li>';
if (ACCOUNT_STATE > -1) {
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_state'), null, 'state', ACCOUNT_STATE > 0) . (isset($Qentry) ? lC_AddressBook::getZonesField($Qentry->valueInt('entry_country_id')) : lC_AddressBook::getZonesField(STORE_COUNTRY)) . '</li>';
}
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_country'), null, 'country', true) . lc_draw_pull_down_menu('country', lC_AddressBook::getCountriesDropdownArray(), isset($Qentry) ? $Qentry->valueInt('entry_country_id') : STORE_COUNTRY) . '</li>';
if (ACCOUNT_TELEPHONE > -1) {
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_telephone_number'), null, 'telephone', ACCOUNT_TELEPHONE > 0) . lc_draw_input_field('telephone', isset($Qentry) ? $Qentry->value('entry_telephone') : null) . '</li>';
}
if (ACCOUNT_FAX > -1) {
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_fax_number'), null, 'fax', ACCOUNT_FAX > 0) . lc_draw_input_field('fax', isset($Qentry) ? $Qentry->value('entry_fax') : null) . '</li>';
}
if ($lC_Customer->hasDefaultAddress() && (isset($_GET['edit']) && $lC_Customer->getDefaultAddressID() != $_GET['address_book'] || isset($_GET['new']))) {
echo '<li>' . lc_draw_label($lC_Language->get('set_as_primary'), null) . lc_draw_checkbox_field('primary') . '</li>';
}
示例9: lc_draw_input_field
' <label for="sort_order" class="label"><?php
echo $lC_Language->get('field_sort_order');
?>
</label>'+
' <?php
echo lc_draw_input_field('sort_order', null, 'class="input full-width" id="editSortOrder"');
?>
'+
' </p>'+
' <p class="button-height inline-label">'+
' <label for="credit_card_status" class="label"><?php
echo $lC_Language->get('field_active');
?>
</label>'+
' <?php
echo lc_draw_checkbox_field('credit_card_status', '1', null, 'id="editCreditCardStatus" class="switch medium" data-text-on="' . strtoupper($lC_Language->get('button_yes')) . '" data-text-off="' . strtoupper($lC_Language->get('button_no')) . '"');
?>
'+
' </p>'+
' </form>'+
' </div>'+
'</div>',
title: '<?php
echo $lC_Language->get('modal_heading_edit_card');
?>
',
width: 500,
actions: {
'Close' : {
color: 'red',
click: function(win) { win.closeModal(); }
示例10: lc_href_link
?>
<!--content/account/account_newsletters.php start-->
<div class="row">
<div class="col-sm-12 col-lg-12">
<h1 class="no-margin-top"><?php
echo $lC_Template->getPageTitle();
?>
</h1>
<form role="form" class="form-inline" name="account_newsletter" id="account_newsletter" action="<?php
echo lc_href_link(FILENAME_ACCOUNT, 'newsletters=save', 'SSL');
?>
" method="post">
<div class="well">
<div class="checkbox">
<label class=""><?php
echo lc_draw_checkbox_field('newsletter_general', '1', $Qnewsletter->value('customers_newsletter'), null, null, null);
?>
<?php
echo $lC_Language->get('newsletter_general');
?>
</label>
</div>
<p class="margin-top normal"><?php
echo $lC_Language->get('newsletter_general_description');
?>
</p>
</div>
</form>
<div class="btn-set small-margin-top clearfix">
<button class="pull-right btn btn-lg btn-primary" onclick="$('#account_newsletter').submit();" type="button"><?php
echo $lC_Language->get('button_update');
示例11: lc_draw_input_field
@license https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
@version $Id: new.php v1.0 2013-08-08 datazen $
*/
$content = '<div id="newCustomer">' . ' <div id="newCustomerForm">' . ' <form name="customers" id="customers" autocomplete="off" action="" method="post">';
if (ACCOUNT_GENDER > -1) {
$content .= '<p>' . $lC_Language->get('introduction_new_customer') . '</p>' . '<p class="button-height inline-label">' . ' <label for="gender" class="label" style="width:30%;">' . $lC_Language->get('field_gender') . '</label>' . ' <span class="button-group">' . ' <label for="gender-1" class="button green-active">' . ' <input type="radio" name="gender" id="gender-1" value="m" checked>' . $lC_Language->get('gender_male') . '</label>' . ' <label for="gender-2" class="button green-active">' . ' <input type="radio" name="gender" id="gender-2" value="f">' . $lC_Language->get('gender_female') . '</label>' . ' </span>' . '</p>';
}
$content .= '<p class="button-height inline-label">' . ' <label for="firstname" class="label" style="width:30%;">' . $lC_Language->get('field_first_name') . '</label>' . lc_draw_input_field('firstname', null, 'class="input" style="width:90%;"') . '</p>' . '<p class="button-height inline-label">' . ' <label for="lastname" class="label" style="width:30%;">' . $lC_Language->get('field_last_name') . '</label>' . lc_draw_input_field('lastname', null, 'class="input" style="width:90%;"') . '</p>';
if (ACCOUNT_DATE_OF_BIRTH == '1') {
$content .= '<p class="button-height inline-label">' . ' <label for="dob" class="label" style="width:30%;">' . $lC_Language->get('field_date_of_birth') . '</label>' . ' <span class="input">' . ' <span class="icon-calendar"></span>' . lc_draw_input_field('dob', null, 'class="input-unstyled datepicker" style="width:90%;"') . ' </span>' . '</p>';
}
$content .= '<p class="button-height inline-label">' . ' <label for="email_address" class="label" style="width:30%;">' . $lC_Language->get('field_email_address') . '</label>' . lc_draw_input_field('email_address', null, 'class="input" style="width:90%;"') . '</p>';
if (ACCOUNT_NEWSLETTER == '1') {
$content .= '<p class="button-height inline-label">' . ' <label for="newsletter" class="label" style="width:30%;">' . $lC_Language->get('field_newsletter_subscription') . '</label>' . lc_draw_checkbox_field('newsletter', '1', true, 'id="newsletterID" class="switch medium" data-text-on="' . strtoupper($lC_Language->get('button_yes')) . '" data-text-off="' . strtoupper($lC_Language->get('button_no')) . '"') . '</p>';
}
$content .= '<p class="button-height inline-label">' . ' <label for="password" class="label" style="width:30%;">' . $lC_Language->get('field_password') . '</label>' . lc_draw_password_field('password', 'class="input" style="width:90%;"') . '</p>' . '<p class="button-height inline-label">' . ' <label for="confirmation" class="label" style="width:30%;">' . $lC_Language->get('field_password_confirmation') . '</label>' . lc_draw_password_field('confirmation', 'class="input" style="width:90%;"') . '</p>' . '<p class="button-height inline-label">' . ' <label for="group" class="label" style="width:30%;">' . $lC_Language->get('field_customer_group') . '</label>' . lc_draw_pull_down_menu('group', null, null, 'class="input with-small-padding" style="width:73%;"') . '</p>' . '<p class="button-height inline-label">' . ' <label for="status" class="label" style="width:30%;">' . $lC_Language->get('field_status') . '</label>' . lc_draw_checkbox_field('status', '1', true, 'id="statusID" class="switch medium" data-text-on="' . strtoupper($lC_Language->get('button_yes')) . '" data-text-off="' . strtoupper($lC_Language->get('button_no')) . '"') . '</p>';
$content .= '</form></div></div>';
?>
<style>
#newCustomer { padding-bottom:20px; }
</style>
<script>
function newCustomer() {
var accessLevel = '<?php
echo $_SESSION['admin']['access'][$lC_Template->getModule()];
?>
';
if (parseInt(accessLevel) < 2) {
$.modal.alert('<?php
echo $lC_Language->get('ms_error_no_access');
?>
示例12: lc_draw_pull_down_menu
<label class="control-label col-sm-3 col-lg-3 text-right"><?php
echo $lC_Language->get('field_search_categories');
?>
</label>
<div class="col-sm-9 col-lg-9"><?php
echo lc_draw_pull_down_menu('category', lC_Template_output::getCategoriesDropdownArray(), null, 'class="form-control"');
?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3 col-lg-3 text-right margin-top"><?php
echo $lC_Language->get('field_search_recursive');
?>
</label>
<div class="col-sm-9 col-lg-9"><?php
echo lc_draw_checkbox_field('recursive', null, null, 'class="form-control"', null);
?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3 col-lg-3 text-right small-margin-top"><?php
echo $lC_Language->get('field_search_manufacturers');
?>
</label>
<div class="col-sm-9 col-lg-9"><?php
echo lc_draw_pull_down_menu('manufacturer', lC_Template_output::getManufacturerDropdownArray(), null, 'class="form-control"');
?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3 col-lg-3 text-right small-margin-top"><?php
示例13: array
$Qzones->bindInt(':zone_country_id', $default_country);
$Qzones->execute();
$zones_array = array();
while ($Qzones->next()) {
$zones_array[] = array('id' => $Qzones->value('zone_name'), 'text' => $Qzones->value('zone_name'));
}
echo lc_draw_pull_down_menu('state', $zones_array, isset($Qentry) ? $zone : null, 'class="form-control"');
} else {
echo lc_draw_input_field('state', isset($Qentry) ? $zone : null, 'placeholder="' . $lC_Language->get('field_customer_state') . '" class="form-control"');
}
echo '</span></div>';
}
if (ACCOUNT_POST_CODE > -1) {
echo '<div class="form-group full-width margin-bottom"><label class="sr-only"></label>' . lc_draw_input_field('postcode', isset($Qentry) ? $Qentry->value('entry_postcode') : null, 'placeholder="' . ($default_country == 223 ? $lC_Language->get('field_customer_zip_code') : $lC_Language->get('field_customer_post_code')) . '" class="form-control"') . '</div>';
}
$countries_array = array(array('id' => '', 'text' => $lC_Language->get('pull_down_default')));
foreach (lC_Address::getCountries() as $country) {
$countries_array[] = array('id' => $country['id'], 'text' => $country['name']);
}
echo '<div class="form-group full-width margin-bottom"><label class="sr-only"></label>' . lc_draw_pull_down_menu('country', $countries_array, $default_country, 'onchange="getZonesDropdown(this.value)" class="form-control"') . '</div>';
if ($lC_Customer->hasDefaultAddress() && (isset($_GET['edit']) && $lC_Customer->getDefaultAddressID() != $_GET['address_book'] || isset($_GET['new']))) {
echo '<div class="checkbox small-margin-left">' . lc_draw_checkbox_field('primary', null, null, null, null) . '<label class="small-margin-left">' . $lC_Language->get('set_as_primary') . '</label></div>';
}
?>
</div>
</div>
<?php
$lC_Template->addJavascriptPhpFilename('templates/core/javascript/form_check.js.php');
$lC_Template->addJavascriptPhpFilename('templates/core/javascript/account/address_book_details.js.php');
?>
<!--content/account/address_book_details.php end-->
示例14: lc_draw_checkbox_field
?>
<div id="ajax-msg-div"></div>
</div>
</div>
<?php
if ($lC_Payment->hasActive()) {
echo $lC_Payment->process_button();
}
if (DISPLAY_CONDITIONS_ON_CHECKOUT == '1') {
?>
<div class="well padding-top padding-bottom large-margin-top">
<div class="checkbox">
<?php
echo lc_draw_checkbox_field('conditions', array(array('id' => 1, 'text' => $lC_Language->get('order_conditions_acknowledge'))), false);
?>
</div>
</div>
<?php
}
?>
</form>
<div class="btn-set clearfix">
<button id="content-checkout-confirmation-confirm-button" class="btn btn-lg btn-success pull-right" onclick="$('#checkout_confirmation').submit();" type="button"><?php
echo $lC_Language->get('button_confirm_order');
?>
</button>
<button class="btn btn-lg btn-default" onclick="window.location.href='<?php
echo lc_href_link(FILENAME_CHECKOUT, 'payment', 'SSL');
?>
示例15: lc_draw_checkbox_field
' <tr>'+
' <td><?php
echo $lC_Language->get('field_notify_customer');
?>
</td>'+
' <td><?php
echo lc_draw_checkbox_field('notify_customer', null, true);
?>
</td>'+
' </tr>'+
' <td><?php
echo $lC_Language->get('field_notify_customer_with_comments');
?>
</td>'+
' <td><?php
echo lc_draw_checkbox_field('append_comment', null, true);
?>
</td>'+
' </tr>'+
' <tr>'+
' <td colspan="2" align="right"><input type="hidden" name="oid" id="order_id" value=""><input class="button" onclick="updateOrderStatus(); return false;" type="submit" value="<?php
echo $lC_Language->get('button_update');
?>
" class="operationButton" /></td>'+
' </tr>'+
' </table>'+
' </div>'+
' </div>'+
' </div>'+
' </form>'+
'</div>',