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

· 19년 전 · 3271
<?
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년 전 조회 2,067
19년 전 조회 1,952
19년 전 조회 1,814
19년 전 조회 2,000
19년 전 조회 2,035
19년 전 조회 2,088
19년 전 조회 2,830
19년 전 조회 5,466
19년 전 조회 1,874
19년 전 조회 1,719
19년 전 조회 1,573
19년 전 조회 1,742
19년 전 조회 1,682
19년 전 조회 1,603
19년 전 조회 1,607
19년 전 조회 1,528
19년 전 조회 1,588
19년 전 조회 2,954
19년 전 조회 3,973
19년 전 조회 5,364
19년 전 조회 1,528
19년 전 조회 4,693
19년 전 조회 3,120
19년 전 조회 1,638
19년 전 조회 2,833
19년 전 조회 3,765
19년 전 조회 1,933
19년 전 조회 3,944
19년 전 조회 2,018
19년 전 조회 3,916
19년 전 조회 3,563
19년 전 조회 4,349
19년 전 조회 4,190
19년 전 조회 2,015
19년 전 조회 1,989
19년 전 조회 4,413
19년 전 조회 2,812
19년 전 조회 2,686
19년 전 조회 2,535
19년 전 조회 2,117
19년 전 조회 2,705
19년 전 조회 2,337
19년 전 조회 1,993
19년 전 조회 2,124
19년 전 조회 1,575
19년 전 조회 1,825
19년 전 조회 2,973
19년 전 조회 2,084
19년 전 조회 3,347
19년 전 조회 3,272
19년 전 조회 2,374
19년 전 조회 1,928
19년 전 조회 2,964
19년 전 조회 3,029
19년 전 조회 4,154
19년 전 조회 2,124
19년 전 조회 2,771
19년 전 조회 2,473
19년 전 조회 3,608
19년 전 조회 1,552
19년 전 조회 1,619
19년 전 조회 1,904
19년 전 조회 2,357
19년 전 조회 1,969
19년 전 조회 1,848
19년 전 조회 2,244
19년 전 조회 2,338
19년 전 조회 5,093
19년 전 조회 2,479
19년 전 조회 3,333
19년 전 조회 2,792
19년 전 조회 2,552
19년 전 조회 4,839
19년 전 조회 2,696
19년 전 조회 2,539
19년 전 조회 2,090
19년 전 조회 1,876
19년 전 조회 3,486
19년 전 조회 2,460
19년 전 조회 6,297
19년 전 조회 2,163
19년 전 조회 2,047
19년 전 조회 2,843
19년 전 조회 1,941
19년 전 조회 2,417
19년 전 조회 2,242
19년 전 조회 3,696
19년 전 조회 2,697
19년 전 조회 2,884
19년 전 조회 4,508
19년 전 조회 3,680
19년 전 조회 2,445
19년 전 조회 4,439
19년 전 조회 3,414
19년 전 조회 4,276
19년 전 조회 2,144
19년 전 조회 2,337
19년 전 조회 2,279
19년 전 조회 3,485
19년 전 조회 2,857