Where is the <table> tag for tabbed display? Where is the <table> tag for tabbed display?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Where is the <table> tag for tabbed display?

Started by bobis, September 28, 2008, 07:07:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bobis

Tried to search but no luck...

I have found
$template_tab_display = array('left_text' => '<td width="100%%" align="left" valign="middle" class="row1" style="white-space: nowrap"><span class="genmed"><b>{LEFT_TEXT}</b></span></td>' . "\n",
    'tab_header' => '',
    'tab_trailer' => '',
    'active_tab' => '<td><img src="images/spacer.gif" width="5" height="15" alt="" /></td>' . "\n" . '<td align="center" valign="middle" class="row1"><span class="genmed"> <b>%d</b> </span></td>',
    'inactive_tab' => '<td><img src="images/spacer.gif" width="5" height="15" alt="" /></td>' . "\n" . '<td align="center" valign="middle" class="row1"><span class="genmed"><a href="{LINK}"> <b>%d</b> </a></span></td>' . "\n",
    'inactive_prev_tab' => '<td><img src="images/spacer.gif" width="5" height="15" alt="" /></td>' . "\n" . '<td align="center" valign="middle" class="row1"><span class="genmed"><a href="{LINK}"> <b>{PREV}</b> </a></span></td>' . "\n",
    'inactive_next_tab' => '<td><img src="images/spacer.gif" width="5" height="15" alt="" /></td>' . "\n" . '<td align="center" valign="middle" class="row1"><span class="genmed"><a href="{LINK}"> <b>{NEXT}</b> </a></span></td>' . "\n",
);


in theme.php but that starts with the <td tag, <table> and <tr> is someware else

Is it part of the standard table code?
// Function to start a 'standard' table
function starttable($width = '-1', $title = '', $title_colspan = '1')
{
    global $CONFIG;

    if ($width == '-1') $width = $CONFIG['picture_table_width'];
    if ($width == '100%') $width = $CONFIG['main_table_width'];
    echo <<<EOT

<!-- Start standard table -->
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">

EOT;
    if ($title) {
        echo <<<EOT
        <tr>
                <td class="catHead" colspan="$title_colspan"><span class="genmed"><b>$title</b></span></td>
        </tr>

EOT;
    }
}

// Function to end a 'standard' table
function endtable()
{
    echo <<<EOT
</table>
<!-- End standard table -->

EOT;
}

I would like to hav diffrent settings for some tables using these settings but cant see how

my php skills is pretty bad but html is no problems

bobis

Found the problem and solved it but I would like to know the answer on the above anyway :)