Пример #1
0
function lc_legend($params)
{
    global $lC_Language;
    if (!is_array($params)) {
        return false;
    }
    $legend = '<div id="dataTableLegendBlock"><span id="dataTableLegend"><div id="dataTableLegendTitle">' . $lC_Language->get('table_action_legend') . ':</div><div id="dataTableLegendContent"><ul>';
    foreach ($params as $value) {
        $icon_name = $value . '.png';
        $icon_text = 'icon_' . $value;
        $legend .= '<li><div id="dataTableLegendIconBlock"><div id="dataTableLegendIcon">' . lc_icon($icon_name) . '</div><div id="dataTableLegendText">' . $lC_Language->get($icon_text) . '</div></div></li>';
    }
    $legend .= '</ul></div></span></div>';
    return $legend;
}
Пример #2
0
 public function getBatchNextPageLink($batch_keyword = 'page', $parameters = '')
 {
     global $lC_Language;
     $number_of_pages = ceil($this->batch_size / $this->batch_rows);
     $get_parameter = '';
     if (!empty($parameters)) {
         $parameters = explode('&', $parameters);
         foreach ($parameters as $parameter) {
             $keys = explode('=', $parameter, 2);
             if ($keys[0] != $batch_keyword) {
                 $get_parameter .= $keys[0] . (isset($keys[1]) ? '=' . $keys[1] : '') . '&';
             }
         }
     }
     if (defined('LC_IN_ADMIN') && LC_IN_ADMIN === true) {
         $forward_string = lc_icon('nav_forward.png');
         $forward_grey_string = lc_icon('nav_forward_grey.png');
     } else {
         $forward_string = file_exists(DIR_FS_TEMPLATE . 'images/icons/16/nav_forward.png') ? lc_icon('nav_forward.png', null, null, 'style="vertical-align:-10%;"') : $lC_Language->get('result_set_next_page');
         $forward_grey_string = file_exists(DIR_FS_TEMPLATE . 'images/icons/16/nav_forward_grey.png') ? lc_icon('nav_forward_grey.png', null, null, 'style="vertical-align:-10%;"') : $lC_Language->get('result_set_next_page');
     }
     $string = '&nbsp;';
     if ($this->batch_number < $number_of_pages && $number_of_pages != 1) {
         $string .= lc_link_object(lc_href_link(basename($_SERVER['SCRIPT_FILENAME']), $get_parameter . $batch_keyword . '=' . ($this->batch_number + 1)), $forward_string);
     } else {
         $string .= '<a href="javascript:void(0);">' . $forward_grey_string . '</a>';
     }
     return $string;
 }
Пример #3
0
        ?>
', 'dn');"></i>
                </div>              
              </td>
              <td class="text-right"><span class="price" id="total-price-<?php 
        echo $products['item_id'];
        ?>
"><?php 
        echo $lC_Currencies->displayPrice($products['price'], $products['tax_class_id'], $products['quantity']);
        ?>
</span></td>
              <td class="text-center content-shopping-cart-remove-td"><a href="javascript:void(0);" onclick="deleteItem('<?php 
        echo $products['item_id'];
        ?>
');"><?php 
        echo lc_icon('cart_remove.png');
        ?>
</a></td>
            </tr>
            <?php 
    }
    ?>
          </tbody>
          <tfoot>
            <tr>
              <td></td>
              <td class="hide-on-mobile-portrait"></td>
              <td class="hide-on-mobile-portrait"></td>
              <td colspan="3"></td>
            </tr>
          </tfoot>
Пример #4
0
";     
        $(location).attr('href',url);
      }    
      $("#status-working").fadeOut('slow');    
      $("#previewContent").modal({bgiframe: true, resizable: false, height:500, width:900, modal: true, overlay: { backgroundColor: '#000', opacity: 0.5 },
        buttons: {  
          '<?php 
echo $lC_Language->get('button_close');
?>
': function() {
            $("#previewContent").modal('close');
          }
        }
      });            
      $("#previewContent").modal('open');         
      $("#previewContentMessage").html('<table width="100%" border="0"><tr><td width="16" height="30"><?php 
echo lc_icon('file.png');
?>
</td><td><b>' + data.title + '</b></td></tr><tr><td colspan="2">' + data.content + '</td></tr></table>');
    }
  );
}  
</script>  
<div id="preview">
  <div id="previewContent" style="display:none;" title="<?php 
echo $lC_Language->get('dialog_heading_preview_newsletter');
?>
">
    <p id="previewContentMessage"></p>
   </div>
</div>