<?php

require_once 'includes/include.php';
header('Content-Type: text/html; charset=utf-8');
$loginObj = LoginInstance::GetInstance();
if (!$loginObj->loginCheck()) {
    return;
}
$helperObj = HelperInstance::GetInstance('SYS_COUNTY');
if ($_POST && $_FILES) {
    $helperObj->helpMe($_POST);
} else {
    if ($_GET) {
        $helperObj->helpMe($_GET);
    }
}
<?php

require_once 'header.php';
if (!$userObj->m_permissionObj->hasSysPermission()) {
    $utilsObj->m_jsObj->popup_no_permission_message();
}
/* display submenu */
$utilsObj->m_menuObj->gen_sys_submenu();
?>

<!-- page sepcific java script src here -->
<script src="js/sys_fish_category_edit.js"></script>
<?php 
if ($_POST) {
    $helperObj = HelperInstance::GetInstance('SYS_CATEGORY');
    if ($_POST['ori_id'] != "") {
        $helperObj->action_update($_POST);
    } else {
        $helperObj->action_add($_POST);
    }
} else {
    if ($_GET['id']) {
        $query_id = $_GET['id'];
        $sqlCmd = "SELECT c_mgt.*, c.name as category_name, f.name as family_name FROM `fish_category_mgt_table` c_mgt \r\n             LEFT JOIN fish_category_table c ON c.id = c_mgt.category_id \r\n             LEFT JOIN fish_family_table f ON f.id = c_mgt.family_id\r\n             WHERE c_mgt.id = {$query_id}";
        $dbObj->Execute($sqlCmd);
        $rawdata = $dbObj->FetchData();
        if ($rawdata) {
            $id = $rawdata[0]['id'];
            $category_id = $rawdata[0]['category_id'];
            $family_name = $rawdata[0]['family_name'];
            $chinese_name = $rawdata[0]['chinese_name'];
Esempio n. 3
0
<?php

require_once 'includes/include.php';
header('Content-Type: text/html; charset=utf-8');
$loginObj = LoginInstance::GetInstance();
if (!$loginObj->loginCheck()) {
    return;
}
$helperObj = HelperInstance::GetInstance('SYS_PORT');
if ($_POST && $_FILES) {
    $helperObj->helpMe($_POST);
} else {
    if ($_GET) {
        $helperObj->helpMe($_GET);
    }
}
<?php

require_once 'includes/include.php';
header('Content-Type: text/html; charset=utf-8');
$loginObj = LoginInstance::GetInstance();
if (!$loginObj->loginCheck()) {
    return;
}
$helperObj = HelperInstance::GetInstance('SYS_CONSERVATION');
if ($_POST && $_FILES) {
    $helperObj->helpMe($_POST);
} else {
    if ($_GET) {
        $helperObj->helpMe($_GET);
    }
}
Esempio n. 5
0
<?php

require_once 'header.php';
if (!$userObj->m_permissionObj->hasSysPermission()) {
    $utilsObj->m_jsObj->popup_no_permission_message();
}
/* display submenu */
$utilsObj->m_menuObj->gen_sys_submenu();
?>

<!-- page sepcific java script src here -->
<script src="js/sys_fish_boat_edit.js"></script>
<!--這裡放內容表格-->
<?php 
if ($_POST) {
    $helperObj = HelperInstance::GetInstance('SYS_BOAT');
    if ($_POST['ori_id'] != "") {
        $helperObj->action_update($_POST);
    } else {
        $helperObj->action_add($_POST);
    }
} else {
    if ($_GET['id']) {
        $query_id = $_GET['id'];
        $sqlCmd = "SELECT b_mgt.*, c.name as county_name, a.name as association_name FROM `fish_boat_mgt_table` b_mgt \r\n                  LEFT JOIN fish_association_mgt_table a ON a.id = b_mgt.association_id \r\n                  LEFT JOIN fish_county_mgt_table c ON c.id = b_mgt.county_id WHERE b_mgt.id = '{$query_id}'";
        $dbObj->Execute($sqlCmd);
        $rawdata = $dbObj->FetchData();
        if ($rawdata) {
            $id = $rawdata[0]['id'];
            $name = $rawdata[0]['name'];
            $captain = $rawdata[0]['captain'];
<?php

require_once 'includes/include.php';
header('Content-Type: text/html; charset=utf-8');
$loginObj = LoginInstance::GetInstance();
if (!$loginObj->loginCheck()) {
    return;
}
$helperObj = HelperInstance::GetInstance('SYS_ASSOCIATION');
if ($_POST && $_FILES) {
    $helperObj->helpMe($_POST);
} else {
    if ($_GET) {
        $helperObj->helpMe($_GET);
    }
}
Esempio n. 7
0
<?php

require_once 'includes/include.php';
header('Content-Type: text/html; charset=utf-8');
$loginObj = LoginInstance::GetInstance();
if (!$loginObj->loginCheck()) {
    return;
}
$helperObj = HelperInstance::GetInstance('SYS_USER');
if ($_POST && $_FILES) {
    $helperObj->helpMe($_POST);
} else {
    if ($_GET) {
        $helperObj->helpMe($_GET);
    }
}
<?php

require_once 'includes/include.php';
header('Content-Type: text/html; charset=utf-8');
$loginObj = LoginInstance::GetInstance();
if (!$loginObj->loginCheck()) {
    return;
}
$helperObj = HelperInstance::GetInstance('SYS_OPERATION');
if ($_POST && $_FILES) {
    $helperObj->helpMe($_POST);
} else {
    if ($_GET) {
        $helperObj->helpMe($_GET);
    }
}