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:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/www

    • Property svn:ignore
      •  

        old new  
        11config.php
         2.buildpath
         3.project
         4.settings
  • 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.