1dc6fce52SAndreas Gohr<?php 2dc6fce52SAndreas Gohrif(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/'); 3dc6fce52SAndreas Gohrif(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); 4dc6fce52SAndreas Gohrrequire_once(DOKU_PLUGIN.'admin.php'); 5dc6fce52SAndreas Gohr 6dc6fce52SAndreas Gohr/** 7dc6fce52SAndreas Gohr * All DokuWiki plugins to extend the admin function 8dc6fce52SAndreas Gohr * need to inherit from this class 9dc6fce52SAndreas Gohr */ 10dc6fce52SAndreas Gohrclass admin_plugin_searchindex extends DokuWiki_Admin_Plugin { 11dc6fce52SAndreas Gohr var $cmd; 12dc6fce52SAndreas Gohr 13dc6fce52SAndreas Gohr /** 14dc6fce52SAndreas Gohr * return sort order for position in admin menu 15dc6fce52SAndreas Gohr */ 16dc6fce52SAndreas Gohr function getMenuSort() { 17dc6fce52SAndreas Gohr return 40; 18dc6fce52SAndreas Gohr } 19dc6fce52SAndreas Gohr 20dc6fce52SAndreas Gohr /** 21dc6fce52SAndreas Gohr * handle user request 22dc6fce52SAndreas Gohr */ 23dc6fce52SAndreas Gohr function handle() { 24dc6fce52SAndreas Gohr } 25dc6fce52SAndreas Gohr 26dc6fce52SAndreas Gohr /** 27dc6fce52SAndreas Gohr * output appropriate html 28dc6fce52SAndreas Gohr */ 29dc6fce52SAndreas Gohr function html() { 302a0afb61SAndreas Gohr echo $this->plugin_locale_xhtml('intro'); 31dc6fce52SAndreas Gohr 322a0afb61SAndreas Gohr echo '<div id="plugin__searchindex">'; 33*73c6efcdSHendry Badao echo '<div class="buttons" id="plugin__searchindex_buttons">' . 34*73c6efcdSHendry Badao '<input type="button" class="button" id="plugin__searchindex_rebuild" value="' . $this->getLang('rebuild') . '"/>' . 35*73c6efcdSHendry Badao '<p>' . $this->getLang('rebuild_tip') . '</p>' . 36*73c6efcdSHendry Badao '<input type="button" class="button" id="plugin__searchindex_update" value="' . $this->getLang('update') . '"/>' . 37*73c6efcdSHendry Badao '<p>' . $this->getLang('update_tip') . '</p>' . 38*73c6efcdSHendry Badao '</div>'; 39*73c6efcdSHendry Badao echo '<div class="msg" id="plugin__searchindex_msg"></div>'; 402a0afb61SAndreas Gohr echo '</div>'; 41dc6fce52SAndreas Gohr } 42dc6fce52SAndreas Gohr} 43dc6fce52SAndreas Gohr//Setup VIM: ex: et ts=4 enc=utf-8 : 44