} // viewing arrangements $formData5 = array('dea_key' => array('type' => 'text', 'label' => 'Key Number', 'value' => $dea_key, 'attributes' => array('class' => 'wide')), 'dea_notes_arr' => array('type' => 'textarea', 'label' => 'Add Viewing Info', 'attributes' => array('class' => 'noteInput'))); if (!$_GET["action"]) { $form = new Form(); $form->addForm("", "GET", $PHP_SELF); $form->addHtml("<div id=\"standard_form\">\n"); $form->addField("hidden", "stage", "", "1"); $form->addField("hidden", "action", "", "update"); $form->addField("hidden", "dea_id", "", $dea_id); $form->addField("hidden", "pro_id", "", $pro_id); $form->addField("hidden", "searchLink", "", urlencode($searchLink)); $form->addHtml('<h1>' . $pro_addr . ' (' . $dea_type . ')</h1>'); $formName = 'form1'; $form->addHtml("<fieldset>\n"); $form->addLegend('Summary', array('style' => 'cursor:pointer', 'onClick' => 'javascript:showHide(\'' . $formName . '\');')); $form->addHtml('<div id="' . $formName . '" style="display:none">'); $form->addHtml($form->addHtml($summary_table)); //$form->addHtml($form->addDiv($form->makeField("textarea",$formName,"General Notes","",array('class'=>'noteInput')))); $form->addHtml($form->addRow('textarea', 'dea_notes', 'Add General Note', '', array('class' => 'noteInput'), '', '')); $form->addHtml(renderNotes('deal_general', $dea_id, array('viewform' => '1', 'label' => 'General Notes'))); $buttons = $form->makeField("submit", $formName, "", "Save Changes", array('class' => 'submit')); if (in_array('Production', $_SESSION["auth"]["roles"]) || in_array('Editor', $_SESSION["auth"]["roles"])) { $buttons .= $form->makeField("button", $formName, "", "Production", array('class' => 'button', 'onClick' => 'javascript:location.href=\'deal_production.php?dea_id=' . $dea_id . '&searchLink=' . $_SERVER['SCRIPT_NAME'] . urlencode('?' . $_SERVER['QUERY_STRING']) . '\'')); $buttons .= $form->makeField("button", $formName, "", "Delete", array('class' => 'button', 'onClick' => 'javascript:location.href=\'?do=archive&dea_id=' . $dea_id . '&return=' . urlencode('?' . $_SERVER['QUERY_STRING']) . '\'')); } $form->addHtml($buttons); $form->addHtml('</div>'); $form->addHtml("</fieldset>\n"); $formName = 'form2'; $form->addHtml("<fieldset>\n");
$attribute_array = array('class' => 'addr', 'readonly' => 'readonly'); $attribute_array_pc = array('class' => 'pc', 'maxlength' => 9, 'readonly' => 'readonly'); } $formData2 = array('pro_pcid' => array('type' => 'hidden', 'value' => $pro_pcid), 'pro_addr1' => array('type' => 'text', 'label' => 'House Number', 'value' => $pro_addr1, 'required' => 2, 'attributes' => $attribute_array, 'function' => 'format_street'), 'pro_addr2' => array('type' => 'text', 'label' => 'Building Name', 'value' => $pro_addr2, 'required' => 1, 'attributes' => $attribute_array, 'function' => 'format_street'), 'pro_addr3' => array('type' => 'text', 'label' => 'Street', 'value' => $pro_addr3, 'required' => 2, 'attributes' => $attribute_array, 'function' => 'format_street'), 'pro_addr4' => array('type' => 'text', 'label' => 'Town or Area', 'value' => $pro_addr4, 'required' => 3, 'attributes' => $attribute_array, 'function' => 'format_street'), 'pro_addr5' => array('type' => 'text', 'label' => 'City or County', 'value' => $pro_addr5, 'required' => 2, 'attributes' => $attribute_array, 'function' => 'format_street'), 'pro_postcode' => array('type' => 'text', 'label' => 'Postcode', 'value' => $pro_postcode, 'required' => 2, 'attributes' => $attribute_array_pc, 'function' => 'format_postcode', 'group' => 'Postcode'), 'pro_postcode_change' => array('type' => 'button', 'label' => 'Postcode', 'value' => 'Change Address', 'group' => 'Postcode', 'attributes' => array('class' => 'button', 'onClick' => 'javascript:resetDirectoryAddress(' . $dir_id . ');'), 'last_in_group' => 1)); // form is not submitted, show the form if (!$_POST["action"]) { // start new form object $form = new Form(); $form->addForm("form", "post", $PHP_SELF, "multipart/form-data"); $form->addHtml("<div id=\"standard_form\">\n"); $form->addField("hidden", "action", "", "update"); $form->addField("hidden", "dir_id", "", $dir_id); $form->addField("hidden", "pro_id", "", $pro_id); ///////////////////////////////////////////////////////////////////////////////// $form->addHtml("<fieldset>\n"); $form->addLegend('Edit Entry'); $form->addData($formData1, $_POST); $form->addHtml("</fieldset>\n"); ///////////////////////////////////////////////////////////////////////////////// $form->addHtml("<fieldset>\n"); $form->addLegend('Address'); if (!$pro_pcid) { $form->ajaxPostcode("by_freetext", "pro"); } else { $form->addData($formData2, $_POST); $form->addHtml($form->addDiv($form->makeField("submit", "", "", "Save Changes", array('class' => 'submit')))); } $form->addHtml("</fieldset>\n"); $form->addHtml("</div>\n"); // start a new page $page = new HTML_Page2($page_defaults);
$form->addHtml($form->addDiv($form->makeField("submit", "", "", "Use Selected Client", array('class' => 'submit')))); #$form->addHtml($form->addDiv($form->makeField("button","","","Create New Client",array('class'=>'submit','onClick'=>'location.href=\''.$goto_notfound.'?'.http_build_query($terms).'&dest='.$_GET["dest"].'\';')))); $form->addHtml("</fieldset>\n"); $form->addHtml("</div>\n"); } $form2 = new Form(); $form2->addForm("form", "post", $PHP_SELF); $form2->addHtml("<div id=\"standard_form\">\n"); $form2->addField("hidden", "stage", "", "2"); $form2->addField("hidden", "action", "", "new_client"); $form2->addField("hidden", "dest", "", $_GET["dest"]); $form2->addField("hidden", "dea_id", "", $_GET["dea_id"]); $form2->addField("hidden", "app_id", "", $_GET["app_id"]); $form2->addField("hidden", "carry", "", $_GET["carry"]); $form2->addHtml("<fieldset>\n"); $form2->addLegend('New Client'); $form2->addData($formData1, $_GET); $form2->addRow('radio', 'p2c_type', 'Address Type', 'Home', '', db_enum("pro2cli", "p2c_type", "array")); if (!$_GET["pro_pro_id"]) { $form2->ajaxPostcode("by_freetext", "pro"); } else { $form2->addData($formData2, $_GET); $form2->addHtml($form2->addDiv($form->makeField("submit", "", "", "Save Changes", array('class' => 'submit')))); } $form2->addHtml("</fieldset>\n"); $form2->addHtml("</div>\n"); $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $return), 'search' => array('title' => 'Client Search', 'label' => 'Client Search', 'link' => 'client_search.php')); $navbar = navbar2($navbar_array); $additional_js = ' function validateForm() { if (document.forms.existing_clients_form.cli_id.value == "") {
# build data arrays for property particulars $formData = array('dea_ptype' => array('type' => 'select_multi', 'label' => 'Property Type', 'required' => 2, 'options' => array('dd1' => $ptype['dd1'], 'dd2' => $ptype['dd2'])), 'dea_bedroom' => array('type' => 'select_number', 'label' => 'Bedrooms', 'value' => $dea_bedroom, 'attributes' => array('class' => 'narrow'), 'options' => array('blank' => 'blank')), 'dea_reception' => array('type' => 'select_number', 'label' => 'Receptions', 'value' => $dea_reception, 'attributes' => array('class' => 'narrow'), 'options' => array('blank' => 'blank')), 'dea_bathroom' => array('type' => 'select_number', 'label' => 'Bathrooms', 'value' => $dea_bathroom, 'attributes' => array('class' => 'narrow'), 'options' => array('blank' => 'blank')), 'dea_floor' => array('type' => 'select', 'label' => 'Floor', 'value' => $dea_floor, 'options' => join_arrays(array(array('blank' => ''), db_enum("deal", "dea_floor", "array"))), 'attributes' => array('class' => 'medium')), 'dea_floors' => array('type' => 'select_number', 'label' => 'Floors', 'options' => array('blank' => '', 'min' => '1'), 'value' => $dea_floors, 'attributes' => array('class' => 'narrow'))); // remove area from the equation #$formData = join_arrays(array($formDataArea,$formData)); if (!$_GET["action"]) { // start new form object $form = new Form(); $form->addForm("form", "get", $PHP_SELF); $form->addHtml("<div id=\"standard_form\">\n"); $form->addField("hidden", "stage", "", "particulars"); $form->addField("hidden", "action", "", "update"); $form->addField("hidden", "cli_id", "", $cli_id); $form->addField("hidden", "pro_id", "", $pro_id); $form->addField("hidden", "dea_id", "", $dea_id); $form->addHtml("<fieldset>\n"); $form->addLegend('Property Particulars'); $form->addData($formDataArea, $_GET); $form->addData($formData, $_GET); $form->addHtml($form->addDiv($form->makeField("submit", "", "", "Save Changes", array('class' => 'submit')))); $form->addHtml("</fieldset>\n"); $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $searchLink), 'search' => array('title' => 'Property Search', 'label' => 'Property Search', 'link' => 'property_search.php')); $navbar = navbar2($navbar_array); $page->setTitle("New Instruction"); $page->addStyleSheet('css/styles.css'); $page->addScript('js/global.js'); $page->addScript('js/scriptaculous/prototype.js'); $page->addScriptDeclaration($ptype['js']); $page->setBodyAttributes(array('onLoad' => $ptype['onload'])); $page->addBodyContent($header_and_menu); $page->addBodyContent('<div id="content">'); $page->addBodyContent($navbar);
} $form2 = new Form(); $form2->addForm("form", "post", $PHP_SELF); $form2->addHtml("<div id=\"standard_form\">\n"); $form2->addField("hidden", "stage", "", "2"); $form2->addField("hidden", "action", "", "new_client"); $form2->addField("hidden", "dest", "", $_GET["dest"]); $form2->addField("hidden", "dea_id", "", $_GET["dea_id"]); $form2->addField("hidden", "app_id", "", $_GET["app_id"]); $form2->addField("hidden", "off_id", "", $_GET["off_id"]); $form2->addField("hidden", "carry", "", $_GET["carry"]); $form2->addField("hidden", "cli_name", "", $_GET["cli_name"]); $form2->addField("hidden", "date", "", $_GET["date"]); $form2->addHtml("<fieldset>\n"); if ($form_title2b) { $form2->addLegend($form_title2b); } else { $form2->addLegend('New Client'); } $form2->addData($formData1, $_GET); // allow lettings staff to enter applicants with no address // name of this button is noaddress, which is used on following page if (in_array('SuperAdmin', $_SESSION["auth"]["roles"]) || $_SESSION["auth"]["default_scope"] == 'Lettings') { $form2->addHtml($form2->addDiv($form->makeField("submit", "noaddress", "", "Save Changes (with no address)", array('class' => 'submit')))); } $form2->addSeperator(); $form2->addRow('radio', 'p2c_type', 'Address Type', 'Home', '', db_enum("pro2cli", "p2c_type", "array")); if (!$_GET["pro_pro_id"]) { $form2->ajaxPostcode("by_freetext", "pro"); } else { $form2->addData($formData2, $_GET);
$form->addHtml("<div id=\"standard_form\">\n"); $form->addField("hidden", "action", "", "edit"); $form->addField("hidden", "id", "", $node_id); $form->addHtml("<fieldset>\n"); $form->addLegend('Edit Node'); $form->addData($formData1, $_GET); $form->addHtml($form->addDiv($form->makeField("submit", "", "", "Save Changes", array('class' => 'submit')))); $form->addHtml("</fieldset>\n"); $form->addHtml("</div>\n"); $form2 = new Form(); $form2->addForm("form", "get", $PHP_SELF); $form2->addHtml("<div id=\"standard_form\">\n"); $form2->addField("hidden", "action", "", "move"); $form2->addField("hidden", "id", "", $node_id); $form2->addHtml("<fieldset>\n"); $form2->addLegend('Move Node'); $form2->addData($formData2, $_GET); $form2->addHtml($form2->addDiv($form2->makeField("submit", "", "", "Save Changes", array('class' => 'submit')))); $form2->addHtml("</fieldset>\n"); $form2->addHtml("</div>\n"); } elseif ($_GET["action"] == "edit") { $id = $_GET["id"]; $title = trim(ucwords($_GET["title"])); $sql = "UPDATE category SET cat_title = '{$title}' WHERE cat_id = {$id}"; $result = mysql_query($sql); header("Location:tree.php"); } elseif ($_GET["action"] == "move") { $id = $_GET["id"]; $new_id = $_GET["new_id"]; $tree->moveAll($id, $new_id); header("Location:tree.php");
} } $formData1 = array('cli_salemin' => array('type' => 'select_price', 'value' => $cli_salemin, 'label' => 'Minimum Price', 'group' => 'Price Range', 'required' => 2, 'options' => array('scope' => 'sales', 'default' => 'Minimum'), 'attributes' => array('style' => 'width:120px')), 'cli_salemax' => array('type' => 'select_price', 'value' => $cli_salemax, 'label' => 'Maximum Price', 'group' => 'Price Range', 'last_in_group' => 1, 'required' => 2, 'options' => array('scope' => 'sales', 'default' => 'Maximum'), 'attributes' => array('style' => 'width:120px')), 'cli_salebed' => array('type' => 'select_number', 'value' => $cli_salebed, 'label' => 'Minimum Beds', 'required' => 2), 'cli_saleemail' => array('type' => 'radio', 'value' => $cli_saleemail, 'label' => 'Email Updates', 'required' => 2, 'options' => db_enum("client", "cli_saleemail", "array"))); $ptype_sale = ptype("sale", explode("|", $cli_saleptype)); $formData2 = array('cli_letmin' => array('type' => 'select_price', 'value' => $cli_letmin, 'label' => 'Minimum Price', 'group' => 'Price Range', 'required' => 2, 'options' => array('scope' => 'lettings', 'default' => 'Minimum'), 'attributes' => array('style' => 'width:120px')), 'cli_letmax' => array('type' => 'select_price', 'value' => $cli_letmax, 'label' => 'Maximum Price', 'group' => 'Price Range', 'last_in_group' => 1, 'required' => 2, 'options' => array('scope' => 'lettings', 'default' => 'Maximum'), 'attributes' => array('style' => 'width:120px')), 'cli_letbed' => array('type' => 'select_number', 'value' => $cli_letbed, 'label' => 'Minimum Beds', 'required' => 2), 'cli_letemail' => array('type' => 'radio', 'value' => $cli_letemail, 'label' => 'Email Updates', 'required' => 2, 'options' => db_enum("client", "cli_letemail", "array"))); $ptype_let = ptype("let", explode("|", $cli_letptype)); $form = new Form(); $form->addHtml("<div id=\"standard_form\">\n"); $form->addForm("", "get"); $form->addField("hidden", "stage", "", "requirements"); $form->addField("hidden", "action", "", "update"); $form->addField("hidden", "cli_id", "", $cli_id); $form->addField("hidden", "app_id", "", $_GET["app_id"]); $form->addField("hidden", "searchLink", "", $searchLink); $form->addHtml("<fieldset>\n"); $form->addLegend('Sales Requirements'); $form->addHtml($form->addLabel('cli_saleptype', 'Houses', $ptype_sale['house'], 'javascript:checkAll(document.forms[0], \'sale1\');')); $form->addHtml($form->addLabel('cli_saleptype', 'Apartments', $ptype_sale['apartment'], 'javascript:checkAll(document.forms[0], \'sale2\');')); $form->addHtml($form->addLabel('cli_saleptype', 'Others', $ptype_sale['other'], 'javascript:checkAll(document.forms[0], \'sale3\');')); $form->addData($formData1, $_GET); $form->addHtml($form->addDiv($form->makeField("submit", "submit", "", "Save Changes", array('class' => 'submit')))); $form->addHtml("</fieldset>\n"); $form->addHtml("<fieldset>\n"); $form->addLegend('Lettings Requirements'); $form->addHtml($form->addLabel('cli_letptype', 'Houses', $ptype_let['house'], 'javascript:checkAll(document.forms[0], \'sale1\');')); $form->addHtml($form->addLabel('cli_letptype', 'Apartments', $ptype_let['apartment'], 'javascript:checkAll(document.forms[0], \'sale2\');')); $form->addHtml($form->addLabel('cli_letptype', 'Others', $ptype_let['other'], 'javascript:checkAll(document.forms[0], \'sale3\');')); $form->addData($formData2, $_GET); $form->addHtml($form->addDiv($form->makeField("submit", "submit", "", "Save Changes", array('class' => 'submit')))); $form->addHtml("</fieldset>\n"); $form->addHtml("</div>\n");
// nodes with children are not selectable if (mysql_fetch_assoc($tree->enumChildrenAll($row['cat_id']))) { $js_tree .= "d.add(" . $row['cat_id'] . "," . $parent . ",'" . $row['cat_title'] . "');\n"; } else { $js_tree .= "d.add(" . $row['cat_id'] . "," . $parent . ",'" . $row['cat_title'] . "','node_edit.php?node_id=" . $row['cat_id'] . "');\n"; } } $formData1 = array('node_id' => array('type' => 'select', 'label' => 'Category', 'value' => $node_id, 'options' => display_tree_select(1, $node_id, 'data'), 'required' => 2, 'attributes' => array('class' => 'addr')), 'node_title' => array('type' => 'text', 'label' => 'Title', 'required' => 2, 'attributes' => array('class' => 'addr'))); // start new form object $form = new Form(); $form->addForm("form", "get", $PHP_SELF); $form->addHtml("<div id=\"standard_form\">\n"); $form->addField("hidden", "action", "", "add_node"); $form->addField("hidden", "id", "", $node_id); $form->addHtml("<fieldset>\n"); $form->addLegend('Add Node'); $form->addData($formData1, $_GET); $form->addHtml($form->addDiv($form->makeField("submit", "", "", "Save Changes", array('class' => 'submit')))); $form->addHtml("</fieldset>\n"); #<p><a href="javascript: d.openAll();">open all</a> | <a href="javascript: d.closeAll();">close all</a></p> $render = ' <script type="text/javascript"> <!-- d = new dTree(\'d\'); d.config.closeSameLevel = true; d.config.useIcons = false; d.config.useLines = false; d.config.useCookies = false; d.add(1,-1,\'Directory\');
} $formData1 = array('med_file' => array('type' => 'file', 'label' => 'Image', 'required' => 3, 'attributes' => array('style' => 'width:320px')), 'med_title' => array('type' => 'text', 'label' => 'Title', 'required' => 1, 'attributes' => array('style' => 'width:320px')), 'med_blurb' => array('type' => 'textarea', 'label' => 'Description', 'required' => 1, 'attributes' => array('style' => 'width:320px;height:50px'))); if (!$_POST["action"]) { if (!$_GET["dir_id"]) { echo "no directory entry identifier supplied"; exit; } // start new form object $form = new Form(); $form->addForm("form", "post", $PHP_SELF, "multipart/form-data"); $form->addHtml("<div id=\"standard_form\">\n"); $form->addField("hidden", "action", "", "update"); $form->addField("hidden", "dir_id", "", $_GET["dir_id"]); ///////////////////////////////////////////////////////////////////////////////// $form->addHtml("<fieldset>\n"); $form->addLegend('Add Image'); $form->addData($formData1, $_GET); $form->addHtml($form->addDiv($form->makeField("submit", "", "", "Save Changes", array('class' => 'submit')))); $form->addHtml("</fieldset>\n"); ///////////////////////////////////////////////////////////////////////////////// // get existing images $sql = "SELECT * FROM media WHERE\nmed_table = 'directory' AND\nmed_row = " . $_GET["dir_id"] . "\nORDER BY med_order ASC, med_created ASC"; $q = $db->query($sql); if (DB::isError($q)) { die("db error: " . $q->getMessage()); } $numRows = $q->numRows(); if ($numRows != 0) { $form->addHtml("<fieldset>\n"); $form->addLegend('Existing Images'); while ($row = $q->fetchRow()) {
$form->addField("hidden", "dea_id", "", $dea_id); $form->addField("hidden", "cli_id", "", $cli_id); $form->addField("hidden", "pro2con", "", $pro2con); $form->addField("hidden", "pro2com", "", $pro2com); $form->addHtml("<div id=\"standard_form\">\n"); $form->addHtml("<fieldset>\n"); $form->addHtml('<div class="block-header">Postcode Lookup</div>'); $form->ajaxPostcode("by_freetext", "pro"); $form->addHtml("</fieldset>\n"); $form->addHtml("</div>\n"); $form2 = new Form(); $form2->addForm("form2", "get", $PHP_SELF); $form2->addField("hidden", "pro_id", "", $_GET["pro_id"]); $form2->addHtml("<div id=\"standard_form\">\n"); $form2->addHtml("<fieldset>\n"); $form2->addLegend('Postcode Lookup'); $form2->ajaxPostcode("by_postcode", "pro"); $form2->addHtml("</fieldset>\n"); $form2->addHtml("</div>\n"); if (!$_GET["stage"]) { /* $render = ' <form method="get"> <select name="lookup_type"> <tr><td><a href="?stage=2&search_string="></a></td></tr> <tr><td><a href="?stage=2&search_string=browse">browse</a></td></tr> <tr><td><a href="?stage=2&search_string=by_freetext">by_freetext</a></td></tr> <tr><td><a href="?stage=2&search_string=by_postcode">by_postcode</a></td></tr> <tr><td><a href="?stage=2&search_string=by_area">by_area</a></td></tr> <tr><td><a href="?stage=2&search_string=by_localitykey">by_localitykey</a></td></tr> </select>
//Results from methods: echo 'getCurrentPageID()...: '; var_dump($pager->getCurrentPageID()); echo 'getNextPageID()......: '; var_dump($pager->getNextPageID()); echo 'getPreviousPageID()..: '; var_dump($pager->getPreviousPageID()); echo 'numItems()...........: '; var_dump($pager->numItems()); echo 'numPages()...........: '; var_dump($pager->numPages()); echo 'isFirstPage()........: '; var_dump($pager->isFirstPage()); echo 'isLastPage().........: '; var_dump($pager->isLastPage()); echo 'isLastPageComplete().: '; var_dump($pager->isLastPageComplete()); echo '$pager->range........: '; var_dump($pager->range); */ $form = new Form(); $form->addHtml("<div id=\"standard_form\">\n"); $form->addForm("", "get", "property_edit.php"); $form->addHtml("<fieldset>\n"); $form->addLegend('Search Results'); $form->addHtml('<div id="results_table">'); $form->addHtml($header); $form->addHtml($results); #$form->addHtml($footer); $form->addHtml('</div>'); $form->addHtml("</fieldset>\n"); $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $returnLink), 'search' => array('title' => 'Property Search', 'label' => 'Property Search', 'link' => 'property_search.php')); $navbar = navbar2($navbar_array); $page = new HTML_Page2($page_defaults); $page->setTitle("Directory List"); $page->addStyleSheet(GLOBAL_URL . 'css/styles.css'); $page->addScript(GLOBAL_URL . 'js/global.js'); $page->addBodyContent('<div id="content_wide">'); $page->addBodyContent($menu); #$page->addBodyContent($navbar);
} else { $branch = $_SESSION["auth"]["use_branch"]; } $formData1 = array('app_branch' => array('type' => 'select_branch_2', 'label' => 'Branch', 'value' => $branch, 'attributes' => array('class' => 'medium')), 'app_user' => array('type' => 'select_user', 'label' => 'Negotiator', 'value' => $_SESSION["auth"]["use_id"], 'attributes' => array('class' => 'medium'), 'options' => array('' => '(unassigned)')), 'app_date' => array('type' => 'datetime', 'label' => 'Date', 'value' => $app_date, 'attributes' => array('class' => 'medium', 'readonly' => 'readonly'), 'tooltip' => 'Today\'s date is selected by default'), 'app_time' => array('type' => 'time', 'label' => 'Start Time', 'value' => $app_time), 'app_duration' => array('type' => 'select_duration', 'label' => 'Estimated Duration', 'value' => $duration, 'attributes' => array('class' => 'medium'), 'tooltip' => 'Duration is estimated at ' . $default_valuation_duration . ' minutes per property'), 'notes' => array('type' => 'textarea', 'label' => 'Notes', 'value' => $app["notes"], 'attributes' => array('class' => 'noteInput'))); if (!$_GET["action"]) { $form = new Form(); $form->addHtml("<div id=\"standard_form\">\n"); $form->addForm("", "get"); $form->addField("hidden", "stage", "", "appointment"); $form->addField("hidden", "action", "", "update"); $form->addField("hidden", "cli_id", "", $cli_id); $form->addField("hidden", "app_id", "", $_GET["app_id"]); $form->addField("hidden", "dea_id", "", $dea_id); $form->addField("hidden", "searchLink", "", $searchLink); $form->addHtml("<fieldset>\n"); $form->addLegend('Valuation Appointment'); $form->addData($formData1, $_GET); $buttons = $form->makeField("submit", "submit", "", "Save Changes", array('class' => 'submit')); //$buttons .= ' or '; $buttons .= $form->makeField("button", "button", "", "No appointment", array('class' => 'button', 'onClick' => 'document.location.href = \'deal_summary.php?dea_id=' . $dea_id . '\'')); $form->addHtml($form->addDiv($buttons)); $form->addHtml("</fieldset>\n"); $form->addHtml("</div>\n"); $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $returnLink), 'search' => array('title' => 'Property Search', 'label' => 'Property Search', 'link' => 'property_search.php')); $navbar = navbar2($navbar_array); $page->setTitle("New Property"); $page->addStyleSheet('css/styles.css'); $page->addScript('js/global.js'); $page->addScript('js/CalendarPopup.js'); $page->addScriptDeclaration('document.write(getCalendarStyles());var popcalapp_date = new CalendarPopup("popCalDivapp_date");popcalapp_date.showYearNavigation(); '); $page->addBodyContent($header_and_menu);