Multimag  0.2.992
kassnames.php
См. документацию.
1 <?php
2 // MultiMag v0.2 - Complex sales system
3 //
4 // Copyright (C) 2005-2018, BlackLight, TND Team, http://tndproject.org
5 //
6 // This program is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU Affero General Public License as
8 // published by the Free Software Foundation, either version 3 of the
9 // License, or (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU Affero General Public License for more details.
15 //
16 // You should have received a copy of the GNU Affero General Public License
17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 //
19 namespace Models\LDO;
20 
23 
25  public function getData() {
26  global $db;
27  $sql = "SELECT `num`, `name` FROM `doc_kassa` WHERE `ids`='kassa' ORDER by `num` ASC";
28  $result = '';
29  $a = array();
30  $res = $db->query($sql);
31  while ($line = $res->fetch_assoc()) {
32  $a[$line['num']] = $line['name'];
33  }
34  return $a;
35  }
36 }
$res
Definition: fixer.php:178
getData()
Получить данные
Definition: kassnames.php:25
$result
Definition: api.php:36
Класс списка наименований касс
Definition: kassnames.php:22
$line
Definition: priceload.php:39
$db
Базовый класс для списков в данных, использующихся, в основном, для обработки ajax запросов ...