xml_load_file($file); } } $file = "http://intra.website.co.kr:9470/mailsms_list_xml.php?user_id=".$_SITE["POSTMAN_ID"]."&s_date=".$_REQUEST[s_date]."&e_date=".$_REQUEST[e_date]."&scale=".$scale."&offset=".$offset; $sxml = new simplexml; $xml = $sxml->xml_load_file($file); } else { $xml_string = file_get_contents("http://intra.website.co.kr:9470/mailsms_list_xml.php?user_id=".$_SITE["POSTMAN_ID"]."&s_date=".$_REQUEST[s_date]."&e_date=".$_REQUEST[e_date]."&scale=".$scale."&offset=".$offset); $enc = mb_detect_encoding($xml_string, array('EUC-KR', 'UTF-8', 'shift_jis', 'CN-GB')); if($enc != 'UTF-8'){ $xml_string = iconv($enc, 'UTF-8', $xml_string); //본인 사이트에 맞는 인코딩으로 변경 } $xml = simplexml_load_string($xml_string); } ?>

메일,문자 발송

충전 결과

문자와 메일은 충전현황은 요청건별/ 월별 리스트로 확인할 수 있으며, 요청결과에 완료표기가 됩니다.
총 충전금액 : totalprice)?>원(VAT포함)
totallist > 0) { if($xml->totallist<10) { $total = $xml->totallist; } else { $total = 10; } for($i=0; $i<$total; $i++) { if($xml->item[$i]->msgb=="SMS") { $bgcolor = "#0a87a6"; } else if($xml->item[$i]->msgb=="MMS") { $bgcolor = "#cb36b1"; } else if($xml->item[$i]->msgb=="LMS") { $bgcolor = "#4ca00f"; } else { $bgcolor = "#000000"; } ?>
날짜 충전내용 건수 금액 요청결과 충전완료일자
item[$i]->wdate?> item[$i]->msgb?> 충전 item[$i]->pea)?>건 item[$i]->price)?>원 item[$i]->bank=="Y"?"충전완료":"요청중"?> item[$i]->cdate,0,10)=="0000-00-00"?"-":$xml->item[$i]->cdate?>
등록된 정보가 없습니다.
total,$scale,$pagescale,$offset,"user_idx=".$_SITE["POSTMAN_ID"]."&s_date=".$_REQUEST[s_date]."&e_date=".$_REQUEST[e_date])?>