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 comment
  5.  * @author Simon Georget <simon@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','comment');
  23. //
  24. //if ($todo == 'list') {
  25. //  $result=$sql_object->DBSelect($req_quickbox_list);
  26. //  $qbx_liste='';
  27. //  $nb='';
  28. //  if($result==0) {
  29. //    $qbx_liste.="<li>"._t('divers','nodata')."</li>";
  30. //  } else {
  31. //    if(count($result)>=10) $nb=10; else $nb=count($result);
  32. //    for($i=0; $i<count($result); $i++) {
  33. //      $qbx_news_title=formatText(cutText($result[$i]['news_title'], 47), '2HTML');
  34. //      $qbx_liste.="<li><a href=\"index.php?id=". $result[$i]['news_id'] ."&amp;rub=".$rub."&amp;todo=det\" title=\""._t('divers','date_publi')." ".$result[$i]['news_published_date_display']." - ("._t('divers','date_crea').": ".$result[$i]['news_date_crea_display'].") \">". $qbx_news_title ."</a></li>\n";
  35. //    }
  36. //  }
  37. //  $qbx_h1=$nb._t('comment','qb_titlepubli');
  38. //}
  39. //
  40. //echo QuickBoxNow($qbx_module, $qbx_h1, $qbx_liste);
  41. echo "</div>\n";
  42. ?>

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