adding column titles in starttable in anycontent.php adding column titles in starttable in anycontent.php
 

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

adding column titles in starttable in anycontent.php

Started by ausdlk, January 01, 2007, 06:22:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ausdlk

I've found how to create columns in the anycontent section of my web site (www.david-keenan.com) but I cannot see how to add titles to each of the columns. Using starttable() is can get a title into the first (left-most column) but how do I add titles to the other column(s)?

Sami

‍I don't answer to PM with support question
Please post your issue to related board

ausdlk

>Add your title manually with html

Can you (or someone) point me to some sample code?

Dave.

Sami

something like this:

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.8
  $Source$
  $Revision: 3116 $
  $Author: gaugau $
  $Date: 2006-06-08 00:11:54 +0200 (Do, 08 Jun 2006) $
**********************************************/

/**
* Coppermine Photo Gallery 1.4.6 anycontent.php
*
* This file file gets included in the index.php if you set the option in admin
* can be used to display any content from any program, it is always to be edited
* according to tastes and then used
*
* @copyright 2002,2005 Gregory DEMAR, Coppermine Dev Team
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License V2
* @package Coppermine
* @version $Id: anycontent.php 3116 2006-06-07 22:11:54Z gaugau $
*/

if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

starttable("100%");

?>

<tr>
    <td class="tableh1" colspan="1">first title</td>
    <td class="tableh1" colspan="1">2nd title</td>
</tr>
<tr>
    <td class="tableb" >
        This is for any content block - just a test - Edit the file "anycontent.php" to change what is shown here
    </td>
    <td class="tableb" >
        And this is 2nd content block
    </td>
</tr>
<?php
endtable
();

?>

‍I don't answer to PM with support question
Please post your issue to related board

ausdlk