/
donhang.php
41 lines (34 loc) · 1.83 KB
/
donhang.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
class Form_Donhang extends Zend_Form{
public function init(){
$this->setDisableLoadDefaultDecorators(true);
$this->setDecorators(array(
array('ViewScript', array('viewScript' =>'form/donhang_layout.phtml')),
'Form'
));
$tendonhang= $this->createElement('text', 'tendonhang', array('decorators' => array('ViewHelper'),));
$ngaydathang = $this->createElement('text', 'ngaydathang', array('decorators' => array('ViewHelper'),));
$tiendathang = $this->createElement('text', 'tiendathang', array('decorators' => array('ViewHelper'),));
$sometvai = $this->createElement('text', 'sometvai', array('decorators' => array('ViewHelper'),));
$makhachhang = $this->createElement('text', 'makhachhang', array('decorators' => array('ViewHelper'),));
$them = $this->createElement('submit', 'them', array('decorators' => array('ViewHelper'),'label'=>'Thêm'));
// $registry = $this->createElement('submit', 'logout', array('decorators' => array('ViewHelper'),'label'=>'�ăng Ký'));
/* $username->setAttrib('class', 'form-control');
$password->setAttrib('class', 'form-control');
$login->setAttrib('class', 'btn btn-primary');
$registry->setAttrib('class', 'btn btn-default'); */
$this->addElement($tendonhang)
->addElement($ngaydathang)
->addElement($tiendathang)
->addElement($sometvai)
->addElement($makhachhang)
->addElement($them)
;
// $this->addElement('submit', 'nhap', array(
// 'decorators' => array(
// 'ViewHelper'
// ),
// 'label' => 'NháºÂp'
// ));
}
}