예제 #1
0
 public function __construct(AsciiBaseWidget &$aParent)
 {
     parent::__construct($aParent);
     $this->paddings['left'] = 3;
     $this->paddings['right'] = 3;
     $this->paddings['top'] = 1;
     $this->paddings['bottom'] = 1;
     $this->setFile("data/banner");
 }
예제 #2
0
function PageAbout(&$skeleton)
{
    $content = new AsciiWidgetFile($skeleton);
    $content->setFile(PAGE_ABOUT);
    $content->setMargins(array('left' => 2, 'right' => 02, 'top' => 1, 'bottom' => 1));
    $content->setPaddings(array('top' => 1, 'left' => 1, 'right' => 1, 'bottom' => 1));
    $content->setBorders(array('top' => '-', 'left' => '+', 'right' => '+', 'bottom' => '-'));
    $skeleton->addWidget($content);
}