$creditcsetmode = $db->f(fd_creditcset_arrivetime); $moneyqj = $db->f(fd_creditcset_moneyqj); $checked = $creditcsetfee ? "" : "checked "; $action = "edit"; } } $query = "select * from tb_bank"; $db->query($query); if ($db->nf()) { while ($db->next_record()) { $arr_bankid[] = $db->f(fd_bank_id); $arr_bankname[] = $db->f(fd_bank_name); } } $bankname = makeselect($arr_bankname, $bankid, $arr_bankid); $moneyqj = getmoneyqj(1, $moneyqj); $query = "select * from tb_arrive "; $db->query($query); if ($db->nf()) { while ($db->next_record()) { $arr_arriveid[] = $db->f(fd_arrive_id); $arr_arrivename[] = $db->f(fd_arrive_name); } } $creditcsetmode = makeselect($arr_arrivename, $creditcsetmode, $arr_arriveid); $t->set_var("checked", $checked); $t->set_var("creditcsetid", $creditcsetid); $t->set_var("bankname", $bankname); $t->set_var("creditcsetfee", $creditcsetfee); $t->set_var("creditcsetmode", $creditcsetmode); $t->set_var("moneyqj", $moneyqj);
} else { $query = "select * from tb_transfermoneyset where fd_transfermoneyset_id ='{$listid}'"; $db->query($query); if ($db->nf()) { $db->next_record(); $transfermoneysetid = $db->f(fd_transfermoneyset_id); $bankid = $db->f(fd_transfermoneyset_bankid); $transfermoneysetfee = $db->f(fd_transfermoneyset_fee); $transfermoneysetmode = $db->f(fd_transfermoneyset_arrivemode); $arrivetime = $db->f(fd_transfermoneyset_arrivetime); $moneyqj = $db->f(fd_transfermoneyset_moneyqj); $checked = $transfermoneysetfee ? "" : "checked "; $action = 'edit'; } } $moneyqj = getmoneyqj(2, $moneyqj); $query = "select * from tb_bank"; $db->query($query); if ($db->nf()) { while ($db->next_record()) { $arr_bankid[] = $db->f(fd_bank_id); $arr_bankname[] = $db->f(fd_bank_name); } } $bankname = makeselect($arr_bankname, $bankid, $arr_bankid); $query = "select * from tb_arrive "; $db->query($query); if ($db->nf()) { while ($db->next_record()) { $arr_arriveid[] = $db->f(fd_arrive_id); $arr_arrivename[] = $db->f(fd_arrive_name);
} else { $query = "select * from tb_repaymoneyset where fd_repaymoneyset_id ='{$listid}'"; $db->query($query); if ($db->nf()) { $db->next_record(); $repaymoneysetid = $db->f(fd_repaymoneyset_id); $bankid = $db->f(fd_repaymoneyset_bankid); $repaymoneysetfee = $db->f(fd_repaymoneyset_fee); $tradememo = $db->f(fd_repaymoneyset_tradememo); $arrivetime = $db->f(fd_repaymoneyset_arrivetime); $moneyqj = $db->f(fd_repaymoneyset_moneyqj); $checked = $repaymoneysetfee ? "" : "checked "; $action = "edit"; } } $moneyqj = getmoneyqj(3, $moneyqj); $query = "select * from tb_bank"; $db->query($query); if ($db->nf()) { while ($db->next_record()) { $arr_bankid[] = $db->f(fd_bank_id); $arr_bankname[] = $db->f(fd_bank_name); } } $bankname = makeselect($arr_bankname, $bankid, $arr_bankid); $query = "select * from tb_arrive "; $db->query($query); if ($db->nf()) { while ($db->next_record()) { $arr_arriveid[] = $db->f(fd_arrive_id); $arr_arrivename[] = $db->f(fd_arrive_name);