Changeset 92 for trunk/www/Base


Ignore:
Timestamp:
Aug 15, 2013, 12:11:32 AM (11 years ago)
Author:
chronos
Message:
  • Fixed: Table view missing System parameter.
Location:
trunk/www
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/www

    • Property svn:ignore
      •  

        old new  
        11config.php
         2.buildpath
         3.project
         4.settings
  • trunk/www/Base/Database.php

    r69 r92  
    1313  {
    1414    global $Config;
    15  
     15
    1616    if($Config['Web']['ShowSQLQuery'] == true)
    1717    {
  • trunk/www/Base/System.php

    r78 r92  
    8989  function __construct()
    9090  {
     91        global $Config;
     92       
    9193    // Change current directory to script location
    9294    $BaseDir = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/'));
  • trunk/www/Base/Table.php

    r81 r92  
    6767 
    6868  function LoadValuesFromDatabase($Database)
    69   {   
     69  {            
    7070    $this->CheckOrder();
    7171    $OrderType = array('ASC', 'DESC');
     
    8383    $this->TotalRowCount = $DbRow[0];
    8484    if(array_key_exists('Page', $_GET)) $this->Page = $_GET['Page']; else $this->Page = 0;
    85     if($this->Page > ($this->TotalRowCount / $Config['Web']['TableRowPerPage'])) $this->Page = 0;
     85    if($this->Page > ($this->TotalRowCount / $this->System->Config['Web']['TableRowPerPage'])) $this->Page = 0;
    8686    $DbResult = $Database->query('SELECT * FROM '.$Table.' AS T ORDER BY T.'.$_GET['Column'].' '.$OrderType[$_GET['Order']].' LIMIT '.($this->Page * $this->Config['Web']['TableRowPerPage']).', '.$this->Config['Web']['TableRowPerPage']);
     87    //print_r(debug_backtrace());
    8788    while($DbRow = $DbResult->fetch_assoc())
    8889    {
Note: See TracChangeset for help on using the changeset viewer.