Personal tools
You are here: Home The Virtual Forge - CSS

The Virtual Forge - CSS

by Marco Battistoni published on May 21, 2009

This is the file that should use in order to apply your own style to the Virtual Forge.

This is the file that you should modify in order to obtain your own look and feel.

Please it is very important that you provide this file in the same format not altering the PHP tags. If you are experiencing difficulties you can always contact us via the contact form. here

<?php
/* Permission to use, copy, modify, distribute, and sell this software and its
 * documentation for any purpose is hereby granted without fee, provided that
 * the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation.
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 * AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 * Except as contained in this notice, the name of the author shall not be
 * used in advertising or otherwise to promote the sale, use or other dealings
 * in this Software without prior written authorization from the author.
 */

class Theme extends Layout {

    /**
     * Theme() - Constructor
     */
    function Theme() {
        // Parent constructor
        $this->Layout();

        // The root location for images
        $this->imgroot = '/themes/osor/images/';
        $this->imgproj = '/themes/osor/images/proj/';
        // Creamos una variable global,para diferenciar entre los dos
        // tipos de pesta�as
        $this->pestana ='';

   // YOU CAN START CUSTOMIZING FROM HERE......

        // The primary light background color
        // Alternate list
        $this->COLOR_LTBACK1= '#DDDDDD';

        // The secondary light background color
        $this->COLOR_LTBACK2= '#B6B6B6';


        // The HTML box background color
        $this->COLOR_HTMLBOX_BACK = '#FFFFFF';

        // The color to separate HTML boxes
        $this->COLOR_HTMLBOX_SEP = '#000000';

        // Font Face Constants
        // The content font
        $this->FONT_CONTENT = 'Lucida Grande';
        // The HTML box title font
        $this->FONT_HTMLBOX_TITLE = 'Lucida Grande';
        // The HTML box title font color
        $this->FONTCOLOR_HTMLBOX_TITLE = '#72A5D8';
        // The content font color
        $this->FONTCOLOR_CONTENT = '#202020';
        //The smaller font size
        $this->FONTSIZE_SMALLER='small';
        //The smallest font size
        $this->FONTSIZE_SMALLEST='x-small';
        //The HTML box title font size
        $this->FONTSIZE_HTMLBOX_TITLE = 'x-small';

// new variables introduced by this theme...
        // background image
        $this->BACKGROUND= 'background.png';

        // height of a tab (ie the size of the background image), 23 is specified in the
        // style guide and so the background images were drawn for that size, changing
        // this will lead to the images being cropped or tiled, either will look bad.
        $this->TAB_HEIGHT=23;


        // the following are not used in this theme, but have been set to obnoxious
        // colors to help debug any new pages that make assumptions about a theme...
        // The content background color
        $this->COLOR_CONTENT_BACK= '#0000FF';
        // The background color
        $this->COLOR_BACK= '#00FF00';
        // The HTML box title color
        $this->COLOR_HTMLBOX_TITLE = '#FF0000';

    }

    /**
     *    header() - "steel theme" top of page
     *
     * @param    array    Header parameters array
     */
    function header($params) {
        global $Language, $sys_name;

        if (!$params['title']) {
            $params['title'] = "$sys_name";
        } else {
            $params['title'] = "$sys_name: " . $params['title'];
        }

        print '<?xml version="1.0" encoding="' . $Language->getEncoding(). '"?>';

        ?>

<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="<?php echo $Language->getLanguageCode(); ?>">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $Language->getEncoding(); ?>" />
<title><?php echo $params['title']; ?></title>
<script language="JavaScript" type="text/javascript">
    <!--
    function admin_window(adminurl) {
        AdminWin = window.open( adminurl, 'AdminWindow','scrollbars=yes,resizable=yes, toolbar=yes, height=400, width=400, top=2, left=2');
        AdminWin.focus();
    }
    function help_window(helpurl) {
        HelpWin = window.open( '<?php echo ((session_issecure()) ? 'https://'.
            $GLOBALS['sys_default_domain'] : 'http://'.$GLOBALS['sys_default_domain']); ?>' +

helpurl,'HelpWindow','scrollbars=yes,resizable=yes,toolbar=no,height=400,width=400');
    }
    // -->
    </script>
<?php

/*
    WARNING - changing this font call can affect
    INTERNATIONALIZATION
*/
        //gets font from Language Object
        // try and use the system font first...we'll risk I18N issues
        $site_fonts='Lucida Grande,'.$GLOBALS['Language']->getFont();

