featured = 'y'; $prop->find(TRUE); /* get its categories */ $cat_names = array(); $pc = new Pc_join; $pc->property_id = $prop->id; $pc->find(); while( $pc->fetch() ) { /* i could do this with a join, but this will work for now */ $cat = new Categories; $cat->get($pc->category_id); $cat_names[] = $cat->name; } sort($cat_names); /* get the photos */ $files = array(); foreach( glob("$imagepath/{$prop->id}.???.*") as $file ) { $info = pathinfo($file); $files[] = $info['basename']; } /* build the cat menu */ $cat_menu = ''; /* build category list */ $cat = new Categories; $cat->orderBy('name'); $cat->find(); while( $cat->fetch() ) $cat_menu .= "\n"; ?> OX Urban Properties - Urban Commercial Properties, Scottsdale, AZ
OX Urban Properties
   
Search:
Featured Property
thumb2