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

· 19년 전 · 3132
<?
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,916
19년 전 조회 1,810
19년 전 조회 1,652
19년 전 조회 1,845
19년 전 조회 1,894
19년 전 조회 1,946
19년 전 조회 2,696
19년 전 조회 5,321
19년 전 조회 1,725
19년 전 조회 1,574
19년 전 조회 1,438
19년 전 조회 1,596
19년 전 조회 1,529
19년 전 조회 1,449
19년 전 조회 1,458
19년 전 조회 1,379
19년 전 조회 1,445
19년 전 조회 2,812
19년 전 조회 3,829
19년 전 조회 5,215
19년 전 조회 1,384
19년 전 조회 4,546
19년 전 조회 2,988
19년 전 조회 1,492
19년 전 조회 2,692
19년 전 조회 3,618
19년 전 조회 1,787
19년 전 조회 3,793
19년 전 조회 1,878
19년 전 조회 3,779
19년 전 조회 3,421
19년 전 조회 4,210
19년 전 조회 4,055
19년 전 조회 1,882
19년 전 조회 1,845
19년 전 조회 4,278
19년 전 조회 2,681
19년 전 조회 2,548
19년 전 조회 2,404
19년 전 조회 1,977
19년 전 조회 2,567
19년 전 조회 2,200
19년 전 조회 1,847
19년 전 조회 1,973
19년 전 조회 1,443
19년 전 조회 1,699
19년 전 조회 2,838
19년 전 조회 1,950
19년 전 조회 3,222
19년 전 조회 3,133
19년 전 조회 2,246
19년 전 조회 1,792
19년 전 조회 2,835
19년 전 조회 2,906
19년 전 조회 4,020
19년 전 조회 1,986
19년 전 조회 2,632
19년 전 조회 2,342
19년 전 조회 3,470
19년 전 조회 1,426
19년 전 조회 1,491
19년 전 조회 1,771
19년 전 조회 2,214
19년 전 조회 1,839
19년 전 조회 1,705
19년 전 조회 2,117
19년 전 조회 2,205
19년 전 조회 4,966
19년 전 조회 2,333
19년 전 조회 3,201
19년 전 조회 2,648
19년 전 조회 2,412
19년 전 조회 4,707
19년 전 조회 2,564
19년 전 조회 2,409
19년 전 조회 1,949
19년 전 조회 1,734
19년 전 조회 3,358
19년 전 조회 2,330
19년 전 조회 6,159
19년 전 조회 2,023
19년 전 조회 1,901
19년 전 조회 2,708
19년 전 조회 1,813
19년 전 조회 2,281
19년 전 조회 2,115
19년 전 조회 3,563
19년 전 조회 2,573
19년 전 조회 2,751
19년 전 조회 4,372
19년 전 조회 3,555
19년 전 조회 2,311
19년 전 조회 4,299
19년 전 조회 3,273
19년 전 조회 4,139
19년 전 조회 2,000
19년 전 조회 2,215
19년 전 조회 2,144
19년 전 조회 3,351
19년 전 조회 2,721