本文整理汇总了PHP中Div类的典型用法代码示例。如果您正苦于以下问题:PHP Div类的具体用法?PHP Div怎么用?PHP Div使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Div类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: mainTreeRender
private function mainTreeRender(Tree &$tree, $selectedKey)
{
$li = new Li();
$mainDiv = new Div();
$mainDiv->addStyleClasses(["expand", "text_non_select", "tree_text_node", "input_hover"]);
$table = new Table();
$tr = new Tr();
$nodeIcon = new Td();
$nodeText = new Td();
$nodeText->addStyleClass("tree_text");
$nodeSearchCount = new Td();
$nodeSearchCount->addStyleClass("tree_search_count");
if (count($tree->childrens) > 0) {
$nodeIcon->addStyleClasses(["tree_btn"]);
$icon = new Img();
$icon->addAttribute("style", "top: 2px; position: relative; margin: 0 5px;");
$icon->addAttribute("src", $this->treeLevel <= $this->DEFAULT_TREE_LEVEL_TO_SHOW || $tree->show ? "images/arrow90.png" : "images/arrow00.png");
$nodeIcon->addChild($icon);
} else {
$nodeIcon->addStyleClass("tree_empty");
}
$link = new A();
$link->addAttribute("href", URLBuilder::getCatalogLinkForTree($tree->key));
$link->addChild($tree->value);
$link->addStyleClass("input_hover");
$nodeSelected = new Div();
$nodeSelected->addStyleClass($tree->key == $selectedKey ? 'selected' : 'tree_empty');
$link->addChild($nodeSelected);
$nodeText->addChild($link);
return $li->addChild($mainDiv->addChild($table->addChild($tr->addChildList([$nodeIcon, $nodeText, $nodeSearchCount]))));
}
示例2: createUiContainers
function createUiContainers()
{
$subtypesMap = $this->subtypes();
$subtypes = array_values($subtypesMap);
if (isset($subtypesMap[$this->values["subtype"]])) {
$subtypeIndex = array_search($subtypesMap[$this->values["subtype"]], $subtypes);
$customSubtype = "";
} else {
$subtypeIndex = count($subtypes) - 1;
$customSubtype = $this->values["subtype"];
}
$isCustomSubtype = $subtypeIndex == count($subtypes) - 1 ? "checked" : "";
$subtypeComboBox = new ExtendedSelectItem($this->pn("subtype"));
$subtypeComboBox->setAdditionalParams("onkeyup=\"this.blur();this.focus();\" onchange=\"var state = (this.selectedIndex == this.length - 1) ? 'inline' : 'none'; changeObjectDisplay('" . $this->pn("subtypediv") . "',state);\"");
$subtypeComboBox->setElements(array_values($subtypes));
$subtypeComboBox->setElementsVal(array_keys($subtypes));
$t1 = new Table();
$t1->add($this->_createNameElement(_T("Owner name"), true, "/(@|[a-z0-9][a-z0-9-_.]*[a-z0-9]\$)/"), array("value" => $this->hostname, "required" => True));
$t1->add(new TrFormElement(_T("Subtype"), $subtypeComboBox), array("value" => $subtypeIndex));
$subtypeDiv = new Div(array("id" => $this->pn("subtypediv")));
$subtypeDiv->setVisibility($isCustomSubtype);
$t2 = new Table();
$t2->add(new TrFormElement(_T("Custom subtype"), new InputTpl($this->pn("customsubtype"), '/^([0-5]?\\d?\\d?\\d?\\d|6[0-4]\\d\\d\\d|65[0-4]\\d\\d|655[0-2]\\d|6553[0-5])$/'), array("tooltip" => _T("Custom subtype ranges from 0 to 65535"))), array("value" => $customSubtype));
$t3 = new Table();
$t3->add(new TrFormElement(_T("Domain name of a host that has a server for the cell named by the owner name"), new InputTpl($this->pn("ownernamehost")), $this->_dnRulesTooltip()), array("value" => $this->values["ownernamehost"], "required" => True));
return array($this->stackedUi($t1), $this->stackedUi($subtypeDiv, 0), $this->stackedUi($t2, 2), $this->stackedUi($t3));
}
示例3: get3Dots
public function get3Dots()
{
$mainTag = new Div();
$mainTag->addStyleClasses(["three_dots_style", "f-15"]);
$mainTag->addChild("...");
return $mainTag;
}
示例4: _sshlpk_baseEdit
/**
* Form on user edit page
* @param $FH FormHandler of the page
* @param $mode add or edit mode
*/
function _sshlpk_baseEdit($FH, $mode)
{
// default value
$show = false;
if ($mode == 'edit' && hasSshKeyObjectClass($FH->getArrayOrPostValue("uid"))) {
$show = true;
} else {
if ($FH->getValue("showsshkey") == "on") {
$show = true;
}
}
$f = new DivForModule(_T("Public SSH keys management", "sshlpk"), "#DDF");
$f->push(new Table());
$f->add(new TrFormElement(_T("Enable SSH keys management", "sshlpk"), new CheckboxTpl("showsshkey")), array("value" => $show ? "checked" : "", "extraArg" => 'onclick="toggleVisibility(\'sshkeydiv\');"'));
$f->pop();
$sshkeydiv = new Div(array("id" => "sshkeydiv"));
$sshkeydiv->setVisibility($show);
$f->push($sshkeydiv);
$sshkeylist = array();
if ($FH->getArrayOrPostValue("uid")) {
if ($show && $mode == "edit") {
$sshkeylist = getAllSshKey($FH->getArrayOrPostValue("uid"));
}
}
if (count($sshkeylist) == 0) {
$sshkeylist = array("0" => "");
}
$f->add(new TrFormElement('', new MultipleInputTpl("sshkeylist", _T("Public SSH Key", "sshlpk"))), $sshkeylist);
$f->pop();
return $f;
}
示例5: getMap
private function getMap()
{
$mainTag = new Div();
$mainTag->addStyleClass("map_viewport");
$map = new Div();
$map->updateId("google_map");
return $mainTag->addChild($map);
}
示例6: getItemsTable
public function getItemsTable($pageNumber, $num, $response, $key, $valueToSearch)
{
$mainTag = new Div();
$tdNum = 3;
$tdNumTotal = $tdNum * 2 - 1;
$indOnPage = 0;
$items = 0;
$td = 0;
$item = new Item();
$rowIndex = 1;
$tdHeight = Utils::isSquareViewMode() ? 300 : 30;
$highLightId = Utils::getFromGET(UrlParameters::HIGH_LIGHT_ELEMENT);
$isMetro = array_key_exists(UrlParameters::VIEW_MODE, $_GET) && Utils::getFromGET(UrlParameters::VIEW_MODE) == "metro" || !array_key_exists(UrlParameters::VIEW_MODE, $_GET);
$isCompact = array_key_exists(UrlParameters::VIEW_MODE, $_GET) && Utils::getFromGET(UrlParameters::VIEW_MODE) == "compact";
$isExtend = array_key_exists(UrlParameters::VIEW_MODE, $_GET) && Utils::getFromGET(UrlParameters::VIEW_MODE) == "extend";
$isList = array_key_exists(UrlParameters::VIEW_MODE, $_GET) && Utils::getFromGET(UrlParameters::VIEW_MODE) == "list";
$rowViewClass = $isCompact ? 'compact' : ($isMetro ? "metro" : ($isExtend ? "extend" : ($isList ? "list" : "list")));
if ($response != 0) {
$mainTag->addStyleClass("items_table");
$rowView = new Div();
$mainTag->addChild($rowView);
while ($row = mysql_fetch_array($response)) {
$items++;
$indOnPage++;
$td++;
if (ceil(fmod($indOnPage, $tdNum)) == 1) {
$rowIndex++;
$indOnPage = 1;
$td = 1;
} elseif (Utils::isEven($td)) {
$td++;
}
$rowView->addStyleClass($rowViewClass);
$cellView = new Div();
$rowView->addChild($cellView);
$keyItem = $row["key_item"];
$images = FileUtils::getFilesByPrefixByDescription(Constants::DEFAULT_ROOT_CATALOG_PATH . DIRECTORY_SEPARATOR . $keyItem . DIRECTORY_SEPARATOR, Constants::MEDIUM_IMAGE, 'jpg');
if (count($images) == 0) {
$capImage = FileUtils::getCapImage(Labels::CAP_IMAGE_FOR_CLOTHING);
$images = [$capImage];
}
$item = null;
if ($isMetro) {
$item = Item::getMetroItemView($row["name"], $images, $row["key_item"], $pageNumber, $num, $key, $valueToSearch, $row['god_type'], Utils::formatClotheTitle($row["name"]), $highLightId == $row["key_item"]);
} elseif ($isCompact) {
//$name, $images, $itemId, $pageNumber, $num, $key, $valueToSearch, $type, $trimName, $isHighLightElement
$item = Item::getCompactItemView($row["name"], $images, $row["key_item"], $pageNumber, $num, $key, $valueToSearch, $row['god_type'], Utils::formatClotheTitle($row["name"]), $highLightId == $row["key_item"]);
} elseif ($isExtend) {
$item = Item::getSquareItemView($row["name"], $images, $row["key_item"], $pageNumber, $num, $key, $valueToSearch, $row['god_type'], Utils::formatClotheTitle($row["name"]));
} elseif ($isList) {
$item = Item::getLineItemView($row["name"], $images, $row["key_item"], $pageNumber, $num, $key, $valueToSearch, $row['god_type'], Utils::trimFormatClotheTitle($row["name"]), $highLightId == $row["key_item"]);
}
$cellView->addChild($item);
$cellView->addStyleClass("catalog_good_item");
}
}
return $mainTag;
}
示例7: getPaginationLinks
public function getPaginationLinks($pageNumber, $num, $totalCount, $topBottom)
{
$mainTag = new Div();
$catalogLink = new CatalogLink();
$dots = false;
$topBottomStyle = $topBottom == 'bottom' ? 'link_next_prev_bottom' : '';
if ($totalCount != 0) {
$amountPages = ceil($totalCount / $num);
if ($pageNumber > 0 && $pageNumber <= $amountPages) {
$mainTag->addStyleClasses(["pagination_bar", "right_top_bar", $topBottomStyle]);
$brokerTag = new Div();
$mainTag->addChild($brokerTag);
$tagCenterContainer = new Span();
if ($pageNumber != 1) {
$tagPrevious = new A();
$tagPrevious->addStyleClasses(["f-16", "text_non_select", "link_style", "link_next_prev", "input_hover", "prev_link"]);
$tagPrevious->addAttribute("href", URLBuilder::getCatalogLinkPrev($pageNumber, $num));
$text = new Div();
$text->addStyleClass("text");
$text->addChild("назад");
$arrow = new Div();
$arrow->addStyleClass("arrow");
$tagCenterContainer->addChild($tagPrevious->addChildList([$arrow, $text]));
}
$brokerTag->addChild($tagCenterContainer);
$tagCenterContainer->addStyleClasses(["numeric_links", "f-15"]);
for ($currentRenderPage = 1; $currentRenderPage <= $amountPages; $currentRenderPage++) {
if ($currentRenderPage < 2 || $currentRenderPage > $pageNumber - $this->linksGroupCount && $currentRenderPage < $pageNumber + $this->linksGroupCount || $currentRenderPage > $amountPages - 1) {
$dots = false;
if ($currentRenderPage != $pageNumber) {
$tagCenterContainer->addChild($catalogLink->getLink($currentRenderPage, $num));
} else {
$emptyLinkView = $catalogLink->getEmptyLink($pageNumber);
$emptyLinkView->addStyleClass("f-16");
$tagCenterContainer->addChild($emptyLinkView);
}
} else {
if (!$dots) {
$dots = true;
$tagCenterContainer->addChild($catalogLink->get3dots());
}
}
}
if ($pageNumber != $amountPages) {
$tagNext = new A();
$tagNext->addStyleClasses(["f-16", "text_non_select", "link_style", "input_hover", "link_next_prev", "next_link"]);
$tagNext->addAttribute("href", URLBuilder::getCatalogLinkNext($pageNumber, $num));
$text = new Div();
$text->addStyleClass("text");
$text->addChild("вперед");
$arrow = new Div();
$arrow->addStyleClass("arrow");
$tagCenterContainer->addChild($tagNext->addChildList([$text, $arrow]));
}
}
}
return $mainTag;
}
示例8: createGeneralContentForEmptyResult
private function createGeneralContentForEmptyResult($valueToSearch)
{
$mainTag = new Div();
$mainTag->addStyleClass("empty_search_result");
$emptySearchResultLabel = new Div();
$emptySearchResultLabel->addStyleClasses(["empty_search_result_label", "f-16"]);
$mainTag->addChild($emptySearchResultLabel->addChild(Labels::prefillMessage([$valueToSearch], Labels::EMPTY_SEARCH_RESULT)));
TagUtils::createShadow($mainTag);
return $mainTag;
}
示例9: testRenderWithSingleContainerUnordered
public function testRenderWithSingleContainerUnordered()
{
$list = ListElement::createUnordered()->addItem(ListItem::create()->appendText(Paragraph::create()->appendText('Item 1')))->addItem(ListItem::create()->appendText(Div::create()->appendText('Item 2')))->addItem(ListItem::create()->appendText(Span::create()->appendText('Item 3')));
$expected = '<ul>' . '<li><p>Item 1</p></li>' . '<li><div>Item 2</div></li>' . '<li><span>Item 3</span></li>' . '</ul>';
$rendered = $list->render();
$this->assertEquals($expected, $rendered);
}
示例10: testRender_tidy
/**
* Test rendering a div with HTML tidy.
* @depends testRender_withSubdivs
*/
public function testRender_tidy()
{
if (!class_exists('tidy')) {
$this->markTestSkipped("Tidy extension not available");
}
$html = <<<HTML
<div>
<div>
Test
</div>
<div class="subdiv">
<div>
Child
</div>
<p>
foobar
</p>
</div>
</div>
HTML;
$this->div->setOption('tidy', array('indent' => true));
$this->div->add('<div>Test</div>');
$child = new Div(array('class' => 'subdiv'));
$child->add('<div>Child</div>');
$this->div->add($child);
$element = $this->getMockBuilder('Jasny\\FormBuilder\\Element')->getMockForAbstractClass();
$element->expects($this->once())->method('render')->will($this->returnValue('<p>foobar</p>'));
$child->add($element);
$this->assertSame($html, (string) $this->div);
}
示例11: createNote
public static function createNote($text, $link)
{
$note = new A();
$note->addStyleClass("note");
$textWrapper01 = new Div();
$textWrapper = new Span();
$textWrapper->addChild($text);
$textWrapper01->addChild($textWrapper);
$note->addChild($textWrapper01);
if (strlen($link) > 0) {
$note->addAttribute("href", $link);
$note->addStyleClasses(["hover_text_underline"]);
} else {
$note->addStyleClasses(["cursor_default"]);
}
return $note;
}
示例12: _radius_baseEdit
/**
* Form on user edit page
* @param $FH FormHandler of the page
* @param $mode add or edit mode
*/
function _radius_baseEdit($FH, $mode)
{
// default value
$show = false;
if ($mode == 'edit' && hasRadiusObjectClass($FH->getArrayOrPostValue("uid"))) {
$show = true;
} else {
if ($FH->getValue("showradius") == "on") {
$show = true;
}
}
$f = new DivForModule(_T("Radius management", "radius"), "#E0FFDF");
$f->push(new Table());
$f->add(new TrFormElement(_T("Enable Radius management", "radius"), new CheckboxTpl("showradius")), array("value" => $show ? "checked" : "", "extraArg" => 'onclick="toggleVisibility(\'radiusdiv\');"'));
$f->pop();
$radiusdiv = new Div(array("id" => "radiusdiv"));
$radiusdiv->setVisibility($show);
$f->push($radiusdiv);
$radiusCallingStationId = $FH->getArrayOrPostValue('radiusCallingStationId', 'array');
$f->add(new TrFormElement('', new MultipleInputTpl("radiusCallingStationId", _T("Calling Station ID", "radius"))), $radiusCallingStationId);
$f->pop();
return $f;
}
示例13: createUiContainers
function createUiContainers()
{
$isDefaultType = $this->values["type"] == "1" ? "checked" : "";
$algorithmsMap = $this->algorithms();
$algorithms = array_values($algorithmsMap);
if (isset($algorithmsMap[$this->values["algorithm"]])) {
$algorithmIndex = array_search($algorithmsMap[$this->values["algorithm"]], $algorithms);
$customAlgorithm = "";
} else {
$algorithmIndex = count($algorithms) - 1;
$customAlgorithm = $this->values["algorithm"];
}
$isCustomAlgorithm = $algorithmIndex == count($algorithms) - 1 ? "checked" : "";
$algorithmComboBox = new ExtendedSelectItem($this->pn("algorithm"));
$algorithmComboBox->setAdditionalParams("onkeyup=\"this.blur();this.focus();\" onchange=\"var state = (this.selectedIndex == this.length - 1) ? 'inline' : 'none'; changeObjectDisplay('" . $this->pn("algorithmdiv") . "',state);\"");
$algorithmComboBox->setElements(array_values($algorithms));
$algorithmComboBox->setElementsVal(array_keys($algorithms));
$fingerprintTextarea = new TextareaTpl($this->pn("fingerprint"));
$fingerprintTextarea->setCols(43);
$t1 = new Table();
$t1->add($this->_createNameElement(_T("Domain name")), array("value" => $this->hostname, "required" => True));
$t1->add(new TrFormElement(_T("SHA-1 fingerprint"), new CheckboxTpl($this->pn("isdefaulttype"))), array("value" => $isDefaultType, "extraArg" => 'onclick="toggleVisibility(\'' . $this->pn("typediv") . '\');"'));
$typeDiv = new Div(array("id" => $this->pn("typediv")));
$typeDiv->setVisibility($isDefaultType ? "" : "checked");
$t2 = new Table();
$t2->add(new TrFormElement(_T("Custom fingerprint type"), new InputTpl($this->pn("customtype"), '/^\\d+$/'), array("tooltip" => _T("Fingerprint type ranges from 0 to 255"))), array("value" => $this->values["type"]));
$t3 = new Table();
$t3->add(new TrFormElement(_T("Algorithm"), $algorithmComboBox), array("value" => $algorithmIndex));
$algorithmDiv = new Div(array("id" => $this->pn("algorithmdiv")));
$algorithmDiv->setVisibility($isCustomAlgorithm);
$t4 = new Table();
$t4->add(new TrFormElement(_T("Custom algorithm"), new InputTpl($this->pn("customalgorithm"), '/^([01]?\\d?\\d|2[0-4]\\d|25[0-5])$/'), array("tooltip" => _T("Algorithm ranges from 0 to 255"))), array("value" => $customAlgorithm));
$t5 = new Table();
$t5->add(new TrFormElement(_T("Fingerprint"), $fingerprintTextarea, array("tooltip" => _T("The Fingerprint MUST be represented as a sequence of case-insensitive hexadecimal digits"))), array("value" => $this->values["fingerprint"]));
return array($this->stackedUi($t1), $this->stackedUi($typeDiv, 0), $this->stackedUi($t2, 2), $this->stackedUi($t3), $this->stackedUi($algorithmDiv, 0), $this->stackedUi($t4, 2), $this->stackedUi($t5));
}
示例14: getMobileSwitch
function getMobileSwitch()
{
$tbl = new Table(array("", "", "", ""));
$tbl->setAlignments(array("center", "left", "left", "right"));
$tbl->setColSizes(array(60, "", 170, 150));
$tbl->setBorder(0);
$rowTtl = $tbl->createRow();
$rowTtl->setVAlign("middle");
$txtAn = new Text("AN", 7, true);
$txtAus = new Text("AUS", 7, true);
$divAn = new Div();
$divAn->add($txtAn);
$divAn->setWidth(150);
$divAn->setHeight(50);
$divAn->setAlign("center");
$divAn->setVAlign("middle");
$divAn->setStyle("line-height", "50px");
$divAn->setBorder(1);
$divAn->setBackgroundColor("green");
$divAus = new Div();
$divAus->setWidth(150);
$divAus->setHeight(50);
$divAus->setAlign("center");
$divAus->setVAlign("middle");
$divAus->setStyle("line-height", "50px");
$divAus->add($txtAus);
$divAus->setBorder(1);
$divAus->setBackgroundColor("red");
$txtName = new Text($this->OBJNAME, 6, true);
$img = $this->getControlArtIcon(false);
$lnkAn = new Link("http://" . $this->IP . "?schalte=on", $divAn, false, "arduinoSwitch");
$lnkAus = new Link("http://" . $this->IP . "?schalte=-" . $this->FUNK_ID, $divAus, false, "arduinoSwitch");
$rowTtl->setAttribute(0, $img);
$rowTtl->setAttribute(1, $txtName);
$rowTtl->setAttribute(2, $lnkAn);
$rowTtl->setAttribute(3, $lnkAus);
$tbl->addRow($rowTtl);
return $tbl;
}
示例15: createUiContainers
function createUiContainers(){
$recordTypes = supportedRecordsTypes("all");
$typeIndex = array_search(strtoupper($this->values["type"]),$recordTypes);
if ($typeIndex === false){
$typeIndex = count($recordTypes)-1;
$customType = $this->values["type"];
} else {
$customType = "";
//$typeIndex = 0;
}
$isCustomType = ($typeIndex == (count($recordTypes) - 1)) ? "checked" : "";
$algorithmsMap = $this->algorithms();
$algorithms = array_values($algorithmsMap);
if (isset($algorithmsMap[$this->values["algorithm"]])){
$algorithmIndex = array_search($algorithmsMap[$this->values["algorithm"]], $algorithms);
$customAlgorithm = "";
} else {
$algorithmIndex = count($algorithms) - 1;
$customAlgorithm = $this->values["algorithm"];
}
$isCustomAlgorithm = ($algorithmIndex == (count($algorithms) - 1)) ? "checked" : "";
$typeComboBox = new ExtendedSelectItem($this->pn("type"));
$typeComboBox->setAdditionalParams("onkeyup=\"this.blur();this.focus();\" onchange=\"var state = (this.selectedIndex == this.length - 1) ? 'inline' : 'none'; changeObjectDisplay('" . $this->pn("typediv"). "',state);\"");
$typeComboBox->setElements(array_values($recordTypes));
$typeComboBox->setElementsVal(array_keys($recordTypes));
$algorithmComboBox = new ExtendedSelectItem($this->pn("algorithm"));
$algorithmComboBox->setAdditionalParams("onkeyup=\"this.blur();this.focus();\" onchange=\"var state = (this.selectedIndex == this.length - 1) ? 'inline' : 'none'; changeObjectDisplay('" . $this->pn("algorithmdiv"). "',state);\"");
$algorithmComboBox->setElements(array_values($algorithms));
$algorithmComboBox->setElementsVal(array_keys($algorithms));
$signatureTextarea = new TextareaTpl($this->pn("signature"));
$signatureTextarea->setCols(43);
$t1 = new Table();
$t1->add($this->_createNameElement(_T("Domain name")),
array("value" => $this->hostname, "required" => True));
$t1->add(new TrFormElement( _T("Domain name of the signer, generating this SIG"),
new InputTpl($this->pn("signer")),
$this->_dnRulesTooltip()),
array("value" => $this->values["signer"], "required" => True));
$t1->add(new TrFormElement(_T("Record type covered by this SIG"), $typeComboBox),
array("value"=>$typeIndex));
$typeDiv = new Div(array("id" => $this->pn("typediv")));
$typeDiv->setVisibility($isCustomType);
$t2 = new Table();
$t2->add(new TrFormElement(_T("Custom record type"), new InputTpl($this->pn("customtype"),'/\w+/')),
array("value"=>$customType));
$t3 = new Table();
$t3->add(new TrFormElement(_T("Algorithm"), $algorithmComboBox),
array("value"=>$algorithmIndex));
$algorithmDiv = new Div(array("id" => $this->pn("algorithmdiv")));
$algorithmDiv->setVisibility($isCustomAlgorithm);
$t4 = new Table();
$t4->add(new TrFormElement(
_T("Custom algorithm"),
new InputTpl($this->pn("customalgorithm"), '/^([01]?\d?\d|2[0-4]\d|25[0-5])$/'),
array("tooltip" => _T("Algorithm ranges from 0 to 255"))
),
array("value"=>$customAlgorithm));
$t5 = new Table();
$t5->add(new TrFormElement(
_T("Labels"),
new InputTpl($this->pn("labels"), '/^([01]?\d?\d|2[0-4]\d|25[0-5])$/'),
array("tooltip" => _T("Define an unsigned count of how many labels there are in the original SIG record owner name not counting the null label for root and not counting any initial \"*\" for a wildcard.") . "<br>" .
_T("Labels count ranges from 0 to 255"))
),
array("value" => $this->values["labels"], "required" => True));
$t5->add(new TrFormElement(_T("Original TTL"), new BindRemainingTimeTpl($this->pn("ttl"))),
array("value"=>BindRemainingTimeTpl::valueFromBindTimeString($this->values["ttl"])));
$t5->add(new TrFormElement(_T("Signature inception time"), new ExtendedDateTpl($this->pn("inception"))),
array("value"=>$this->bindTimeToDateTplTime($this->values["inception"])));
$t5->add(new TrFormElement(_T("Signature expiration time"), new ExtendedDateTpl($this->pn("expiration"))),
array("value"=>$this->bindTimeToDateTplTime($this->values["expiration"])));
$t5->add(new TrFormElement(
_T("Key tag"),
new InputTpl($this->pn("keytag"), '/^([0-5]?\d?\d?\d?\d|6[0-4]\d\d\d|65[0-4]\d\d|655[0-2]\d|6553[0-5])$/'),
array("tooltip" => _T("Key tag is a decimal number that ranges from 0 to 65535"))
),
array("value" => $this->values["keytag"], "required" => True));
$t5->add(new TrFormElement(_T("Signature"), $signatureTextarea),
array("value" => $this->values["signature"]));
return array($this->stackedUi($t1), $this->stackedUi($typeDiv,0), $this->stackedUi($t2,2),
$this->stackedUi($t3), $this->stackedUi($algorithmDiv,0), $this->stackedUi($t4,2),
$this->stackedUi($t5));
//.........这里部分代码省略.........