-
Notifications
You must be signed in to change notification settings - Fork 0
/
testTab.php
32 lines (29 loc) · 1.18 KB
/
testTab.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
<?php
require_once dirname(__FILE__) . '/../zframework/app/library/ui/JsUIComponentInterface.php';
require_once dirname(__FILE__) . '/../zframework/app/library/ui/jquery/JUIComponent.php';
require_once dirname(__FILE__) . '/../zframework/app/library/ui/html/UIComponent.php';
require_once dirname(__FILE__) . '/../zframework/app/library/ui/jquery/Tab.php';
require_once dirname(__FILE__) . '/../zframework/app/library/ui/html/components/TextElement.php';
require_once dirname(__FILE__) . '/../zframework/app/library/ui/html/components/HtmlScript.php';
//put your code here
$sf = new Tab('test');
$sf->addTab("x1", "x1");
$sf->addTab("d1", "d1");
$e = new TextElement("xy");
$e->setAttribute("name", "dddddddd");
$e->setLabel('ddd', 'sdfdsfdsfs', 'css');
//$sf->setAttribute("id", "test");
//$sf->setAttribute("target", "_blank");
$sf->setElement("x1", $e);
$e1 = new HtmlScript();
$e1->setScript("<a herf='aa.html' target='_blank'>");
$sf->setElement('d1', $e1);
$e2 = new TextElement("xy1");
$e2->setAttribute("name", "dddddddd11");
$e2->setLabel('ddd', 'sdfdsfdsfs1', 'css1');
$sf->setElement("d1", $e2);
$e3 = new HtmlScript();
$e3->setScript("</a>");
$sf->setElement("d1", $e3);
echo $sf->render();
?>