当前位置: 首页>>代码示例>>PHP>>正文


PHP init_cobalt函数代码示例

本文整理汇总了PHP中init_cobalt函数的典型用法代码示例。如果您正苦于以下问题:PHP init_cobalt函数的具体用法?PHP init_cobalt怎么用?PHP init_cobalt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了init_cobalt函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: init_cobalt

<?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';
开发者ID:seans888,项目名称:APC-CPO,代码行数:14,代码来源:reporter_result_companycontact.php

示例2: init_cobalt

<?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';
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:delete_refstudent.php

示例3: init_cobalt

<?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) {
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:add_user_links.php

示例4: init_cobalt

<?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);
开发者ID:seans888,项目名称:Bgy-Project,代码行数:31,代码来源:register.php

示例5: init_cobalt

<?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
开发者ID:seans888,项目名称:Bgy-Project,代码行数:31,代码来源:edit_request_has_requirement.php

示例6: init_cobalt

<?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) {
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:edit_industrysector.php

示例7: init_cobalt

<?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();
开发者ID:seans888,项目名称:Bgy-Project,代码行数:27,代码来源:detailview_department.php

示例8: init_cobalt

<?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
开发者ID:seans888,项目名称:Bgy-Project,代码行数:31,代码来源:edit_region.php

示例9: init_cobalt

<?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);
开发者ID:seans888,项目名称:Bgy-Project,代码行数:31,代码来源:csv_cedula.php

示例10: init_cobalt

<?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 = '';
        }
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:reset_password.php

示例11: init_cobalt

<?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');
开发者ID:seans888,项目名称:Bgy-Project,代码行数:17,代码来源:reporter_pdfresult_employee.php

示例12: init_cobalt

<?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();
开发者ID:seans888,项目名称:APC-CPO,代码行数:28,代码来源:detailview_company.php

示例13: init_cobalt

<?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';
开发者ID:seans888,项目名称:APC-CPO,代码行数:31,代码来源:delete_alumniprofqualification.php

示例14: init_cobalt

<?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';
开发者ID:seans888,项目名称:APC-CPO,代码行数:22,代码来源:reporter_system_settings.php

示例15: init_cobalt

<?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
开发者ID:seans888,项目名称:Bgy-Project,代码行数:31,代码来源:edit_request.php


注:本文中的init_cobalt函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。