<td align="right"><a href="index.php">Main Menu</a></td> </tr> <tr> <td align="left">Page: ' . $data['current'] . ' of ' . $data['numpages'] . '</td> <td align="right" nowrap>' . $prev . ' ' . $next . '</td> </tr> </table> '; // loop property results while ($row = $pager->fetchRow(DB_FETCHMODE_ASSOC)) { $pc = explode(" ", $row['Postcode']); if (!$_GET["Layout"]) { $render .= ' <table border="0" cellspacing="2" cellpadding="2" width="700"> <tr> <td rowspan="3" valign="top" width="56"><a href="property.php?propID=' . $row['prop_ID'] . '&searchLink=' . $PHP_SELF . '?' . urlencode($_SERVER['QUERY_STRING']) . '"><img src="' . $image_folder . get_thumb2($row['image0']) . '" width="56" height="56" border="0" alt="' . $row['Address1'] . '"></a></td> <td colspan="2"><strong>' . $row['description'] . '</strong></td> </tr> <tr> <td width="540">' . $row["house_number"] . ' ' . $row['Address1'] . ', ' . $pc[0] . ' ' . $pc[1] . '</td> <td width="100">' . $row["state_title"] . '</td> </tr> <tr> <td width="540"><strong>' . price_format($row['Price']) . '</strong> - ' . $row["leaseFree_Name"] . '</td> <td width="100" nowrap><a href="print.php?propID=' . $row['prop_ID'] . '">Print</a> / <a href="property.php?propID=' . $row['prop_ID'] . '&searchLink=' . $PHP_SELF . '?' . urlencode($_SERVER['QUERY_STRING']) . '">Edit</a></td> </tr> </table> '; } elseif ($_GET["Layout"] == "plain") { if ($counter == 0) { $render .= '
if (!$row["image0"]) { $errors[] = "Main Image is required"; } else { // check presence and dimensions of main (400x400), ftx (146x146), ftxx (56x56) $image_size = getimagesize($image_folder . $row["image0"]); // Read the size if ($image_size[0] != 400) { $errors[] = "Main Image must be 400 pixels width"; } if ($image_size[1] != 400) { $errors[] = "Main Image must be 400 pixels height"; } if (!file_exists($image_folder . get_thumb1($row["image0"]))) { //$errors[] = "Small Thumbnail not found"; } if (!file_exists($image_folder . get_thumb2($row["image0"]))) { //$errors[] = "Medium Thumbnail not found"; } } // check all floorplans for maximum width (750) $notes = $row["notes"]; } if ($errors) { echo html_header("Error"); echo error_message($errors); exit; } // update table and log $fieldnames[] = "state_of_trade_id"; $fieldnames[] = "Dates"; $newvalues[] = "1";