From: <var...@us...> - 2009-02-20 14:36:28
|
Revision: 6520 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6520&view=rev Author: vargenau Date: 2009-02-20 14:36:19 +0000 (Fri, 20 Feb 2009) Log Message: ----------- Buttons at top of page Modified Paths: -------------- trunk/lib/plugin/WikiAdminSelect.php Modified: trunk/lib/plugin/WikiAdminSelect.php =================================================================== --- trunk/lib/plugin/WikiAdminSelect.php 2009-02-20 13:50:58 UTC (rev 6519) +++ trunk/lib/plugin/WikiAdminSelect.php 2009-02-20 14:36:19 UTC (rev 6520) @@ -144,6 +144,36 @@ HTML::input(array('type' => 'submit', 'name' => 'WikiAdminSelect', 'value' => _("Go"))))); + if (! $request->getArg('verify')) { + $form->pushContent(HTML::input(array('type' => 'hidden', + 'name' => 'action', + 'value' => 'verify'))); + $form->pushContent(Button('submit:verify', _("Select pages"), + 'wikiadmin'), + Button('submit:cancel', _("Cancel"), 'button')); + } else { + global $WikiTheme; + $form->pushContent(HTML::input(array('type' => 'hidden', + 'name' => 'action', + 'value' => 'WikiAdminSelect')) + ); + // Add the Buttons for all registered WikiAdmin plugins + $plugin_dir = 'lib/plugin'; + if (defined('PHPWIKI_DIR')) + $plugin_dir = PHPWIKI_DIR . "/$plugin_dir"; + $fs = new fileSet($plugin_dir, 'WikiAdmin*.php'); + $actions = $fs->getFiles(); + foreach ($actions as $f) { + $f = preg_replace('/.php$/','', $f); + $s = preg_replace('/^WikiAdmin/','', $f); + if (!in_array($s,array("Select","Utils"))) { // disable Select and Utils + $form->pushContent(Button("submit:wikiadmin[$f]", _($s), "wikiadmin")); + $form->pushContent($WikiTheme->getButtonSeparator()); + } + } + // $form->pushContent(Button('submit:cancel', _("Cancel"), 'button')); + } + if ($request->isPost() && ! $request->getArg('wikiadmin') && !empty($p)) { @@ -209,35 +239,6 @@ $form->pushContent(HiddenInputs(array($k => $v))); // debugging params, ... } */ - if (! $request->getArg('verify')) { - $form->pushContent(HTML::input(array('type' => 'hidden', - 'name' => 'action', - 'value' => 'verify'))); - $form->pushContent(Button('submit:verify', _("Select pages"), - 'wikiadmin'), - Button('submit:cancel', _("Cancel"), 'button')); - } else { - global $WikiTheme; - $form->pushContent(HTML::input(array('type' => 'hidden', - 'name' => 'action', - 'value' => 'WikiAdminSelect')) - ); - // Add the Buttons for all registered WikiAdmin plugins - $plugin_dir = 'lib/plugin'; - if (defined('PHPWIKI_DIR')) - $plugin_dir = PHPWIKI_DIR . "/$plugin_dir"; - $fs = new fileSet($plugin_dir, 'WikiAdmin*.php'); - $actions = $fs->getFiles(); - foreach ($actions as $f) { - $f = preg_replace('/.php$/','', $f); - $s = preg_replace('/^WikiAdmin/','', $f); - if (!in_array($s,array("Select","Utils"))) { // disable Select and Utils - $form->pushContent(Button("submit:wikiadmin[$f]", _($s), "wikiadmin")); - $form->pushContent($WikiTheme->getButtonSeparator()); - } - } - // $form->pushContent(Button('submit:cancel', _("Cancel"), 'button')); - } if (! $request->getArg('select')) { return $form; } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |