Пример #1
0
 public function __construct()
 {
     parent::__construct('import', array('id_product' => 'i', 'id_buyer' => 'i'));
     // parent::setFormFields(
     //   array('id_product' => array('text', ''  ),
     //    'id_buyer' => array('text', ''  )));
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'comment');
     $this->set_where("com_lang = '" . S_LANG . "'");
     $this->set_order('com_id');
 }
Пример #3
0
 public function __construct()
 {
     parent::__construct('inkind', array('inkind' => 's', 'kindparent' => 's', 'id_inkind' => 'i', 'id_parent' => 'i'));
     parent::setDefaultOrder('id_parent asc');
     parent::setTableSelect('inkind natural join kindparent');
     parent::setFormFields(array('inkind' => array('text', 'Название вида')));
 }
Пример #4
0
 public function __construct()
 {
     parent::__construct('buyer', array('login' => 's', 'password' => 's'));
     parent::setFormFields(array('login' => array('text', 'Логин'), 'password' => array('password', 'Пароль')));
     //'id_hours' => array('radio', 'C 6 00 до 12 00  ','C 12 00 до 18 00  ','C 18 00 до 21 00  ')));
     parent::setValidationRules(array('login' => '/[A-Za-z]{1,20}/', 'password' => '/[A-Za-z]{1,20}/'));
 }
Пример #5
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'message');
     $this->set_where("mes_lang = '" . S_LANG . "'");
     $this->set_order('mes_id');
 }
Пример #6
0
 public function __construct()
 {
     parent::__construct('buyer', array('id_buyer' => 'i', 'surname' => 's', 'name' => 's', 'middlename' => 's', 'address' => 's', 'number' => 's', 'hours' => 's', 'login' => 's', 'password' => 's'));
     parent::setFormFields(array('surname' => array('text', 'Фамилия'), 'name' => array('text', 'Имя'), 'middlename' => array('text', 'Отчество'), 'address' => array('text', 'Адрес'), 'number' => array('text', 'Телефон'), 'hours' => array('text', 'Желаемое время доставки'), 'login' => array('text', 'Логин'), 'password' => array('password', 'Пароль')));
     //'id_hours' => array('radio', 'C 6 00 до 12 00  ','C 12 00 до 18 00  ','C 18 00 до 21 00  ')));
     parent::setValidationRules(array('surname' => '/[А-Яа-яЁё]{1,20}/', 'name' => '/[А-Яа-яЁё]{1,20}/', 'middlename' => '/[А-Яа-яЁё]{1,20}/', 'address' => '/[А-Яа-яЁё]{1,20}/', 'number' => '/\\b[0-9]{1,20}\\b/', 'hours' => '/\\b[0-9]{1,20}\\b/', 'login' => '/[A-Za-z]{1,20}/', 'password' => '/[A-Za-z]{1,20}/'));
 }
Пример #7
0
 public function __construct()
 {
     parent::__construct('buyer', array('id_buyer' => 'i', 'hours' => 's', 'address' => 's'));
     parent::setTableSelect('buyer natural join product');
     parent::setFormFields(array('id_buyer' => array('', ''), 'hours' => array('text', 'Желаемое время'), 'address' => array('text', 'Адрес')));
     //'id_hours' => array('radio', 'C 6 00 до 12 00  ','C 12 00 до 18 00  ','C 18 00 до 21 00  ')));
     parent::setValidationRules(array('hours' => '/\\b[0-9]{1,20}\\b/', 'address' => '/[А-Яа-яЁё]{1,20}/'));
 }
Пример #8
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'att_art');
     $this->set_where("att_lang = '" . S_LANG . "'");
     $this->set_order('att_top');
     $this->set_order('att_index');
     $this->set_order('att_id', 'asc');
 }
 function __construct($attributes, $table_name, $page_name)
 {
     // table-header
     parent::__construct($attributes, $table_name, $page_name);
     $this->setAutoGrow(true);
     $this->setAutoFill(" ");
     $this->table_name = $table_name;
     $this->page_name = $page_name;
 }
Пример #10
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'link');
     $this->set_where("lin_lang = '" . S_LANG . "'");
     $this->set_order('lin_top');
     $this->set_order('lin_index');
     $this->set_order('lin_id');
 }
Пример #11
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'channel');
     $this->set_where("cha_lang = '" . S_LANG . "'");
     $this->set_where('cha_show = 1');
     $this->set_order('cha_top');
     $this->set_order('cha_index');
     $this->set_order('cha_id');
 }
Пример #12
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'menu');
     $this->set_where("men_lang = '" . S_LANG . "'");
     $this->set_where('men_show = 1');
     $this->set_order('men_top');
     $this->set_order('men_index');
     $this->set_order('men_id', 'asc');
 }
Пример #13
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'article');
     $this->set_where("art_lang = '" . S_LANG . "'");
     $this->set_where('art_show = 1');
     $this->set_order('art_top');
     $this->set_order('art_index');
     $this->set_order('art_id');
 }
Пример #14
0
 public function __construct()
 {
     parent::__construct('product', array('cost' => 'i', 'name_product' => 's', 'id_producer' => 'i', 'inkind' => 's', 'id_inkind' => 'i', 'id_product' => 'i', 'id_parent' => 'i', 'sum' => 'i', 'img' => 's'));
     parent::setDefaultOrder('id_parent asc');
     parent::setTableSelect('product natural join inkind ');
     //  parent::setFormFields(
     //array('name_product' => array('text', 'Название продукта'  ),
     //    'id_inkind' => array('', ''  ),
     //  'cost' => array('', ''  ),
     //    'sum' => array('', ''  )));
 }
Пример #15
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'varia');
     $this->set_where("(var_lang = 'none' or var_lang = '" . S_LANG . "')");
 }
Пример #16
0
 function __construct($name) {
     $this->name=$name;
     parent::__construct();
 }
Пример #17
0
 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'safe');
 }
Пример #18
0
 public function __construct()
 {
     parent::__construct();
     $this->prefix = 'cat_';
 }
Пример #19
0
 public function __construct()
 {
     parent::__construct('user', array('id_user' => 'i', 'login' => 's', 'password' => 's', 'status' => 's'));
     parent::setDefaultOrder('login');
     parent::setFormFields(array('login' => array('text', 'Логин'), 'password' => array('password', 'Пароль'), 'status' => array('text', 'Статус')));
 }