echo "</form>\n"; // echo "</fieldset>\n"; // break; // XXX [ML] testing // // Case followups // // echo "</fieldset>\n"; // break; // XXX [ML] testing // // Case followups // case 'followups': // [ML] Since 0.7.1, this tab is not called directly, // it is part of the "general" tab echo '<a name="followups"></a>' . "\n"; $obj_case_ui = new LcmCaseInfoUI($case); $obj_case_ui->printFollowups(true); if ($add) { echo '<p class="normal_text">'; echo "<a href=\"edit_fu.php?case={$case}\" class=\"create_new_lnk\">" . _T('new_followup') . "</a> \n"; echo "</p>\n"; } echo "</fieldset>\n"; break; // // Case appointments // // // Case appointments // case 'appointments':
show_page_subtitle("Case information", 'cases_intro'); // TRAD 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_case') . '</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="casesearchkey" id="casesearchkey" size="25" />' . "</p>\n"; echo '<span id="autocomplete-case-popup" class="autocomplete" style="position: absolute; visibility: hidden;"><span></span></span>'; echo '</div>'; echo '<div style="clear: right;"></div>'; echo '<div id="autocomplete-case-data"></div>' . "\n"; echo "</div>\n"; } echo '<div id="case_data">'; $obj_case = new LcmCaseInfoUI($id_case); $obj_case->printEdit(); echo "</div>\n"; /* div case_data */ echo "<script type=\"text/javascript\">\n\t\tautocomplete('casesearchkey', 'autocomplete-case-popup', 'ajax.php', 'autocomplete-case-data', 'case_data')\n\t</script>\n"; // // Follow-up data (only for new case, not edit case) // if (!$id_case) { echo '<p class="normal_text">'; echo '<input type="checkbox"' . isChecked(_session('add_fu')) . 'name="add_fu" id="box_new_followup" onclick="display_block(\'new_followup\', \'flip\')" />'; echo '<label for="box_new_followup">' . "Add a follow-up to the case" . '</label>'; // TRAD echo "</p>\n"; echo '<div id="new_followup" ' . (_session('add_fu') ? '' : ' style="display: none;"') . '>'; show_page_subtitle("Follow-up information", 'followups_intro');
if ($show_kw_value) { $tmp_value = ''; if (isset($_SESSION['form_data']['new_kw_entryval_' . $type_obj . $cpt_kw])) { $tmp_value = $_SESSION['form_data']['new_kw_entryval_' . $type_obj . $cpt_kw]; } echo "<br />\n"; echo '<input type="text" name="new_kw_entryval_' . $type_obj . $cpt_kw . '" ' . 'value="' . $tmp_value . '" />' . "\n"; } echo '<div id="' . $obj_id_ajax . '"></div>' . "\n"; } } echo "</div>\n"; } elseif ($action == 'changefont') { // should already be changed becaused we included inc.php } } elseif (intval(_request('id_case', 0)) > 0) { include_lcm('inc_obj_case'); echo '<div id="case_data">'; // Must remove otherwise requestXML cannot parse (?!) ob_start(); $case = new LcmCaseInfoUI(intval(_request('id_case', 0))); $case->printGeneral(false, false); $case->printFollowups(); $foo = ob_get_contents(); ob_end_clean(); echo preg_replace("/\\ /", " ", $foo); echo "</div>\n"; } else { echo "Unknown action."; } echo "</body>\n";