X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fdbase_base.phh;fp=web%2FObj%2Fdbase_base.phh;h=d7d806851fff39ec6c6df0f4492006ab4d7d9f17;hb=89023025985f8c0b07bb4e4500c787bfe23d999e;hp=25c36d54f470a7bd4ef363928ff1e27267646e10;hpb=bddfecf27b05ebf105929f29ef23c26d3b258c3c;p=brisk.git diff --git a/web/Obj/dbase_base.phh b/web/Obj/dbase_base.phh index 25c36d5..d7d8068 100644 --- a/web/Obj/dbase_base.phh +++ b/web/Obj/dbase_base.phh @@ -116,6 +116,20 @@ class LoginDBItem { return ($ret_arr); } + function supp_comp_set_array($supp_comp_in) + { + $group_id = array("fg", "bg"); + $comp_id = array("r", "g", "b"); + $supp_comp = ""; + + for ($i = 0 ; $i < 2 ; $i++) { + for ($e = 0 ; $e < 3 ; $e++) { + $supp_comp += sprintf("%02x", $supp_comp_in[$group_id[$i]][$comp_id[$e]]); + } + } + $this->supp_comp = $supp_comp; + } + function supp_comp_set($supp_comp) { $this->supp_comp = $supp_comp;