Exemple #1
0
                        </p>
                        <p class="button-height block-label">
                          <label class="label" for="<?php 
    echo 'categories_description[' . $l['id'] . ']';
    ?>
">
                            <?php 
    echo $lC_Language->get('field_description');
    ?>
                            <?php 
    echo lc_show_info_bubble($lC_Language->get('info_bubble_categories_description'), null);
    ?>
                          </label>
                          <div style="margin-bottom:-6px;"></div>
                          <?php 
    echo lc_draw_textarea_field('categories_description[' . $l['id'] . ']', isset($cInfo) && isset($cInfo[$l['id']]['categories_description']) ? $cInfo[$l['id']]['categories_description'] : null, null, 10, 'id="ckEditorCategoriesDescription_' . $l['id'] . '" style="width:97%;" class="input full-width autoexpanding"');
    ?>
                         <!--  <?php 
    if (ENABLE_EDITOR == '1') {
        ?>
                          <span class="float-right small-margin-top small-margin-right"><?php 
        echo '<a href="javascript:toggleEditor(\'' . $l['id'] . '\');">' . $lC_Language->get('text_toggle_html_editor') . '</a>';
        ?>
</span>
                          <?php 
    }
    ?>
 -->
                        </p>
                        <br />
                        <p class="button-height block-label"<?php 
/**
  @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_textarea_field.php v1.0 2013-08-08 datazen $
*/
function lc_cfg_set_textarea_field($default, $key = null)
{
    $name = !empty($key) ? 'configuration[' . $key . ']' : 'configuration_value';
    return lc_draw_textarea_field($name, $default, 35, 5);
}
Exemple #3
0
    echo lc_draw_textarea_field('branding_footer_text[' . $l['id'] . ']', isset($bInfo) && isset($bInfo[$l['id']]['footer_text']) ? $bInfo[$l['id']]['footer_text'] : null, 48, 2, 'id="branding_footer_text[' . $l['id'] . ']" class="required input-unstyled full-width autoexpanding"');
    ?>
              </span>
              <?php 
}
?>
          </div>
          <div id="customcss" class="with-padding">
            <p class="button-height block-label mid-margin-bottom">
              <label class="label" for="branding_customcss"><?php 
echo lc_show_info_bubble($lC_Language->get('info_bubble_customcss'));
echo $lC_Language->get('field_customcss_text');
?>
</label>
              <?php 
echo lc_draw_textarea_field('branding_customcss', isset($bInfo) && isset($bInfo['custom_css']) ? $bInfo['custom_css'] : null, 48, 15, 'id="branding_customcss" class="input full-width required autoexpanding small-margin-top margin-bottom"');
?>
            </p>
          </div>
        </div>
      </div>
    </form>
  </div>
  <div class="clear-both"></div>
  <div class="six-columns twelve-columns-tablet margin-bottom">
    <div id="buttons-menu-div-listing">
      <div id="buttons-container" style="position: relative;" class="clear-both">
        <div style="float:right;">
          <p class="button-height" align="right">
            <a class="button<?php 
echo (int) $_SESSION['admin']['access'][$lC_Template->getModule()] < 3 ? ' disabled' : NULL;
Exemple #4
0
?>
</p>'+ 
                 '    <p class="button-height inline-label">'+
                 '      <label for="fid" class="label" style="width:30%;"><?php 
echo $lC_Language->get('field_file_name');
?>
</label>'+
                 '      <span id="editEntryName"></span>'+
                 '    </p>'+
                 '    <p class="button-height inline-label">'+
                 '      <label for="contents" class="label" style="width:30%;"><?php 
echo $lC_Language->get('field_file_contents');
?>
</label>'+
                 '      <?php 
echo lc_draw_textarea_field('contents', null, 80, 20, 'id="contentsEdit" class="input" style="width: 90%;"');
?>
'+
                 '    </p>'+                  
                 '  </form>'+ 
                 '  <p class="margin-top"><?php 
echo lc_output_string_protected($_SESSION['fm_directory']);
?>
</p>'+ 
                 '</div>',
        title: '<?php 
