/** * Show a form for filtering namespace and username * * @return string */ function getPageHeader() { $self = Title::makeTitle(NS_SPECIAL, $this->getName()); $form = wfOpenElement('form', array('method' => 'post', 'action' => $self->getLocalUrl())); $form .= '<table><tr><td align="right">' . wfMsgHtml('namespace') . '</td>'; $form .= '<td>' . HtmlNamespaceSelector($this->namespace) . '</td><tr>'; $form .= '<tr><td align="right">' . wfMsgHtml('newpages-username') . '</td>'; $form .= '<td>' . wfInput('username', 30, $this->username) . '</td></tr>'; $form .= '<tr><td></td><td>' . wfSubmitButton(wfMsg('allpagessubmit')) . '</td></tr></table>'; $form .= wfHidden('offset', $this->offset) . wfHidden('limit', $this->limit) . '</form>'; return $form; }
/** * Show a namespace selection form for filtering * * @return string */ function getPageHeader() { $thisTitle = Title::makeTitle(NS_SPECIAL, $this->getName()); $form = wfOpenElement('form', array('method' => 'post', 'action' => $thisTitle->getLocalUrl())); $form .= wfElement('label', array('for' => 'namespace'), wfMsg('namespace')) . ' '; $form .= HtmlNamespaceSelector($this->namespace); # Preserve the offset and limit $form .= wfElement('input', array('type' => 'hidden', 'name' => 'offset', 'value' => $this->offset)); $form .= wfElement('input', array('type' => 'hidden', 'name' => 'limit', 'value' => $this->limit)); $form .= wfElement('input', array('type' => 'submit', 'name' => 'submit', 'id' => 'submit', 'value' => wfMsg('allpagessubmit'))); $form .= wfCloseElement('form'); return $form; }