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

· 19년 전 · 3208
<?
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,003
19년 전 조회 1,894
19년 전 조회 1,742
19년 전 조회 1,937
19년 전 조회 1,983
19년 전 조회 2,029
19년 전 조회 2,777
19년 전 조회 5,410
19년 전 조회 1,819
19년 전 조회 1,661
19년 전 조회 1,515
19년 전 조회 1,678
19년 전 조회 1,621
19년 전 조회 1,535
19년 전 조회 1,543
19년 전 조회 1,461
19년 전 조회 1,534
19년 전 조회 2,890
19년 전 조회 3,910
19년 전 조회 5,305
19년 전 조회 1,463
19년 전 조회 4,623
19년 전 조회 3,064
19년 전 조회 1,568
19년 전 조회 2,773
19년 전 조회 3,705
19년 전 조회 1,870
19년 전 조회 3,884
19년 전 조회 1,960
19년 전 조회 3,856
19년 전 조회 3,509
19년 전 조회 4,285
19년 전 조회 4,133
19년 전 조회 1,961
19년 전 조회 1,925
19년 전 조회 4,347
19년 전 조회 2,751
19년 전 조회 2,619
19년 전 조회 2,475
19년 전 조회 2,063
19년 전 조회 2,642
19년 전 조회 2,275
19년 전 조회 1,924
19년 전 조회 2,063
19년 전 조회 1,514
19년 전 조회 1,771
19년 전 조회 2,909
19년 전 조회 2,022
19년 전 조회 3,294
19년 전 조회 3,209
19년 전 조회 2,322
19년 전 조회 1,861
19년 전 조회 2,900
19년 전 조회 2,974
19년 전 조회 4,090
19년 전 조회 2,062
19년 전 조회 2,706
19년 전 조회 2,417
19년 전 조회 3,543
19년 전 조회 1,506
19년 전 조회 1,560
19년 전 조회 1,859
19년 전 조회 2,291
19년 전 조회 1,912
19년 전 조회 1,791
19년 전 조회 2,193
19년 전 조회 2,278
19년 전 조회 5,035
19년 전 조회 2,407
19년 전 조회 3,273
19년 전 조회 2,731
19년 전 조회 2,499
19년 전 조회 4,775
19년 전 조회 2,632
19년 전 조회 2,481
19년 전 조회 2,022
19년 전 조회 1,810
19년 전 조회 3,428
19년 전 조회 2,399
19년 전 조회 6,229
19년 전 조회 2,100
19년 전 조회 1,986
19년 전 조회 2,787
19년 전 조회 1,884
19년 전 조회 2,358
19년 전 조회 2,187
19년 전 조회 3,632
19년 전 조회 2,643
19년 전 조회 2,829
19년 전 조회 4,443
19년 전 조회 3,614
19년 전 조회 2,394
19년 전 조회 4,369
19년 전 조회 3,353
19년 전 조회 4,206
19년 전 조회 2,081
19년 전 조회 2,286
19년 전 조회 2,213
19년 전 조회 3,417
19년 전 조회 2,791