Ejemplo n.º 1
0
        $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();
Ejemplo n.º 2
0
    }
    if (!$cpt) {
        echo "<li>0: No results</li>";
    }
    // TRAD
    echo "</ul>\n";
    echo "</div>\n";
} elseif (intval(_request('id_client', 0)) > 0) {
    include_lcm('inc_obj_client');
    $client = new LcmClientInfoUI(intval(_request('id_client', 0)));
    $client->printGeneral(false);
    $client->printCases();
    $client->printAttach();
} elseif (intval(_request('id_org', 0)) > 0) {
    include_lcm('inc_obj_org');
    $org = new LcmOrgInfoUI(intval(_request('id_org', 0)));
    $org->printGeneral(false);
    $org->printCases();
    $org->printAttach();
} elseif ($action = _request('action')) {
    if ($action == 'get_kwg_in') {
        include_lcm('inc_keywords');
        include_lcm('inc_access');
        // Return a list of sub-keyword-groups
        // Or, if the kwg selected has "apply = many", list the sub-kwg and their keywords
        // Note: currently, it does only for "apply = many".
        // Example: The user selected "matter type = Family", so we will
        // return the "Type 1" + "Type 2" comboboxes.
        echo '<div id="' . _request('div') . '">';
        if (_request('group_name')) {
            $kwg = get_kwg_from_name(_request('group_name', '__ASSERT__'));
Ejemplo n.º 3
0
     echo "</p>\n";
     // 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
Ejemplo n.º 4
0
    $result = lcm_query($q);
    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&amp;id=' . $row['id_org'] . '" class="exp_lnk">' . _T('export_button_org') . "</a></p>\n";
        echo "</fieldset>\n";
        break;
        //
        // Show organisation representatives
        //
    //
    // Show organisation representatives
    //