| @@ 131-137 (lines=7) @@ | ||
| 128 | $xoopsDB->escape($lid) . |
|
| 129 | ' order by date_added ASC limit 1'; |
|
| 130 | $resultp = $xoopsDB->query($sql); |
|
| 131 | while (list($cod_img, $pic_lid, $uid_owner, $url) = $xoopsDB->fetchRow($resultp)) { |
|
| 132 | if ($photo) { |
|
| 133 | $photo3 = "<a href='" . |
|
| 134 | XOOPS_URL . |
|
| 135 | '/modules/adslight/viewads.php?lid=' . |
|
| 136 | $lid . |
|
| 137 | "'><img class=\"thumb\" src=\"$updir/thumbs/thumb_$url\" align=\"left\" width=\"100px\" alt=\"$title\"></a>"; |
|
| 138 | } |
|
| 139 | } |
|
| 140 | if ($photo > 0) { |
|
| @@ 131-137 (lines=7) @@ | ||
| 128 | $xoopsDB->escape($lid) . |
|
| 129 | ' order by date_added ASC limit 1'; |
|
| 130 | $resultp = $xoopsDB->query($sql); |
|
| 131 | while (list($cod_img, $pic_lid, $uid_owner, $url) = $xoopsDB->fetchRow($resultp)) { |
|
| 132 | if ($photo) { |
|
| 133 | $photo3 = "<a href='" . |
|
| 134 | XOOPS_URL . |
|
| 135 | '/modules/adslight/viewads.php?lid=' . |
|
| 136 | $lid . |
|
| 137 | "'><img class=\"thumb\" src=\"$updir/thumbs/thumb_$url\" align=\"left\" width=\"100px\" alt=\"$title\"></a>"; |
|
| 138 | } |
|
| 139 | } |
|
| 140 | if ($photo > 0) { |
|
| @@ 257-261 (lines=5) @@ | ||
| 254 | $xoopsDB->escape($lid) . |
|
| 255 | ' order by date_added ASC limit 1'; |
|
| 256 | $resultp = $xoopsDB->query($sql); |
|
| 257 | while (list($cod_img, $pic_lid, $uid_owner, $url) = $xoopsDB->fetchRow($resultp)) { |
|
| 258 | if ($photo) { |
|
| 259 | $photo = "<a href='viewads.php?lid=" . $lid . "'><img class=\"thumb\" src=\"$updir/thumbs/thumb_$url\" align=\"left\" width=\"100px\" alt=\"$title\" /></a>"; |
|
| 260 | } |
|
| 261 | } |
|
| 262 | $no_photo = "<a href='viewads.php?lid=" . $lid . "'><img class=\"thumb\" src=\"assets/images/nophoto.jpg\" align=\"left\" width=\"100px\" alt=\"$title\" /></a>"; |
|
| 263 | ||
| 264 | $xoopsTpl->append('items', array( |
|