1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
<?php $dir = "."; include_once($dir."/_common.php");
if($sms_id==''){ alert('SMS 로그인하신 후에 이용가능합니다.',"sms.php"); exit; }
$sms_userid = $sms_id; $sms_pswd = $sms_pw; $cttime = date("YmdHis",time()); $usign = sha1($cttime.sha1($sms_pswd));
if($dealdate!='' && $ty_code!='' && $msg_type!=''){ $loginUrl = "http://psms.mjsoft.co/api/rpt_sent3.php"; // 전송 결과 상세 $login_data = "&uid=$sms_userid&ctime=$cttime&usign=$usign&date_fr={$dealdate}&date_to={$dealdate}&ty_code={$ty_code}&msg_type={$msg_type}"; $result = curl_call($loginUrl,$login_data); $json_data = json_decode($result); } ?> <!--<div id="contents" style="background:#999"><img src="http://placehold.it/960x150" alt="롤링배너"></div>--> <form name='sms_list_form' method='post'> <input type='hidden' name='sel_del' value=''> <div class="div-list-area"> <table class="order-sheet2" style='border-top:1px solid #e0e0e0;'> <caption class="screen_out">발신내역조회<caption> <colgroup> <col style="width:30px;"><col style="width:160px;"><col style="width:80px;"> <col style="width:50px;"> </colgroup>
<thead> <tr> <th scope="col">건</th><th scope="col">발신일시</th><th scope="col">전화번호</th> <th scope="col">구분</th> </tr> </thead> <tbody> <?php $cnt = 1; foreach($json_data->table as $key=>$info){ $v = strtotime($info->WRT_DTTM); $vdate1 = date("Y-m-d H:i:s",$v); ?> <tr> <td class="tcenter "><?php echo $cnt;?></td> <td class="tcenter "><?php echo $vdate1;?></td> <td class="linetxt "><?php echo $info->RCV_PHN_ID;?></td> <td class="tcenter"><?php if($msg_type=='S'){ echo "SMS"; } else { echo "LMS"; }?></td> </tr> <?php $cnt++; } ?> </tbody> </table> </div> </form>
|