Ignore:
Timestamp:
Jan 18, 2012, 9:32:07 PM (13 years ago)
Author:
chronos
Message:
  • Upraveno: Doplněny rozšiřující typy s jinou velikostí.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkShare/SharePage.php

    r355 r362  
    4242    while(($Otec > 1) && ($i < $this->MaxNesting))
    4343    {
    44       $DbResult = $this->Database->query('SELECT id,name,parent FROM items WHERE id='.$Otec);
     44      $DbResult = $this->Database->query('SELECT id,name,parent FROM NetworkShareItem WHERE id='.$Otec);
    4545      $Row = $DbResult->fetch_array();
    4646      $this->Loguj('Name: '.$Row['name'].' ID:'.$Row['id'].' Parent:'.$Row['parent']);
     
    146146    {
    147147      // Zobrazení obsahu vybrané složky
    148       $DbResult = $this->Database->query('SELECT * FROM items WHERE id='.$view);
     148      $DbResult = $this->Database->query('SELECT * FROM NetworkShareItem WHERE id='.$view);
    149149      $Row = $DbResult->fetch_array();
    150150      $Cesta = $this->PlnaCesta($Row);
     
    194194
    195195    // Zjištění počtu výskytů
    196     //DB_Query("SELECT COUNT(*) FROM items WHERE ($Podminka)");
     196    //DB_Query("SELECT COUNT(*) FROM NetworkShareItem WHERE ($Podminka)");
    197197    //$Row = DB_Row();
    198198    //$Pocet = $Row[0];
     
    201201    if(($view != '') && ($page == 0) && ($Nahoru > 0))
    202202    {
    203       $DbResult = $this->Database->query('SELECT * FROM items WHERE id='.$view);
     203      $DbResult = $this->Database->query('SELECT * FROM NetworkShareItem WHERE id='.$view);
    204204      $Row = $DbResult->fetch_array();
    205205      //ShowArray($Row);
     
    210210    // Nacteni vysledku z databaze
    211211    $PerPage = 30;
    212     $Dotaz = "SELECT SQL_CALC_FOUND_ROWS * FROM items WHERE ($Podminka)";
     212    $Dotaz = "SELECT SQL_CALC_FOUND_ROWS * FROM NetworkShareItem WHERE ($Podminka)";
    213213    if($order != '') $Dotaz .= ' ORDER BY '.$order;
    214214    $Dotaz .= " LIMIT ".($page * $PerPage).",".$PerPage;
     
    262262      if($view == 1)
    263263      {
    264         $DbResult = $this->Database->query('SELECT SUM(size) FROM items WHERE (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).'))');
    265265        $Row = $DbResult->fetch_array();
    266266        $SizeOnline = $this->PrevedVelikost($Row[0]);
    267         $DbResult = $this->Database->query('SELECT size FROM items WHERE id=1');
     267        $DbResult = $this->Database->query('SELECT size FROM NetworkShareItem WHERE id=1');
    268268        $Row = $DbResult->fetch_array();
    269269        $Size = $this->PrevedVelikost($Row['size']);
    270         $DbResult = $this->Database->query('SELECT COUNT(*) FROM items');
     270        $DbResult = $this->Database->query('SELECT COUNT(*) FROM NetworkShareItem');
    271271        $Row = $DbResult->fetch_array();
    272272        $Output .= '<br />Celková velikost online sdílených dat: '.$SizeOnline;
Note: See TracChangeset for help on using the changeset viewer.