Changeset 92 for trunk/www/Base
- Timestamp:
- Aug 15, 2013, 12:11:32 AM (11 years ago)
- Location:
- trunk/www
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www
- Property svn:ignore
-
old new 1 1 config.php 2 .buildpath 3 .project 4 .settings
-
- Property svn:ignore
-
trunk/www/Base/Database.php
r69 r92 13 13 { 14 14 global $Config; 15 15 16 16 if($Config['Web']['ShowSQLQuery'] == true) 17 17 { -
trunk/www/Base/System.php
r78 r92 89 89 function __construct() 90 90 { 91 global $Config; 92 91 93 // Change current directory to script location 92 94 $BaseDir = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/')); -
trunk/www/Base/Table.php
r81 r92 67 67 68 68 function LoadValuesFromDatabase($Database) 69 { 69 { 70 70 $this->CheckOrder(); 71 71 $OrderType = array('ASC', 'DESC'); … … 83 83 $this->TotalRowCount = $DbRow[0]; 84 84 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; 86 86 $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()); 87 88 while($DbRow = $DbResult->fetch_assoc()) 88 89 {
Note:
See TracChangeset
for help on using the changeset viewer.