$result = lcm_query($query); while ($row = lcm_fetch_array($result)) { // should be only once echo '<li style="list-style-type: none;">' . _Ti('fu_input_involving_clients') . $row['name'] . "</li>\n"; } } if ($attach_client || $attach_org) { show_context_end(); } // Start edit case form echo '<form action="upd_case.php" method="post">' . "\n"; if (!$id_case) { if ($attach_org) { show_page_subtitle(_Th('title_org_view'), 'clients_intro'); $org = new LcmOrgInfoUI($attach_org); $org->printGeneral(false); $org->printCases(); $org->printAttach(); } if ($attach_client) { show_page_subtitle(_Th('title_client_view'), 'clients_intro'); $client = new LcmClientInfoUI($attach_client); $client->printGeneral(false); $client->printCases(); $client->printAttach(); } if (!$attach_client && !$attach_org) { // // Find or create an organisation for case // if (read_meta('case_new_showorg') == 'yes') {
while ($row1 = lcm_fetch_array($result)) { echo '<div class="sys_msg_box">'; echo '<ul>'; echo '<li>' . _Ti('org_info_created_attached') . '<a class="content_link" href="case_det.php?case=' . $c . '">' . $row1['title'] . "</a></li>\n"; echo "</ul>\n"; echo "</div>\n"; } } switch ($tab) { // // Show organisation general information // case 'general': echo '<fieldset class="info_box">'; $obj_org = new LcmOrgInfoUI($org); $obj_org->printGeneral(true); if ($ac['e']) { echo '<p><a href="edit_org.php?org=' . $row['id_org'] . '" class="edit_lnk">' . _T('org_button_edit') . "</a></p>\n"; } // [ML] Not useful // if ($GLOBALS['author_session']['status'] == 'admin') // echo '<p><a href="export.php?item=org&id=' . $row['id_org'] . '" class="exp_lnk">' . _T('export_button_org') . "</a></p>\n"; echo "</fieldset>\n"; break; // // Show organisation representatives // // // Show organisation representatives // case 'representatives':