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));
     }
 }
Example #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));
     }
 }
Example #3
0
  Copyright (c) 2009 Wuxi Elootec Technology Co., Ltd;  Copyright (c) 2006 osCommerce

  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.
*/
?>
<h1><?php 
echo $osC_Template->getPageTitle();
?>
</h1>

<div id="faqs" class="moduleBox">
  <?php 
$Qfaqs = toC_Faqs::getListing();
while ($Qfaqs->next()) {
    ?>
    <dl id="faq<?php 
    echo $Qfaqs->valueInt('faqs_id');
    ?>
">
      <dt class="question">
        <?php 
    echo $Qfaqs->value('faqs_question');
    ?>
      </dt>
      <dd class="answer">
        <?php 
    echo $Qfaqs->value('faqs_answer');
    ?>