|
.pmk-DecoratorPanel .topCenter { background: url(/modules/demos/decoratorpanel/images/border10.png) repeat-x; }
.pmk-DecoratorPanel .bottomCenter { background: url(/modules/demos/decoratorpanel/images/border12.png) repeat-x; }
.pmk-DecoratorPanel .middleLeft { background: url(/modules/demos/decoratorpanel/images/border01.png) repeat-y; }
.pmk-DecoratorPanel .middleRight { background: url(/modules/demos/decoratorpanel/images/border21.png) repeat-y; }
.pmk-DecoratorPanel .topLeftInner,.pmk-DecoratorPanel .topRightInner,.pmk-DecoratorPanel .bottomLeftInner,.pmk-DecoratorPanel .bottomRightInner { width: 4px; height: 4px; zoom: 1; font-size: 1px; }
.pmk-DecoratorPanel .topLeft { background: url(/modules/demos/decoratorpanel/images/border00.png) no-repeat; }
.pmk-DecoratorPanel .topRight { background: url(/modules/demos/decoratorpanel/images/border20.png) no-repeat; }
.pmk-DecoratorPanel .bottomLeft { background: url(/modules/demos/decoratorpanel/images/border02.png) no-repeat; }
.pmk-DecoratorPanel .bottomRight { background: url(/modules/demos/decoratorpanel/images/border22.png) no-repeat; }
|
<?php include_once 'phpmoko/ui/DecoratorPanel.php'; include_once 'phpmoko/ui/FlexTable.php'; include_once 'phpmoko/ui/Form/TextBox.php';
class ModuleDemo implements WebModule { function getWidget() { // Create a table to layout the form options $layout = new FlexTable(); $layout->setSpacing(6); // Add a title to the form $layout->setWidget(0, 0, 'Enter Search Criteria'); $layout->setColSpan(0, 0, 2); $layout->setCellHorizontalAlignment(0, 0, HasHorizontalAlignment::ALIGN_CENTER); // Add some standard form options $layout->setWidget(0, 1, 'Name:'); $layout->setCellVerticalAlignment(0, 1, HasVerticalAlignment::ALIGN_MIDDLE); $layout->setWidget(1, 1, new TextBox());
$layout->setWidget(0, 2, 'Description:'); $layout->setCellVerticalAlignment(0, 2, HasVerticalAlignment::ALIGN_MIDDLE); $layout->setWidget(1, 2, new TextBox());
$decPanel = new DecoratorPanel(); $decPanel->setWidget($layout); return $decPanel; } } ?>
|
|