coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: bobis on September 28, 2008, 07:07:05 PM

Title: Where is the <table> tag for tabbed display?
Post by: bobis on September 28, 2008, 07:07:05 PM
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
Title: Re: Where is the <table> tag for tabbed display?
Post by: bobis on September 28, 2008, 07:21:22 PM
Found the problem and solved it but I would like to know the answer on the above anyway :)
Title: Re: Where is the <table> tag for tabbed display?
Post by: Joachim Müller on September 28, 2008, 08:25:01 PM
Quote from: bobis on September 28, 2008, 07:21:22 PM
Found the problem and solved it
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631