function printCases($find_case_string = '') { global $prefs; $cpt = 0; $my_list_pos = intval(_request('list_pos', 0)); show_page_subtitle(_T('client_subtitle_cases'), 'cases_participants'); echo "<p class=\"normal_text\">\n"; show_listcase_start(); for ($cpt = 0, $this->getCaseStart(); !$this->getCaseDone() && $cpt < $prefs['page_rows']; $cpt++) { $item = $this->getCaseIterator(); show_listcase_item($item, $cpt, $find_case_string, 'javascript:;', 'onclick="getCaseInfo(' . $item['id_case'] . ')"'); } if (!$cpt) { echo "No cases"; } show_listcase_end($my_list_pos, $this->getCaseTotal()); echo "</p>\n"; echo "</fieldset>\n"; }
function finish() { show_listcase_end($this->list_pos, $this->number_of_rows); }
} // Position to the page info start if ($list_pos > 0) { if (!lcm_data_seek($result, $list_pos)) { lcm_panic("Error seeking position {$list_pos} in the result"); } } if (lcm_num_rows($result)) { echo '<fieldset class="info_box">' . "\n"; show_page_subtitle(_T('client_subtitle_cases'), 'cases_participants'); echo "<p class=\"normal_text\">\n"; show_listcase_start(); for ($cpt = 0; $i < $prefs['page_rows'] && ($row1 = lcm_fetch_array($result)); $cpt++) { show_listcase_item($row1, $cpt); } show_listcase_end($list_pos, $number_of_rows); echo "</p>\n"; echo "</fieldset>\n"; } break; // // Client attachments // // // Client attachments // case 'attachments': echo '<fieldset class="info_box">'; show_page_subtitle(_T('client_subtitle_attachments'), 'tools_documents'); echo "<p class=\"normal_text\">\n"; echo '<form enctype="multipart/form-data" action="attach_file.php" method="post">' . "\n";