Manb
unread,Feb 10, 2009, 6:35:26 AM2/10/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PHP-Ext
hi,
I used in my web application the complexe (border, accordion,tab )so I
want to creat a login form in the east region but I dont understand
the error in my source code:
/////////East Region
$east = new PhpExt_Panel();
$east->setTitle(utf8_encode("Customer informations"))
->setCollapsible(true)
->setWidth(200);
///////////////////////////////////////////////////////////////////////////////////////////////////////
//****************************** Simple Form
$simple = new PhpExt_Form_FormPanel();
$simple->setLabelWidth(75)
->setUrl("login.php")
->setFrame(true)
->setBodyStyle("padding:5px 5px 0")
->setWidth(225)
->setDefaults(new PhpExt_Config_ConfigObject(array
("width"=>100)))
->setDefaultType("textfield")
->setMethod(POST)
->setStandardSubmit(true);
$login = PhpExt_Form_TextField::createTextField
("login","User")
->setAllowBlank(false);
$pass = PhpExt_Form_TextField::createTextField("pass","Password");
$submit = PhpExt_Button::createTextButton("Connect")
->setType(PhpExt_Button::BUTTON_TYPE_SUBMIT);
$simple->addItem($login)
->addItem($pass);
$simple->addButton($submit);
$east->addItem($simple);
$viewport->addItem($east,
PhpExt_Layout_BorderLayoutData::createEastRegion()
->setSplit(true)
->setMinSize(175)
->setMaxSize(400)
->setMargins("0 5 0 0"));
.........
..........
echo PhpExt_Ext::OnReady(
$viewport->getJavascript(false, "v"),
$viewport->render("viewport"),
$store->getJavascript(false, "store"),
$store->load()
);
$east->addItem($simple);
$viewport->addItem($east,
PhpExt_Layout_BorderLayoutData::createEastRegion()
->setSplit(true)
->setMinSize(175)
->setMaxSize(400)
->setMargins("0 5 0 0"));
Thank in advance for your help.