    ?>

<style type="text/css">
    <!--
   
    /* FORMS */
input {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background-color: #FFFFFF;
    border: 1px solid #B5B8C8;
    color: #000000;
    font-size: 11px;
    background-image: url(<?php echo $this->imgroot ?>form_degr.gif);
    background-repeat: repeat-x;
    background-position: left top;
}
textarea {
    background-color: #FFFFFF;
    border: 1px solid #B5B8C8;
    color: #000000;
    font-size: 11px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background-image: url(<?php echo $this->imgroot ?>form_degr.gif);
    background-repeat: repeat-x;
    background-position: left top;
}
select {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background-color: #FFFFFF;
    border: 1px solid #B5B8C8;
    color: #000000;
    font-size: 11px;
    width:auto;
    background-image: url(<?php echo $this->imgroot ?>form_degr.gif);
    background-repeat: repeat-x;
    background-position: left top;
}
input:focus, input:hover, textarea:focus, textarea:hover, select:focus, select:hover  {
    border: 1px solid #7EADD9;
    }
fieldset {
    border: 1px solid #CCCCCC;
    padding-top: 10px;
    padding-right: 2px;
    padding-bottom: 5px;
    padding-left: 2px;
    margin-bottom: 10px;
}
legend {
    font-size: 10px;
    font-weight: bold;
    color: #000000;
}
/* FIN FORMS */
   
    body
    {
        margin:0;
        padding:10px 20px;
        background:#FFF;
        /*color:#4D91D9;
        font:69% "Lucida Grande",Verdana,Lucida,Helvetica,Arial,sans-serif;*/
    }
    body, td, th {
    font-size: 12px;
    color: #4D91D8;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    }

/* give the rule a bit of extra space (above and below), since its being used to divide
   sections on some pages (project summary) */
    HR { margin: 5px 0px 5px 0px }


    H1 { font-size: x-large; font-family: <?php echo $site_fonts; ?>; }
    H2 { font-size: large; font-family: <?php echo $site_fonts; ?>; }
    H3 { font-size: medium; font-family: <?php echo $site_fonts; ?>; }
    H4 { font-size: small; font-family: <?php echo $site_fonts; ?>; }
    H5 { font-size: x-small; font-family: <?php echo $site_fonts; ?>; }
    H6 { font-size: xx-small; font-family: <?php echo $site_fonts; ?>; }

    PRE,TT { font-family: courier,sans-serif }

    #header
    {
        color:#FFFFFF;
        text-decoration:none;
        margin-bottom:2px;
        background:transparent;
        height:130px;
        margin-top:15px;
    }

    #nabvar
    {
        padding-bottom:5px;
        background:transparent url(<?php echo $this->imgroot ?>tabline-bg.gif) repeat-x bottom left;
    }
   
   
    #content
    {
       
        color: #274463;
        font-family: Arial;
        font-size: 10pt;
        line-height: 1.5em;
    }
 a
    {
    text-decoration: underline;
    color: #326EA1;
    }
    a:hover
    {
        color: #FF9933;
    }
/*    #content a:link
    {
        color: #326EA1;
    }
    #content
   
    #content a:visited
    {
        color: #990033;
    }*/
    #content-header{
        margin-bottom:2px;
        margin-top:10px;
    }
   
    #footer
    {
        border:0;
        margin:0;
        width:100%;
    }
   
    #footer td.center
    {
        padding:3px;
        border-top:2px solid #0E4095;
    }
   
    #footer td.center .osor
    {
        position:relative;
        top:0px;
        left:0px;
        margin:0 auto;
        height:40px;
        width:330px;
        background:transparent url(<?php echo $this->imgroot ?>OSORWording1.gif) center center no-repeat;
        display:block;   
    }
   
