// display the navigation tool echo " " . $navigation_tool . "<br><br>"; } // end if ($results_number > $records_per_page) $change_table_form = build_change_table_form(); $records_per_page_form = build_records_per_page_form($dadabik_main_file, $records_per_page, $table_name); if ($change_table_form != "") { // if there is more than one table to manage txt_out('<table><tr><td>' . $change_table_form . '</td><td>' . $records_per_page_form . '</td></tr></table>'); } else { txt_out($records_per_page_form); } // end else $results_type = "search"; // build the HTML results table $results_table = build_results_table($fields_labels_ar, $table_name, $res_records, $results_type, $action, $where_clause_to_pass, $page, $order, $order_type); echo $results_table; if ($export_to_csv_feature == 1) { echo "<a href='" . $action . "?table_name=" . urlencode($table_name) . "&function=" . $function . "&where_clause=" . urlencode($where_clause_to_pass) . "&page=" . $page . "&order=" . urlencode($order) . "&order_type=" . $order_type . "&export_to_csv=1'>"; txt_out($normal_messages_ar["export_to_csv"], "export_to_csv"); echo "</a>"; } } else { display_sql($sql); $change_table_form = build_change_table_form(); if ($change_table_form != "") { // if there is more than one table to manage txt_out('<table><tr><td>' . $change_table_form . '</td><td>' . $records_per_page_form . '</td></tr></table>'); } else { txt_out($records_per_page_form); }
echo "<div class=\"left font_input caps_label4\">Election cycles</div>"; echo "<div id=\"caps_cycles_box\">"; if (isset($_POST["cycles"])) { $cycles = $_POST["cycles"]; } else { $cycles = array(""); } fill_election_cycles($cycles); echo "</div> <!-- end caps_cycles_box -->"; echo "<input type=\"submit\" name=\"search_btn\" value=\"Search\" id=\"caps_search_btn2\">"; ?> </div> <!-- end caps_sidebar --> <div id="caps_content"> <?php build_results_table(); ?> </div> <!-- end caps_content --> </form> </div> <!-- end caps_columns --> </div> <!-- end caps_containter --> <div id="maplight_info">Power Search software by <a href="http://www.maplight.org">MapLight</a><br><div class="center"><img src="img/MapLight_Logo.png" width="80" alt="MapLight Logo"></div></div> </div> <!-- end caps_wrapper--> <!-- Place custom page footer here --> <footer style="display:none;"></footer> </body>
<?php page_footer(); } } if ($submit && !sizeof($error)) { // page_header(); $sql = 'SELECT p.*, c.*, f.* FROM _prov p, _constancia c, _factura f WHERE f.f_exe = ? AND f.f_exe = c.c_exe AND p.p_nit = c.c_nit ORDER BY f.f_fact'; $data = sql_rowset(sql_filter($sql, $exe)); echo '<div> </div>'; build_results_table($data); ?> <div align="center"> <form action="<?php echo s_link('null'); ?> " method="post"> <input type="hidden" name="exe" value="<?php echo $exe_data['c_exe']; ?> " /> <div> </div> <input type="submit" class="submitdata" name="confirm" value="Anular Exención" /> </form> </div> <?php
foreach ($x_data as $i => $row) { $sql = sprintf($sql_u, $row['c_exe']); if (!($row = sql_fieldrow($sql))) { unset($x_data[$i]); } } } } } if (sizeof($x_data)) { page_header(); ?> <div> </div> <?php build_results_table($x_data); ?> <div align="center"> <br /><br /> <input type="button" class="submitdata" value="Realizar nueva búsqueda" onClick="redirect('<?php echo s_link('search'); ?> ');" /> </div> <?php page_footer(); } else { $error[] = 'La búsqueda no produjo resultados.'; } }