<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('View companycontact');
require 'reporter_class.php';
$reporter = cobalt_load_class('companycontact_rpt');
require 'components/reporter_result_query_constructor.php';
require 'components/reporter_result_body.php';
Ejemplo n.º 2
0
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('Delete refstudent');
if (isset($_GET['student_id'])) {
    $student_id = urldecode($_GET['student_id']);
    require_once 'form_data_refstudent.php';
} elseif (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_delete']);
    require 'components/query_string_standard.php';
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button', $_SERVER['PHP_SELF']);
        redirect("listview_refstudent.php?{$query_string}");
    } elseif ($_POST['btn_delete']) {
        log_action('Pressed delete button', $_SERVER['PHP_SELF']);
        require_once 'subclasses/refstudent.php';
        $dbh_refstudent = new refstudent();
        $object_name = 'dbh_refstudent';
        require 'components/create_form_data.php';
        $dbh_refstudent->del($arr_form_data);
        redirect("listview_refstudent.php?{$query_string}");
    }
}
require 'subclasses/refstudent_html.php';
Ejemplo n.º 3
0
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('Add user links');
if (isset($_GET['filter_field_used']) && isset($_GET['filter_used']) && isset($_GET['page_from'])) {
    require 'components/get_listview_referrer.php';
}
if (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_submit']);
    require 'components/query_string_standard.php';
    require 'subclasses/user_links.php';
    $dbh_user_links = new user_links();
    $object_name = 'dbh_user_links';
    require 'components/create_form_data.php';
    extract($arr_form_data);
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button');
        redirect("listview_user_links.php?{$query_string}");
    }
    if ($_POST['btn_submit']) {
        log_action('Pressed submit button');
        $message .= $dbh_user_links->sanitize($arr_form_data)->lst_error;
        extract($arr_form_data);
        if ($dbh_user_links->check_uniqueness($arr_form_data)->is_unique) {
Ejemplo n.º 4
0
<?php

require 'path.php';
init_cobalt();
$page_title = 'Barangay System';
$stylesheet_link = 'style';
require 'header.php';
$data_con = new data_abstraction();
$data_con->set_fields('skin_name, header, footer, master_css, colors_css, fonts_css, override_css, icon_set');
$data_con->set_table('system_skins');
$data_con->set_where("skin_id=1");
$data_con->exec_fetch('single');
if ($data_con->num_rows == 1) {
    extract($data_con->dump);
    $_SESSION['header'] = $header;
    $_SESSION['footer'] = $footer;
    $_SESSION['skin'] = $skin_name;
    $_SESSION['master_css'] = $master_css;
    $_SESSION['colors_css'] = $colors_css;
    $_SESSION['fonts_css'] = $fonts_css;
    $_SESSION['override_css'] = $override_css;
    $_SESSION['icon_set'] = $icon_set;
    if (trim($_SESSION['icon_set'] == '')) {
        $_SESSION['icon_set'] = 'cobalt';
    }
}
$data_con->close_db();
require 'components/get_listview_referrer.php';
init_var($arr_error);
init_var($first_field);
init_var($goto_region);
<?php

//****************************************************************************************
//Generated by Cobalt, a rapid application development framework. http://cobalt.jvroig.com
//Cobalt developed by JV Roig (jvroig@jvroig.com)
//****************************************************************************************
require 'path.php';
init_cobalt('Edit request has requirement');
if (isset($_GET['request_has_requirement_id'])) {
    $request_has_requirement_id = urldecode($_GET['request_has_requirement_id']);
    require 'form_data_request_has_requirement.php';
}
if (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_submit']);
    require 'components/query_string_standard.php';
    require 'subclasses/request_has_requirement.php';
    $dbh_request_has_requirement = new request_has_requirement();
    $object_name = 'dbh_request_has_requirement';
    require 'components/create_form_data.php';
    extract($arr_form_data);
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button');
        redirect("listview_request_has_requirement.php?{$query_string}");
    }
    if ($_POST['btn_submit']) {
        log_action('Pressed submit button');
        $message .= $dbh_request_has_requirement->sanitize($arr_form_data)->lst_error;
        extract($arr_form_data);
        if ($dbh_request_has_requirement->check_uniqueness_for_editing($arr_form_data)->is_unique) {
            //Good, no duplicate in database
Ejemplo n.º 6
0
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('Edit industrysector');
if (isset($_GET['Id'])) {
    $Id = urldecode($_GET['Id']);
    require 'form_data_industrysector.php';
} elseif (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_submit']);
    require 'components/query_string_standard.php';
    require 'subclasses/industrysector.php';
    $dbh_industrysector = new industrysector();
    $object_name = 'dbh_industrysector';
    require 'components/create_form_data.php';
    extract($arr_form_data);
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button', $_SERVER['PHP_SELF']);
        redirect("listview_industrysector.php?{$query_string}");
    }
    if ($_POST['btn_submit']) {
        log_action('Pressed submit button', $_SERVER['PHP_SELF']);
        $message .= $dbh_industrysector->sanitize($arr_form_data)->lst_error;
        extract($arr_form_data);
        if ($dbh_industrysector->check_uniqueness_for_editing($arr_form_data)->is_unique) {
Ejemplo n.º 7
0
<?php

//****************************************************************************************
//Generated by Cobalt, a rapid application development framework. http://cobalt.jvroig.com
//Cobalt developed by JV Roig (jvroig@jvroig.com)
//****************************************************************************************
require 'path.php';
init_cobalt('View department');
if (isset($_GET['department_id'])) {
    $department_id = urldecode($_GET['department_id']);
    require 'form_data_department.php';
}
if (xsrf_guard()) {
    init_var($_POST['btn_back']);
    if ($_POST['btn_back']) {
        log_action('Pressed cancel button');
        require 'components/query_string_standard.php';
        redirect("listview_department.php?{$query_string}");
    }
}
require 'subclasses/department_html.php';
$html = new department_html();
$html->draw_header('Detail View: Department', $message, $message_type);
$html->draw_listview_referrer_info($filter_field_used, $filter_used, $page_from, $filter_sort_asc, $filter_sort_desc);
$html->detail_view = TRUE;
$html->draw_controls('view');
$html->draw_footer();
Ejemplo n.º 8
0
<?php

//****************************************************************************************
//Generated by Cobalt, a rapid application development framework. http://cobalt.jvroig.com
//Cobalt developed by JV Roig (jvroig@jvroig.com)
//****************************************************************************************
require 'path.php';
init_cobalt('Edit region');
if (isset($_GET['region_id'])) {
    $region_id = urldecode($_GET['region_id']);
    require 'form_data_region.php';
}
if (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_submit']);
    require 'components/query_string_standard.php';
    require 'subclasses/region.php';
    $dbh_region = new region();
    $object_name = 'dbh_region';
    require 'components/create_form_data.php';
    extract($arr_form_data);
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button');
        redirect("listview_region.php?{$query_string}");
    }
    if ($_POST['btn_submit']) {
        log_action('Pressed submit button');
        $message .= $dbh_region->sanitize($arr_form_data)->lst_error;
        extract($arr_form_data);
        if ($dbh_region->check_uniqueness_for_editing($arr_form_data)->is_unique) {
            //Good, no duplicate in database
Ejemplo n.º 9
0
<?php

//****************************************************************************************
//Generated by Cobalt, a rapid application development framework. http://cobalt.jvroig.com
//Cobalt developed by JV Roig (jvroig@jvroig.com)
//****************************************************************************************
require 'path.php';
init_cobalt('View cedula');
if (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_submit']);
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button');
        redirect("listview_cedula.php");
    }
    if ($_POST['btn_submit']) {
        log_action('Pressed submit button');
        require 'subclasses/cedula.php';
        $dbh_cedula = new cedula();
        if ($message == "") {
            log_action('Exported table data to CSV');
            $timestamp = date('Y-m-d');
            $token = generate_token(0, 'fs');
            $csv_name = $token . $_SESSION['user'] . '_cedula_' . $timestamp . '.csv';
            $filename = TMP_DIRECTORY . '/' . $csv_name;
            $csv_contents = $dbh_cedula->export_to_csv();
            $csv_file = fopen($filename, "wb");
            fwrite($csv_file, $csv_contents);
            fclose($csv_file);
            chmod($filename, 0755);
            $csv_name = urlencode($csv_name);
Ejemplo n.º 10
0
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('Reset Password');
if (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_submit']);
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button', $_SERVER['PHP_SELF']);
        redirect(HOME_PAGE);
    }
    if ($_POST['btn_submit']) {
        log_action('Pressed submit button', $_SERVER['PHP_SELF']);
        require 'subclasses/user.php';
        $dbh_user = new user();
        $dbh_user->fields['password']['required'] = TRUE;
        $dbh_user->fields['skin_id']['required'] = FALSE;
        $dbh_user->fields['person_id']['required'] = FALSE;
        $arr_form_data = array('username' => $_POST['username'], 'password' => $_POST['password']);
        $message .= $dbh_user->sanitize($arr_form_data)->lst_error;
        extract($arr_form_data);
        if (strlen($password) > MAX_PASSWORD_LENGTH) {
            $message = 'Password must not be more than ' . MAX_PASSWORD_LENGTH . ' chars.';
            $password = '';
        }
<?php

//****************************************************************************************
//Generated by Cobalt, a rapid application development framework. http://cobalt.jvroig.com
//Cobalt developed by JV Roig (jvroig@jvroig.com)
//****************************************************************************************
require 'path.php';
init_cobalt('View employee');
require_once 'thirdparty/tcpdf/tcpdf.php';
require_once 'reporter_class.php';
$reporter = cobalt_load_class('employee_rpt');
$sess_var = $reporter->session_array_name;
$title = $reporter->report_title;
require_once 'components/reporter_result_pdf.php';
// close and output PDF document
$pdf_filename = $_SESSION['user'] . '_' . $sess_var . '_' . date('Y-m-d_h-ia') . '.pdf';
$pdf->Output($pdf_filename, 'I');
Ejemplo n.º 12
0
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('View company');
if (isset($_GET['Id'])) {
    $Id = urldecode($_GET['Id']);
    require 'form_data_company.php';
} elseif (xsrf_guard()) {
    init_var($_POST['btn_back']);
    if ($_POST['btn_back']) {
        log_action('Pressed cancel button', $_SERVER['PHP_SELF']);
        require 'components/query_string_standard.php';
        redirect("listview_company.php?{$query_string}");
    }
}
require 'subclasses/company_html.php';
$html = new company_html();
$html->draw_header('Detail View: Company', $message, $message_type);
$html->draw_listview_referrer_info($filter_field_used, $filter_used, $page_from, $filter_sort_asc, $filter_sort_desc);
$html->detail_view = TRUE;
$html->draw_controls('view');
$html->draw_footer();
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('Delete alumniprofqualification');
if (isset($_GET['Id'])) {
    $Id = urldecode($_GET['Id']);
    require_once 'form_data_alumniprofqualification.php';
} elseif (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_delete']);
    require 'components/query_string_standard.php';
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button', $_SERVER['PHP_SELF']);
        redirect("listview_alumniprofqualification.php?{$query_string}");
    } elseif ($_POST['btn_delete']) {
        log_action('Pressed delete button', $_SERVER['PHP_SELF']);
        require_once 'subclasses/alumniprofqualification.php';
        $dbh_alumniprofqualification = new alumniprofqualification();
        $object_name = 'dbh_alumniprofqualification';
        require 'components/create_form_data.php';
        $dbh_alumniprofqualification->del($arr_form_data);
        redirect("listview_alumniprofqualification.php?{$query_string}");
    }
}
require 'subclasses/alumniprofqualification_html.php';
Ejemplo n.º 14
0
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('View system settings');
require 'reporter_class.php';
$reporter = cobalt_load_class('system_settings_rpt');
//$reporter->print_settings(); //You can uncomment this line to get the PHP code for the settings arrays. You can
//use one or more of the arrays to customize the report output or deal with special cases
//(adding special aliases, overriding labels for tables with similar field names, etc)
require 'components/reporter_interface_proc.php';
require 'components/reporter_interface_head.php';
for ($i = 0; $i < $num_fields; ++$i) {
    init_var($text_field[$i]);
    require 'components/reporter_interface_body.php';
}
require 'components/reporter_interface_foot.php';
Ejemplo n.º 15
0
<?php

//****************************************************************************************
//Generated by Cobalt, a rapid application development framework. http://cobalt.jvroig.com
//Cobalt developed by JV Roig (jvroig@jvroig.com)
//****************************************************************************************
require 'path.php';
init_cobalt('Edit request');
if (isset($_GET['request_id'])) {
    $request_id = urldecode($_GET['request_id']);
    require 'form_data_request.php';
}
if (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_submit']);
    require 'components/query_string_standard.php';
    require 'subclasses/request.php';
    $dbh_request = new request();
    $object_name = 'dbh_request';
    require 'components/create_form_data.php';
    extract($arr_form_data);
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button');
        redirect("listview_request.php?{$query_string}");
    }
    if ($_POST['btn_submit']) {
        log_action('Pressed submit button');
        $message .= $dbh_request->sanitize($arr_form_data)->lst_error;
        extract($arr_form_data);
        if ($dbh_request->check_uniqueness_for_editing($arr_form_data)->is_unique) {
            //Good, no duplicate in database
Ejemplo n.º 16
0
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('Delete final paper hdr');
if (isset($_GET['id'])) {
    $id = urldecode($_GET['id']);
    require_once 'form_data_final_paper_hdr.php';
}
if (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_delete']);
    require 'components/query_string_standard.php';
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button');
        redirect("listview_final_paper_hdr.php?{$query_string}");
    } elseif ($_POST['btn_delete']) {
        log_action('Pressed delete button');
        require_once 'subclasses/final_paper_hdr.php';
        $dbh_final_paper_hdr = new final_paper_hdr();
        $object_name = 'dbh_final_paper_hdr';
        require 'components/create_form_data.php';
        $dbh_final_paper_hdr->delete($arr_form_data);
        require_once 'subclasses/final_paper_dtl.php';
        $dbh_final_paper_hdr = new final_paper_dtl();
        $dbh_final_paper_hdr->delete_many($arr_form_data);
Ejemplo n.º 17
0
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('Delete eval hdr');
if (isset($_GET['id'])) {
    $id = urldecode($_GET['id']);
    require_once 'form_data_eval_hdr.php';
} elseif (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_delete']);
    require 'components/query_string_standard.php';
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button', $_SERVER['PHP_SELF']);
        redirect("listview_eval_hdr.php?{$query_string}");
    } elseif ($_POST['btn_delete']) {
        log_action('Pressed delete button', $_SERVER['PHP_SELF']);
        require_once 'subclasses/eval_hdr.php';
        $dbh_eval_hdr = new eval_hdr();
        $object_name = 'dbh_eval_hdr';
        require 'components/create_form_data.php';
        $dbh_eval_hdr->del($arr_form_data);
        require_once 'subclasses/eval_dtl.php';
        $dbh_eval_hdr = new eval_dtl();
        $dbh_eval_hdr->del($arr_form_data);
        redirect("listview_eval_hdr.php?{$query_string}");
Ejemplo n.º 18
0
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('Edit user passport groups');
if (isset($_GET['passport_group_id'])) {
    $passport_group_id = urldecode($_GET['passport_group_id']);
    require 'form_data_user_passport_groups.php';
} elseif (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_submit']);
    require 'components/query_string_standard.php';
    require 'subclasses/user_passport_groups.php';
    $dbh_user_passport_groups = new user_passport_groups();
    $object_name = 'dbh_user_passport_groups';
    require 'components/create_form_data.php';
    extract($arr_form_data);
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button', $_SERVER['PHP_SELF']);
        redirect("listview_user_passport_groups.php?{$query_string}");
    }
    if ($_POST['btn_submit']) {
        log_action('Pressed submit button', $_SERVER['PHP_SELF']);
        $message .= $dbh_user_passport_groups->sanitize($arr_form_data)->lst_error;
        extract($arr_form_data);
        if ($dbh_user_passport_groups->check_uniqueness_for_editing($arr_form_data)->is_unique) {
Ejemplo n.º 19
0
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('View cobalt sst');
$page_title = 'ListView: Cobalt Supersonic Self-Tests (SST)';
$db_subclass = 'cobalt_sst';
$html_subclass = 'cobalt_sst_html';
$arr_pkey_name = array('auto_id');
$results_per_page = LISTVIEW_RESULTS_PER_PAGE;
//user links / passport tags
$add_link = 'Add cobalt sst';
$edit_link = 'Edit cobalt sst';
$delete_link = 'Delete cobalt sst';
$view_link = 'View cobalt sst';
//pages - set to empty if you don't want to include them in the listview
$add_page = 'add_cobalt_sst.php';
$edit_page = 'edit_cobalt_sst.php';
$delete_page = 'delete_cobalt_sst.php';
$view_page = 'detailview_cobalt_sst.php';
$csv_page = 'csv_cobalt_sst.php';
$report_page = 'reporter_cobalt_sst.php';
//Extra entries under operations column (name of include file, not html code)
$operations_extra = 'operations_sst.php';
//Formatting and alignment options for data columns
$arr_formatting = array();
Ejemplo n.º 20
0
<?php

//****************************************************************************************
//Generated by Cobalt, a rapid application development framework. http://cobalt.jvroig.com
//Cobalt developed by JV Roig (jvroig@jvroig.com)
//****************************************************************************************
require 'path.php';
init_cobalt('View school');
require 'reporter_class.php';
$reporter = cobalt_load_class('school_rpt');
require 'components/reporter_result_query_constructor.php';
require 'components/reporter_result_body.php';
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('View alumniprofqualification');
require 'reporter_class.php';
$reporter = cobalt_load_class('alumniprofqualification_rpt');
require 'components/reporter_result_query_constructor.php';
require 'components/reporter_result_body.php';
Ejemplo n.º 22
0
<?php

//****************************************************************************************
//Generated by Cobalt, a rapid application development framework. http://cobalt.jvroig.com
//Cobalt developed by JV Roig (jvroig@jvroig.com)
//****************************************************************************************
require 'path.php';
init_cobalt('View sub doc');
if (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_submit']);
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button');
        redirect("listview_sub_doc.php");
    }
    if ($_POST['btn_submit']) {
        log_action('Pressed submit button');
        require 'subclasses/sub_doc.php';
        $dbh_sub_doc = new sub_doc();
        if ($message == "") {
            log_action('Exported table data to CSV');
            $timestamp = date('Y-m-d');
            $token = generate_token(0, 'fs');
            $csv_name = $token . $_SESSION['user'] . '_sub_doc_' . $timestamp . '.csv';
            $filename = TMP_DIRECTORY . '/' . $csv_name;
            $csv_contents = $dbh_sub_doc->export_to_csv();
            $csv_file = fopen($filename, "wb");
            fwrite($csv_file, $csv_contents);
            fclose($csv_file);
            chmod($filename, 0755);
            $csv_name = urlencode($csv_name);
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('View user passport groups');
if (isset($_GET['passport_group_id'])) {
    $passport_group_id = urldecode($_GET['passport_group_id']);
    require 'form_data_user_passport_groups.php';
}
if (xsrf_guard()) {
    init_var($_POST['btn_back']);
    if ($_POST['btn_back']) {
        log_action('Pressed cancel button');
        require 'components/query_string_standard.php';
        redirect("listview_user_passport_groups.php?{$query_string}");
    }
}
require 'subclasses/user_passport_groups_html.php';
$html = new user_passport_groups_html();
$html->draw_header('Detail View: User Passport Groups', $message, $message_type);
$html->draw_listview_referrer_info($filter_field_used, $filter_used, $page_from, $filter_sort_asc, $filter_sort_desc);
$html->detail_view = TRUE;
$html->draw_controls('view');
$html->draw_footer();
Ejemplo n.º 24
0
<?php

//****************************************************************************************
//Generated by Cobalt, a rapid application development framework. http://cobalt.jvroig.com
//Cobalt developed by JV Roig (jvroig@jvroig.com)
//****************************************************************************************
require 'path.php';
init_cobalt('Delete department');
if (isset($_GET['department_id'])) {
    $department_id = urldecode($_GET['department_id']);
    require_once 'form_data_department.php';
}
if (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_delete']);
    require 'components/query_string_standard.php';
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button');
        redirect("listview_department.php?{$query_string}");
    } elseif ($_POST['btn_delete']) {
        log_action('Pressed delete button');
        require_once 'subclasses/department.php';
        $dbh_department = new department();
        $object_name = 'dbh_department';
        require 'components/create_form_data.php';
        $dbh_department->delete($arr_form_data);
        redirect("listview_department.php?{$query_string}");
    }
}
require 'subclasses/department_html.php';
$html = new department_html();
Ejemplo n.º 25
0
<?php

//****************************************************************************************
//Generated by Cobalt, a rapid application development framework. http://cobalt.jvroig.com
//Cobalt developed by JV Roig (jvroig@jvroig.com)
//****************************************************************************************
require 'path.php';
init_cobalt('View zone');
require 'reporter_class.php';
$reporter = cobalt_load_class('zone_rpt');
//$reporter->print_settings(); //You can uncomment this line to get the PHP code for the settings arrays. You can
//use one or more of the arrays to customize the report output or deal with special cases
//(adding special aliases, overriding labels for tables with similar field names, etc)
require 'components/reporter_interface_proc.php';
require 'components/reporter_interface_head.php';
for ($i = 0; $i < $num_fields; ++$i) {
    init_var($text_field[$i]);
    require 'components/reporter_interface_body.php';
}
require 'components/reporter_interface_foot.php';
Ejemplo n.º 26
0
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('View eval dtl');
if (isset($_GET['id'])) {
    $id = urldecode($_GET['id']);
    require 'form_data_eval_dtl.php';
} elseif (xsrf_guard()) {
    init_var($_POST['btn_back']);
    if ($_POST['btn_back']) {
        log_action('Pressed cancel button', $_SERVER['PHP_SELF']);
        require 'components/query_string_standard.php';
        redirect("listview_eval_dtl.php?{$query_string}");
    }
}
require 'subclasses/eval_dtl_html.php';
$html = new eval_dtl_html();
$html->draw_header('Detail View: Eval Dtl', $message, $message_type);
$html->draw_listview_referrer_info($filter_field_used, $filter_used, $page_from, $filter_sort_asc, $filter_sort_desc);
$html->detail_view = TRUE;
$html->draw_controls('view');
$html->draw_footer();
Ejemplo n.º 27
0
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('Add alumniinfo');
require 'components/get_listview_referrer.php';
if (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_submit']);
    require 'components/query_string_standard.php';
    require 'subclasses/alumniinfo.php';
    $dbh_alumniinfo = new alumniinfo();
    $object_name = 'dbh_alumniinfo';
    require 'components/create_form_data.php';
    extract($arr_form_data);
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button');
        redirect("listview_alumniinfo.php?{$query_string}");
    }
    if ($_POST['btn_submit']) {
        log_action('Pressed submit button');
        $message .= $dbh_alumniinfo->sanitize($arr_form_data)->lst_error;
        extract($arr_form_data);
        if ($dbh_alumniinfo->check_uniqueness($arr_form_data)->is_unique) {
            //Good, no duplicate in database
        } else {
Ejemplo n.º 28
0
<?php

//****************************************************************************************
//Generated by Cobalt, a rapid application development framework. http://cobalt.jvroig.com
//Cobalt developed by JV Roig (jvroig@jvroig.com)
//****************************************************************************************
require 'path.php';
init_cobalt('View nationality');
$page_title = 'ListView: Nationality';
$db_subclass = 'nationality';
$html_subclass = 'nationality_html';
$arr_pkey_name = array('nationality_id');
$results_per_page = LISTVIEW_RESULTS_PER_PAGE;
//user links / passport tags
$add_link = 'Add nationality';
$edit_link = 'Edit nationality';
$delete_link = 'Delete nationality';
$view_link = 'View nationality';
//pages - set to empty if you don't want to include them in the listview
$add_page = 'add_nationality.php';
$edit_page = 'edit_nationality.php';
$delete_page = 'delete_nationality.php';
$view_page = 'detailview_nationality.php';
$csv_page = 'csv_nationality.php';
$report_page = 'reporter_nationality.php';
//Extra entries under operations column (name of include file, not html code)
$operations_extra = '';
//Formatting and alignment options for data columns
$arr_formatting = array();
$arr_alignment = array();
//For custom join & select clause, you need to set the following variables so that the default
Ejemplo n.º 29
0
<?php

//******************************************************************
//This file was generated by Cobalt, a rapid application development
//framework developed by JV Roig (jvroig@jvroig.com).
//
//Cobalt on the web: http://cobalt.jvroig.com
//******************************************************************
require 'path.php';
init_cobalt('View resume dtl');
require 'reporter_class.php';
$reporter = cobalt_load_class('resume_dtl_rpt');
require 'components/reporter_result_query_constructor.php';
require 'components/reporter_result_body.php';
Ejemplo n.º 30
0
<?php

//****************************************************************************************
//Generated by Cobalt, a rapid application development framework. http://cobalt.jvroig.com
//Cobalt developed by JV Roig (jvroig@jvroig.com)
//****************************************************************************************
require 'path.php';
init_cobalt('Delete skill');
if (isset($_GET['skill_id'])) {
    $skill_id = urldecode($_GET['skill_id']);
    require_once 'form_data_skill.php';
}
if (xsrf_guard()) {
    init_var($_POST['btn_cancel']);
    init_var($_POST['btn_delete']);
    require 'components/query_string_standard.php';
    if ($_POST['btn_cancel']) {
        log_action('Pressed cancel button');
        redirect("listview_skill.php?{$query_string}");
    } elseif ($_POST['btn_delete']) {
        log_action('Pressed delete button');
        require_once 'subclasses/skill.php';
        $dbh_skill = new skill();
        $object_name = 'dbh_skill';
        require 'components/create_form_data.php';
        $dbh_skill->delete($arr_form_data);
        redirect("listview_skill.php?{$query_string}");
    }
}
require 'subclasses/skill_html.php';
$html = new skill_html();