get("SID"); $user = $cst->get("user"); $ln = $cst->get("locale_name"); $lo = $cst->get("locale_obj"); $ERI = $cst->get("ERI"); $COPYERI = $cst->get("COPYERI"); $SERI = $cst->get("SERI"); $TEMPERI = $cst->get("TEMPERI"); $data = $cst->get("data"); $stat_button = $cst->get("stat_button"); $mode = $cst->get("mode"); $fow = $cst->get("fow"); $FTYPE = $cst->get("FTYPE"); $MOVEPROC = $cst->get("MOVEPROC"); $mddiv = $cst->get("html_mddiv"); $insl = $cst->get("html_insl"); $dset = $cst->get("html_dset"); $dtbl = $cst->get("html_dtbl"); $field = $cst->get("html_field"); $query = $cst->get("html_query"); $select = $cst->get("html_select"); $mutp = $cst->get("mutp"); $mdir = $cst->get("mdir"); // HTML ENGINE BEGIN $hstr = ""; $hstr .= field_default_class($dtbl,$field). ""; if (empty($fow)) { $hstr .= "
". ""; switch ($insl["MODNAME"]) { case "CSEXE_M": case "CSEXE_MD": case "CSEXE_MDS": if (($insl["SANEW"]) || ($insl["SAEDIT"]) || ($insl["SADEL"])) { $hstr .= "  "; } if ($insl["SANEW"]) { $hstr .= " text("NEW")."\" onclick=\"mode_addcopy_detail('','".$SID."','".$mode."','add','','".$insl["PGLDIV"]."','".$mutp."');\"".(($stat_button["new"]) ? "" : " disabled").">". " text("COPY")."\" onclick=\"mode_addcopy_detail('','".$SID."','".$mode."','copy','".$ERI."','".$insl["PGLDIV"]."','".$mutp."');\"".(($stat_button["new"]) ? "" : " disabled").">"; } if ($insl["SAEDIT"]) { $hstr .= " text("EDIT")."\" onclick=\"detail_edit_open('','".$SID."','".$mode."','#detail_form_".$mode.$fow."','".$ERI."','".$mddiv."');\" ".(($stat_button["edit"]) ? "" : " disabled").">". " text("SAVE")."\" onclick=\"mode_save_detail('','".$SID."','".$mode."','#detail_form_".$mode.$fow."','websave','".$ERI."','".$insl["SATYPE"]."','search_exec_,search_where_,search_order_,detail_items_','".$insl["PGLDIV"]."','".$insl["PGTYPE"]."','".$mutp."');\"".(($stat_button["save"]) ? "" : " disabled").">". " text("CANCEL")."\" onclick=\"mode_cancel_detail('','".$SID."','".$mode."','#detail_form_".$mode.$fow."','".$ERI."','".$SERI."','search_exec_,search_where_,search_order_,detail_items_','".$insl["PGLDIV"]."','".$insl["PGTYPE"]."','0','".$mutp."');\"".(($stat_button["cancel"]) ? "" : " disabled").">"; } if ($insl["SADEL"]) { $hstr .= " text("DELETE")."\" onclick=\"mode_delete_detail('','".$SID."','".$mode."','".$ERI."','".$insl["PGTYPE"]."');\"".(($stat_button["del"]) ? "" : " disabled").">"; } $hstr .= "  ". " text("GO_BACK")."\" onclick=\"mode_return_detail('','".$SID."','".$mode."','".$insl["PGTYPE"]."');\"".(($stat_button["return"]) ? "" : " disabled").">"; if (isset($dset[0]["REPORTSDC"]) && trim($dset[0]["REPORTSDC"]) != "") { $hstr .= "  ". " text("PRINT")."\" onclick=\"post_redirect('report_Panel', '', 'core/cw5e_print.php?sid=".$SID."&mode=".$mode."&aid=".$dset[0]["QUERYSDC"]."&bid=".$dset[0]["REPORTSDC"]."&ptype=1&act=view&key=".$ERI."');\"".(($stat_button["print"]) ? "" : " disabled").">"; } if ($insl["SASCRT"]) { $hstr .= "  ". " text("SCRUT")."\" onclick=\"mode_scrut_detail('','".$SID."','".$mode."','scrut','".$ERI."','CONFIRM_SCRUTINY','SCRUTINY_COMPLETE','search_exec_,search_where_,search_order_,detail_items_','".$insl["PGLDIV"]."','".$insl["PGTYPE"]."','".$mutp."');\"".(($stat_button["scrutiny"]) ? "" : " disabled").">". " text("UNSCRUT")."\" onclick=\"mode_scrut_detail('','".$SID."','".$mode."','unscrut','".$ERI."','CONFIRM_UNSCRUTINY','UNSCRUTINY_COMPLETE','search_exec_,search_where_,search_order_,detail_items_','".$insl["PGLDIV"]."','".$insl["PGTYPE"]."','".$mutp."');\"".(($stat_button["unscrutiny"]) ? "" : " disabled").">"; } $hstr .= "  ". " text("FIRST")."\" onclick=\"mode_feedpage_change('','".$SID."','".$mode."','first','".$ERI."','search_exec_,search_where_,search_order_,detail_items_','".$insl["PGLDIV"]."','".$insl["PGTYPE"]."','".$mutp."');\"".(($stat_button["first"]) ? "" : " disabled").">". " text("PREV")."\" onclick=\"mode_feedpage_change('','".$SID."','".$mode."','prev','".$ERI."','search_exec_,search_where_,search_order_,detail_items_','".$insl["PGLDIV"]."','".$insl["PGTYPE"]."','".$mutp."');\"".(($stat_button["prev"]) ? "" : " disabled").">". " ".$lo->text("NEXT")."\" onclick=\"mode_feedpage_change('','".$SID."','".$mode."','next','".$ERI."','search_exec_,search_where_,search_order_,detail_items_','".$insl["PGLDIV"]."','".$insl["PGTYPE"]."','".$mutp."');\"".(($stat_button["next"]) ? "" : " disabled").">". " | ".$lo->text("FINAL")."\" onclick=\"mode_feedpage_change('','".$SID."','".$mode."','final','".$ERI."','search_exec_,search_where_,search_order_,detail_items_','".$insl["PGLDIV"]."','".$insl["PGTYPE"]."','".$mutp."');\"".(($stat_button["final"]) ? "" : " disabled").">"; if ($FTYPE) { $hstr .= "  ". " text("SEND")."\" onclick=\"flow_send_detail('','".$SID."','".$mode."','".$ERI."','#detail_form_".$mode.$fow."','".$insl["PGLDIV"]."','".$insl["PGTYPE"]."','".$mutp."');\"".(($stat_button["send"]) ? "" : " disabled").">". " text("INVALID")."\" onclick=\"flow_invalid_detail('','".$SID."','".$mode."','".$ERI."','search_exec_,search_where_,search_order_,detail_items_','".$insl["PGLDIV"]."','".$insl["PGTYPE"]."','".$mutp."');\"".(($stat_button["invalid"]) ? "" : " disabled").">". " text("BROUT")."\" onclick=\"flowmap_mtod_detail('','".$SID."','".$mode."','".$ERI."','#detail_form_".$mode.$fow."','".$mutp."');\"".(($stat_button["brout"]) ? "" : " disabled").">"; } if (!empty($MOVEPROC)) { $hstr .= "  ". " text("PROUT")."\" onclick=\"mode_prout_detail('','".$SID."','".$mode."','#detail_form_".$mode.$fow."','".$ERI."','".$MOVEPROC."','search_exec_,search_where_,search_order_,detail_items_','".$insl["PGLDIV"]."','".$insl["PGTYPE"]."','".$mutp."');\"".(($stat_button["prout"]) ? "" : " disabled").">"; } $hstr .= "
"; break; case "CSSETUP": if ($insl["SAEDIT"]) { $hstr .= "  ". " text("EDIT")."\" onclick=\"detail_edit_open('','".$SID."','".$mode."','#detail_form_".$mode.$fow."','".$ERI."','".$mddiv."');\"".(($stat_button["edit"]) ? "" : " disabled").">". " text("SAVE")."\" onclick=\"mode_save_detail('','".$SID."','".$mode."','#detail_form_".$mode.$fow."','websave','".$ERI."','1','search_exec_,search_where_,search_order_,detail_items_','".$insl["PGLDIV"]."','".$insl["PGTYPE"]."','".$mutp."');\"".(($stat_button["save"]) ? "" : " disabled").">". " text("CANCEL")."\" onclick=\"mode_cancel_detail('','".$SID."','".$mode."','#detail_form_".$mode.$fow."','".$ERI."','".$SERI."','search_exec_,search_where_,search_order_,detail_items_','".$insl["PGLDIV"]."','".$insl["PGTYPE"]."','1','".$mutp."');\"".(($stat_button["cancel"]) ? "" : " disabled").">". "
"; } break; case "CSWEB_TMP": if ($insl["SAEDIT"]) { $hstr .= "  ". " text($mode."_SAVE")."\" onclick=\"mode_tempsave_detail('','".$SID."','".$mode."','#detail_form_".$mode.$fow."','websave','".$ERI."','1','search_exec_,search_where_,search_order_,detail_items_','".$insl["PGLDIV"]."','".$insl["PGTYPE"]."','".$mutp."');\"".(($stat_button["save"]) ? "" : " disabled").">". "
"; } break; default: $hstr .= "未完成相關模組之底層設定!
"; break; } } if (empty($fow) || $fow == "C") $hstr .= "
"; $hstr .= "". "". "". "". create_mdmixhtml_engine($lo,$data,$insl,$dtbl,$field,$query,$select); if (empty($fow) || $fow == "C") { $hstr .= "
". "
". "
". "
". "". "". "". "". "
". "
". "
"; } $hstr .= "". "". ""; // HTML ENGINE END echo $hstr; ?>