Changeset 92 for trunk/www/Base/Table.php
- Timestamp:
- Aug 15, 2013, 12:11:32 AM (11 years ago)
- Location:
- trunk/www
- Files:
-
- 2 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/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.