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

· 19년 전 · 3389
<?
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,216
19년 전 조회 2,103
19년 전 조회 1,946
19년 전 조회 2,121
19년 전 조회 2,169
19년 전 조회 2,225
19년 전 조회 2,958
19년 전 조회 5,599
19년 전 조회 2,018
19년 전 조회 1,854
19년 전 조회 1,716
19년 전 조회 1,889
19년 전 조회 1,804
19년 전 조회 1,731
19년 전 조회 1,763
19년 전 조회 1,667
19년 전 조회 1,717
19년 전 조회 3,085
19년 전 조회 4,118
19년 전 조회 5,499
19년 전 조회 1,675
19년 전 조회 4,840
19년 전 조회 3,280
19년 전 조회 1,766
19년 전 조회 2,960
19년 전 조회 3,902
19년 전 조회 2,061
19년 전 조회 4,081
19년 전 조회 2,163
19년 전 조회 4,046
19년 전 조회 3,683
19년 전 조회 4,479
19년 전 조회 4,336
19년 전 조회 2,145
19년 전 조회 2,103
19년 전 조회 4,541
19년 전 조회 2,954
19년 전 조회 2,816
19년 전 조회 2,679
19년 전 조회 2,247
19년 전 조회 2,850
19년 전 조회 2,468
19년 전 조회 2,114
19년 전 조회 2,245
19년 전 조회 1,704
19년 전 조회 1,962
19년 전 조회 3,100
19년 전 조회 2,215
19년 전 조회 3,467
19년 전 조회 3,390
19년 전 조회 2,507
19년 전 조회 2,068
19년 전 조회 3,092
19년 전 조회 3,153
19년 전 조회 4,287
19년 전 조회 2,235
19년 전 조회 2,911
19년 전 조회 2,598
19년 전 조회 3,739
19년 전 조회 1,685
19년 전 조회 1,746
19년 전 조회 2,026
19년 전 조회 2,473
19년 전 조회 2,091
19년 전 조회 1,975
19년 전 조회 2,370
19년 전 조회 2,461
19년 전 조회 5,218
19년 전 조회 2,602
19년 전 조회 3,464
19년 전 조회 2,923
19년 전 조회 2,679
19년 전 조회 4,967
19년 전 조회 2,825
19년 전 조회 2,669
19년 전 조회 2,229
19년 전 조회 2,003
19년 전 조회 3,631
19년 전 조회 2,587
19년 전 조회 6,430
19년 전 조회 2,311
19년 전 조회 2,169
19년 전 조회 2,984
19년 전 조회 2,082
19년 전 조회 2,528
19년 전 조회 2,366
19년 전 조회 3,836
19년 전 조회 2,830
19년 전 조회 3,029
19년 전 조회 4,634
19년 전 조회 3,831
19년 전 조회 2,567
19년 전 조회 4,569
19년 전 조회 3,546
19년 전 조회 4,420
19년 전 조회 2,275
19년 전 조회 2,488
19년 전 조회 2,416
19년 전 조회 3,615
19년 전 조회 3,000