echo $lC_Language->get('modal_heading_new_file');
?>
',
        width: 600,
            actions: {
Exemple #5
0
                   '        <label for="address_format" class="label"><?php 
echo $lC_Language->get('field_image_target');
?>
</label>'+
                   '        <?php 
echo realpath('../images') . '/' . lc_draw_input_field('image_target', null, 'class="input" style="width:93%;"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="html_text" class="label"><?php 
echo $lC_Language->get('field_html_text');
?>
</label>'+
                   '        <?php 
echo lc_draw_textarea_field('html_text', null, 60, 5, 'class="input" style="width:93%;"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="date_scheduled" class="label"><?php 
echo $lC_Language->get('field_scheduled_date');
?>
</label>'+
                   '          <span class="input">'+
                   '            <span class="icon-calendar"></span>'+
                   '            <?php 
echo lc_draw_input_field('date_scheduled', null, 'class="input-unstyled datepicker"');
?>
'+
                   '          </span>'+
Exemple #6
0
                   '        <label for="countries_iso_code_3" class="label"><?php 
echo $lC_Language->get('field_iso_code_3');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('countries_iso_code_3', null, 'class="input full-width" id="editCountriesIsoCode3"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="address_format" class="label"><?php 
echo $lC_Language->get('field_address_format');
?>
</label>'+
                   '        <?php 
echo lc_draw_textarea_field('address_format', null, null, null, 'class="input full-width" id="editAddressFormat"');
?>
'+
                   '      </p>'+
                   '    </form>'+
                   '  </div>'+
                   '</div>',
          title: '<?php 
echo $lC_Language->get('modal_heading_edit_country');
?>
',
          width: 500,
                actions: {
            'Close' : {
              color: 'red',
              click: function(win) { win.closeModal(); }
Exemple #7
0
                   '        <label for="title" class="label"><?php 
echo $lC_Language->get('field_title');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('title', null, 'id="editTitle" class="input" style="width:93%;"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="content" class="label"><?php 
echo $lC_Language->get('field_content');
?>
</label>'+
                   '        <?php 
echo lc_draw_textarea_field('content', null, 60, 20, 'id="editContent" class="input" style="width:93%;"');
?>
'+
                   '      </p>'+
                   '    </form>'+
                   '  </div>'+
                   '</div>',
          title: '<?php 
echo $lC_Language->get('modal_heading_edit_newsletter');
?>
',
          width: 600,
                actions: {
            'Close' : {
              color: 'red',
              click: function(win) { win.closeModal(); }
Exemple #8
0
    ?>
</label>
                    <?php 
    echo lc_draw_textarea_field('products_blurb[' . $l['id'] . ']', isset($pInfo) && isset($products_blurb[$l['id']]) ? $products_blurb[$l['id']] : null, null, 3, 'id="products_blurb_' . $l['id'] . '" class="input full-width autoexpanding"');
    ?>
                  </p>
                  <p class="button-height block-label">
                    <label class="label" for="<?php 
    echo 'products_description[' . $l['id'] . ']';
    ?>
"><?php 
    echo $lC_Language->get('field_description') . lc_show_info_bubble($lC_Language->get('info_bubble_content_description'));
    ?>
</label>
                    <?php 
    echo lc_draw_textarea_field('products_description[' . $l['id'] . ']', isset($pInfo) && isset($products_description[$l['id']]) ? $products_description[$l['id']] : null, null, 10, 'id="ckEditorProductDescription_' . $l['id'] . '" style="width:97%;" class="input full-width autoexpanding"');
    ?>
                  </p>
                  <?php 
    if (ENABLE_EDITOR == '1') {
        ?>
                  <p class="toggle-html-editor">
                    <?php 
        echo '<a href="javascript:toggleEditor(\'' . $l['id'] . '\');">' . $lC_Language->get('text_toggle_html_editor') . '</a>';
        ?>
                  </p>
                  <p class="button-height block-label large-margin-top">
                  <?php 
    } else {
        ?>
                  <p class="button-height block-label">
Exemple #9
0
                   '        <span id="customers_name"></span>'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="date_added" class="label"><?php 
echo $lC_Language->get('field_date_added');
?>
</label>'+
                   '        <span id="date_added"></span>'+
                   '      </p>'+
                   '      <p class="inline-label">'+
                   '        <label for="preview_text" class="label"><?php 
echo $lC_Language->get('field_review');
?>
</label>'+
                   '        <?php 
echo lc_draw_textarea_field('reviews_text', null, '60', '8', 'class="input"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="rating_stars" class="label"><?php 
echo $lC_Language->get('field_rating');
?>
</label>'+
                   '        <span class="button-group"><span class="button red-gradient glossy" style="padding:0 18px"><?php 
echo strtoupper($lC_Language->get('rating_bad'));
?>
</span><span id="rating_radio"></span></span><span class="button green-gradient glossy"><?php 
echo strtoupper($lC_Language->get('rating_good'));
?>
</span>'+
Exemple #10
0
          </div>
          <div class="six-columns twelve-columns-mobile new-row-mobile">
            <div class="columns">
              <div class="twelve-columns">
                <font class="white font-eightteen mid-margin-right"><?php 
echo $lC_Language->get('text_current_status');
?>
</font>
                          <?php 
echo lC_Orders_Admin::drawOrderStatusDropdown($oInfo->get('oID'), 'anthracite-gradient');
?>
              </div>
              <div class="twelve-columns">
                <div>
                  <?php 
echo lc_draw_textarea_field('comment', null, null, null, 'class="input autoexpanding full-width mid-pull-top" placeholder="' . $lC_Language->get('text_comments_placeholder') . '"');
?>
                </div>
              </div>
            </div>
          </div>
          <div class="four-columns twelve-columns-mobile new-row-mobile">
            <div class="columns">
              <div class="twelve-columns twelve-columns-mobile new-row-mobile margin-bottom hide-below-768">&nbsp;</div>
              <div class="twelve-columns twelve-columns-mobile new-row-mobile">
                <div class="columns">
                  <div class="six-columns twelve-columns-mobile new-row-mobile small-margin-top no-margin-bottom">
                    <p class="small-margin-bottom no-wrap">
                      <input type="radio" class="radio small-margin-right" name="append_comment" value="1" checked="" onchange="$('#notify_customer').attr('value', '1');">Customer Message
                    </p>
                    <p class="small-margin-bottom">
Exemple #11
0
       
      <div class="noticeBox">
        <p><?php 
    echo sprintf($lC_Language->get('error_configuration_file_not_writeable'), $dir_fs_document_root . 'includes/config.php');
    ?>
</p>
        <p><?php 
    echo $lC_Language->get('error_configuration_file_alternate_method');
    ?>
</p>
        <p align="right"><?php 
    echo '<input class="button blue-gradient glossy" type="submit" value="Retry" />';
    ?>
</p>
        <p><?php 
    echo lc_draw_textarea_field('contents', $file_contents, 60, 5, 'readonly="readonly" style="width: 100%; height: 120px;"', false);
    ?>
</p>
      </div>
      <?php 
    foreach ($_POST as $key => $value) {
        if ($key != 'x' && $key != 'y') {
            if (is_array($value)) {
                for ($i = 0, $n = sizeof($value); $i < $n; $i++) {
                    echo lc_draw_hidden_field($key . '[]', $value[$i]);
                }
            } else {
                echo lc_draw_hidden_field($key, $value);
            }
        }
    }
    echo $lC_Language->get('button_edit');
    ?>
</button>
                  </div>                  
                </div>
                <?php 
}
?>
              <div class="well relative clearfix small-padding-top small-padding-bottom"> 
                <h4><?php 
echo $lC_Language->get('order_comment_title');
?>
</h4>
                <div class="form-group">
                  <?php 
echo lc_draw_textarea_field('comments', isset($_SESSION['comments']) ? $_SESSION['comments'] : null, 60, 5, 'class="form-control" placeholder="' . $lC_Language->get('text_add_comment_to_order') . '" onkeyup="sendOrderCommentsToSession(this.value);"');
?>
                </div>                 
              </div>                                        
            </div>
            <div class="col-sm-8 col-lg-8">
              <div class="" id="content-checkout-confirmation-products-table">
                <table class="table responsive-table no-margin-bottom">
                  <?php 
if ($lC_ShoppingCart->numberOfTaxGroups() > 1) {
    ?>
                    <thead>
                      <tr>
                        <th colspan="2"><?php 
    echo $lC_Language->get('order_products_title');
    ?>
Exemple #13
0
                   '              <td><?php 
echo $lC_Language->get('field_status');
?>
</td>'+
                   '              <td><?php 
echo lc_draw_pull_down_menu('status', null, null, 'class="input with-small-padding" style="width: 73%" id="orderStatus"');
?>
</td>'+
                   '            </tr>'+
                   '            <tr>'+
                   '              <td valign="top" width="30%"><?php 
echo $lC_Language->get('field_add_comment');
?>
</td>'+
                   '              <td width="70%"><?php 
echo lc_draw_textarea_field('comment', null, null, null, 'class="input" style="width: 100%"');
?>
</td>'+
                   '            </tr>'+
                   '            <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');
Exemple #14
0
 public static function getDefinitionsFormData($id = null)
 {
     global $lC_Language;
     $result = array();
     $result['definitionValue'] = '';
     foreach ($lC_Language->getAll() as $l) {
         $result['definitionValue'] .= '<span class="input" style="width:90%"><label for="value[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_textarea_field('value[' . $l['id'] . ']', null, 38, 5, 'class="input-unstyled"') . '</span>';
     }
     $groups_array = array();
     foreach (lc_toObjectInfo(lC_Languages_Admin::getDefinitionGroups($_GET['languages']))->get('entries') as $value) {
         $groups_array[] = array('id' => $value['content_group'], 'text' => $value['content_group']);
     }
     $result['groupsSelection'] = '';
     if (!empty($groups_array)) {
         $result['groupsSelection'] = lc_draw_pull_down_menu('group', $groups_array, null, 'class="input with-small-padding"');
     }
     if (isset($id) && $id != null) {
         $result['definitionData'] = lC_Languages_Admin::getDefinition($id);
         $result['editDefinitionHtml'] = '<label for="def[' . $result['definitionData']['definition_key'] . ']"><strong>' . $result['definitionData']['definition_key'] . '</strong></label>' . lc_draw_textarea_field('def[' . $result['definitionData']['definition_key'] . ']', $result['definitionData']['definition_value'], 38, 5, 'class="input full-width"');
     }
     return $result;
 }