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

· 19년 전 · 3205
<?
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,999
19년 전 조회 1,893
19년 전 조회 1,739
19년 전 조회 1,934
19년 전 조회 1,980
19년 전 조회 2,029
19년 전 조회 2,773
19년 전 조회 5,405
19년 전 조회 1,815
19년 전 조회 1,658
19년 전 조회 1,512
19년 전 조회 1,676
19년 전 조회 1,616
19년 전 조회 1,532
19년 전 조회 1,539
19년 전 조회 1,455
19년 전 조회 1,531
19년 전 조회 2,885
19년 전 조회 3,905
19년 전 조회 5,301
19년 전 조회 1,461
19년 전 조회 4,621
19년 전 조회 3,064
19년 전 조회 1,564
19년 전 조회 2,771
19년 전 조회 3,702
19년 전 조회 1,868
19년 전 조회 3,883
19년 전 조회 1,955
19년 전 조회 3,856
19년 전 조회 3,507
19년 전 조회 4,283
19년 전 조회 4,132
19년 전 조회 1,959
19년 전 조회 1,921
19년 전 조회 4,344
19년 전 조회 2,749
19년 전 조회 2,618
19년 전 조회 2,470
19년 전 조회 2,060
19년 전 조회 2,641
19년 전 조회 2,271
19년 전 조회 1,921
19년 전 조회 2,062
19년 전 조회 1,511
19년 전 조회 1,765
19년 전 조회 2,908
19년 전 조회 2,018
19년 전 조회 3,291
19년 전 조회 3,206
19년 전 조회 2,318
19년 전 조회 1,856
19년 전 조회 2,895
19년 전 조회 2,972
19년 전 조회 4,086
19년 전 조회 2,059
19년 전 조회 2,706
19년 전 조회 2,416
19년 전 조회 3,541
19년 전 조회 1,503
19년 전 조회 1,558
19년 전 조회 1,856
19년 전 조회 2,285
19년 전 조회 1,911
19년 전 조회 1,788
19년 전 조회 2,190
19년 전 조회 2,275
19년 전 조회 5,033
19년 전 조회 2,404
19년 전 조회 3,271
19년 전 조회 2,727
19년 전 조회 2,495
19년 전 조회 4,774
19년 전 조회 2,630
19년 전 조회 2,481
19년 전 조회 2,021
19년 전 조회 1,810
19년 전 조회 3,424
19년 전 조회 2,398
19년 전 조회 6,228
19년 전 조회 2,097
19년 전 조회 1,982
19년 전 조회 2,783
19년 전 조회 1,884
19년 전 조회 2,355
19년 전 조회 2,185
19년 전 조회 3,627
19년 전 조회 2,641
19년 전 조회 2,827
19년 전 조회 4,439
19년 전 조회 3,610
19년 전 조회 2,392
19년 전 조회 4,366
19년 전 조회 3,351
19년 전 조회 4,203
19년 전 조회 2,076
19년 전 조회 2,285
19년 전 조회 2,211
19년 전 조회 3,413
19년 전 조회 2,785