本文整理汇总了PHP中Xml::inputlabel方法的典型用法代码示例。如果您正苦于以下问题:PHP Xml::inputlabel方法的具体用法?PHP Xml::inputlabel怎么用?PHP Xml::inputlabel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Xml
的用法示例。
在下文中一共展示了Xml::inputlabel方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showForm
protected function showForm()
{
global $wgOut, $wgScript;
$special = SpecialPage::getTitleFor('Code', $this->mRepo->getName() . '/releasenotes');
$wgOut->addHTML(Xml::openElement('form', array('action' => $wgScript, 'method' => 'get')) . "<fieldset><legend>" . wfMsgHtml('code-release-legend') . "</legend>" . Html::hidden('title', $special->getPrefixedDBKey()) . '<b>' . Xml::inputlabel(wfMsg("code-release-startrev"), 'startrev', 'startrev', 10, $this->mStartRev) . '</b> ' . Xml::inputlabel(wfMsg("code-release-endrev"), 'endrev', 'endrev', 10, $this->mEndRev) . ' ' . Xml::inputlabel(wfMsg("code-pathsearch-path"), 'path', 'path', 45, $this->mPath) . ' ' . Xml::submitButton(wfMsg('allpagessubmit')) . "\n" . "</fieldset>" . Xml::closeElement('form'));
}
示例2: showForm
/**
* @param $pager SvnTablePager
*
* @return string
*/
function showForm($pager)
{
global $wgScript, $wgRequest;
$states = CodeRevision::getPossibleStates();
$name = $this->mRepo->getName();
$title = SpecialPage::getTitleFor('Code', $name);
$options = array(Xml::option('', $title->getPrefixedText(), $this->mStatus == ''));
foreach ($states as $key => $state) {
$title = SpecialPage::getTitleFor('Code', $name . "/status/{$state}");
$options[] = Xml::option(wfMsgHtml("code-status-{$state}"), $title->getPrefixedText(), $this->mStatus == $state);
}
$ret = "<fieldset><legend>" . wfMsgHtml('code-pathsearch-legend') . "</legend>" . '<table width="100%"><tr><td>' . Xml::openElement('form', array('action' => $wgScript, 'method' => 'get')) . Xml::inputlabel(wfMsg("code-pathsearch-path"), 'path', 'path', 55, $this->getPathsAsString(), array('dir' => 'ltr')) . ' ' . Xml::label(wfMsg('code-pathsearch-filter'), 'code-status-filter') . ' ' . Xml::openElement('select', array('id' => 'code-status-filter', 'name' => 'title')) . "\n" . implode("\n", $options) . "\n" . Xml::closeElement('select') . ' ' . Xml::submitButton(wfMsg('allpagessubmit')) . $pager->getHiddenFields(array('path', 'title')) . Xml::closeElement('form') . '</td></tr></table></fieldset>';
return $ret;
}