    #footer .idabc
    {
        background:transparent url(<?php echo $this->imgroot ?>IDABC.gif) no-repeat;
        display:block;
        margin-top:-40px;
        height:50px;
        width:80px;
    }

    #footer .about-topic
    {
        background:transparent url(<?php echo $this->imgroot ?>EUflag.gif) no-repeat right top;
        color:#0E4095;
        display:block;
        margin-top:-50px;
        float:right;
        font-size:9px;
        font-weight:normal;
        height:39px;
        letter-spacing:1px;
        padding:14px 65px 0px 0px;
        /*text-transform:uppercase;*/
    }
   
    #footer a
    {
        color:#436976;
        text-decoration:none;
    }
   
    #footer a
    {
        text-decoration:underline;
    }
       
    .first
    {
        padding-bottom:18px;
    }
   
    .first a h1
    {
        margin:0;
        padding:0;
        width:284px;
        height:78px;
        background:transparent url(<?php echo $this->imgroot ?>logo.jpg) no-repeat;
        cursor:pointer;
    }
   
    .first a h1 span
    {
        display:none;
    }
   
    .login
    {
    font:11px "Lucida Grande",Verdana,Lucida,Helvetica,Arial,sans-serif;
    color:#4D91D9;
    background-image: url(<?php echo $this->imgroot ?>bees.jpg);
    background-repeat: no-repeat;
    background-position: right top;        /*background:transparent url(<?php echo $this->imgroot ?>bees.jpg)

repeat-x 0px 24px;*/ /* transparent */
    padding-top:78px;
    }
   
    .login a
    {
        color:#4D91D9;
        text-decoration:none;
        font:11px "Lucida Grande",Verdana,Lucida,Helvetica,Arial,sans-serif;
    }
   
    .login a:hover
    {
        color: #0E4096;
    }
    #personal-nav
    {
    display:block;
    width:250px;
    float:right;

    }
#searchbox {
    background-image: url(<?php echo $this->imgroot ?>bg_search.gif);
    background-repeat: no-repeat;
    background-position: right top;
    display:block;
    width:382px;
    height:28px;
    float:right;
    padding-top:5px;
            }
