include $_SERVER[DOCUMENT_ROOT] . "/backoffice/header.php"; $scale = 10; if(substr(phpversion(),0,1) == "4") { // php4 버전 require_once "simplexml.class.php"; if(!function_exists("simplexml_load_file")){ function simplexml_load_file($file){ $sx = new simplexml; return $sx->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); } ?>
| 날짜 | 충전내용 | 건수 | 금액 | 요청결과 | 충전완료일자 | |||
|---|---|---|---|---|---|---|---|---|
| =$xml->item[$i]->wdate?> | =$xml->item[$i]->msgb?> 충전 | =number_format($xml->item[$i]->pea)?>건 | =number_format($xml->item[$i]->price)?>원 | =$xml->item[$i]->bank=="Y"?"충전완료":"요청중"?> | =substr($xml->item[$i]->cdate,0,10)=="0000-00-00"?"-":$xml->item[$i]->cdate?> | |||
| 등록된 정보가 없습니다. | ||||||||