Changeset 446 for trunk/tv/index.php


Ignore:
Timestamp:
Oct 15, 2012, 9:32:09 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Tabulky Správy dat pro TV kanály.
  • Upraveno: Systém tabulek produktů a skladových položek.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tv/index.php

    r438 r446  
    1919
    2020    $Where =
    21     $DbResult = $this->Database->query('SELECT COUNT(*) FROM `TV` WHERE (`Stream` <> "") OR (`StreamWeb` <> "")');
     21    $DbResult = $this->Database->query('SELECT COUNT(*) FROM `TV` LEFT JOIN `TVGroup` ON `TVGroup`.`Id` = `TV`.`Category` '.
     22      ' LEFT JOIN `Language` ON `Language`.`Id` = `TV`.`Language` WHERE (`TV`.`Stream` <> "") OR (`TV`.`StreamWeb` <> "")');
    2223    $DbRow = $DbResult->fetch_row();
    2324    $PageList = GetPageList($DbRow[0]);   
     
    3637    $Output .= $Order['Output'];
    3738
    38     $Query = 'SELECT * FROM `TV` WHERE (`Stream` <> "") OR (`StreamWeb` <> "") '.$Order['SQL'].$PageList['SQLLimit'];
     39    $Query = 'SELECT `TV`.*, `TVGroup`.`Name` AS `Category`, `Language`.`Name` AS `Language` FROM `TV` LEFT JOIN `TVGroup` ON `TVGroup`.`Id` = `TV`.`Category` '.
     40      ' LEFT JOIN `Language` ON `Language`.`Id` = `TV`.`Language` WHERE (`TV`.`Stream` <> "") OR (`TV`.`StreamWeb` <> "") '.$Order['SQL'].$PageList['SQLLimit'];
    3941
    4042    $DbResult = $this->Database->query($Query);
Note: See TracChangeset for help on using the changeset viewer.