本文整理汇总了PHP中Dropdown::draw方法的典型用法代码示例。如果您正苦于以下问题:PHP Dropdown::draw方法的具体用法?PHP Dropdown::draw怎么用?PHP Dropdown::draw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dropdown
的用法示例。
在下文中一共展示了Dropdown::draw方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: createNameValueArray
/**
* writes HTML for the Selector
*/
function draw_selector() {
global $lang, $statsinfo;
$values = createNameValueArray($this->table, $this->namecol, $this->valuecol, $this->cond);
echo "<tr><td>";
echo "<table width=\"185\" cellpadding=\"3\" cellspacing=\"3\" class=\"sidebar_menubox\"><tr><td>";
echo "<table width='100%' cellpadding='3' cellspacing='0' border='0'>";
echo "<tr>";
$dropdown = new Dropdown($this->identifier, $values, 'standardwhite', $this->selected, 100, 1);
$dropdown->draw();
echo "</td><td>";
$lbi = new ButtonInline("changetop", $lang->get('change', 'Change'), 'navelement', 'submit', '', 'f'.$this->identifier);
echo $lbi->draw();
echo '<input type="hidden" name="changetop" value="">';
echo "</td></tr>";
echo "</tr></table>";
echo "</td></tr></table>";
echo "</td></tr>";
}
示例2: draw
/**
* Draw the widget
*/
function draw()
{
$css = "standardlight";
if ($this->error) {
$css = 'error';
}
echo "<td class=\"{$css}\">";
echo tableStart();
echo "<td colspan=\"2\">" . drawSpacer(2, 5) . "</td>";
tr();
if ($this->value == "") {
$checked = "checked";
}
echo '<td class="' . $css . '">' . $this->label . $this->errortext;
echo "</td>";
tr();
$sb = new Dropdown($this->name, $this->nameValueArray, "{$css}", $this->value, "200");
$sb->draw();
tr();
echo "<td colspan=\"2\">" . drawSpacer(1, 5) . "</td>";
echo tableEnd();
echo "</td>";
}
示例3: draw
/**
* draw the object.
*/
function draw()
{
global $db;
$folders = null;
$folders[0][0] = ">";
$folders[0][1] = 0;
$this->createFolders($folders, ">", 0);
$dd = new Dropdown($this->name, $folders, "bcopy", $this->value, 500, 1);
$dd->draw();
}
示例4: getFormHeadline
/**
* writes HTML for the Top-Selector
*/
function draw_topselector() {
if ($this->topSelector) {
global $lang, $statsinfo;
echo getFormHeadline($lang->get('top','Limit data'));
tableStart();
echo "<tr><td>";
$values = array (
array (
'Show Top 10',
10
),
array (
'Show Top 20',
20
),
array (
'Show Top 50',
50
),
array (
'Show Top 100',
100
),
array (
'Show All',
2000
)
);
echo "<table width=\"100%\" cellpadding=\"3\" cellspacing=\"3\"><tr><td>";
echo "<table width='100%' cellpadding='3' cellspacing='0' border='0'>";
echo "<tr>";
$dropdown = new Dropdown('limit', $values, 'standardwhite', $statsinfo->limit, 110, 1);
$dropdown->draw();
echo "</td><td>";
$lbi = new ButtonInline("changetop", $lang->get('change', 'Change'), 'navelement', 'submit', '', 'filter');
echo $lbi->draw();
echo '<input type="hidden" name="changetop" value="">';
echo "</td></tr>";
echo "</tr></table>";
echo "</td></tr></table>";
echo "</td></tr>";
}
}
示例5: drawSpacer
$clnid = "-1";
}
td($style);
echo $lang->get("sel_clt");
tde();
tr();
$clts = array();
createCLTTree($clts);
$sb = new Dropdown("clt", $clts, $style, $clt, $width);
$sb->params = 'onChange="if (this.value != \'-1\') document.ifoform.submit();"';
$sb->draw();
tr();
td($style);
echo drawSpacer(5);
echo '<script language="JavaScript">';
echo ' parent.document.getElementById("' . $callback . '").value = "' . $clnid . '";';
echo '</script>';
tde();
if ($clt != "-1" && $clt != "0" && $clt != "") {
$clusters = createNameValueArray("cluster_node", "NAME", "CLNID", "CLT_ID = {$clt} AND VERSION=0 AND DELETED=0");
tr();
td($style);
echo $lang->get("sel_cluster", "Select Cluster") . " (" . (count($clusters) - 1) . ")";
tde();
tr();
$sb2 = new Dropdown("clnid", $clusters, $style, $clnid, $width);
$sb2->params = 'onChange="' . drawIfoSave($callback, "clnid") . '"';
$sb2->draw();
}
retain("width", $width + 50);
drawIFOFooter();
示例6: Input
/**
* internal. Draw filter input.
*/
function draw_form() {
global $lang;
echo '<table width="170"><tr>';
echo "<td>" . $lang->get("filter_rule", "Search for..."). "</td>";
echo "<td>" . $lang->get("filter_column", "...in"). "</td></tr><tr>";
$txtb = new Input("filter_rule", $this->filter_rule, "embedded", "16", "", $width = "90", "TEXT", "", 1);
$txtb->draw();
$select = new Dropdown("filter_column", $this->columns, "embedded", $this->filter_column, 80);
$select->draw();
echo "</tr><tr>";
echo '<td colspan="2">';
echo '<table width="100%" cellpadding="0" cellspacing="0" border="0">';
echo '<tr><td>';
echo '<input type="hidden" name="filter" value="">';
echo '<input type="hidden" name="clearsearch" value="">';
$submitbutton = new Button("filter", $lang->get("search", "Search"), "navelement", "submit", "", "filter");
$submitbutton->draw();
echo " ";
$clearbutton = new LinkButton("clearsearch", $lang->get("search_clear", "Reset Filter"), "navelement", "submit", "document.filter.filter_rule.value='';", "filter");
$clearbutton->draw();
br();
br();
echo "</td><tr></table></td></tr></table>";
}