You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
908 lines
22 KiB
908 lines
22 KiB
<?php
|
|
|
|
|
|
|
|
function get_maintenance_item($combono) {
|
|
$item = array();
|
|
|
|
# EY001共有28個檢查項,combo table中的id是1-28
|
|
if ($combono == "EY001") {
|
|
array_push($item, $_REQUEST['item1']);
|
|
array_push($item, $_REQUEST['item2']);
|
|
array_push($item, $_REQUEST['item3']);
|
|
array_push($item, $_REQUEST['item4']);
|
|
array_push($item, $_REQUEST['item5']);
|
|
array_push($item, $_REQUEST['item6']);
|
|
array_push($item, $_REQUEST['item7']);
|
|
array_push($item, $_REQUEST['item8']);
|
|
array_push($item, $_REQUEST['item9']);
|
|
array_push($item, $_REQUEST['item10']);
|
|
array_push($item, $_REQUEST['item11']);
|
|
array_push($item, $_REQUEST['item12']);
|
|
array_push($item, $_REQUEST['item13']);
|
|
array_push($item, $_REQUEST['item14']);
|
|
array_push($item, $_REQUEST['item15']);
|
|
array_push($item, $_REQUEST['item16']);
|
|
array_push($item, $_REQUEST['item17']);
|
|
array_push($item, $_REQUEST['item18']);
|
|
array_push($item, $_REQUEST['item19']);
|
|
array_push($item, $_REQUEST['item20']);
|
|
array_push($item, $_REQUEST['item21']);
|
|
array_push($item, $_REQUEST['item22']);
|
|
array_push($item, $_REQUEST['item23']);
|
|
array_push($item, $_REQUEST['item24']);
|
|
array_push($item, $_REQUEST['item25']);
|
|
array_push($item, $_REQUEST['item26']);
|
|
array_push($item, $_REQUEST['item27']);
|
|
array_push($item, $_REQUEST['item28']);
|
|
return $item;
|
|
}
|
|
|
|
# HY001共有22個檢查項,combo table中的id是29-50
|
|
if ($combono == "HY001") {
|
|
array_push($item, $_REQUEST['item29']);
|
|
array_push($item, $_REQUEST['item30']);
|
|
array_push($item, $_REQUEST['item31']);
|
|
array_push($item, $_REQUEST['item32']);
|
|
array_push($item, $_REQUEST['item33']);
|
|
array_push($item, $_REQUEST['item34']);
|
|
array_push($item, $_REQUEST['item35']);
|
|
array_push($item, $_REQUEST['item36']);
|
|
array_push($item, $_REQUEST['item37']);
|
|
array_push($item, $_REQUEST['item38']);
|
|
array_push($item, $_REQUEST['item39']);
|
|
array_push($item, $_REQUEST['item40']);
|
|
array_push($item, $_REQUEST['item41']);
|
|
array_push($item, $_REQUEST['item42']);
|
|
array_push($item, $_REQUEST['item43']);
|
|
array_push($item, $_REQUEST['item44']);
|
|
array_push($item, $_REQUEST['item45']);
|
|
array_push($item, $_REQUEST['item46']);
|
|
array_push($item, $_REQUEST['item47']);
|
|
array_push($item, $_REQUEST['item48']);
|
|
array_push($item, $_REQUEST['item49']);
|
|
array_push($item, $_REQUEST['item50']);
|
|
return $item;
|
|
}
|
|
|
|
# EQ001共有20個檢查項,combo table中的id是51-70
|
|
if ($combono == "EQ001") {
|
|
array_push($item, $_REQUEST['item51']);
|
|
array_push($item, $_REQUEST['item52']);
|
|
array_push($item, $_REQUEST['item53']);
|
|
array_push($item, $_REQUEST['item54']);
|
|
array_push($item, $_REQUEST['item55']);
|
|
array_push($item, $_REQUEST['item56']);
|
|
array_push($item, $_REQUEST['item57']);
|
|
array_push($item, $_REQUEST['item58']);
|
|
array_push($item, $_REQUEST['item59']);
|
|
array_push($item, $_REQUEST['item60']);
|
|
array_push($item, $_REQUEST['item61']);
|
|
array_push($item, $_REQUEST['item62']);
|
|
array_push($item, $_REQUEST['item63']);
|
|
array_push($item, $_REQUEST['item64']);
|
|
array_push($item, $_REQUEST['item65']);
|
|
array_push($item, $_REQUEST['item66']);
|
|
array_push($item, $_REQUEST['item67']);
|
|
array_push($item, $_REQUEST['item68']);
|
|
array_push($item, $_REQUEST['item69']);
|
|
array_push($item, $_REQUEST['item70']);
|
|
return $item;
|
|
}
|
|
|
|
# BW001共有31個檢查項,combo table中的id是71-101
|
|
if ($combono == "BW001") {
|
|
array_push($item, $_REQUEST['item71']);
|
|
array_push($item, $_REQUEST['item72']);
|
|
array_push($item, $_REQUEST['item73']);
|
|
array_push($item, $_REQUEST['item74']);
|
|
array_push($item, $_REQUEST['item75']);
|
|
array_push($item, $_REQUEST['item76']);
|
|
array_push($item, $_REQUEST['item77']);
|
|
array_push($item, $_REQUEST['item78']);
|
|
array_push($item, $_REQUEST['item79']);
|
|
array_push($item, $_REQUEST['item80']);
|
|
array_push($item, $_REQUEST['item81']);
|
|
array_push($item, $_REQUEST['item82']);
|
|
array_push($item, $_REQUEST['item83']);
|
|
array_push($item, $_REQUEST['item84']);
|
|
array_push($item, $_REQUEST['item85']);
|
|
array_push($item, $_REQUEST['item86']);
|
|
array_push($item, $_REQUEST['item87']);
|
|
array_push($item, $_REQUEST['item88']);
|
|
array_push($item, $_REQUEST['item89']);
|
|
array_push($item, $_REQUEST['item90']);
|
|
array_push($item, $_REQUEST['item91']);
|
|
array_push($item, $_REQUEST['item92']);
|
|
array_push($item, $_REQUEST['item93']);
|
|
array_push($item, $_REQUEST['item94']);
|
|
array_push($item, $_REQUEST['item95']);
|
|
array_push($item, $_REQUEST['item96']);
|
|
array_push($item, $_REQUEST['item97']);
|
|
array_push($item, $_REQUEST['item98']);
|
|
array_push($item, $_REQUEST['item99']);
|
|
array_push($item, $_REQUEST['item100']);
|
|
array_push($item, $_REQUEST['item101']);
|
|
return $item;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
function get_maintenance_item_detail($combono) {
|
|
$item_detail = array();
|
|
|
|
# EY001共有28個檢查項,combo table中的id是1-28
|
|
if ($combono == "EY001") {
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail1']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail2']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail3']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail4']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail5']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail6']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail7']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail8']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail9']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail10']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail11']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail12']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail13']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail14']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail15']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail16']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail17']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail18']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail19']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail20']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail21']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail22']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail23']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail24']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail25']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail26']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail27']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail28']));
|
|
return $item_detail;
|
|
}
|
|
|
|
# HY001共有22個檢查項,combo table中的id是29-50
|
|
if ($combono == "HY001") {
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail29']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail30']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail31']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail32']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail33']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail34']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail35']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail36']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail37']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail38']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail39']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail40']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail41']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail42']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail43']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail44']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail45']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail46']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail47']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail48']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail49']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail50']));
|
|
return $item_detail;
|
|
}
|
|
|
|
# EQ001共有20個檢查項,combo table中的id是51-70
|
|
if ($combono == "EQ001") {
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail51']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail52']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail53']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail54']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail55']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail56']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail57']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail58']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail59']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail60']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail61']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail62']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail63']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail64']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail65']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail66']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail67']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail68']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail69']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail70']));
|
|
return $item_detail;
|
|
}
|
|
|
|
# BW001共有31個檢查項,combo table中的id是71-101
|
|
if ($combono == "BW001") {
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail71']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail72']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail73']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail74']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail75']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail76']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail77']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail78']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail79']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail80']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail81']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail82']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail83']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail84']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail85']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail86']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail87']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail88']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail89']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail90']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail91']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail92']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail93']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail94']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail95']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail96']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail97']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail98']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail99']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail100']));
|
|
array_push($item_detail, urlencode($_REQUEST['item_detail101']));
|
|
return $item_detail;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
function get_maintenance_result($combono) {
|
|
$result = array();
|
|
/*
|
|
# EY001共有28個檢查項,combo table中的id是1-28
|
|
if ($combono == "EY001") {
|
|
|
|
if (isset($_REQUEST['1'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
return $result;
|
|
}
|
|
*/
|
|
|
|
# EY001共有28個檢查項,combo table中的id是1-28
|
|
if ($combono == "EY001") {
|
|
|
|
if (isset($_REQUEST['1'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['2'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['3'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['4'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['5'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['6'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['7'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['8'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['9'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['10'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['11'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['12'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['13'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['14'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['15'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['16'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['17'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['18'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['19'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['20'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['21'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['22'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['23'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['24'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['25'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['26'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['27'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['28'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
return $result;
|
|
}
|
|
|
|
# HY001共有22個檢查項,combo table中的id是29-50
|
|
if ($combono == "HY001") {
|
|
|
|
if (isset($_REQUEST['29'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['30'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['31'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['32'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['33'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['34'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['35'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['36'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['37'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['38'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['39'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['40'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['41'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['42'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['43'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['44'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['45'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['46'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['47'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['48'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['49'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['50'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
return $result;
|
|
}
|
|
|
|
# EQ001共有20個檢查項,combo table中的id是51-70
|
|
if ($combono == "EQ001") {
|
|
|
|
if (isset($_REQUEST['51'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['52'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['53'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['54'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['55'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['56'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['57'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['58'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['59'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['60'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['61'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['62'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['63'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['64'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['65'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['66'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['67'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['68'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['69'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['70'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
return $result;
|
|
}
|
|
|
|
# BW001共有31個檢查項,combo table中的id是71-101
|
|
if ($combono == "BW001") {
|
|
|
|
if (isset($_REQUEST['71'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['72'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['73'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['74'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['75'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['76'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['77'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['78'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['79'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['80'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['81'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['82'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['83'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['84'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['85'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['86'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['87'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['88'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['89'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['90'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['91'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['92'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['93'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['94'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['95'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['96'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['97'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['98'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['99'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['100'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
if (isset($_REQUEST['101'])) {
|
|
array_push($result,1);
|
|
}else{
|
|
array_push($result,0);
|
|
}
|
|
|
|
return $result;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
?>
|