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

Source for file quickbox.php

Documentation is available at quickbox.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage yellowpages
  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. //////////// Check Inclusion de pages ////////////
  12. if (!class_exists('auth')){
  13.   include_once("../lib/lib_common.php");
  14.   ReloadIndex('admin');
  15. }
  16. ////////////
  17.  
  18. //////////// Check Droits utilisateur ////////////
  19. if (!$l21auth->isSuperAdmin()) ReloadIndex('admin');
  20. ////////////
  21.  
  22. $qbx_module=_t('menu','yellowpages');
  23.  
  24. $resultqb=$sql_object->DBSelect($req_quickbox_list);
  25. if ($todo == 'add' || $todo == 'list' || $todo == 'mod' || $todo == 'sup' || $todo == 'det'{
  26.   $qbx_liste='';
  27.   $nb='';
  28.  
  29.   if($resultqb==0{
  30.     $qbx_liste.="<li>"._t('divers','nodata')."</li>";
  31.   }
  32.   else {
  33.     if(count($resultqb)>=10$nb=10else $nb=count($resultqb);
  34.     for($i=0$i<count($resultqb)$i++{
  35.       $qbx_yp_title=cutText($resultqb[$i]['yellowp_name']50);
  36.       $qbx_yp_title=formatText($qbx_yp_title'2HTML');
  37.       $qbx_liste.="<li><a href=\"index.php?id="$resultqb[$i]['yellowp_id'."&amp;rub=$rub&amp;todo=det\" title=\""._t('divers','last_modify').": ".$resultqb[$i]['yellowp_last_modify']."  ("._t('divers','date_crea').": ".$resultqb[$i]['yellowp_date_crea'].") \">"$qbx_yp_title ."</a></li>\n";
  38.     }
  39.   }
  40.   $qbx_h1=$nb.''._t('yp','qb_title');
  41. }
  42.  
  43. echo QuickBoxNow($qbx_module$qbx_h1$qbx_liste);
  44. echo "</div>\n";
  45.  
  46. ?>

Documentation generated on Thu, 20 Mar 2014 16:49:26 +0100 by phpDocumentor 1.4.1