if ($db[attachment1] || $db[attachment2] || $db[attachment3] || $db[attachment4] || $db[attachment5] && $att_enable) { include "classified_ad_att.inc.php"; } echo "<table cellspacing=\"0\" cellpading=\"0\">"; if ($dbc[sfield] && adfield($db[catid], "sfield")) { echo "<tr valign=\"top\">\n <td><div class=smallleft>{$dbc['sfield']}</div></td>\n <td><div class=smallleft>:</div></td>\n <td><div class=smallleft>" . badwords($db[sfield], $_SESSION[susermod]) . "</div></td>\n </tr>"; } for ($i = 1; $i <= 20; $i++) { $fieldi = "field" . $i; if ($dbc[$fieldi] && adfield($db[catid], "{$fieldi}")) { echo "<tr valign=\"top\">\n <td><div class=smallleft>{$dbc[$fieldi]}</div></td>\n <td><div class=smallleft>:</div></td>"; if (ereg("checkbox", adfield($db[catid], "{$fieldi}")) && $db[$fieldi] == "on") { echo "<td><img src=\"{$image_dir}/icons/checked2.gif\" border=\"0\" alt=\"{$ad_yes}\"\n onmouseover=\"window.status='{$ad_yes}'; return true;\"\n onmouseout=\"window.status=''; return true;\"></td>\n"; } elseif (ereg("checkbox", adfield($db[catid], "{$fieldi}")) && $db[$fieldi] == "") { echo "<td><img src=\"{$image_dir}/icons/signno.gif\" border=\"0\" alt=\"{$ad_no}\"\n onmouseover=\"window.status='{$ad_no}'; return true;\"\n onmouseout=\"window.status=''; return true;\"></td>\n"; } elseif (ereg("--url--", adfield($db[catid], "{$fieldi}"))) { if ($db[$fieldi] && $db[$fieldi] != "http://") { if (substr($db[$fieldi], 0, 7) != "http://") { $db[$fieldi] = "http://" . $db[$fieldi]; } echo "<td><div class=smallleft><a href=\"{$db[$fieldi]}\" target=\"_blank\">{$db[$fieldi]}</a></div></td>"; } } else { echo "<td><div class=smallleft>" . badwords($db[$fieldi], $_SESSION[susermod]) . " " . adfieldunit($db[catid], "{$fieldi}") . "</div></td>"; } echo "</tr>"; } } echo "<tr valign=\"top\">\n <td><div class=smallleft>{$ad_text}</div></td>\n <td><div class=smallleft>:</div></td>\n <td><div class=smallleft>" . badwords($db[text], $_SESSION[susermod]) . "</div></td>\n </tr>\n"; echo "</table>"; echo "<hr>\n";
$iconstr .= "<img src=\"{$dbcat[$stricon]}\" alt=\"{$dbcat[$striconalt]}\" hspace=\"{$hspace}\">\n"; $x++; } } if ($x) { echo "<tr><td><div class=\"spaceleft\"> </div></td></tr>\n"; echo "<tr>\n"; echo "<td class=\"classadd1\"><div class=\"maininputleft\">{$adadd_selicon}</div></td>\n"; echo "<td class=\"classadd2\" height=\"50\">\n"; echo "{$iconstr}"; echo "<br>\n"; for ($i = 1; $i <= 10; $i++) { if ($db["icon" . $i]) { $checked[$i] = "checked"; } if ($dbcat["icon{$i}"] && adfield($catid, "icon{$i}")) { echo "<input type=\"checkbox\" name=\"in[icon{$i}]\" {$checked[$i]}>\n"; } } echo "</td></tr>\n"; } // Text echo "<tr>\n"; echo "<td class=\"classadd1\"><div class=\"maininputleft\">{$adadd_head} </div></td>\n"; echo "<td class=\"classadd2\"><input type=text name=\"in[header]\" size=\"{$field_size}\" maxlength=\"50\" value=\"{$db['header']}\"> <em id=\"red\">**</em></td>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td class=\"classadd1\"><div class=\"maininputleft\">{$adadd_text} </div><br>\n"; echo "<div class=\"mainpages\"><a href=\"smiliehelp.php\"\n onClick='enterWindow=window.open(\"smiliehelp.php?" . sidstr() . "display=y\",\"Smilie\",\n \"width=250,height=450,top=100,left=100,scrollbars=yes\"); return false'\n onmouseover=\"window.status='{$smiliehelp}'; return true;\"\n onmouseout=\"window.status=''; return true;\">{$smiliehelp}</a>  \n"; echo "</div></td>\n"; $text = decode_msg($db[text]);
# last modified by : # e-mail : support@phplogix.com # purpose : IncludeModule show classified ad (overview) # ################################################################################################# if (!strpos($_SERVER['PHP_SELF'], 'classified_ads.inc.php') === false) { die("YOU MAY NOT ACCESS THIS FILE DIRECTLY"); } if (!$db[location]) { $db[location] = $ad_noloc; } $iconstring = ""; for ($i = 10; $i > 0; $i--) { $iconfield = "icon" . $i; $iconalt = "icon" . $i . "alt"; if ($db[$iconfield] && adfield($db[catid], "{$iconfield}")) { $iconstring .= "<img src=\"{$dbc[$iconfield]}\" alt=\"{$dbc[$iconalt]}\" align=\"right\" vspace=\"2\"\n onmouseover=\"window.status='{$dbc[$iconalt]}'; return true;\"\n onmouseout=\"window.status=''; return true;\">\n"; } } if ($db[attachment1] || $db[attachment2] || $db[attachment3]) { $iconstring .= "<img src=\"{$image_dir}/icons/diskette.gif\" alt=\"{$ad_att}\" align=\"right\" vspace=\"2\"\n onmouseover=\"window.status='{$ad_att}'; return true;\"\n onmouseout=\"window.status=''; return true;\">\n"; } echo " <tr>\n"; echo " <td class=\"classcat3\">\n"; if ($db[picture1] || $db[picture2] || $db[picture3]) { if (!$db[picture1] && $db[picture2]) { $db[picture1] = $db[picture2]; $db[_picture1] = $db[_picture2]; } elseif (!$db[picture1] && !$db[picture2] && $db[picture3]) { $db[picture1] = $db[picture3]; $db[_picture1] = $db[_picture3];