예제 #1
0
$html->draw_field('is_citizen');
echo '</td>';
echo '</tr>';
echo '</table>';
echo '</table>';
echo '</div>';
//end tag of tabs-8 id
echo '</div>';
//end tag of tabs id
$html->draw_fieldset_body_end();
$html->draw_fieldset_footer_start();
$html->draw_submit_cancel();
$html->draw_fieldset_footer_end();
$html->draw_container_div_end();
/*********************************/
$html->draw_hidden('trigger_field');
$html->draw_footer();
if (strlen($first_field) > 0) {
    $html->autofocus($first_field);
}
echo '<script>
		  $(function() {
			$("#tabs").tabs();
		  });
	  </script>';
?>
	</div>
</main>
<?php 
if ($goto_region) {
    ?>
예제 #2
0
    require 'subclasses/citizen.php';
    $dbh_citizen = new citizen();
    $object_name = 'dbh_citizen';
    require 'components/create_form_data.php';
    extract($arr_form_data);
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button');
        redirect("listview_citizen.php?{$query_string}");
    }
    if ($_POST['btn_submit']) {
        log_action('Pressed submit button');
        $message .= $dbh_citizen->sanitize($arr_form_data)->lst_error;
        extract($arr_form_data);
        if ($dbh_citizen->check_uniqueness_for_editing($arr_form_data)->is_unique) {
            //Good, no duplicate in database
        } else {
            $message = "Record already exists with the same primary identifiers!";
        }
        if ($message == "") {
            $dbh_citizen->edit($arr_form_data);
            redirect("listview_citizen.php?{$query_string}");
        }
    }
}
require 'subclasses/citizen_html.php';
$html = new citizen_html();
$html->draw_header('Edit Citizen', $message, $message_type);
$html->draw_listview_referrer_info($filter_field_used, $filter_used, $page_from, $filter_sort_asc, $filter_sort_desc);
$html->draw_hidden('citizen_id');
$html->draw_controls('edit');
$html->draw_footer();