Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Skin

 
Reply to topic    Forum Index » Help View previous topic
View next topic
Skin
Author Message
Ramon



Joined: 12 Oct 2005
Posts: 473
Location: Hoogeveen, NL

Post Skin Reply with quote
I wanted to have te menu on the left side next instead of above the CutenewSql admin panel.. I succeeded with the next code Smile



Code:
<?php

$skin_prefix = '';



if ($mod == 'syscon'){

   $bl = ' onload="switchCell(0);"';

}



if (!function_exists('options_submenu')){

   function options_submenu(){

   global $member;



       ob_start();

       $echo = cute_lang('options');

       include rootpath.'/inc/mod/options.mdu';

       $options = ob_get_contents();

       ob_get_clean();



       $options = strip_tags($options, '<a>');

       $options = str_replace('&nbsp;', '', $options);

       $options = explode("\r\n", $options);



       foreach ($options as $option){

           if ($option){

               $result[] = $option;

           }

       }



   return @join('<br />', $result);

   }

}



$skin_menu = <<<HTML

<a class="nav" href="$PHP_SELF?mod=main">{$echo['nav']['main']}</a><br \>

<a class="nav" href="$PHP_SELF?mod=addnews">{$echo['nav']['addnews']}</a><br \>

<a class="nav" href="$PHP_SELF?mod=editnews">{$echo['nav']['editnews']}</a><br \>

<a class="nav" href="$PHP_SELF?mod=options">{$echo['nav']['options']}</a> <a href="javascript:ShowOrHide('options-submenu', 'plus')" id="plus" onclick="javascript:ShowOrHide('minus')">+</a><a href="javascript:ShowOrHide('options-submenu', 'minus')" id="minus" style="display: none;" onclick="javascript:ShowOrHide('plus')">-</a><br \>

<a class="nav" href="$PHP_SELF?mod=help">{$echo['nav']['help']}</a><br \>

<a class="nav" href="$PHP_SELF?action=clearcache">{$echo['nav']['clearcache']}</a><br \>

<a class="nav" href="$PHP_SELF?action=logout">{$echo['nav']['logout']}</a><br \>

<a class="nav" href="$config_http_home_url">{$echo['nav']['homepage']}</a>

HTML;



$skin_menu .= '<div id="options-submenu">'.options_submenu().'</div>';



$skin_header = <<<HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html><head>

<meta http-equiv="content-type" content="text/html; charset={$echo['charset']}">

<title>FMInside Content Management</title>

<link href="skins/default.css" rel="stylesheet" type="text/css" media="screen">

<script type="text/javascript" src="skins/cute.js"></script>

</head>



<body$bl>

HTML;



$skin_header .= <<<HTML

<table border="0" cellpading="0" cellspacing="0" width="952px">

   <tr>

      <td><div class="header"><img border="0" src="skins/images/default/{image-name}.gif" align="absmiddle"> {header-text}</div>

<table border="0" cellpadding="2" cellspacing="0" width="952px">

   <tr>

      <td width="100%">

         <table border="0" cellpadding="2" cellspacing="0" width="100%">

               <tr>

                 <td width="15%" valign="top">{menu}

                 <td width="85%">

HTML;



$skin_footer = <<<HTML

</table>



<tr>

<td colspan="2" height="24" align="center" class="copyrights">{copyrights}



</table>

</table>

</table>



</body>



</html>

HTML;

?>




But somehow the + and the - button have been turned around :S



I think it's better you check it for yourself, as my explenation is rather vageu Razz
Tue Mar 07, 2006 5:44 pm View user's profile Send private message Visit poster's website
Guest








Please login to hide the ads.

Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.