当前位置: 首页>>代码示例>>PHP>>正文


PHP ValidatingForm::addExpertButton方法代码示例

本文整理汇总了PHP中ValidatingForm::addExpertButton方法的典型用法代码示例。如果您正苦于以下问题:PHP ValidatingForm::addExpertButton方法的具体用法?PHP ValidatingForm::addExpertButton怎么用?PHP ValidatingForm::addExpertButton使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ValidatingForm的用法示例。


在下文中一共展示了ValidatingForm::addExpertButton方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: NotifyWidgetSuccess

                $result .= _T(" The quota of all users of this mail domain have been reset.") . "<br />";
            }
            // Display result message
            if ($result && !isXMLRPCError()) {
                new NotifyWidgetSuccess($result);
            }
        }
    }
}
$p = new PageGenerator($title);
$p->setSideMenu($sidemenu);
$p->display();
$f = new ValidatingForm();
$f->push(new Table());
if ($mode == "add") {
    $domainTpl = new DomainInputTpl("domainname");
} else {
    $domainTpl = new HiddenTpl("domainname");
}
$f->add(new TrFormElement(_T("Mail domain"), $domainTpl), array("value" => $domainname, "required" => true));
$f->add(new TrFormElement(_T("Description"), new InputTpl("description")), array("value" => $description));
$f->add(new TrFormElement(_T("Default mail quota for users created in this domain (in kB)"), new QuotaTpl("domainquota", '/^[0-9]*$/')), array("value" => $domainquota));
$f->pop();
if ($mode == "add") {
    $f->addButton("badd", _("Create"));
} else {
    $f->addExpertButton("breset", _T("Reset users quota to default", "mail"));
    $f->addButton("bedit", _("Confirm"));
}
$f->pop();
$f->display();
开发者ID:sebastiendu,项目名称:mmc,代码行数:31,代码来源:edit.php

示例2: Div

$f->pop();
$pathdiv = new Div(array("id" => "profilespath"));
$pathdiv->setVisibility($hasProfiles);
$f->push($pathdiv);
$f->push(new Table());
# default value for profile path
$value = "\\\\%N\\profiles\\%U";
if ($hasProfiles) {
    $value = $smb['logon path'];
}
$f->add(new TrFormElement(_T("Network path for profiles"), new InputTpl("logon path"), array("tooltip" => _T("The share must exist and be world-writable.", "samba"))), array("value" => $value));
$f->pop();
$f->pop();
$f->push(new DivExpertMode());
$f->push(new Table());
$syncTpl = new SelectItem("ldap passwd sync");
$labels = array(_T('Yes'), _T('No'), _T('Only (for smbk5pwd)'));
$values = array('yes', 'no', 'only');
$syncTpl->setElements($labels);
$syncTpl->setElementsVal($values);
$f->add(new TrFormElement(_T("LDAP password sync"), $syncTpl), array("value" => $smb["ldap passwd sync"]));
$d = array(_T("Opening script session") => "logon script", _T("Base directory path") => "logon home", _T("Connect base directory on network drive") => "logon drive");
foreach ($d as $description => $field) {
    $f->add(new TrFormElement($description, new IA5InputTpl($field)), array("value" => $smb[$field]));
}
$f->pop();
$f->pop();
$f->addValidateButton("bsave");
$f->addExpertButton("brestart", _T("Restart SAMBA"));
$f->addButton("breload", _T("Reload SAMBA configuration"));
$f->display();
开发者ID:sebastiendu,项目名称:mmc,代码行数:31,代码来源:index.php


注:本文中的ValidatingForm::addExpertButton方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。