本文整理汇总了PHP中field::WithLabel方法的典型用法代码示例。如果您正苦于以下问题:PHP field::WithLabel方法的具体用法?PHP field::WithLabel怎么用?PHP field::WithLabel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类field
的用法示例。
在下文中一共展示了field::WithLabel方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetListTable
//.........这里部分代码省略.........
$result .= "<th width=30 align='center'>" . view . "</th>\n";
}
if ($this->edit != '') {
$result .= "<th width=30 align='center'>" . edit . "</th>\n";
}
if ($this->delete == true) {
$result .= "<th width=30><input type='checkbox' id='SelectAll'></th>\n";
}
$result .= "</tr>\n";
$result .= "</thead>\n";
$result .= "<tbody id='{$soratble}' class='sortable ui-sortable'>\n";
$m = 1;
if ($_REQUEST['action'] == 'add' && $this->isGridList == true) {
if (count($this->types) > 0) {
$result .= "<tr>";
$result .= $this->getParametersToPassIt(true);
$result .= $this->getParametersToPassIt();
foreach ($this->columns as $col) {
$field_ob = new field();
$field_ob->SetIdField($col);
$field_ob->SetNameField($col);
$field_ob->SetCssClass($this->classes[$col]);
$required = $this->requireds[$col];
if ($required == "" && in_array($col, $this->requireds)) {
$required = "required";
}
$field_ob->SetRequiredField($required);
$field_ob->SetValueField($this->source[$col][3]);
$field_ob->SetTypeField($this->types[$col]);
$field_ob->SetTable($this->extendTables[$col][0]);
$field_ob->SetTname($this->extendTables[$col][1]);
$field_ob->SetTvalue($this->extendTables[$col][2]);
$field_ob->setWhere($this->extendTables[$col][3]);
$field_ob->WithLabel(false);
if (!$this->extendTables[$col][4]) {
$this->extendTables[$col][4] = true;
}
if (in_array($col, $this->parentAttr)) {
$field_ob->SetValueField($_REQUEST[$col]);
}
$field_ob->setWithAdd($this->extendTables[$col][4]);
$field_ob->SetExtra($this->extra[$col]);
$field_ob->SetInputLength($this->legths[$col]);
$result .= "<td>" . $field_ob->getField() . "</td>";
}
foreach ($this->extraLinks as $exlink) {
$result .= "<td></td>\n";
}
if ($this->active == true) {
$result .= "<td></td>\n";
}
$i_page = 0;
foreach ($query as $row_seo) {
if ($i_page < 1) {
if ($row_seo[$this->page_id] > 0) {
$result .= "<td></td>\n";
$i_page++;
}
}
}
$i_dublicate = 0;
foreach ($query as $row_dublicate) {
if ($i_dublicate < 1) {
if ($this->display == true) {
$result .= "<td></td>\n";
$i_dublicate++;