$result = lcm_query($q); // Process the output of the query if ($row = lcm_fetch_array($result)) { // Get org details foreach ($row as $key => $value) { $_SESSION['form_data'][$key] = $value; } } } } if ($org) { lcm_page_start(_T('title_org_edit'), '', '', 'clients_neworg'); } else { lcm_page_start(_T('title_org_new'), '', '', 'clients_neworg'); } echo show_all_errors($_SESSION['errors']); echo '<form action="upd_org.php" method="post">' . "\n"; if (_request('attach_case')) { echo '<input type="hidden" name="attach_case" id="attach_case" value="' . _request('attach_case') . '" />' . "\n"; } $obj_org = new LcmOrgInfoUI($org); $obj_org->printEdit(); echo '<input type="hidden" name="ref_edit_org" value="' . _session('ref_edit_org') . '" />' . "\n"; echo '<p><button name="submit" type="submit" value="submit" class="simple_form_btn">' . _T('button_validate') . "</button></p>\n"; echo "</form>\n"; // Clear errors and form data $_SESSION['errors'] = array(); $_SESSION['form_data'] = array(); $_SESSION['org_data'] = array(); // DEPRECATED since 0.6.4 lcm_page_end();
// Open box that hides this form by default echo '<div id="new_org" ' . (_session('add_org') ? '' : ' style="display: none;"') . '>'; echo "<div style='overflow: hidden; width: 100%;'>"; echo '<div style="float: left; text-align: right; width: 29%;">'; echo '<p class="normal_text" style="margin: 0; padding: 4px;">' . _Ti('input_search_org') . '</p>'; echo "</div>\n"; echo '<div style="float: right; width: 69%;">'; echo '<p class="normal_text" style="margin: 0; padding: 4px;"><input type="text" autocomplete="off" name="orgsearchkey" id="orgsearchkey" size="25" />' . "</p>\n"; echo '<span id="autocomplete-org-popup" class="autocomplete" style="position: absolute; visibility: hidden;"><span></span></span>'; echo '</div>'; echo '<div style="clear: right;"></div>'; echo '<div id="autocomplete-org-data"></div>' . "\n"; echo "</div>\n"; echo '<div id="autocomplete-org-alt">'; $org = new LcmOrgInfoUI(); $org->printEdit(); echo '</div>'; echo "<script type=\"text/javascript\">\n\t\t\t\tautocomplete('orgsearchkey', 'autocomplete-org-popup', 'ajax.php', 'autocomplete-org-data', 'autocomplete-org-alt')\n\t\t\t\t</script>\n"; echo "</div>\n"; // closes box that hides this form by default } // // For to find or create new client for case // show_page_subtitle(_Th('title_client_view'), 'clients_intro'); echo '<p class="normal_text">'; echo '<input type="checkbox"' . isChecked(_session('add_client')) . 'name="add_client" id="box_new_client" onclick="display_block(\'new_client\', \'flip\')" />'; echo '<label for="box_new_client">' . _T('case_button_add_client') . '</label>'; echo "</p>\n"; // Open box that hides this form by default echo '<div id="new_client" ' . (_session('add_client') ? '' : ' style="display: none;"') . '>';