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

Source for file mysql.inc.php

Documentation is available at mysql.inc.php

  1. <?php
  2. /**
  3.  * @package linea21.core
  4.  * @subpackage level
  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 (!function_exists('AuthenthificationProcess')) {
  13.     include_once("../lib/lib_common.php");
  14.     ReloadIndex('admin');
  15. } 
  16. // //////////
  17.  
  18.  
  19. $req_liste = "SELECT * FROM " . T_LEVEL . " WHERE level_statut<>'E' ORDER BY level_range DESC;";
  20.  
  21. $req_quickbox_list = "SELECT level_id, level_name, DATE_FORMAT(level_last_modify, '".toStringSqlDate('long')."') AS level_last_modify, level_last_modify AS level_last_modify2, DATE_FORMAT(level_date_crea, '".toStringSqlDate()."') AS level_date_crea
  22.                         FROM " . T_LEVEL . "
  23.                         WHERE level_statut <> 'E'
  24.                         ORDER BY level_last_modify2 DESC
  25.                         LIMIT 0 , 10;";
  26.  
  27. function SQL_getdetlevel($level_id)
  28. {
  29.     $req_det = "SELECT level_name, level_description, level_comment, level_visual_identity, level_range, DATE_FORMAT(level_last_modify, '".toStringSqlDate('long')."') AS level_last_modify, DATE_FORMAT(level_date_crea, '".toStringSqlDate()."') AS level_date_crea, level_statut FROM " . T_LEVEL . " WHERE level_id =" . $level_id . ";";
  30.     return $req_det;
  31. } 
  32.  
  33. function SQL_getonelevel($level_id)
  34. {
  35.     $req_one_level = "SELECT level_id, level_name, level_description, level_comment, level_visual_identity, level_range, level_statut FROM " . T_LEVEL . " WHERE level_statut<>'E' AND level_id=" . $level_id . ";";
  36.     return $req_one_level;
  37. } 
  38. function SQL_getlistscale($scale_id)
  39. {
  40.     $req_sup = "SELECT scale_id, scale_denomination FROM " . T_SCALE . " WHERE scale_statut<>'E' AND scale_id<>$scale_id AND scale_dependencies<" . (MAX_SCALE_LEVEL-1) . " ORDER BY scale_id;";
  41.     return $req_sup;
  42. } 
  43.  
  44. ?>

Documentation generated on Fri, 16 Oct 2009 09:37:32 +0200 by phpDocumentor 1.4.1