Location: PHPKode > projects > ChiCoMaS - Chilek CMS > chicomas/modules/style/style_operation.php
<?
//*****************************************************************************
function Create_Tab_Menu($request){

	global $module;
	global $module_path;

	$sf = $request['sf'];

	$content = "
	<div id=\"navcontainer\">
	<ul id=\"navlist\">";

	$current = "id=\"current\"";
	$active = "id=\"active\"";


	$content .= "<li><a href=\"".basename($PHP_SELF)."?mode=admin\">"._CONTROL_PANEL_."</a></li>";

	$content .= "<li $active><a href=\"".basename($PHP_SELF)."?f=style\" $current>"._CP_STYLE_ADMINISTRATION_."</a></li>";

	$content .= "
	</ul>
	</div>";

	return $content;
};

//*****************************************************************************
function Style_Operation_Menu(){

	$content .= "
	<table width=\"90%\" height=\"100%\">
	<tr>
		<td align=\"center\" width=\"20%\">
			<a href=\"".basename($PHP_SELF)."?f=style&sf=general\">
				<img src=\"./images/icon48/general.png\" width=\"48\" height=\"48\" border=\"0\"><br>
				"._CP_SA_GENERAL_."
			</a>
		</td>
		<td align=\"center\" width=\"20%\">
			<a href=\"".basename($PHP_SELF)."?f=style&sf=font\">
				<img src=\"./images/icon48/font.png\" width=\"48\" height=\"48\" border=\"0\"><br>
				"._CP_SA_FONT_."
			</a>
		</td>
		<td align=\"center\" width=\"20%\">
			<a href=\"".basename($PHP_SELF)."?f=style&sf=header\">
				<img src=\"./images/icon48/header.png\" width=\"48\" height=\"48\" border=\"0\"><br>
				"._CP_SA_HEADER_."
			</a>
		</td>
		<td align=\"center\" width=\"20%\">
			<a href=\"".basename($PHP_SELF)."?f=style&sf=document\">
				<img src=\"./images/icon48/document.png\" width=\"48\" height=\"48\" border=\"0\"><br>
				"._CP_SA_DOCUMENT_."
			</a>
		</td>
		<td align=\"center\" width=\"20%\">
			<a href=\"".basename($PHP_SELF)."?f=style&sf=mmenu\">
				<img src=\"./images/icon48/menu.png\" width=\"48\" height=\"48\" border=\"0\"><br>
				"._CP_SA_MAINMENU_."
			</a>
		</td>
	</tr>
	<tr>
		<td align=\"center\" width=\"20%\">
			<a href=\"".basename($PHP_SELF)."?f=style&sf=smenu\">
				<img src=\"./images/icon48/menu.png\" width=\"48\" height=\"48\" border=\"0\"><br>
				"._CP_SA_SUBMENU_."
			</a>
		</td>
		<td align=\"center\" width=\"20%\">
			<a href=\"".basename($PHP_SELF)."?f=style&sf=link\">
				<img src=\"./images/icon48/link.png\" width=\"48\" height=\"48\" border=\"0\"><br>
				"._CP_SA_LINK_."
			</a>
		</td>
	</tr>
	</table>";

	return $content;
};

//*****************************************************************************
function Style_Operation($request){
	$content = null;

	$sf = $request['sf'];

	$content = Create_Tab_Menu($request);

	require("./modules/style/functions.php");

	switch ($sf){
	default:
		$content .= Style_Operation_Menu();
	break;
	case 'general':
		require("./modules/style/general_operation.php");
		$content .= General_Operation($request);
	break;
	case 'font':
		require("./modules/style/font_operation.php");
		$content .= Font_Operation($request);
	break;
	case 'header':
		require("./modules/style/header_operation.php");
		$content .= Header_Operation($request);
	break;
	case 'document':
		require("./modules/style/document_operation.php");
		$content .= Document_Operation($request);
	break;
	case 'mmenu':
		require("./modules/style/mainmenu_operation.php");
		$content .= MainMenu_Operation($request);
	break;
	case 'smenu':
		require("./modules/style/submenu_operation.php");
		$content .= SubMenu_Operation($request);
	break;
	case 'link':
		require("./modules/style/link_operation.php");
		$content .= Link_Operation($request);
	break;
	}

	return $content;
}


?>
Return current item: ChiCoMaS - Chilek CMS