本文整理汇总了PHP中Html::Hidden方法的典型用法代码示例。如果您正苦于以下问题:PHP Html::Hidden方法的具体用法?PHP Html::Hidden怎么用?PHP Html::Hidden使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Html
的用法示例。
在下文中一共展示了Html::Hidden方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getForm
public function getForm($par = null)
{
global $wgScript, $wgRequest;
$category = $par;
if (!$category) {
$category = $wgRequest->getVal('category');
}
$f = Xml::openElement('form', array('method' => 'get', 'action' => $wgScript)) . Xml::openElement('fieldset') . Xml::element('legend', array(), wfMsg('randomincategory')) . Html::Hidden('title', $this->getTitle()->getPrefixedText()) . Xml::openElement('p') . Xml::label(wfMsg('randomincategory-label'), 'category') . ' ' . Xml::input('category', null, $category, array('id' => 'category')) . ' ' . Xml::submitButton(wfMsg('randomincategory-submit')) . Xml::closeElement('p') . Xml::closeElement('fieldset') . Xml::closeElement('form');
return $f;
}
示例2: show
public function show($params)
{
global $wgOut;
$wgOut->setPageTitle(wfMsg('deletequeue'));
$this->loadSearch();
// Intro text
$wgOut->addWikiMsg('deletequeue-list-text');
// Search box
$searchBox = array();
// // Queue selector
$selector = Xml::openElement('select', array('name' => 'queue')) . "\n";
$queues = array('speedy', 'prod', 'deletediscuss');
$attribs = array('value' => '');
if (in_array($this->mQueue, $queues)) {
$attribs['selected'] = 'selected';
}
$selector .= Xml::element('option', $attribs, wfMsg('deletequeue-list-anyqueue'));
foreach ($queues as $queue) {
$attribs = array('value' => $queue);
if ($this->mQueue == $queue) {
$attribs['selected'] = 'selected';
}
$selector .= Xml::element('option', $attribs, wfMsg("deletequeue-queue-{$queue}"));
}
$selector .= Xml::closeElement('select');
$searchBox['deletequeue-list-queue'] = $selector;
$searchBox['deletequeue-list-status'] = Xml::checkLabel(wfMsg('deletequeue-list-expired'), 'expired', 'mw-dq-expired', $this->mExpired);
$searchBox = Xml::buildForm($searchBox, 'deletequeue-list-search');
$searchBox .= Html::Hidden('title', $this->getTitle()->getPrefixedText());
$searchBox = Xml::tags('form', array('action' => $this->getTitle()->getFullURL(), 'method' => 'get'), $searchBox);
$searchBox = Xml::fieldset(wfMsg('deletequeue-list-search-legend'), $searchBox);
$wgOut->addHTML($searchBox);
$conds = array('dq_active' => 1);
if ($this->mQueue) {
$conds['dq_queue'] = $this->mQueue;
}
if ($this->mExpired) {
$dbr = wfGetDB(DB_SLAVE);
$conds[] = 'dq_expiry<' . $dbr->addQuotes($dbr->timestamp(wfTimestampNow()));
}
// Headers
$body = '';
$headers = array('page', 'queue', 'votes', 'expiry', 'discusspage');
foreach ($headers as $header) {
$body .= Xml::element('th', null, wfMsg("deletequeue-list-header-{$header}")) . "\n";
}
$body = Xml::tags('tr', null, $body);
// The list itself
$pager = new DeleteQueuePager($conds);
$body .= $pager->getBody();
$body = Xml::tags('table', array('class' => 'wikitable'), $body);
$wgOut->addHTML($pager->getNavigationBar() . $body . $pager->getNavigationBar());
}
示例3: execute
function execute($subpage)
{
global $wgRequest, $wgOut;
$wgOut->setPageTitle('Wikitext Preview');
if ($wikitext = $wgRequest->getText('wikitext')) {
$wgOut->addHTML(Xml::fieldset('Wikitext preview', $wgOut->parse($wikitext)));
}
$f = Xml::textarea('wikitext', $wikitext);
$f .= Xml::submitButton('Preview wikitext');
$f .= Html::Hidden('title', $this->getTitle()->getPrefixedText());
$f = Xml::tags('form', array('method' => 'POST', 'action' => $this->getTitle()->getLocalURL()), $f);
$wgOut->addHTML(Xml::fieldset('Preview wikitext', $f));
}
示例4: execute
function execute($par)
{
global $wgRequest, $wgOut, $smwgARC2StoreConfig, $wgServer, $wgScriptPath, $wgUser;
if (!$this->userCanExecute($this->getUser())) {
$this->displayRestrictionError();
return;
}
$this->setHeaders();
$output = "";
# Get request data from, e.g.
$rdfioAction = $wgRequest->getText('rdfio_action');
# instantiation
$store = ARC2::getStore($smwgARC2StoreConfig);
$output .= "\n===RDF Store Setup===\n'''Status:'''\n\n";
if (!$store->isSetUp()) {
$output .= "* Store is '''not''' set up\n";
if ($rdfioAction == "setup") {
if (!$wgUser->matchEditToken($wgRequest->getText('token'))) {
die('Cross-site request forgery detected!');
} else {
if ($this->isSysop) {
$output .= "* Setting up now ...\n";
$store->setUp();
if ($store->isSetUp()) {
$output .= "* Done!\n";
} else {
$output .= "Setup failed:\n";
$store->getErrors();
}
} else {
$errorMessage = "Only sysops can perform this operation!";
$wgOut->addHTML("<pre>Permission Error: " . $errorMessage . "</pre>");
}
}
}
} else {
$output .= "* Store is already set up.\n";
}
$wgOut->addWikiText($output);
$htmlOutput = '<form method="get" action="' . $wgServer . $wgScriptPath . '/index.php/Special:RDFIOAdmin"
name="createEditQuery">
<input type="submit" name="rdfio_action" value="setup">' . Html::Hidden('token', $wgUser->getEditToken()) . '
</form>';
$wgOut->addHTML($htmlOutput);
$wgOut->addWikiText("\n===Data Sources===\n");
$wgOut->addWikiText("\n{{#ask: [[Category:RDFIO Data Source]]\n\t\t\t\t\t|?Equivalent URI\n\t\t\t\t\t|?RDFIO Import Type\n\t\t\t\t\t|format=table\n\t\t\t\t\t|mainlabel=Data Source\n\t\t\t\t\t|limit=10\n\t\t\t\t\t}}\n");
$wgOut->addWikiText("\n===Pages and Templates===\n");
$wgOut->addWikiText("To associate a template with a category, add <nowiki>[[Has template::Template:Name]]</nowiki> to the Category page");
$wgOut->addWikiText("{{#ask: [[:Category:+]]\n\t\t\t\t\t|?Equivalent URI\n\t\t\t\t\t|?Has template\n\t\t\t\t\t|format=table\n\t\t\t\t\t|mainlabel=Category\n\t\t\t\t\t|limit=10\n\t\t\t\t\t}}");
}
示例5: showForm
function showForm()
{
global $wgScript;
$out = $this->getOutput();
$username = str_replace('_', ' ', $this->target);
$form = Xml::openElement('form', array('name' => 'stablization', 'action' => $wgScript, 'method' => 'get'));
$form .= "<fieldset><legend>" . wfMsg('usercredentials-leg') . "</legend>";
$form .= "<table><tr>";
$form .= "<td>" . Html::Hidden('title', $this->getTitle()->getPrefixedText()) . "</td>";
$form .= "<td>" . wfMsgHtml("usercredentials-user") . "</td>";
$form .= "<td>" . Xml::input('target', 35, $username, array('id' => 'wpUsername')) . "</td>";
$form .= "<td>" . Xml::submitButton(wfMsg('go')) . "</td>";
$form .= "</tr></table>";
$form .= "</fieldset></form>\n";
$out->addHTML($form);
}
示例6: showRemove
function showRemove(&$output, $name, &$user)
{
$self = SpecialPage::getTitleFor('Badimages');
$skin =& $user->getSkin();
$title = Title::makeTitleSafe(NS_IMAGE, $name);
$link = $skin->makeKnownLinkObj($title, htmlspecialchars($title->getText()));
$output->addHTML('<p>' . wfMsgHtml('badimages-remove-confirm', $link) . '</p>');
$form = Xml::openElement('form', array('method' => 'post', 'action' => $self->getLocalUrl()));
$form .= Html::Hidden('action', 'remove') . Html::Hidden('wpToken', $user->editToken()) . Html::Hidden('wpImage', $name);
$form .= '<table><tr><td align="right">' . wfMsgHtml('badimages-name') . '</td>';
$form .= '<td>' . Xml::input('wpImage2', false, $name, array('readonly' => 'readonly')) . '</td></tr>';
$form .= '<tr><td align="right">' . wfMsgHtml('badimages-reason') . '</td>';
$form .= '<td>' . Xml::input('wpReason', 40) . '</td><tr></tr><td></td><td>';
$form .= Xml::submitButton(wfMsg('badimages-remove-btn')) . '</td></tr></table></form>';
$output->addHTML($form);
}
示例7: execute
function execute( $par ) {
global $wgRequest, $wgOut, $smwgARC2StoreConfig,
$wgServer, $wgScriptPath, $wgUser;
$this->setHeaders();
$output = "";
# Get request data from, e.g.
$rdfio_action = $wgRequest->getText( 'rdfio_action' );
# instantiation
$store = ARC2::getStore( $smwgARC2StoreConfig );
$output .= "\n===RDF Store Setup===\n'''Status:'''\n\n";
if ( !$store->isSetUp() ) {
$output .= "* Store is '''not''' set up\n";
if ( $rdfio_action == "setup" ) {
if ( !$wgUser->matchEditToken( $wgRequest->getText( 'token' ) ) ) {
die( 'Cross-site request forgery detected!' );
} else {
if ( $this->m_issysop ) {
$output .= "* Setting up now ...\n";
$store->setUp();
$output .= "* Done!\n";
} else {
$errormessage = "Only sysops can perform this operation!";
$wgOut->addHTML( RDFIOUtils::formatErrorHTML( "Permission Error", $errormessage ) );
}
}
}
} else {
$output .= "* Store is already set up.\n";
}
$wgOut->addWikiText( $output );
$htmlOutput = '<form method="get" action="' . $wgServer . $wgScriptPath . '/index.php/Special:ARC2Admin"
name="createEditQuery">
<input type="submit" name="rdfio_action" value="setup">' .
Html::Hidden( 'token', $wgUser->editToken() ) . '
</form>';
$wgOut->addHTML( $htmlOutput );
}
示例8: showContentForm
protected function showContentForm()
{
if ($this->contentFormat !== CollaborationListContentHandler::FORMAT_WIKI) {
return parent::showContentForm();
}
$parts = explode(CollaborationListContent::HUMAN_DESC_SPLIT, $this->textbox1, 3);
if (count($parts) !== 3) {
return parent::showContentForm();
}
$pageLang = $this->getTitle()->getPageLanguage();
$attribs = ['id' => 'wpCollabDescTextbox', 'lang' => $pageLang->getHtmlCode(), 'dir' => $pageLang->getDir()];
$descTitle = wfMessage('collaborationkit-listedit-description')->text();
$listTitle = wfMessage('collaborationkit-listedit-list')->text();
$out = RequestContext::getMain()->getOutput();
$out->addHtml(Html::element('h2', ["id" => 'mw-collabkit-desc'], $descTitle) . Html::textarea('wpCollabDescTextbox', $parts[0], $attribs) . Html::element('h2', ["id" => 'mw-collabkit-list'], $listTitle));
$out->addHtml(Html::Hidden('wpCollaborationKitOptions', $parts[1]));
$this->showTextbox1(null, trim($parts[2]));
}
开发者ID:wikimedia,项目名称:mediawiki-extensions-CollaborationKit,代码行数:18,代码来源:CollaborationListContentEditor.php
示例9: process
/**
* Process the 'delvote' action.
* @param Article $article The article to endorse/object to deletion of.
*/
public function process($article)
{
global $wgRequest, $wgOut, $wgUser;
$errs = $article->mTitle->getUserPermissionsErrors('deletequeue-vote', $wgUser);
if (count($errs) > 0) {
$wgOut->showPermissionsErrorPage($errs);
return;
}
$dqi = DeleteQueueItem::newFromArticle($article);
$wgOut->setPageTitle(wfMsg('deletequeue-vote-title', $article->mTitle->getPrefixedText()));
// Load form data
$token = $wgRequest->getVal('wpEditToken');
$action = $wgRequest->getVal('wpVote');
$comments = $wgRequest->getText('wpComments');
if ($wgUser->matchEditToken($token) && in_array($action, array('endorse', 'object'))) {
$dqi->addVote($action, $comments);
if ($action == 'object' && $dqi->getQueue() == 'prod') {
$dbw = wfGetDB(DB_MASTER);
$dbw->begin();
$dqi->setQueue('deletediscuss', $dqi->getReason());
$lp = new LogPage('delete');
$lp->addEntry('requeue', $article->mTitle, $comments, array(wfMsgForContent('deletequeue-queue-prod'), wfMsgForContent("deletequeue-queue-deletediscuss")));
$dbw->commit();
$wgOut->addWikiMsg('deletequeue-vote-requeued', wfMsgNoTrans('deletequeue-queue-deletediscuss'));
} else {
$wgOut->addWikiMsg("deletequeue-vote-success-{$action}");
}
return;
}
$wgOut->addWikiMsg('deletequeue-vote-text', $article->mTitle->getPrefixedText(), $dqi->getReason());
// Add main form.
$fields = array();
$options = Xml::tags('p', null, Xml::radioLabel(wfMsg('deletequeue-vote-endorse'), 'wpVote', 'endorse', 'mw-deletequeue-vote-endorse'));
$options .= Xml::tags('p', null, Xml::radioLabel(wfMsg('deletequeue-vote-object'), 'wpVote', 'object', 'mw-deletequeue-vote-object'));
$fields['deletequeue-vote-action'] = $options;
$fields['deletequeue-vote-reason'] = Xml::input('wpComments', 45, $comments);
$article_id = $article->getId();
$title = $this->getTitle("vote/{$article_id}");
$form = Xml::buildForm($fields, 'deletequeue-vote-submit') . Html::Hidden('wpEditToken', $wgUser->editToken()) . Html::Hidden('title', $title->getPrefixedText());
$form = Xml::tags('form', array('action' => $title->getLocalURL(), 'method' => 'POST'), $form);
$form = Xml::fieldset(wfMsg('deletequeue-vote-legend'), $form);
$wgOut->addHTML($form);
}
示例10: getInterwikis
/**
* Get all Interwiki Links - the heart of the function
* @param $prefix string Prefix to search for in list
* @return string HTML
*/
private function getInterwikis($prefix = null)
{
global $wgScript;
$dbr = wfGetDB(DB_SLAVE);
$conds = array();
if (!is_null($prefix)) {
$conds[] = "iw_prefix " . $dbr->buildLike($prefix, $dbr->anyString());
}
$results = $dbr->select('interwiki', array('iw_prefix', 'iw_url'), $conds);
$form = Xml::openElement('form', array('action' => $wgScript, 'method' => 'get', 'id' => 'interwikilist-search')) . Html::Hidden('title', $this->mTitle->getPrefixedText()) . Xml::inputLabel(wfMsg('interwikilist-prefix'), 'iwsearch', 'interwikilist-prefix', false, $prefix) . Xml::submitButton(wfMsg('search')) . Xml::closeElement('form');
$text = Xml::fieldSet(wfMsg('interwikilist-filter'), $form);
$interwikiList = array();
foreach ($results as $row) {
$interwikiList["mw-iwlist-" . $row->iw_prefix] = array($row->iw_prefix, $row->iw_url);
}
$dbr->freeResult($results);
$text .= Xml::buildTable($interwikiList, array('id' => 'sv-software'), array(wfMsg('interwikilist-linkname'), wfMsg('interwikilist-target')));
return $text;
}
示例11: addContactFormFields
/**
* Add new fields (1 shown + 1-5 hidden ones) to Special:Contact.
*
* @param $contactForm Object: instance of EmailContactForm class
* @param $form Sringt: HTML
* @return Boolean: true
*/
function addContactFormFields($contactForm, $form)
{
global $wgServer, $wgDBname;
$form .= '<tr>
<td class="mw-label">' . Xml::label(wfMsg('contactpage-wikiurl'), 'wpWikiURL') . '</td>
<td class="mw-input" id="mw-contactpage-address">' . Xml::input('wpWikiURL', 60, $wgServer, array('type' => 'text', 'maxlength' => 200)) . '</td>
</tr>
<tr>' . Html::Hidden('wpDBname', $wgDBname, array('maxlength' => 100)) . "</tr>\n\t\t\t";
if (class_exists('MyInfo')) {
$myinfo = new MyInfo();
$myinfo->browser = get_browser(null, true);
$myinfo->info = browser_detection('full');
$myinfo->info[] = browser_detection('moz_version');
$form .= '<tr>' . Html::Hidden('wpBrowser', $myinfo->getBrowser(), array('maxlength' => 255)) . '</tr>
<tr>' . Html::Hidden('wpOperatingSystem', $myinfo->getOs(), array('maxlength' => 255)) . '</tr>
<tr>' . Html::Hidden('wpSkinName', $myinfo->getSkin(), array('maxlength' => 35)) . '</tr>
<tr>' . Html::Hidden('wpUserAgent', $myinfo->getUAgent(), array('maxlength' => 500)) . '</tr>';
}
return true;
}
示例12: buildForm
/**
* Generate a "deletion nomination" form.
* @param $article Article object to nominate.
*/
public function buildForm($article, $queue)
{
global $wgOut, $wgScript, $wgUser, $wgRequest;
// Check for submission
if ($this->trySubmit($article, $queue)) {
return;
}
$wgOut->setPageTitle(wfMsg("deletequeue-{$queue}-title", $article->mTitle->getPrefixedText()));
$wgOut->addWikiMsg("deletequeue-{$queue}-text", $article->mTitle->getPrefixedText());
// Build deletion form.
$fields = array();
$fields['deletequeue-delnom-reason'] = Xml::listDropDown('wpReason', DeleteQueueInterface::getReasonList($queue), wfMsg("deletequeue-delnom-otherreason"));
$fields['deletequeue-delnom-extra'] = Xml::input('wpExtra', 45);
$article_id = $article->getId();
$title = $this->getTitle("nominate/{$article_id}/{$queue}");
$form = Xml::buildForm($fields, "deletequeue-delnom-submit");
$form .= Html::Hidden('title', $title->getPrefixedText());
$form .= Html::Hidden('queue', $queue);
$form .= Html::Hidden('wpEditToken', $wgUser->editToken());
$form = Xml::tags('form', array('action' => $title->getLocalUrl(), 'method' => 'POST'), $form);
$wgOut->addHTML($form);
}
示例13: listForm
function listForm($username, $reason)
{
global $wgUser, $wgOut, $wgLang;
$pages = $this->getNewPages($username);
if (count($pages) == 0) {
$wgOut->addWikiMsg('massblank-nopages', $username);
return $this->promptForm();
}
$wgOut->addWikiMsg('massblank-list', $username);
$massblank = $this->getTitle();
$submit = Xml::submitButton(wfMsg('massblank-submit-blank'));
$wgOut->addHTML(Xml::openElement('form', array('action' => $massblank->getLocalURL('action=blank'), 'method' => 'post')) . Html::Hidden('wpEditToken', $wgUser->editToken()) . Xml::inputLabel(wfMsg('massblank-blankcomment'), 'wpReason', 'wpReason', 60, $reason) . '<br /><br />' . Xml::submitButton(wfMsg('massblank-submit-blank')));
$wgOut->addHTML('<ul>');
$sk = $wgUser->getSkin();
foreach ($pages as $info) {
list($title, $edits) = $info;
$image = $title->getNamespace() == NS_IMAGE ? wfLocalFile($title) : false;
$thumb = $image && $image->exists() ? $image->transform(array('width' => 120, 'height' => 120), 0) : false;
$changes = wfMsgExt('nchanges', 'parsemag', $wgLang->formatNum($edits));
$wgOut->addHTML('<li>' . Xml::check('pages[]', true, array('value' => $title->getPrefixedDbKey())) . ' ' . ($thumb ? $thumb->toHtml(array('desc-link' => true)) : '') . $sk->makeKnownLinkObj($title) . ' (' . $sk->makeKnownLinkObj($title, $changes, 'action=history') . ")</li>\n");
}
$wgOut->addHTML("</ul>\n" . Xml::submitButton(wfMsg('massblank-submit-blank')) . "</form>");
}
示例14: preview
/**
* Preview the template before actually saving the page. Is called when the user specified one of several predifined templates
* Provides a HTML form for submitting the confirmation. An edit token is included to prevent (possibly malicious) external POST request.
*
* @param $page String: title of the page that needs to be edited
* @param $template String: title of the selected template
*/
function preview($page, $template)
{
// TODO: set $wgTitle / PAGENAME
global $wgOut, $wgUser;
$wgOut->addWikiText(wfMsg('flagpage-preview'));
$wgOut->addWikiText('<div class="flagpage-preview" style="background-color:#F5F5F5; border:1px solid #AAAAAA; padding:0 0.8em 0.3em 0.5em;"> {{' . $template . "}}</div>");
$token = $wgUser->editToken();
// TODO what a mess! tidy up the html code
$s = Xml::openElement('form', array('method' => 'post', 'action' => $this->getTitle()->getLocalURL(), 'id' => 'mw-flagpage-form')) . Xml::openElement('p') . Xml::tags('label', null, wfMsg('flagpage-confirmsave')) . Html::Hidden('page', $page) . Html::Hidden('template', $template) . Html::Hidden('token', $token) . Xml::submitButton(wfMsg('flagpage-submitbutton')) . "\n" . Xml::closeElement('p') . "\n" . Xml::closeElement('form') . "\n";
$wgOut->addHTML($s);
}
示例15: buildForm
protected function buildForm($parseErrors = null, $searchTitle = true, $searchContent = true)
{
global $wgScript, $wgOut;
$wgOut->addInlineScript($this->checkboxActionJS() . $this->invertJS('caNamespaces', $this->namespaceCheckboxes()) . $this->invertJS('caSpeedcats', $this->speedcatCheckboxes()));
$retval = wfMsgExt('advancedsearch-toptext', array('parse'));
$retval .= Xml::openElement('form', array('method' => 'get', 'action' => $wgScript));
$retval .= Html::Hidden('title', $this->getTitle()->getPrefixedDbKey());
$retval .= Html::Hidden('do', 'search');
// The big table everything is in
$retval .= Xml::openElement('table');
// The fieldset+table for searching page content
$retval .= Xml::openElement('tr');
$retval .= Xml::openElement('td', array('valign' => 'top'));
$retval .= Xml::openElement('fieldset', array('class' => 'nested'));
$retval .= Xml::element('legend', array('class' => 'advancedsearchLegend'), wfMsg('advancedsearch-contentsearch'));
$retval .= Xml::openElement('table');
// title/content checkboxes
$retval .= Xml::openElement('tr');
$retval .= Xml::openElement('td');
$retval .= wfMsg('advancedsearch-searchin');
$retval .= Xml::checkLabel(wfMsg('advancedsearch-searchin-title'), 'searchtitle', 'searchtitle', $searchTitle);
$retval .= Xml::checkLabel(wfMsg('advancedsearch-searchin-content'), 'searchcontent', 'searchcontent', $searchContent);
$retval .= Xml::closeElement('td');
$retval .= Xml::closeElement('tr');
// Include fieldset
$retval .= Xml::openElement('tr');
$retval .= Xml::openElement('td', array('valign' => 'top'));
$retval .= Xml::openElement('fieldset', array('class' => 'nested'));
$retval .= Xml::element('legend', array('class' => 'advancedsearchLegend'), wfMsg('advancedsearch-content-include'));
$retval .= Xml::openElement('table');
$retval .= $this->inputRow('content-incl');
if (is_array($parseErrors) && $parseErrors[0] !== false) {
$retval .= $this->errorRow($parseErrors[0]);
}
$retval .= Xml::closeElement('table');
$retval .= Xml::closeElement('fieldset');
$retval .= Xml::closeElement('td');
$retval .= Xml::closeElement('tr');
// Exclude fieldset
$retval .= Xml::openElement('tr');
$retval .= Xml::openElement('td', array('valign' => 'top'));
$retval .= Xml::openElement('fieldset', array('class' => 'nested'));
$retval .= Xml::element('legend', array('class' => 'advancedsearchLegend'), wfMsg('advancedsearch-content-exclude'));
$retval .= Xml::openElement('table');
$retval .= $this->inputRow('content-excl');
if (is_array($parseErrors) && $parseErrors[1] !== false) {
$retval .= $this->errorRow($parseErrors[1]);
}
$retval .= Xml::closeElement('table');
$retval .= Xml::closeElement('fieldset');
$retval .= Xml::closeElement('td');
$retval .= Xml::closeElement('tr');
$retval .= Xml::closeElement('table');
$retval .= Xml::closeElement('fieldset');
$retval .= Xml::closeElement('td');
// The namespace fieldset
$retval .= Xml::openElement('td', array('valign' => 'top'));
$retval .= Xml::openElement('fieldset', array('class' => 'nested'));
$retval .= Xml::element('legend', array('class' => 'advancedsearchLegend'), wfMsg('advancedsearch-namespaces'));
$retval .= $this->namespaceTable();
$retval .= Xml::closeElement('fieldset');
$retval .= Xml::closeElement('td');
$retval .= Xml::closeElement('tr');
// The category fieldset
$retval .= Xml::openElement('tr');
$retval .= Xml::openElement('td', array('valign' => 'top'));
$retval .= Xml::openElement('fieldset', array('class' => 'nested'));
$retval .= Xml::element('legend', array('class' => 'advancedsearchLegend'), wfMsg('advancedsearch-categorysearch'));
$retval .= Xml::openElement('table');
// The include fieldset
$retval .= Xml::openElement('tr');
$retval .= Xml::openElement('td', array('valign' => 'top'));
$retval .= Xml::openElement('fieldset', array('class' => 'nested'));
$retval .= Xml::element('legend', array('class' => 'advancedsearchLegend'), wfMsg('advancedsearch-category-include'));
$retval .= Xml::openElement('table');
$retval .= $this->inputRow('cat-incl');
if (is_array($parseErrors) && $parseErrors[2] !== false) {
$retval .= $this->errorRow($parseErrors[2]);
}
$retval .= Xml::closeElement('table');
$retval .= Xml::closeElement('fieldset');
$retval .= Xml::closeElement('td');
$retval .= Xml::closeElement('tr');
// The exclude fieldset
$retval .= Xml::openElement('tr');
$retval .= Xml::openElement('td', array('valign' => 'top'));
$retval .= Xml::openElement('fieldset', array('class' => 'nested'));
$retval .= Xml::element('legend', array('class' => 'advancedsearchLegend'), wfMsg('advancedsearch-category-exclude'));
$retval .= Xml::openElement('table');
$retval .= $this->inputRow('cat-excl');
if (is_array($parseErrors) && $parseErrors[3] !== false) {
$retval .= $this->errorRow($parseErrors[3]);
}
$retval .= Xml::closeElement('table');
$retval .= Xml::closeElement('fieldset');
$retval .= Xml::closeElement('td');
$retval .= Xml::closeElement('tr');
$retval .= Xml::closeElement('table');
$retval .= Xml::closeElement('fieldset');
$retval .= Xml::closeElement('td');
//.........这里部分代码省略.........