function osC_Info_Sitemap()
 {
     global $osC_Services, $osC_Language, $breadcrumb, $Qarticles_listing, $Qfaqs_listing;
     $this->_page_title = $osC_Language->get('info_sitemap_heading');
     $articles = new toC_Articles();
     $Qarticles_listing = $articles->getListing();
     $faqs = new toC_Faqs();
     $Qfaqs_listing = $faqs->getListing();
     if ($osC_Services->isStarted('breadcrumb')) {
         $breadcrumb->add($osC_Language->get('breadcrumb_sitemap'), osc_href_link(FILENAME_INFO, $this->_module));
     }
 }
Пример #2
0
 function osC_Info_Sitemap()
 {
     global $osC_Services, $osC_Language, $breadcrumb, $Qinformation_listing, $articles_categories, $Qfaqs_listing;
     $this->_page_title = $osC_Language->get('info_sitemap_heading');
     //create the article instance to get the articles in each categories
     $articles = new toC_Articles();
     //get the articles listing for information category
     $Qinformation_listing = $articles->getListing(1);
     //get articles categories including the articles
     $articles_categories = $articles->getCategoriesListing();
     //get the faqs listing
     $faqs = new toC_Faqs();
     $Qfaqs_listing = $faqs->getListing();
     if ($osC_Services->isStarted('breadcrumb')) {
         $breadcrumb->add($osC_Language->get('breadcrumb_sitemap'), osc_href_link(FILENAME_INFO, $this->_module));
     }
 }
<?php

/*
  $Id: articles_categories.php $
  TomatoCart Open Source Shopping Cart Solutions
  http://www.tomatocart.com
  http://www.tomatoshop.ir  Persian Tomatocart v1.1.8.6 / Khordad 1394
  Copyright (c) 2009 Wuxi Elootec Technology Co., Ltd

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
$Qarticles = toC_Articles::getListing($_GET['articles_categories_id']);
?>

<h1><?php 
echo $article_categories['articles_categories_name'];
?>
</h1>

<?php 
if ($Qarticles->numberOfRows() > 0) {
    while ($Qarticles->next()) {
        ?>
  <div class="moduleBox">

    <h6><span style="float: left;"><?php 
        echo osC_DateTime::getShort($Qarticles->value('articles_date_added'));
        ?>
</span><?php