Ejemplo n.º 1
0
    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') {
            show_page_subtitle(_Th('title_org_view'), 'clients_intro');
            echo '<p class="normal_text">';
            echo '<input type="checkbox"' . isChecked(_session('add_org')) . 'name="add_org" id="box_new_org" onclick="display_block(\'new_org\', \'flip\')" />';
            echo '<label for="box_new_org">' . _T('case_button_add_org') . '</label>';
            echo "</p>\n";
            // Open box that hides this form by default
            echo '<div id="new_org" ' . (_session('add_org') ? '' : ' style="display: none;"') . '>';
Ejemplo n.º 2
0
    while ($row1 = lcm_fetch_array($result)) {
        echo '<div class="sys_msg_box">';
        echo '<ul>';
        echo '<li>' . _Ti('client_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) {
    case 'general':
        //
        // Show client general information
        //
        echo '<fieldset class="info_box">';
        $obj_client = new LcmClientInfoUI($row['id_client']);
        $obj_client->printGeneral();
        if ($edit) {
            echo '<a href="edit_client.php?client=' . $row['id_client'] . '" class="edit_lnk">' . _T('client_button_edit') . '</a>' . "\n";
        }
        // [ML] Not useful
        // if ($GLOBALS['author_session']['status'] == 'admin')
        //	echo '<a href="export.php?item=client&amp;id=' . $row['id_client'] . '" class="exp_lnk">' . _T('export_button_client') . "</a>\n";
        echo '<br /><br />';
        echo "</fieldset>\n";
        break;
    case 'organisations':
        //
        // Show client associated organisations
        //
        echo '<fieldset class="info_box">';
        echo '<div class="prefs_column_menu_head">' . _T('client_subtitle_associated_org') . "</div>\n";