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

· 19년 전 · 3121
<?
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,904
19년 전 조회 1,793
19년 전 조회 1,639
19년 전 조회 1,832
19년 전 조회 1,878
19년 전 조회 1,936
19년 전 조회 2,681
19년 전 조회 5,308
19년 전 조회 1,713
19년 전 조회 1,559
19년 전 조회 1,425
19년 전 조회 1,583
19년 전 조회 1,517
19년 전 조회 1,437
19년 전 조회 1,442
19년 전 조회 1,365
19년 전 조회 1,434
19년 전 조회 2,798
19년 전 조회 3,814
19년 전 조회 5,202
19년 전 조회 1,367
19년 전 조회 4,533
19년 전 조회 2,976
19년 전 조회 1,485
19년 전 조회 2,681
19년 전 조회 3,607
19년 전 조회 1,774
19년 전 조회 3,779
19년 전 조회 1,866
19년 전 조회 3,766
19년 전 조회 3,414
19년 전 조회 4,195
19년 전 조회 4,041
19년 전 조회 1,869
19년 전 조회 1,835
19년 전 조회 4,265
19년 전 조회 2,668
19년 전 조회 2,536
19년 전 조회 2,391
19년 전 조회 1,966
19년 전 조회 2,555
19년 전 조회 2,188
19년 전 조회 1,838
19년 전 조회 1,957
19년 전 조회 1,431
19년 전 조회 1,684
19년 전 조회 2,825
19년 전 조회 1,939
19년 전 조회 3,210
19년 전 조회 3,122
19년 전 조회 2,232
19년 전 조회 1,778
19년 전 조회 2,825
19년 전 조회 2,890
19년 전 조회 4,004
19년 전 조회 1,966
19년 전 조회 2,617
19년 전 조회 2,329
19년 전 조회 3,456
19년 전 조회 1,414
19년 전 조회 1,479
19년 전 조회 1,761
19년 전 조회 2,202
19년 전 조회 1,829
19년 전 조회 1,690
19년 전 조회 2,101
19년 전 조회 2,197
19년 전 조회 4,952
19년 전 조회 2,323
19년 전 조회 3,189
19년 전 조회 2,638
19년 전 조회 2,402
19년 전 조회 4,694
19년 전 조회 2,550
19년 전 조회 2,399
19년 전 조회 1,936
19년 전 조회 1,719
19년 전 조회 3,344
19년 전 조회 2,317
19년 전 조회 6,148
19년 전 조회 2,009
19년 전 조회 1,893
19년 전 조회 2,695
19년 전 조회 1,794
19년 전 조회 2,269
19년 전 조회 2,100
19년 전 조회 3,549
19년 전 조회 2,567
19년 전 조회 2,738
19년 전 조회 4,359
19년 전 조회 3,539
19년 전 조회 2,301
19년 전 조회 4,287
19년 전 조회 3,260
19년 전 조회 4,125
19년 전 조회 1,988
19년 전 조회 2,203
19년 전 조회 2,130
19년 전 조회 3,336
19년 전 조회 2,708
🐛 버그신고