Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: search.inc.php  (Read 1733 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
search.inc.php
« on: June 01, 2016, 10:47:37 am »

include/search.inc.php

If the second td has width=100% then the first td has... ?
Also width=100% should be width="100%"
 
Code: [Select]
                                <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>
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15429
Re: search.inc.php
« Reply #1 on: June 07, 2016, 10:45:42 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?


Also width=100% should be width="100%"

I'll fix that typo. Thanks.
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: Re: search.inc.php
« Reply #2 on: June 09, 2016, 06:17:30 pm »

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%.
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 20 queries.