'addBranch') { $query = 'select office_id_fk, o_addr, o_csz, o_phone from ohs_office_branch where id = \'' . $selBranchID . '\''; if (!($res = $mysqli->query($query))) printf("Error in MySQL: %d (%s)\n", $mysqli->errno, $mysqli->error); list ($selOfficeID, $o_addr, $o_csz, $o_phone) = $res->fetch_row(); $query = 'select count(*) from ohs_office_branch where office_id_fk = \'' . $selOfficeID . '\''; if (!($res = $mysqli->query($query))) printf("Error in MySQL: %d (%s)\n", $mysqli->errno, $mysqli->error); list ($count) = $res->fetch_row(); $query = 'select o_name, o_logo, o_logo_tw, o_url, showname, eachoffice, e_housing, realtor, realtor_mls from ohs_office where id = \'' . $selOfficeID . '\''; if (!($res = $mysqli->query($query))) printf("Error in MySQL: %d (%s)\n", $mysqli->errno, $mysqli->error); list ($o_name, $o_logo, $o_logo_tw, $o_url, $showname, $eachoffice, $e_housing, $realtor, $realtor_mls) = $res->fetch_row(); $branchText = "$o_name"; } else { if ($action == 'addBranch' && $selBranchID) { $query = 'select office_id_fk, o_name, o_logo from ohs_office_branch ob, ohs_office oo where ob.id = \'' . $selBranchID . '\' and ob.office_id_fk = oo.id'; pecho($query); if (!($res = $mysqli->query($query))) printf("Error in MySQL: %d (%s)\n", $mysqli->errno, $mysqli->error); list ($selOfficeID, $o_name, $o_logo) = $res->fetch_row(); } $query = 'select id sid, o_name so_name from ohs_office order by o_name'; if (!($res = $mysqli->query($query))) printf("Error in MySQL: %d (%s)\n", $mysqli->errno, $mysqli->error); while ($row = $res->fetch_assoc()) { extract($row); $offices[$sid] = $so_name; } $branchText = ''; } $mysqli->close(); if ($count == 1 || $action == 'addOffice') { $rdoEntryTypeO = ' checked'; $rdoEntryTypeB = ''; $branchText = ''; } elseif ($selOfficeID || $action == 'addBranch') { $rdoEntryTypeO = ''; $rdoEntryTypeB = ' checked'; } ?> Daily Courier Open House Office Add Page
Show Intro

Enter the information for the new office.

If this is a branch of an already-existing office, select it from the popup menu. Include the Web address if there's a Web site associated with the ad (don't enter the "http://" part).

For the five checkboxes:
Show Office Name: check to display the office name next to or beneath the logo in the ad.
Display 'Each office ...' text: check to display the text 'Each office independently owned and operated' with the ad.
Equal Housing bug: check to display the equal housing graphic with the ad.
Realtor bug: check to display the Realtor symbol on the ad.
Realtor MLS bug: check to display the Realtor symbol with MLS on the ad.


This entry is />  /> of

'addBranch') { echo '' . "\n"; } echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; ?>
Office Name: 
Address: 
City, St. ZIP: 
Phone: