xref: /plugin/searchindex/admin.php (revision 072f05c632a4eb7899af9c9168e50f62760ef503)
1dc6fce52SAndreas Gohr<?php
2dc6fce52SAndreas Gohr
3dc6fce52SAndreas Gohr/**
4*072f05c6SSatoshi Sahara * DokuWiki Searchindex Manager
5*072f05c6SSatoshi Sahara *
6*072f05c6SSatoshi Sahara * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
7*072f05c6SSatoshi Sahara * @author     Andreas Gohr <andi@splitbrain.org>
8dc6fce52SAndreas Gohr */
9*072f05c6SSatoshi Saharaclass admin_plugin_searchindex extends DokuWiki_Admin_Plugin
10*072f05c6SSatoshi Sahara{
11dc6fce52SAndreas Gohr    /**
12dc6fce52SAndreas Gohr     * return sort order for position in admin menu
13dc6fce52SAndreas Gohr     */
14*072f05c6SSatoshi Sahara    public function getMenuSort()
15*072f05c6SSatoshi Sahara    {
16dc6fce52SAndreas Gohr        return 40;
17dc6fce52SAndreas Gohr    }
18dc6fce52SAndreas Gohr
19dc6fce52SAndreas Gohr    /**
20dc6fce52SAndreas Gohr     * handle user request
21dc6fce52SAndreas Gohr     */
22*072f05c6SSatoshi Sahara    public function handle()
23*072f05c6SSatoshi Sahara    {
24dc6fce52SAndreas Gohr    }
25dc6fce52SAndreas Gohr
26dc6fce52SAndreas Gohr    /**
27dc6fce52SAndreas Gohr     * output appropriate html
28dc6fce52SAndreas Gohr     */
29*072f05c6SSatoshi Sahara    public function html()
30*072f05c6SSatoshi Sahara    {
3157c75f9cSAndreas Gohr        echo $this->locale_xhtml('intro');
32dc6fce52SAndreas Gohr
332a0afb61SAndreas Gohr        echo '<div id="plugin__searchindex">';
34*072f05c6SSatoshi Sahara        echo '<div class="buttons" id="plugin__searchindex_buttons">';
35*072f05c6SSatoshi Sahara        echo '<input type="button" class="button" id="plugin__searchindex_rebuild" value="' . $this->getLang('rebuild') . '"/>';
36*072f05c6SSatoshi Sahara        echo '<p>' . $this->getLang('rebuild_tip') . '</p>';
37*072f05c6SSatoshi Sahara        echo '<input type="button" class="button" id="plugin__searchindex_update" value="' . $this->getLang('update') . '"/>';
38*072f05c6SSatoshi Sahara        echo '<p>' . $this->getLang('update_tip') . '</p>';
39*072f05c6SSatoshi Sahara        echo '</div>';
4073c6efcdSHendry Badao        echo '<div class="msg" id="plugin__searchindex_msg"></div>';
412a0afb61SAndreas Gohr        echo '</div>';
42dc6fce52SAndreas Gohr    }
43dc6fce52SAndreas Gohr}
44dc6fce52SAndreas Gohr//Setup VIM: ex: et ts=4 enc=utf-8 :
45