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"'))); }
/** @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 />'); }
?> "></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">
?> "></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>
); 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>
@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>
' <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'); ?> ',
@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>'; }
' <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(); }
?> <!--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');
@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'); ?>
<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
$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-->
?> <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'); ?>
' <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>',
if (file_exists(LOCAL_EXE_GZIP)) { $compress_array[] = array('id' => 'gzip', 'text' => TEXT_INFO_USE_GZIP); } if (file_exists(LOCAL_EXE_ZIP)) { $compress_array[] = array('id' => 'zip', 'text' => TEXT_INFO_USE_ZIP); } echo lc_draw_radio_field('compress', $compress_array, 'no', null, '<br />'); ?> </p> <p> <?php if (is_dir(DIR_FS_BACKUP) && is_writeable(DIR_FS_BACKUP)) { echo lc_draw_checkbox_field('download', array(array('id' => 'yes', 'text' => TEXT_INFO_DOWNLOAD_ONLY))) . '*<br /><br />*' . TEXT_INFO_BEST_THROUGH_HTTPS; } else { echo lc_draw_radio_field('download', array(array('id' => 'yes', 'text' => TEXT_INFO_DOWNLOAD_ONLY)), true) . '*<br /><br />*' . TEXT_INFO_BEST_THROUGH_HTTPS; } ?> </p> <p align="center"><?php echo '<input type="submit" value="' . IMAGE_BACKUP . '" class="operationButton"> <input type="button" value="' . IMAGE_CANCEL . '" onclick="toggleInfoBox(\'bDefault\');" class="operationButton">'; ?> </p> </form> </div> </div>
?> </p> </div> <?php if ($Qglobal->valueInt('global_product_notifications') != '1') { echo '<h3 class="">' . $lC_Language->get('product_notifications_products') . '</h3>' . "\n"; if ($lC_Template->hasCustomerProductNotifications($lC_Customer->getID())) { echo '<p class="normal">' . $lC_Language->get('product_notifications_products_description') . '</p>' . "\n"; $Qproducts = $lC_Template->getListing(); $counter = 0; while ($Qproducts->next()) { $counter++; echo '<div class="well">' . "\n"; echo ' <div class="checkbox">' . "\n"; echo ' <label class="margin-left">' . lc_draw_checkbox_field('products[' . $counter . ']', $Qproducts->valueInt('products_id'), true, null, null) . ' ' . $Qproducts->value('products_name') . '</label>' . "\n"; echo ' </div>' . "\n"; echo '</div>' . "\n"; } } else { echo '<div class="well">' . "\n"; echo ' <p class="no-margin-bottom normal"> ' . $lC_Language->get('product_notifications_products_none') . '</p>' . "\n"; echo '</div>' . "\n"; } } ?> </form> <div class="btn-set small-margin-top clearfix"> <button class="pull-right btn btn-lg btn-primary" onclick="$('#account_notifications').submit();" type="button"><?php echo $lC_Language->get('button_update');
' <label for="specials_price_gross" class="label" style="width:50%;"><?php echo $lC_Language->get('field_price_gross'); ?> </label>'+ ' <?php echo lc_draw_input_field('specials_price_gross', null, 'class="input" onkeyup="updateNet(event);"'); ?> '+ ' </p>'+ ' <p class="button-height inline-label">'+ ' <label for="specials_status" class="label" style="width:50%;"><?php echo $lC_Language->get('field_status'); ?> </label>'+ ' <?php echo lc_draw_checkbox_field('specials_status', '1', true, 'class="switch medium" data-text-on="' . strtoupper($lC_Language->get('button_yes')) . '" data-text-off="' . strtoupper($lC_Language->get('button_no')) . '"'); ?> '+ ' </p>'+ ' <p class="button-height inline-label">'+ ' <label for="specials_start_date" class="label" style="width:50%;"><?php echo $lC_Language->get('field_date_start'); ?> </label>'+ ' <span class="input">'+ ' <span class="icon-calendar"></span>'+ ' <?php echo lc_draw_input_field('specials_start_date', null, 'class="input-unstyled datepicker"'); ?> '+ ' </span>'+
' <label for="content_page" class="label"><?php echo $lC_Language->get('field_pages'); ?> </label>'+ ' <?php echo lc_draw_pull_down_menu('content_page', $pages_array, null, 'class="input with-small-padding" style="width:100%;"'); ?> '+ ' </p>'+ ' <p class="button-height inline-label">'+ ' <label for="page_specific" class="label"><?php echo $lC_Language->get('field_page_specific'); ?> </label>'+ ' <?php echo lc_draw_checkbox_field('page_specific', null, null, 'class="switch medium" data-text-on="YES" data-text-off="NO"'); ?> '+ ' </p>'+ ' <p class="button-height inline-label">'+ ' <label for="group" class="label"><?php echo $lC_Language->get('field_group'); ?> </label>'+ ' <span id="newModuleGroupsDropdown"></span>'+ ' </p>'+ ' <p class="button-height inline-label">'+ ' <label for="group_new" class="label"><?php echo $lC_Language->get('field_group_new'); ?> </label>'+
return false; } $.modal({ content: '<div id="backupContent">'+ ' <form name="bBackup" id="bBackup" action="" method="post">'+ ' <p><?php echo $lC_Language->get('introduction_new_backup'); ?> </p>'+ ' <p><?php echo lc_draw_radio_field('compression', $compression_array, 'none', null, ' <br />'); ?> </p>'+ ' <p><?php if (!lc_empty(DIR_FS_BACKUP) && @is_dir(DIR_FS_BACKUP) && @is_writeable(DIR_FS_BACKUP)) { echo lc_draw_checkbox_field('download_only', array(array('id' => 'yes', 'text' => $lC_Language->get('field_download_only')))); } else { echo lc_draw_radio_field('download_only', array(array('id' => 'yes', 'text' => $lC_Language->get('field_download_only'))), true); } ?> </p>'+ ' </form>'+ '</div>', title: '<?php echo $lC_Language->get('modal_heading_new_backup'); ?> ', width: 300, actions: { 'Close' : { color: 'red',
' <label for="force_size" class="label"><?php echo $lC_Language->get('field_force_size'); ?> </label>'+ ' <?php echo lc_draw_checkbox_field('force_size', null, null, 'class="switch medium" data-text-on="' . strtoupper($lC_Language->get('button_yes')) . '" data-text-off="' . strtoupper($lC_Language->get('button_no')) . '"'); ?> '+ ' </p>'+ ' <p class="button-height inline-label">'+ ' <label for="default" class="label"><?php echo $lC_Language->get('field_set_as_default'); ?> </label>'+ ' <?php echo lc_draw_checkbox_field('default', null, null, '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_new_image_group'); ?> ', width: 500, actions: { 'Close' : { color: 'red', click: function(win) { win.closeModal(); }
</h3> <div class="form-group full-width margin-bottom"><?php echo lc_draw_input_field('email_address', $_POST['email'] ? $_POST['email'] : '', 'placeholder="' . $lC_Language->get('field_customer_email_address') . '" class="form-control"'); ?> </div> <div class="form-group full-width margin-bottom"><?php echo lc_draw_password_field('password', 'class="form-control" placeholder="' . $lC_Language->get('field_customer_password') . '"'); ?> </div> <div class="form-group full-width margin-bottom"><?php echo lc_draw_password_field('confirmation', 'placeholder="' . $lC_Language->get('field_customer_password_confirmation') . '" class="form-control"'); ?> </div> <?php if (DISPLAY_PRIVACY_CONDITIONS == '1') { echo '<div class="form-group no-wrap">' . lc_draw_checkbox_field('privacy_conditions', null, null, 'class="form-control no-margin-top small-margin-right" style="width:5%;"') . '<label style="font-weight:200;">' . sprintf($lC_Language->get('create_account_terms_confirm'), lc_href_link(FILENAME_INFO, 'privacy', 'AUTO')) . '</label></div>'; } ?> </div> </div> </form> </div> <div class="btn-set small-margin-top clearfix"> <button class="pull-right btn btn-lg btn-primary" onclick="$('#create').submit();" type="button"><?php echo $lC_Language->get('button_signup'); ?> </button> <form action="<?php echo lc_href_link(FILENAME_ACCOUNT, null, 'AUTO'); ?> " method="post"><button class="pull-left btn btn-lg btn-default" onclick="$(this).closest('form').submit();" type="submit"><?php
public static function getProductFormData($id = null) { global $_module, $lC_Database, $lC_Language; $lC_Language->loadIniFile('products.php'); $lC_CategoryTree = new lC_CategoryTree_Admin(); $result = array(); if (isset($id) && is_numeric($id)) { $Qcategories = $lC_Database->query('select categories_id from :table_products_to_categories where products_id = :products_id'); $Qcategories->bindTable(':table_products_to_categories', TABLE_PRODUCTS_TO_CATEGORIES); $Qcategories->bindInt(':products_id', $id); $Qcategories->execute(); $in_categories = array(); while ($Qcategories->next()) { $in_categories[] = $Qcategories->valueInt('categories_id'); } $cnt = 0; $in_categories_path = ''; foreach ($in_categories as $category_id) { $in_categories_path .= $lC_CategoryTree->getPath($category_id, 0, ' » ') . '<br />'; if ($category_id == 0) { $categories_array[] = array('id' => $category_id, 'text' => $lC_Language->get('top_category')); } else { $categories_array[] = array('id' => $category_id, 'text' => $lC_CategoryTree->getPath($category_id, 0, ' » ')); } $cnt++; } $result['inCategoriesCount'] = $cnt; $result['inCategoriesCheckbox'] = lc_draw_checkbox_field('product_categories[]', $categories_array, true, null, ' <br />'); if (!empty($in_categories_path)) { $in_categories_path = substr($in_categories_path, 0, -6); if (substr($in_categories_path, 0, 6) == '<br />') { $in_categories_path = $lC_Language->get('top_category') . '<br />' . $in_categories_path; } } $result['categoryPath'] = $in_categories_path; } $categories_array = array('0' => '-- ' . $lC_Language->get('top_category') . ' --'); foreach ($lC_CategoryTree->getArray() as $value) { $pid = end(explode('_', $value['id'])); if (lC_Categories_Admin::getParent($pid) != 0) { foreach (explode('_', $value['id']) as $cats) { if ($pid != $cats) { $Qcpn = $lC_Database->query('select categories_name from :table_categories_description where categories_id = :categories_id and language_id = :language_id'); $Qcpn->bindTable(':table_categories_description', TABLE_CATEGORIES_DESCRIPTION); $Qcpn->bindInt(':language_id', $lC_Language->getID()); $Qcpn->bindInt(':categories_id', $cats); $Qcpn->execute(); $titlestr .= $Qcpn->value('categories_name') . ' » '; } } $title = $titlestr . $value['title']; unset($titlestr); } else { $title = $value['title']; } $categories_array[$value['id']] = $title; } $result['categoriesArray'] = $categories_array; return $result; }
</div> </div> <div class="well large-margin-top padding-bottom"> <form name="checkout_success" id="checkout_success" action="<?php echo lc_href_link(FILENAME_CHECKOUT, 'success=update', 'SSL'); ?> " method="post"> <?php $products_array = lC_Success::globalNotifications($lC_Customer->getID()); if (isset($products_array) && !empty($products_array)) { echo $lC_Language->get('add_selection_to_product_notifications') . '<br />'; $products_displayed = array(); for ($i = 0, $n = sizeof($products_array); $i < $n; $i++) { if (!in_array($products_array[$i]['id'], $products_displayed)) { echo '<div class="checkbox"><label class="">' . lc_draw_checkbox_field('notify[]', $products_array[$i]['id'], null, null, null) . $products_array[$i]['text'] . '</label></div>' . "\n"; $products_displayed[] = $products_array[$i]['id']; } } } else { echo sprintf($lC_Language->get('view_order_history'), lc_href_link(FILENAME_ACCOUNT, null, 'SSL'), lc_href_link(FILENAME_ACCOUNT, 'orders', 'SSL')) . '<br /><br />' . sprintf($lC_Language->get('contact_store_owner'), lc_href_link(FILENAME_INFO, 'contact')); } ?> </form> </div> <div class="btn-set clearfix"> <button id="content-checkout-success-confirm-button" class="btn btn-lg btn-success pull-right" onclick="$('#checkout_success').submit();" type="button"><?php echo $lC_Language->get('button_continue'); ?> </button> </div>