파일을 엑셀 혹은 워드로 다운 받기

· 19년 전 · 3138
<?
if($DownForWord=="yes"){
header( "Content-type: application/vnd.ms-word" );
header( "Content-Disposition: attachment; filename=${LIST[Company]}.Doc" );
header( "Content-Description: PHP4 Generated Data" );
}
?>
<?
if($DownForExel=="yes"){
header( "Content-type: application/vnd.ms-excel" );
header( "Content-Disposition: attachment; filename=${LIST[Company]}.xls" );
header( "Content-Description: PHP4 Generated Data" );
}
?>



<SCRIPT>
function DownForWord(UID,CURRENT_PAGE){
file_url = "<?=$PHP_SELF?>?UID="+UID+"&CURRENT_PAGE="+CURRENT_PAGE+"&DownForWord=yes";
location.href=file_url;
}
function DownForExel(UID,CURRENT_PAGE){
file_url ="<?=$PHP_SELF?>?UID="+UID+"&CURRENT_PAGE="+CURRENT_PAGE+"&DownForExel=yes";
location.href=file_url;
}
</SCRIPT>



<input type="button" name="Button" value="다운(엑셀)" onClick="javascript:DownForExel('<?=$UID;?>','<?=$CURRENT_PAGE;?>');" style="cursor:hand";>
<input type="button" name="Button" value="다운(워드)" onClick="javascript:DownForWord('<?=$UID;?>','<?=$CURRENT_PAGE;?>');" style="cursor:hand";><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:12:10 PHP & HTML에서 이동 됨]</div>
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
19년 전 조회 1,919
19년 전 조회 1,813
19년 전 조회 1,658
19년 전 조회 1,845
19년 전 조회 1,897
19년 전 조회 1,949
19년 전 조회 2,699
19년 전 조회 5,322
19년 전 조회 1,729
19년 전 조회 1,578
19년 전 조회 1,441
19년 전 조회 1,600
19년 전 조회 1,534
19년 전 조회 1,453
19년 전 조회 1,462
19년 전 조회 1,385
19년 전 조회 1,448
19년 전 조회 2,813
19년 전 조회 3,831
19년 전 조회 5,219
19년 전 조회 1,388
19년 전 조회 4,550
19년 전 조회 2,991
19년 전 조회 1,497
19년 전 조회 2,695
19년 전 조회 3,622
19년 전 조회 1,793
19년 전 조회 3,798
19년 전 조회 1,882
19년 전 조회 3,782
19년 전 조회 3,426
19년 전 조회 4,214
19년 전 조회 4,059
19년 전 조회 1,883
19년 전 조회 1,849
19년 전 조회 4,282
19년 전 조회 2,684
19년 전 조회 2,550
19년 전 조회 2,410
19년 전 조회 1,983
19년 전 조회 2,570
19년 전 조회 2,206
19년 전 조회 1,850
19년 전 조회 1,977
19년 전 조회 1,449
19년 전 조회 1,702
19년 전 조회 2,843
19년 전 조회 1,953
19년 전 조회 3,225
19년 전 조회 3,139
19년 전 조회 2,250
19년 전 조회 1,798
19년 전 조회 2,838
19년 전 조회 2,908
19년 전 조회 4,024
19년 전 조회 1,991
19년 전 조회 2,639
19년 전 조회 2,346
19년 전 조회 3,474
19년 전 조회 1,428
19년 전 조회 1,497
19년 전 조회 1,776
19년 전 조회 2,217
19년 전 조회 1,840
19년 전 조회 1,707
19년 전 조회 2,120
19년 전 조회 2,212
19년 전 조회 4,971
19년 전 조회 2,337
19년 전 조회 3,205
19년 전 조회 2,651
19년 전 조회 2,417
19년 전 조회 4,713
19년 전 조회 2,566
19년 전 조회 2,413
19년 전 조회 1,952
19년 전 조회 1,736
19년 전 조회 3,360
19년 전 조회 2,333
19년 전 조회 6,162
19년 전 조회 2,026
19년 전 조회 1,905
19년 전 조회 2,712
19년 전 조회 1,817
19년 전 조회 2,283
19년 전 조회 2,117
19년 전 조회 3,567
19년 전 조회 2,579
19년 전 조회 2,755
19년 전 조회 4,378
19년 전 조회 3,559
19년 전 조회 2,317
19년 전 조회 4,304
19년 전 조회 3,277
19년 전 조회 4,143
19년 전 조회 2,002
19년 전 조회 2,218
19년 전 조회 2,146
19년 전 조회 3,356
19년 전 조회 2,724