#set($title = "郵便番号CSVデータアップロード") #set($menukubun = "5") #parse( "/WEB-INF/view/common/header_admin.vm" ) <script language="JavaScript" type="text/JavaScript"> <!-- function PostalcodeUpload(){ document.frm.submit(); /* var fileList = document.getElementById("File").files; var list = ""; for(var i=0; i<fileList.length; i++){ list += fileList[i].name + "<br>"; } alert(list); */ } function fileDownLoad(){ location.href="#q('/admin/setting/postCodeFileRegist/resultFileDownLoad/')"; } --> </script> <div id="contents"> <div id="contents_main"> <div id="breadcrumbsWrap"> </div><!--[ /breadcrumbsWrap ]--> <div id="main" class="clearfix"> <h2 class="contents_title">郵便番号CSVデータアップロード</h2> <div id="right_contents"> <h3 class="table_title">郵便番号CSVファイルを選択して下さい。</h3> <form method="POST" name="frm" enctype="multipart/form-data" action="#q('/admin/setting/postCodeFileRegist/PostalcodeUpload/')" > $tools.getMsgs() <table border="0" cellspacing="0" cellpadding="0" class="stripe2 mgb10 w650"> <tr class="gray"> <td colspan="3"> <input type="file" name="file" size="60" value="$postCodeFileRegistForm.file.getName()" id="File" multiple="multiple"> </td> </tr> <tr class="gray"> <th width="50">説明</th> <td> <a href="http://www.post.japanpost.jp/zipcode/dl/oogaki.html" target="_blank">日本郵便 郵便番号データダウンロードページ</a>よりダウンロードした<br/>CSVファイル(全国一括)をアップロードして下さい。 </td> </tr> </table> </form> <div class="btn_area2" style="width:650px;"> <input type="button" class="button" onclick="PostalcodeUpload()" value="アップロード"> </div> <br/> <!--前回登録エラーファイル --> #if($postCodeFileRegistForm.uploadError) <h3 class="table_title">前回登録結果</h3> <table border="0" cellpadding="0" cellspacing="0" class="stripe" style="word-wrap:break-word;word-break:break-all;"> <thead> <tr> <th class="w200 t_center" align="left">日時</th> <th class="w200 t_center" align="left">ステータス</th> <th class="w200 t_center" align="left">ダウンロード</th> </tr> </thead> <tbody> <tr class="gray"> <td class="t_center dot_line">$date.format("yyyy/MM/dd HH:mm:ss",$postCodeFileRegistForm.uploadError.insertDate)</td> <td class="t_center dot_line">$postCodeFileRegistForm.uploadError.status</td> <td class="t_center dot_line"> #if($postCodeFileRegistForm.uploadError.status == "NG") <a onclick="fileDownLoad()">ダウンロード</a> #end </td> </tr> </tbody> </table> #end <BR><BR><BR><BR><BR> </div> </div> <div id="contents_bottom"> <img src="/em/images/bg_contents_bottom.jpg" width="1036" height="15" /> </div> </div> </div> </div> </div> #parse( "/WEB-INF/view/common/footer_admin.vm" )