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(themePath('../yellowpages/display.php'));
  12. $GLOBALS['filters'][U_L]['theme']['active'1// filter activation
  13.  
  14. SetHTMLTitle(_t('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'][U_L]['theme']['linkvalue']{
  28.  
  29.        $filter_id=$_REQUEST['id'];
  30.        $filter=$GLOBALS['filters'][U_L]['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. <?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.   echo '<h1>'._t('yp','list').'</h1>'.END_LINE;
  50.   echo '<div class="h1_comment" id="h1_yellowpages">'._t('yp','h1_public_comment').'</div>';
  51.   if ($yp_id==-1{
  52.     DisplayListYellowPages($debutSELECT_LIMIT$filter$filter_id);
  53.     setBreadcrumb(array(ucfirst(_t('yp''section')) => false));
  54.  
  55.   }
  56.   /**
  57.    * affichage d'une organisation
  58.    **/
  59.  
  60.   else {
  61.     // set HTML Title
  62.     $result=$GLOBALS['sql_object']->DBSelect(SQL_getOneYpName($yp_id));
  63.     SetHTMLTitle(formatText($result[0]['yellowp_name']'2HTML'));
  64.     setBreadcrumb(array(ucfirst(_t('yp''section')) => HrefMaker(array('rub'=> $GLOBALS['links'][U_L]['directory']['linkvalue']))));
  65.     setBreadcrumb(array(formatText($result[0]['yellowp_name']'2HTML'=> false));
  66.  
  67.     echo DisplayOneYellowPages($yp_id);
  68.   }
  69. }
  70. /**
  71.  * affichage du formulaire d'ajout
  72.  **/
  73.  
  74. else {
  75.   setBreadcrumb(array(ucfirst(_t('yp''section')) => HrefMaker(array('rub'=> $GLOBALS['links'][U_L]['directory']['linkvalue']))));
  76.   setBreadcrumb(array(_t('yp','add_public'=> false));
  77. }
  78. ?>

Documentation generated on Fri, 01 Apr 2011 09:35:17 +0200 by phpDocumentor 1.4.1