--- src/main/java/itn/let/mjo/test/web/TestController.java
+++ src/main/java/itn/let/mjo/test/web/TestController.java
... | ... | @@ -2115,7 +2115,7 @@ |
| 2115 | 2115 |
//Slack으로 메세지 전송 처리 |
| 2116 | 2116 |
MjonCommon comm = new MjonCommon(); |
| 2117 | 2117 |
System.out.println("slack noti");
|
| 2118 |
-// comm.getAdminSandSlack(mjonMsgVO); |
|
| 2118 |
+ comm.getAdminSandSlack(mjonMsgVO); |
|
| 2119 | 2119 |
} |
| 2120 | 2120 |
} |
| 2121 | 2121 |
|
--- src/main/webapp/WEB-INF/jsp/web/api/examDown.jsp
+++ src/main/webapp/WEB-INF/jsp/web/api/examDown.jsp
... | ... | @@ -4,9 +4,14 @@ |
| 4 | 4 |
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> |
| 5 | 5 |
<script language=javascript> |
| 6 | 6 |
$(document).ready(function(){
|
| 7 |
- |
|
| 8 |
- $('#download_btn').click(function(){
|
|
| 9 |
- location.href="<c:out value='/sample_mjon/jsp_샘플_예제.zip' />"; |
|
| 7 |
+ |
|
| 8 |
+ // 예제 다운로드 function |
|
| 9 |
+ $('.download_btn').click(function(){
|
|
| 10 |
+ // click tag에 data-info="" 값 가져옴 |
|
| 11 |
+ var type = $(this).data('info');
|
|
| 12 |
+ var downUrl = "<c:out value='/sample_mjon/type_샘플_예제.zip' />"; |
|
| 13 |
+ downUrl = downUrl.replace('type', type);
|
|
| 14 |
+ location.href = downUrl; |
|
| 10 | 15 |
}); |
| 11 | 16 |
|
| 12 | 17 |
|
... | ... | @@ -29,18 +34,18 @@ |
| 29 | 34 |
<!--예제 다운로드 내용--> |
| 30 | 35 |
<div class="api_download"> |
| 31 | 36 |
<ul class="info"> |
| 32 |
- <li>- 아래 예제(JSP)를 참고하시어 쉽고 편리하게 API를 연동할 수 있습니다.</li> |
|
| 33 |
- <li>- JSP 외 타 예제는 계속해서 업데이트 될 예정입니다.</li> |
|
| 37 |
+ <li>- 아래 예제(JSP, PHP)를 참고하시어 쉽고 편리하게 API를 연동할 수 있습니다.</li> |
|
| 38 |
+ <li>- JSP, PHP 외 타 예제는 계속해서 업데이트 될 예정입니다.</li> |
|
| 34 | 39 |
</ul> |
| 35 | 40 |
|
| 36 | 41 |
<div class="list_tab_wrap2 type2"> |
| 37 | 42 |
<!-- tab button --> |
| 38 | 43 |
<ul class="list_tab"> |
| 39 | 44 |
<li class="tab active"><button type="button" onclick="listTab3(this,'1');">JSP</button> |
| 40 |
- </li><!-- |
|
| 41 |
- <li class="tab"><button type="button" onclick="listTab3(this,'2');">ASP</button> |
|
| 42 | 45 |
</li> |
| 43 |
- <li class="tab"><button type="button" onclick="listTab3(this,'3');">PHP</button> |
|
| 46 |
+ <li class="tab"><button type="button" onclick="listTab3(this,'2');">PHP</button> |
|
| 47 |
+ </li><!-- |
|
| 48 |
+ <li class="tab"><button type="button" onclick="listTab3(this,'3');">ASP</button> |
|
| 44 | 49 |
</li> |
| 45 | 50 |
<li class="tab"><button type="button" onclick="listTab3(this,'4');">.NET</button> |
| 46 | 51 |
</li> |
... | ... | @@ -87,12 +92,51 @@ |
| 87 | 92 |
</div> |
| 88 | 93 |
</div> |
| 89 | 94 |
<div class="btn_area"> |
| 90 |
- <button type="button" class="btnType btnType11" id="download_btn" onclick="return false;">JSP용 예제 다운받기</button> |
|
| 95 |
+ <button type="button" class="btnType btnType11 download_btn" data-info="jsp" onclick="return false;">JSP용 예제 다운받기</button> |
|
| 91 | 96 |
</div> |
| 92 | 97 |
</div> |
| 93 | 98 |
<!--// JSP 다운로드--> |
| 94 |
- <!--ASP 다운로드--> |
|
| 99 |
+ <!--PHP 다운로드--> |
|
| 95 | 100 |
<div class="download_cont" id="listTab3_2"> |
| 101 |
+ <div class="box"> |
|
| 102 |
+ <div class="text"> |
|
| 103 |
+ <h4>PHP Example</h4> |
|
| 104 |
+ <table> |
|
| 105 |
+ <caption>PHP 샘플 파일 설명 테이블</caption> |
|
| 106 |
+ <colgroup> |
|
| 107 |
+ <col style="width:35%;"> |
|
| 108 |
+ <col style="width:65%;"> |
|
| 109 |
+ </colgroup> |
|
| 110 |
+ <tr> |
|
| 111 |
+ <th>php_example_send_msg_r1.php</th> |
|
| 112 |
+ <td>문자보내기(여러명에게 동일한문자)</td> |
|
| 113 |
+ </tr> |
|
| 114 |
+ <tr> |
|
| 115 |
+ <th>php_example_send_msgs_r1.php</th> |
|
| 116 |
+ <td>문자보내기(여러명에게 다른문자)</td> |
|
| 117 |
+ </tr> |
|
| 118 |
+ <tr> |
|
| 119 |
+ <th>php_example_hstry_r1.php</th> |
|
| 120 |
+ <td>전송내역조회</td> |
|
| 121 |
+ </tr> |
|
| 122 |
+ <tr> |
|
| 123 |
+ <th>php_example_hstry_detail_r1.php</th> |
|
| 124 |
+ <td>상세전송내역조회</td> |
|
| 125 |
+ </tr> |
|
| 126 |
+ <tr> |
|
| 127 |
+ <th>php_example_select_price_r1.php</th> |
|
| 128 |
+ <td>발송가능건수</td> |
|
| 129 |
+ </tr> |
|
| 130 |
+ </table> |
|
| 131 |
+ </div> |
|
| 132 |
+ </div> |
|
| 133 |
+ <div class="btn_area"> |
|
| 134 |
+ <button type="button" class="btnType btnType11 download_btn" data-info="php" onclick="return false;">PHP용 예제 다운받기</button> |
|
| 135 |
+ </div> |
|
| 136 |
+ </div> |
|
| 137 |
+ <!--// PHP 다운로드--> |
|
| 138 |
+ <!--ASP 다운로드--> |
|
| 139 |
+ <div class="download_cont" id="listTab3_3"> |
|
| 96 | 140 |
<div class="box"> |
| 97 | 141 |
<div class="text"> |
| 98 | 142 |
<h4>ASP Example</h4> |
... | ... | @@ -130,45 +174,6 @@ |
| 130 | 174 |
</div> |
| 131 | 175 |
</div> |
| 132 | 176 |
<!--// ASP 다운로드--> |
| 133 |
- <!--PHP 다운로드--> |
|
| 134 |
- <div class="download_cont" id="listTab3_3"> |
|
| 135 |
- <div class="box"> |
|
| 136 |
- <div class="text"> |
|
| 137 |
- <h4>PHP Example</h4> |
|
| 138 |
- <table> |
|
| 139 |
- <caption>PHP 샘플 파일 설명 테이블</caption> |
|
| 140 |
- <colgroup> |
|
| 141 |
- <col style="width:35%;"> |
|
| 142 |
- <col style="width:65%;"> |
|
| 143 |
- </colgroup> |
|
| 144 |
- <tr> |
|
| 145 |
- <th>파일명</th> |
|
| 146 |
- <td>파일 설명</td> |
|
| 147 |
- </tr> |
|
| 148 |
- <tr> |
|
| 149 |
- <th>파일명</th> |
|
| 150 |
- <td>파일 설명</td> |
|
| 151 |
- </tr> |
|
| 152 |
- <tr> |
|
| 153 |
- <th>파일명</th> |
|
| 154 |
- <td>파일 설명</td> |
|
| 155 |
- </tr> |
|
| 156 |
- <tr> |
|
| 157 |
- <th>파일명</th> |
|
| 158 |
- <td>파일 설명</td> |
|
| 159 |
- </tr> |
|
| 160 |
- <tr> |
|
| 161 |
- <th>파일명</th> |
|
| 162 |
- <td>파일 설명</td> |
|
| 163 |
- </tr> |
|
| 164 |
- </table> |
|
| 165 |
- </div> |
|
| 166 |
- </div> |
|
| 167 |
- <div class="btn_area"> |
|
| 168 |
- <button type="button" class="btnType btnType11">PHP용 예제 다운받기</button> |
|
| 169 |
- </div> |
|
| 170 |
- </div> |
|
| 171 |
- <!--// PHP 다운로드--> |
|
| 172 | 177 |
<!--.NET 다운로드--> |
| 173 | 178 |
<div class="download_cont" id="listTab3_4"> |
| 174 | 179 |
<div class="box"> |
--- src/main/webapp/sample_mjon/jsp_샘플_예제.zip
+++ src/main/webapp/sample_mjon/jsp_샘플_예제.zip
| Binary file is not shown |
+++ src/main/webapp/sample_mjon/php_샘플_예제.zip
| Binary file is not shown |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?