<h3><?php echo $lC_Language->get('login_returning_customer_heading'); ?> </h3> <form role="form" id="login" name="login" class="no-margin-bottom" action="<?php echo lc_href_link(FILENAME_ACCOUNT, 'login=process', 'SSL'); ?> " method="post"> <div class="form-group"> <label class="sr-only"></label><?php echo lc_draw_input_field('email_address', $_POST['email'] ? $_POST['email'] : $_SESSION['lC_Customer_data']['email_address'] ? $_SESSION['lC_Customer_data']['email_address'] : '', 'class="form-control" placeholder="' . $lC_Language->get('field_customer_email_address') . '"'); ?> </div> <div class="form-group"> <label class="sr-only"></label><?php echo lc_draw_password_field('password', 'class="form-control" placeholder="' . $lC_Language->get('field_customer_password') . '"'); ?> <p class="help-block small-margin-left"><?php echo sprintf($lC_Language->get('login_returning_customer_password_forgotten'), lc_href_link(FILENAME_ACCOUNT, 'password_forgotten', 'SSL')); ?> </p> </div> <div class="button-set clearfix"> <button class="pull-right btn btn-lg btn-primary" onclick="$('#login').submit();" type="submit"><?php echo $lC_Language->get('button_sign_in'); ?> </button> </div> </form> </div> </div>
?> "></span></label> <?php echo lc_draw_input_field('CFG_ADMINISTRATOR_EMAIL', null, 'class="input" style="width:93%;"'); ?> </div> <div class="field-block button-height"> <label for="CFG_ADMINISTRATOR_PASSWORD" class="label"><b><?php echo $lC_Language->get('param_administrator_password'); ?> </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_administrator_password_description'); ?> "></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">
' <label for="profile_password_new" class="label"><?php echo $lC_Language->get('profile_password_new'); ?> </label>'+ ' <?php echo lc_draw_password_field('profile_password_new', 'id="profile_password_new" class="input full-width"'); ?> '+ ' </p>'+ ' <p class="button-height inline-label">'+ ' <label for="profile_password_confirm" class="label"><?php echo $lC_Language->get('profile_password_confirm'); ?> </label>'+ ' <?php echo lc_draw_password_field('profile_password_confirm', 'id="profile_password_confirm" class="input full-width"'); ?> '+ ' </p>'+ ' <input type="hidden" id="edit-access_group_id" name="access_group_id" />'+ ' <input type="hidden" id="encrypted" name="encrypted" />'+ ' </form>'+ ' </div>'+ '</div>', title: '<?php echo $lC_Language->get('modal_heading_profile_pass_change'); ?> ', width: 500, actions: { 'Close' : {
<div class="col-sm-6 col-lg-6 margin-top clearfix"> <div class="well no-padding-top"> <h3><?php echo $lC_Language->get('login_details_title'); ?> </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'); ?>
' <label for="user_name" class="label"><?php echo $lC_Language->get('field_username'); ?> </label>'+ ' <?php echo lc_draw_input_field('user_name', null, 'class="input full-width"'); ?> '+ ' </p>'+ ' <p class="button-height inline-label">'+ ' <label for="user_password" class="label"><?php echo $lC_Language->get('field_password'); ?> </label>'+ ' <?php echo lc_draw_password_field('user_password', 'class="input full-width"'); ?> '+ ' </p>'+ ' <p class="button-height inline-label">'+ ' <label for="language_id" class="label"><?php echo $lC_Language->get('field_admin_language'); ?> </label>'+ ' <?php echo lc_draw_pull_down_menu('language_id', $languagesSelectArr, $admin_language_default, 'id="edit-language_id" class="input with-small-padding" style="min-width:200px;"'); ?> '+ ' </p>'+
@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 for="user_name" class="label"><?php echo $lC_Language->get('field_username'); ?> </label>'+ ' <?php echo lc_draw_input_field('user_name', null, 'id="edit-user_name" class="input full-width"'); ?> '+ ' </p>'+ ' <p class="button-height inline-label">'+ ' <label for="user_password" class="label"><?php echo $lC_Language->get('field_password'); ?> </label>'+ ' <?php echo lc_draw_password_field('user_password', 'id="edit-user_password" class="input full-width"'); ?> '+ ' </p>'+ ' <p class="button-height inline-label">'+ ' <label for="language_id" class="label"><?php echo $lC_Language->get('field_admin_language'); ?> </label>'+ ' <?php echo lc_draw_pull_down_menu('language_id', $languagesSelectArr, null, 'id="edit-language_id" class="input with-small-padding" style="min-width:200px;"'); ?> '+ ' </p>'+
public static function getData($name) { global $lC_Database, $lC_Language, $lC_Vqmod, $lC_Currencies; $result = array(); include_once DIR_FS_CATALOG . 'addons/' . $name . '/controller.php'; $addon = new $name(); $blurb = $addon->getAddonBlurb() ? $addon->getAddonBlurb() : null; $result['desc'] = '<div class="margin-bottom" style="width:100%;"> <div class="float-left margin-right">' . $addon->getAddonThumbnail() . '</div> <div style="width:90%;"> <div class="strong">' . $addon->getAddonTitle() . '</div> <div>' . lc_image('../images/stars_' . $addon->getAddonRating() . '.png', sprintf($lC_Language->get('rating_from_5_stars'), $addon->getAddonRating()), null, null, 'class="mid-margin-top small-margin-bottom"') . '</div> <div><small>' . $addon->getAddonAuthor() . '</small></div> <div style="position:absolute; right:0; top:0;"><button id="uninstallButton" onclick="uninstallAddon(\'' . $addon->getAddonCode() . '\',\'' . urlencode($addon->getAddonTitle()) . '\', \'' . $addon->getAddonType() . '\');" class="button icon-undo red-gradient glossy"><span>Uninstall</span></button></div> </div> </div>' . $blurb . ' </div>'; $cnt = 0; $keys = ''; foreach ($addon->getKeys() as $key) { $Qkey = $lC_Database->query('select configuration_title, configuration_value, configuration_description, use_function, set_function from :table_configuration where configuration_key = :configuration_key'); $Qkey->bindTable(':table_configuration', TABLE_CONFIGURATION); $Qkey->bindValue(':configuration_key', $key); $Qkey->execute(); $keys .= '<label for="' . $Qkey->value('configuration_title') . '" class="label"><strong>' . $Qkey->value('configuration_title') . '</strong></label>'; if (!lc_empty($Qkey->value('set_function'))) { $keys .= lc_call_user_func($Qkey->value('set_function'), $Qkey->value('configuration_value'), $key); } else { if (stristr($key, 'password')) { $keys .= lc_draw_password_field('configuration[' . $key . ']', 'class="input" onfocus="this.select();"', $Qkey->value('configuration_value')); } else { if (preg_match('/(_COST|_HANDLING|_PRICE|_FEE|_MINIMUM_ORDER)$/i', $key)) { $keys .= '<div class="inputs" style="display:inline; padding:8px 0;">' . ' <span class="mid-margin-left no-margin-right">' . $lC_Currencies->getSymbolLeft() . '</span>' . lc_draw_input_field('configuration[' . $key . ']', @number_format($Qkey->value('configuration_value'), DECIMAL_PLACES), 'class="input-unstyled" onfocus="this.select();"') . '</div>'; } else { $keys .= lc_draw_input_field('configuration[' . $key . ']', $Qkey->value('configuration_value'), 'class="input" onfocus="this.select();"'); } } } $keys .= '<span class="info-spot on-left margin-left"><span class="icon-info-round icon-silver"></span><span class="info-bubble">' . $Qkey->value('configuration_description') . '</span></span><br /><br />'; $cnt++; } $result['keys'] = substr($keys, 0, strrpos($keys, '<br /><br />')); $result['totalKeys'] = $cnt; return $result; }