Changeset 362 for trunk/Modules/NetworkShare/SharePage.php
- Timestamp:
- Jan 18, 2012, 9:32:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkShare/SharePage.php
r355 r362 42 42 while(($Otec > 1) && ($i < $this->MaxNesting)) 43 43 { 44 $DbResult = $this->Database->query('SELECT id,name,parent FROM itemsWHERE id='.$Otec);44 $DbResult = $this->Database->query('SELECT id,name,parent FROM NetworkShareItem WHERE id='.$Otec); 45 45 $Row = $DbResult->fetch_array(); 46 46 $this->Loguj('Name: '.$Row['name'].' ID:'.$Row['id'].' Parent:'.$Row['parent']); … … 146 146 { 147 147 // Zobrazení obsahu vybrané složky 148 $DbResult = $this->Database->query('SELECT * FROM itemsWHERE id='.$view);148 $DbResult = $this->Database->query('SELECT * FROM NetworkShareItem WHERE id='.$view); 149 149 $Row = $DbResult->fetch_array(); 150 150 $Cesta = $this->PlnaCesta($Row); … … 194 194 195 195 // Zjištění počtu výskytů 196 //DB_Query("SELECT COUNT(*) FROM itemsWHERE ($Podminka)");196 //DB_Query("SELECT COUNT(*) FROM NetworkShareItem WHERE ($Podminka)"); 197 197 //$Row = DB_Row(); 198 198 //$Pocet = $Row[0]; … … 201 201 if(($view != '') && ($page == 0) && ($Nahoru > 0)) 202 202 { 203 $DbResult = $this->Database->query('SELECT * FROM itemsWHERE id='.$view);203 $DbResult = $this->Database->query('SELECT * FROM NetworkShareItem WHERE id='.$view); 204 204 $Row = $DbResult->fetch_array(); 205 205 //ShowArray($Row); … … 210 210 // Nacteni vysledku z databaze 211 211 $PerPage = 30; 212 $Dotaz = "SELECT SQL_CALC_FOUND_ROWS * FROM itemsWHERE ($Podminka)";212 $Dotaz = "SELECT SQL_CALC_FOUND_ROWS * FROM NetworkShareItem WHERE ($Podminka)"; 213 213 if($order != '') $Dotaz .= ' ORDER BY '.$order; 214 214 $Dotaz .= " LIMIT ".($page * $PerPage).",".$PerPage; … … 262 262 if($view == 1) 263 263 { 264 $DbResult = $this->Database->query('SELECT SUM(size) FROM itemsWHERE (parent=1) AND (host IN ('.substr($Vyber,0,-1).'))');264 $DbResult = $this->Database->query('SELECT SUM(size) FROM NetworkShareItem WHERE (parent=1) AND (host IN ('.substr($Vyber,0,-1).'))'); 265 265 $Row = $DbResult->fetch_array(); 266 266 $SizeOnline = $this->PrevedVelikost($Row[0]); 267 $DbResult = $this->Database->query('SELECT size FROM itemsWHERE id=1');267 $DbResult = $this->Database->query('SELECT size FROM NetworkShareItem WHERE id=1'); 268 268 $Row = $DbResult->fetch_array(); 269 269 $Size = $this->PrevedVelikost($Row['size']); 270 $DbResult = $this->Database->query('SELECT COUNT(*) FROM items');270 $DbResult = $this->Database->query('SELECT COUNT(*) FROM NetworkShareItem'); 271 271 $Row = $DbResult->fetch_array(); 272 272 $Output .= '<br />Celková velikost online sdílených dat: '.$SizeOnline;
Note:
See TracChangeset
for help on using the changeset viewer.