linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Source for file tpl_yellowpages.php

Documentation is available at tpl_yellowpages.php

  1. <?php
  2. /**
  3.  * @package linea21.core
  4.  * @subpackage public
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. include_once('../yellowpages/display.php');
  12. $GLOBALS['filters'][LANGUAGE]['theme']['active'1// filter activation
  13.  
  14. SetHTMLTitle($GLOBALS['lang']['yp']['section']);
  15.  
  16. // récupération des variables GET et POST
  17. if (isset($_REQUEST['id']&& !isset($_REQUEST['filter'])) {
  18.   $yp_id=$_REQUEST['id'];
  19. }
  20. else $yp_id=-1;
  21.  
  22. if (isset($_REQUEST['filter'])) {
  23.      if ($_REQUEST['filter']=="alpha"{
  24.        $filter_id=$_REQUEST['id'];
  25.        $filter="alpha";
  26.      }
  27.      if ($_REQUEST['filter']==$GLOBALS['filters'][LANGUAGE]['theme']['linkvalue']{
  28.  
  29.        $filter_id=$_REQUEST['id'];
  30.        $filter=$GLOBALS['filters'][LANGUAGE]['theme']['linkvalue'];
  31.      }
  32. }
  33. else {
  34.   $filter_id=-1;
  35.   $filter=-1;
  36. }
  37. if (isset($_REQUEST['debut'])) $debut=$_REQUEST['debut'];
  38. else $debut=0;
  39. ?>
  40. <div id="contenu"><?php
  41.  
  42. if (ActiveItemKey($GLOBALS['activeitem'])=='directory' || ActiveItemKey($GLOBALS['activeitem'])== 'directory-detail'{
  43.   /**
  44.    * affichage de l'annuaire
  45.    **/
  46.  
  47.   //DisplayUrlAddYellowpages();
  48.   //DisplayAlphaBeta($filter,$filter_id);
  49.   if ($yp_id==-1{
  50.     DisplayListYellowPages($debutSELECT_LIMIT$filter$filter_id);
  51.  
  52.   }
  53.   /**
  54.    * affichage d'une organisation
  55.    **/
  56.  
  57.   else {
  58.     // set HTML Title
  59.     $result=$GLOBALS['sql_object']->DBSelect(SQL_getOneYpName($yp_id));
  60.     SetHTMLTitle(formatText($result[0]['yellowp_name']'2HTML'));
  61.     
  62.     echo DisplayOneYellowPages($yp_id);
  63.   }
  64. }
  65. /**
  66.  * affichage du formulaire d'ajout
  67.  **/
  68.  
  69. else echo DisplayAddYellowPages();
  70. ?></div>

Documentation generated on Sat, 08 Nov 2008 14:54:47 +0100 by phpDocumentor 1.4.1