* @version $Id: sqspell_functions.php,v 1.14.2.9 2005/06/04 21:57:32 jervfors Exp $
* @package plugins
* @subpackage squirrelspell
*/
/**
* This function is the GUI wrapper for the options page. SquirrelSpell
* uses it for creating all Options pages.
*
* @param string $title The title of the page to display
* @param string $scriptsrc This is used to link a file.js into the
* format. This
* allows to separate javascript from the rest of the
* plugin and place it into the js/ directory.
* @param string $body The body of the message to display.
* @return void
*/
function sqspell_makePage($title, $scriptsrc, $body){
global $color, $SQSPELL_VERSION;
if (! sqgetGlobalVar('MOD', $MOD, SQ_GET) ) {
$MOD = 'options_main';
}
displayPageHeader($color, 'None');
echo "
\n";
/**
* Check if we need to link in a script.
*/
if($scriptsrc) {
echo "\n";
}
echo html_tag( 'table', '', 'center', '', 'width="95%" border="0" cellpadding="2" cellspacing="0"' ) . "\n"
. html_tag( 'tr', "\n" .
html_tag( 'td', '' . $title .'', 'center', $color[9] )
) . "\n"
. html_tag( 'tr', "\n" .
html_tag( 'td', '