Beispiel #1
0
 }
 unset($epc, $epc_array, $i);
 // floorplans
 if ($row["floorplans"]) {
     $floorplan_array = explode("~", $row["floorplans"]);
 }
 $max_floorplans = 5;
 for ($i = 0; $i <= $max_floorplans; $i++) {
     if ($floorplan_array[$i]) {
         $floorplan = explode("|", $floorplan_array[$i]);
         if (file_exists($image_path . $floorplan[0])) {
             $source_image = $image_path . $floorplan[0];
         } else {
             continue;
         }
         $rm_image_name = $intRMBranchID . '_' . $row["dea_id"] . '_FLP_' . padzero($i) . '.gif';
         // if the file already exists, delete before re-writing
         if (file_exists($strPath . "/" . $rm_image_name)) {
             unlink($strPath . "/" . $rm_image_name);
         }
         copy($source_image, $strPath . "/" . $rm_image_name);
         $render .= $rm_image_name . "^";
         //MEDIA_FLOOR_PLAN_01
         $filesToDelete[] = $strPath . "/" . $rm_image_name;
         $render .= $floorplan[1] . "^";
         //MEDIA_FLOOR_PLAN_TEXT_01
     } else {
         // no image
         $render .= "^";
         //MEDIA_FLOOR_PLAN_01
         $render .= "^";
Beispiel #2
0
    }
    unset($i);
    // epc
    if ($row["epc"]) {
        $epc_array = explode("~", $row["epc"]);
    } else {
        $epc_array = array();
    }
    foreach ($epc_array as $val) {
        $epc = explode("|", $val);
        if (file_exists($image_path . str_replace(".jpg", "_large.jpg", $epc[0]))) {
            $source_image = $image_path . str_replace(".jpg", "_large.jpg", $epc[0]);
        } elseif (file_exists($image_path . str_replace(".jpg", "_small.jpg", $epc[0]))) {
            $source_image = $image_path . str_replace(".jpg", "_small.jpg", $epc[0]);
        }
        $image_filename = $uploaderid . '_' . $advertiserid . '_' . $row["dea_id"] . '_IMG_' . padzero($i) . '.jpg';
        // if the file already exists, delet before re-writing
        if (file_exists($strPath . "/" . $image_filename)) {
            unlink($strPath . "/" . $image_filename);
        }
        copy($source_image, $strPath . "/" . $image_filename);
        $filesToDelete[] = $strPath . "/" . $image_filename;
        $renderMMO .= '<MO REF="' . $image_filename . '" PRIORITY="' . ($i + 1) . '" MMO_TYPE="hipsimage" REMOVE="no"/>' . "\n";
        $i++;
    }
    unset($i);
    $renderMMO .= '</OBJECT>' . "\n";
    unset($i, $photo_array, $photo, $floorplan_array, $floorplan);
}
$render .= '</FISH4.IF.HOMES.FORRENT>';
$renderMMO .= '</FISH4.IF.MMO>';
    $render_type_q .= '<option value="' . $key . '"';
    $render_type_q .= '>' . $val . '</option>' . "\n";
}
$render_right .= '
	<div id="calQuickAdd">
	<form name="quickAdd" action="appointment_add.php">
	<table>
	  <tr>
		<th>Create Appointment</th>
	  </tr>
	  <tr>
		<td>
		<select name="app_type">
		' . $render_type_q . '
		</select>
		<input type="hidden" name="date" value="' . padzero($to_pass['d']) . '/' . padzero($to_pass['m']) . '/' . $to_pass['y'] . '">
		<input type="submit" value="Go" class="button">
		</td>
	  </tr>
	  <tr>
		<td></td>
	  </tr>
	</table>
	</form>
	</div>';
$xrender_right .= '
	<div id="calQuickAdd">
	<form name="quickSearch" action="appointment_search.php">
	<table>
	  <tr>
		<th>Search Appointments</th>
     $photo_array = explode("~", $row["photos"]);
 }
 $max_images = 7;
 for ($i = 0; $i <= $max_images; $i++) {
     if ($photo_array[$i]) {
         $photo = explode("|", $photo_array[$i]);
         if (file_exists($image_path . $photo[0])) {
             $source_image = $image_path . $photo[0];
         } elseif (file_exists($image_path . str_replace(".jpg", "_full.jpg", $photo[0]))) {
             $source_image = $image_path . str_replace(".jpg", "_full.jpg", $photo[0]);
         } elseif (file_exists($image_path . str_replace(".jpg", "_large.jpg", $photo[0]))) {
             $source_image = $image_path . str_replace(".jpg", "_large.jpg", $photo[0]);
         } elseif (file_exists($image_path . str_replace(".jpg", "_small.jpg", $photo[0]))) {
             $source_image = $image_path . str_replace(".jpg", "_small.jpg", $photo[0]);
         }
         $rm_image_name = $intRMBranchID . '_' . $row["dea_id"] . '_IMG_' . padzero($i) . '.jpg';
         // if the file already exists, delet before re-writing
         if (file_exists($strPath . "/" . $rm_image_name)) {
             unlink($strPath . "/" . $rm_image_name);
         }
         copy($source_image, $strPath . "/" . $rm_image_name);
         $render .= $rm_image_name . "|";
         //MEDIA_IMAGE_00
         $filesToDelete[] = $strPath . "/" . $rm_image_name;
         //$render .= $photo[1]."^";			//MEDIA_IMAGE_TEXT_00
     } else {
         // no image
         $render .= "|";
         //MEDIA_IMAGE_00
         //$render .= "^";		//MEDIA_IMAGE_TEXT_00
     }