#searchbox form {
    margin: 0px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 90px;
}
    .login form
    {
        /*position:absolute;
        top:110px;
        right:20px;
        width:285px;
        background:transparent url(<?php echo $this->imgroot ?>searchbox.gif) no-repeat;*/
    }

    .login form td select
    {
        font:11px "Lucida Grande",Verdana,Lucida,Helvetica,Arial,sans-serif;
        margin-bottom:3px;
        width:116px;
        overflow:hidden;
    }
   
    .login form td input.words
    {
        border:0;
        background:#FFF;
        margin:0 0 4px 0;
        font:11px "Lucida Grande",Verdana,Lucida,Helvetica,Arial,sans-serif;
        width:116px;
    }
   
    .login form td input.Search
    {
        border:0;
        background:transparent url(<?php echo $this->imgroot ?>Search.gif) no-repeat top left;
        margin:0 0 4px 0;
        padding:0;
        font:11px "Lucida Grande",Verdana,Lucida,Helvetica,Arial,sans-serif;
        font-weight:bold;
        color: #0E4096;
        width:42px;
        height:15px;
        cursor:pointer;
        display:inline;
    }
   
    .login form td input.Search:hover
    {
        color:#FFF;
        background-position:0px -15px;
    }
   
    a.advanced
    {
        position:absolute;
        font-weight:bold;
        top:134px;
        right:24px;
    }

   
   
    .titlebar {
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    padding-bottom: 2px;
    padding-top: 5px;
    text-transform: uppercase;
    margin-top: 20px;
    display: block;
}
   

    #tab1 td
    {
        border-right: 6px solid #FFF;   
        padding-top:2px;
    }
   
    #tab1 td.tablink
    {
        background:#FFF url(<?php echo $this->imgroot ?>passivetab-middle.gif) repeat-x top left;
    }
   
    #tab1 a
    {
        text-decoration:none;
        font:12px Verdana,Arial,Helvetica,sans-serif;
        font-weight:bold;
        padding-top:2px;
    }
   
    #tab1 span
    {
        padding:2px 10px 0px 8px;
    }
   
    #tab1 .tablink a
    {
        color:#4D91D9;
        background:transparent url(<?php echo $this->imgroot ?>passivetab-front.gif) no-repeat 0px 0px;
    }
   
    #tab1 .tablink a:hover
    {
        color:#0E4096;
        text-decoration: none;
    }
   
    #tab1 .tablink span
    {
        background:transparent url(<?php echo $this->imgroot ?>passivetab-end.gif) no-repeat 100% 0px;
    }
   
    #tab1 td.tabsellink
    {
        background:#FFF url(<?php echo $this->imgroot ?>activetab-middle.gif) repeat-x top left;
    }
   
    #tab1 .tabsellink a
    {
        color:#FFF;
        background:transparent url(<?php echo $this->imgroot ?>activetab-front.gif) no-repeat 0px 0px;
    }
   
    #tab1 .tabsellink span
    {
        padding-right:12px;
        background:transparent url(<?php echo $this->imgroot ?>activetab-end.gif) no-repeat 100% 0px;
    }
   
    /* Sous MENU */
    #tabb2 {
    background-color: #4D91DF;
    background-image: url(<?php echo $this->imgroot ?>activetab-front2.gif);
    background-repeat: no-repeat;
    background-position: left top;
    margin-top: 1px;
    }
    #tab2 a {
    font-weight: bold;
    font-size: 11px;
    text-decoration: none;
    }
    #tab2 .tablink a {
    color:#C8DCF5;
    }
    #tab2 .tabsellink a {
    color:#FFFFFF;
    }
    #tab2 td {
    padding-left: 10px;
    }
   
    /* Fin Sous MENU */
   
    A.showsource {
        color: #000000;
        text-decoration: none;
        font-size: <?php echo $this->FONTSIZE_SMALLER; ?>;
    }
    A.showsource:visited {
        color: #000000;
        text-decoration: none;
        font-size: <?php echo $this->FONTSIZE_SMALLER; ?>;
    }
    A.showsource:hover {
        color: #000000;
        text-decoration: none;
        font-size: <?php echo $this->FONTSIZE_SMALLER; ?>;
    }
    #rightcolumnhome {
    color: #FFFFFF;
    background-color: #4D91D8;
    padding: 8px;   
    }

/*#sousmenu a {
    color: #4D91D8;
}*/
/*#sousmenu a:visited {
    color: #4D91D8;
}*/   

.contentmidle {
    padding: 10px;
    border-right-width: 2px;
    border-left-width: 2px;
    border-right-style: solid;
    border-left-style: solid;
    border-right-color: #4D91D8;
    border-left-color: #4D91D8;border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: #4D91D8;
    width:73%;
    float:left;
}
.titlebigg {
    background-color: #4D91D8;
    background-image: url(<?php echo $this->imgroot ?>ic/summary.png);
    background-repeat: no-repeat;
    background-position: 10px center;
    display: block;
    height: 24px;
    width: 90%;
    margin-right: auto;
    margin-left: auto;
    font-weight: bold;
    color: #FFFFFF;
    vertical-align: middle;
    padding-left:60px;
    padding-top:4px;
}

