agentadmin.php File Reference

The main administration file for agents. More...


Variables

 $result = mysql_query("select * from ".$table_prefix."agents ")
 $num_rows = mysql_num_rows($result)
print<!--HEREBEGINNETHTHEHEADER-->
n
 $query
 $image_order = slashquote($image_order)
 $sql = "update ".$table_prefix."tbl_Files set description='$desc', image_order = '$image_order' "
 $query
 $result = mysql_query("$query",$link)
 $image_order = $image_row['image_order']
 $description = stripslashes($image_row['description'])
 $filename = stripslashes($image_row['filename'])
 return
 $address = slashquote($address)
 $city = slashquote($city)
 $previewdesc = slashquote($previewdesc)
 $fulldesc = slashquote($fulldesc)
 $neighborhood = slashquote($neighborhood)
 $notes = slashquote($notes)
 $proptax = ereg_replace("[^[:alnum:]]","",$proptax)
 $price_low = @ ereg_replace("[^[:alnum:]]","",$price_low)
 $price_hi = @ ereg_replace("[^[:alnum:]]","",$price_hi)
 $fulldesc = ereg_replace("(\r\n|\n|\r)", "<br>", $fulldesc)
 $imageloc = ""
 $dateupdated = save_date()
 $query
 $address = slashquote($address)
 $city = slashquote($city)
 $previewdesc = slashquote($previewdesc)
 $fulldesc = slashquote($fulldesc)
 $neighborhood = slashquote($neighborhood)
 $proptax = ereg_replace("[^[:alnum:]]","",$proptax)
 $price_low = ereg_replace("[^[:alnum:]]","",$price_low)
 $price_hi = ereg_replace("[^[:alnum:]]","",$price_hi)
 $fulldesc = ereg_replace("(\r\n|\n|\r)", "<br>", $fulldesc)
 $dateposted = save_date()
 $query
 $modify = mysql_insert_id($link)
print Your listing has been added
 $a_row ['address'] = stripslashes($a_row['address'])
 $a_row ['city'] = stripslashes($a_row['city'])
 $a_row ['previewdesc'] = stripslashes($a_row['previewdesc'])
 $a_row ['fulldesc'] = stripslashes($a_row['fulldesc'])
 $a_row ['neighborhood'] = stripslashes($a_row['neighborhood'])
 $a_row ['notes'] = stripslashes($a_row['notes'])
 $a_row ['fulldesc'] = ereg_replace("<br>", "\r\n", $a_row['fulldesc'])
 $query
 $result = mysql_query("$query",$link)
 $num_images = 0
 $num_images
print< P >< formname=\"addlisting\"action=\"./agentadmin.php?modify=$a_row[id]&amp;edit=$a_row[id]\"method=\"post\">
print<divclass=\"admin\"> 
title
print city
print</div ></div >< inputtype=submit ></form > print< P ><
fontsize=1 > Once you add
listing


Detailed Description

Agents log in using this file and are able to administrate their properties. Only the individual agent's properties may be edited using this file.

Variable Documentation

$imageloc = ""

/This will point to a file sometime in the future

$query

Initial value:

 "SELECT filename,id_files,prop_num,owner, thumb,thumb_size,thumb_filetype,  description FROM "
    .$table_prefix."tbl_Files WHERE prop_num = '$propnum' order by image_order "

$query

Initial value:

 "INSERT INTO ".$table_prefix."homes (title, address, city, state, zip, price, 
 previewdesc, fulldesc, type, imageloc, beds, baths, status, featured, mls, neighborhood, 
 agent, agenturl, agentemail, notes, owner, yearbuilt, sqfeet, lotsize, numfloors, garagesize,
 proptax, country, virtualtour, dateavailable, heat, style, onmarket, price_low, price_hi, nearby, floorplan, dateposted) values ('$title', 
 '$address', '$city', '$state', '$zip', '$price', '$previewdesc', '$fulldesc', '$type', 
 '$imageloc', '$beds', '$baths', '$status', '$featured','$mls', '$neighborhood', '$agent', 
 '$agenturl', '$agentemail', '$notes', '$current_user', '$yearbuilt', '$sqfeet', '$lotsize', 
 '$numfloors', '$garagesize', '$proptax', '$country', '$virtualtour', '$dateavailable', 
 '$heat', '$style', '$onmarket', '$price_low', '$price_hi', '$nearby', '$floorplan', '$dateposted')"

$query

Initial value:

 "UPDATE ".$table_prefix."homes SET title = '$title', address = '$address', 
 city = '$city', state = '$state', zip = '$zip', price = '$price', 
 previewdesc = '$previewdesc', fulldesc = '$fulldesc', type = '$type', 
 imageloc = '$imageloc',  beds ='$beds', baths='$baths', status='$status', 
 featured='$featured', mls='$mls', neighborhood='$neighborhood', agent='$agent', 
 agenturl='$agenturl', agentemail='$agentemail', notes = '$notes', owner = '$current_user', 
 yearbuilt= '$yearbuilt', sqfeet = '$sqfeet', lotsize= '$lotsize', numfloors = '$numfloors',
 garagesize = '$garagesize', proptax = '$proptax', country = '$country', 
 virtualtour = '$virtualtour', dateavailable = '$dateavailable', heat = '$heat', 
 style = '$style', onmarket = '$onmarket', price_low = '$price_low', price_hi = '$price_hi', nearby = '$nearby', floorplan = '$floorplan', dateupdated = '$dateupdated' WHERE ((id='$modify') AND 
 
 (owner = $current_user))"

$query

Initial value:

 "SELECT filename, id_files, prop_num,owner, thumb, thumb_size, thumb_filetype, description, image_order FROM "
    .$table_prefix."tbl_Files WHERE id_files = '$editimage'"

$query

Initial value:

 "DELETE FROM ".$table_prefix."tbl_Files WHERE 
           ((prop_num = '$delete') AND (owner = '$current_user'))"


Generated on Sat Mar 3 12:47:09 2007 for FreeRealty Real Estate Listing Scripts by  doxygen 1.4.7