lcm_page_start(_T('title_case_details') . " #" . $row['id_case'] . ' ' . $row['title'], '', '', 'cases_intro'); // [ML] This will probably never be implemented // echo "<div id=\"breadcrumb\"><a href=\"". getenv("HTTP_REFERER") ."\">List of cases</a> > ". $row['title'] ."</div>"; // Show tabs $groups = array('general' => array('name' => _T('generic_tab_general'), 'tooltip' => _T('case_subtitle_general')), 'appointments' => array('name' => _T('generic_tab_agenda'), 'tooltip' => _T('case_subtitle_appointments')), 'exps' => array('name' => 'Requests', 'tooltip' => 'Internal requests'), 'times' => array('name' => _T('generic_tab_reports'), 'tooltip' => _T('case_subtitle_times')), 'attachments' => array('name' => _T('generic_tab_documents'), 'tooltip' => _T('case_subtitle_attachments'))); $tab = isset($_GET['tab']) ? $_GET['tab'] : 'general'; show_tabs($groups, $tab, $_SERVER['REQUEST_URI']); echo show_all_errors(); switch ($tab) { // // General tab // case 'general': echo "<fieldset class='info_box'>"; $obj_case_ui = new LcmCaseInfoUI($row['id_case']); $obj_case_ui->printGeneral(); if ($edit && $modify) { echo '<p><a href="edit_case.php?case=' . $row['id_case'] . '" class="edit_lnk">' . _T('edit_case_information') . '</a></p>'; } // [ML] This is not useful at the moment.. there is no import // and the XML spec of the export needs improvement. // if ($GLOBALS['author_session']['status'] == 'admin') // echo '<p><a href="export.php?item=case&id=' . $row['id_case'] . '" class="exp_lnk">' . _T('export_button_case') . '</a></p>'; // // Show case client(s) // echo '<a name="clients"></a>' . "\n"; show_page_subtitle(_T('case_subtitle_clients'), 'cases_participants'); echo '<form action="add_client.php" method="get">' . "\n"; echo '<input type="hidden" name="case" value="' . $case . '" />' . "\n"; $q = "SELECT cl.id_client, cl.name_first, cl.name_middle, cl.name_last\n\t\t\t\t\tFROM lcm_case_client_org as clo, lcm_client as cl\n\t\t\t\t\tWHERE id_case = {$case} AND clo.id_client = cl.id_client";
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";