.contentright {
    float:left;
    width:18%;
    margin-left:20px;
    background-color:#4D91D8;
    background-image: url(<?php echo $this->imgroot ?>TeamSeparator.jpg);
    background-repeat: no-repeat;
    background-position: center top;
    padding-top:70px;
    color: #FFFFFF;   
    font-size: 11px;
    padding-bottom:20px;
    padding-left:10px;
    padding-right:10px;
}
.contentright td { color: #FFFFFF; }

.contentright a {
    color: #FFFFFF;
    text-decoration:underline;
    font-size: 11px;
}
.contentright a:hover {
    color: #FFFFFF;
    text-decoration:none;
}

.contentright hr {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #FFFFFF;
}

.textedroite {
    text-align: right;
}
.textegauche {
    text-align: left;
}
.textecentre {
    text-align: center;
}
.bgorange {
    background-color: #FF9933;
}
.tabnorm { width:100%; }
.tabnorm td {
    font-size: 11px;
    color: #4D91DF;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #4D91DF;
}
.tabnorm th {
    font-size: 11px;
    color: #4D91DF;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #FFFFFF;
    font-weight: bold;
    background-color:#E4EFF9;
}
.tablealt td {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #4D91DF;
}
.topline { font-size: 11px;
    color: #4D91DF;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #FFFFFF;
    font-weight: bold;
    background-color:#E4EFF9; }
.topline2 {
    background-color:#F4F9FD;
}
.textepetit {
    font-size: 10px;
}
.user_img{
    border : 0;
    position : relative;
    top: 5px;
   }

/*.blanc { color: #FFFFFF; }*/
    -->
</style>
<!--[if IE]>
<style type="text/css">
#tab1 .tablink a, #tab1 .tabsellink a
{
    background-position:0px 2px;
}
</style>
<![endif]-->
<!--[if lte IE 6]>
<style type="text/css">
#footer td.center
{
    text-align:center;
}

#footer td.center .idabc
{
    float:left;
}
#footer .about-topic
{
    margin-top:-40px;
}
</style>
<![endif]-->
</head>

<body>


<table id="header" border="0" width="100%" cellspacing="0" cellpadding="0" valign = "bottom">

<tr rowspan = "40" id=content-header colspan = "2" width= "100%" height= "60%">
    <td class="first" valign="top" width="10%">
      <?php
         if (session_loggedin()) {
            ?>
         <a href="https://www.osor.eu/">
      <?php
         } else {
         ?>
         <a href="http://www.osor.eu/">
         <?php
         }
      ?> 
    <h1><span>OSOR Forge</span></h1>
     </td>   
        </a>
        <!--<img src="<?php echo $this->imgroot; ?>triangle.gif" width="5" height="10" alt="Home OSOR" /> <strong><a

href="http://www.osor.eu" style="color:#4D91D9;">Home OSOR</a></strong>-->
        </td>
<td width = "90%" COLSPAN="2" valign="top" class = "login">
         <div id="searchbox">
        <?php echo $this->searchBox(); ?>
        </div>   
        <div id="personal-nav">
        <?php
            if (session_loggedin()) {
            $u =& user_get_object(user_getid());
            if (!$u || !is_object($u)) {
               exit_error('Error','Could Not Get User');
            } elseif ($u->isError()) {
               exit_error('Error',$u->getErrorMessage());
            }
            ?>
            <a href="/account/"><img class="user_img" src="/images/user.gif" alt="" title="User" height="16" width="16"/>
            <?php echo $u->getRealName(); ?></a>
            <span class="UserFuncSeparator">&#8226;</span>
            <a href="/account/logout.php"><?php echo $Language->getText('common','logout'); ?></a>
            <span class="UserFuncSeparator">&#8226;</span>
            <?php
            } else {
                ?>
                <a valign="bottom" href="/account/register.php"><?php echo $Language->getText('common','newaccount'); ?></a>               
            <span class="UserFuncSeparator">&#8226;</span>
                <a href="/account/login.php"><?php echo $Language->getText('common','login'); ?></a>
                <?php
            }

        ?></div>
       
      </td>
  </tr>

</table>

<!-- ETIQUETASSSSSSSSSSSSSSSSSSSSSSSSSSSS -->

<table id="nabvar" border="0" cellspacing="0" width="100%" cellpadding="0" >
    <tr>
        <td align="left" colspan="5">
<?php $this->pestana = 'tab1'; // menu ?>
<?php echo $this->outerTabs($params); ?>
        </td>
    </tr>
</table>


<!-- ETIQUETASSSSSSSSSSSSSSSSSSSSSSSSSSSS -->

<table id = content style = "background-color:#EDEDED" border="0" cellspacing="0"  cellpadding="0" width="100% ">

    <tr bgcolor ="#FFFFFF">
       
        <td cellspacing = "20px" valign="top" width="0%" colspan="3">
            <!-- Inner Tabs / Shell -->

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

          if ($params['group']) {

?>

            <tr>
            <?php $this->pestana = 'tab2'; //############# DEUXIEME NIVEAU DE MENU  ?>
                <td colspan="5" style="padding-left:450px;">
                <div id="tabb2"><?php
                echo $this->projectTabs($params['toptab'],$params['group']);
                ?></div>
                </td>
           
            </tr>
            <?php

}

?>
            <tr>
                <td><img src="<?php echo $this->imgroot; ?>clear.png" width="99%" height="10"

alt="spacer" /></td>
            </tr>

            <tr>
                <td><img src="<?php echo $this->imgroot; ?>clear.png" width="10" height="1" alt=""

/></td>
                <td valign="top" width="99%"><div id="sousmenu">
    <?php
    }

    function footer($params) {

    ?></div>

            <!-- end main body row -->


                </td>
                <td width="10"><img
                    src="<?php echo $this->imgroot; ?>clear.png" width="2" height="1" alt=""

/></td>
            </tr>
            <tr>
                <td><img
                    src="<?php echo $this->imgroot; ?>clear.png" width="1" height="1" alt=""

/></td>
            </tr>
            </table>

        <!-- end inner body row         -->

        </td>
       

</table>
<p>&nbsp;</p>
<table id="footer" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td width="20">&nbsp;</td>
        <td class="center" align="left">
        <div class="osor"></div>
    <a class="idabc" href="http://ec.europa.eu/idabc" target="_blank"></a>
    <a class="about-topic" href="http://ec.europa.eu" target="_blank">
        European<br>Commission
    </a>
        </td>
        <td width="20">&nbsp;</td>
    </tr>
</table>

<!-- PLEASE LEAVE "Powered By GForge" on your site
<center background="#ffffff">
<a href="http://gforge.org/"><img src="/images/pow-gforge.png" alt="Powered By GForge Collaborative Development

Envir onment" border="0" /></a>
</center> -->


<?php
    global $sys_show_source;
    if ($sys_show_source) {
        global $SCRIPT_NAME;
        print '<a class="showsource" href="/source.php?file=' . $SCRIPT_NAME . '">Show Source</a>';
    }
?>

</body>
</html>
<?php

    }


    /**
     * boxTop() - Top HTML box
     *
     * @param   string  Box title
     * @param   bool    Whether to echo or return the results
     * @param   string  The box background color
     */
    function boxTop($title) {
        return '
       
        <table  cellspacing="0" cellpadding="0" width="100%" border="0" >
        <tr><td>

            <table cellspacing="0" cellpadding="0" width="100%" border="0"  >
                <tr>
                    <td colspan="0"><span class="titlebar">'.$title.'</span></td>
                </tr>
                <tr align="left" bgcolor="'. $this->COLOR_HTMLBOX_BACK .'">
                    <td colspan="2" height="1"></td></tr><tr align="left"><td colspan="2">';
    }

    /**
     * boxMiddle() - Middle HTML box
     *
     * @param   string  Box title
     * @param   string  The box background color
     */
    function boxMiddle($title) {
        return '
                <!-- boxMiddle -->
                </td>
                </tr>
                <tr><td height="20" colspan="2">&nbsp;</td></tr>
                <tr>
                    <td colspan="2"><span class="titlebar">'.$title.'</span></td>
                </tr>
                <tr align="left">
                    <td colspan="2" height="1"></td></tr><tr><td colspan="2">';
    }

    /**
     * boxGetAltRowStyle() - Get an alternating row style for tables
     *
     * @param               int             Row number
     */
    function boxGetAltRowStyle($i) {
        switch ($i % 3 ) {
            case 0:
                return 'class="tablealt" ';
            case 1:
                return 'class="tablealt" '; // bgcolor="' . $this->COLOR_LTBACK1 . '"
            case 2:
                return 'class="tablealt" '; // bgcolor="' . $this->COLOR_LTBACK2 . '"
        }
    }

    /**
     * boxBottom() - Bottom HTML box
     *
     * @param   bool    Whether to echo or return the results
     */
    function boxBottom() {
        return '<!-- boxBottom -->
                    </td>
                </tr>
            </table>
        </td></tr>
        <tr><td height="20" colspan="2">&nbsp;</td></tr>
        </table><p />';
    }

    /**
     * listTableTop() - Takes an array of titles and builds the first row of a new table.
     *
     * @param       array   The array of titles
     * @param       array   The array of title links
     */
    function listTableTop ($title_arr,$links_arr=false) {
        $return = '
        <!-- listTableTop -->
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr><td>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr class="topline" >';

        $count=count($title_arr);
        if ($links_arr) {
            for ($i=0; $i<$count; $i++) {
                $return .= '
                <td align="left"><a class="titlebar" href="'.$links_arr[$i].'">'.$title_arr

[$i].'</a></td>';
            }
        } else {
            for ($i=0; $i<$count; $i++) {
                $return .= '
                <td align="left">'.$title_arr[$i].'</td>';
            }
        }
        $return .= '
        </tr>
        <tr align="left" bgcolor="'. $this->COLOR_HTMLBOX_BACK .'">
            <td colspan="'.$count.'" height="1"><img src="'.$this->imgroot.'clear.png" height="1"

width="1" alt="" /></td>
        </tr>';
        return $return;
    }

    function tabGenerator

($TABS_DIRS,$TABS_TITLES,$nested=false,$selected=false,$sel_tab_bgcolor='WHITE',$total_width='') {

        $count=count($TABS_DIRS);
        $width=intval((100/($count+1)));
        $space=intval($width/2);
        $return .= '

        <!-- tabGenerator -->

        <table id="'.$this->pestana.'" border="0" cellpadding="0" cellspacing="0" >
        <tr>';
        if ($TABS_DIRS[0]=='/') {
         if (session_loggedin()) {
              $return .= '<td align="center" class="tablink"><a href="https://www.osor.eu"><span>Home OSOR</span></a></td>';
         } else {
              $return .= '<td align="center" class="tablink"><a href="http://www.osor.eu"><span>Home OSOR</span></a></td>';
         }
      }
        if ($nested) {
            $inner='-inner';
        } else {
            $inner='';
        }
        for ($i=0; $i<$count; $i++) {
            $TABS_TITLES[$i] = preg_replace("/ +/", "&nbsp;", $TABS_TITLES[$i]);
            $bgimg=(($selected==$i)?$select_tab:$deselect_tab);
            $cornerimg=(($selected==$i)?'select':'deselect');
            $return .= '
                <td align="center" class="'. (($selected==$i)?'tabsellink':'tablink') .'">'.
                '<a  href="'. $TABS_DIRS[$i]

.'">'. $TABS_TITLES[$i] .'</a></td>
                ';
        }
        return $return .= '
        </table>
        <!-- end tabGenerator -->';
    }

    /**
     * multiTableRow() - create a mutlilevel row in a table
     *
     * @param    string    the row attributes
     * @param    array    the array of cell data, each element is an array,
     *                      the first item being the text,
     *                      the subsequent items are attributes
     * @param    boolean is this row part of the title ?
     *
     */
     function multiTableRow($row_attr, $cell_data, $istitle) {
        $return= '
        <!-- multiTableRow -->
        <tr  '.$row_attr;
        if ( $istitle ) {
            $return .=' class="topline"  align="center" ';
        }
        $return .= '>';
        for ( $c = 0; $c < count($cell_data); $c++ ) {
            $return .='<td ';
            for ( $a=1; $a < count($cell_data[$c]); $a++) {
                $return .= $cell_data[$c][$a].' ';
            }
            $return .= '>';
            if ( $istitle ) {
                $return .='<span>';
            }
            $return .= $cell_data[$c][0];
            if ( $istitle ) {
                $return .='</span>';
            }
            $return .= '</td>';

        }
        $return .= '</tr>
        <!-- end multiTableRow -->
        ';

        return $return;
     }

}

?>

                                                                                                                                                                                                                                                                                                                       
Document Actions