search.inc.php search.inc.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

search.inc.php

Started by allvip, June 01, 2016, 10:47:37 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

allvip

include/search.inc.php

If the second td has width=100% then the first td has... ?
Also width=100% should be width="100%"


                                <tr>
                                  <td>
                                    <a href="<?php printf("thumbnails.php?album=%u"$alb['aid']); ?> ">
                                        <img src="<?php echo $thumb_url?>"  class="image" <?php echo $thumb_size['geom'?> border="0" alt="<?php echo $thumb['filename'?>">
                                    </a>
                                  </td>
                                  <td width=100% valign=top>
                                    <?php if ($alb['description'] == "") { echo '&nbsp;'; } else { echo $alb['description']; } ?>
                                  </td>
                                </tr>

Αndré

Quote from: allvip on June 01, 2016, 10:47:37 AM
If the second td has width=100% then the first td has... ?

The first td will consume as much as needed, the rest of the screen is used by the second td. What do you suggest?


Quote from: allvip on June 01, 2016, 10:47:37 AM
Also width=100% should be width="100%"

I'll fix that typo. Thanks.

allvip

Quote from: Αndré on June 07, 2016, 10:45:42 AM
The first td will consume as much as needed, the rest of the screen is used by the second td. What do you suggest?

Is working but I thought is incorrect code to have 2 tds and one to have 100%.