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

· 19년 전 · 3145
<?
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,929
19년 전 조회 1,826
19년 전 조회 1,669
19년 전 조회 1,859
19년 전 조회 1,909
19년 전 조회 1,961
19년 전 조회 2,711
19년 전 조회 5,333
19년 전 조회 1,738
19년 전 조회 1,594
19년 전 조회 1,448
19년 전 조회 1,610
19년 전 조회 1,545
19년 전 조회 1,465
19년 전 조회 1,475
19년 전 조회 1,392
19년 전 조회 1,466
19년 전 조회 2,819
19년 전 조회 3,835
19년 전 조회 5,228
19년 전 조회 1,396
19년 전 조회 4,559
19년 전 조회 2,997
19년 전 조회 1,510
19년 전 조회 2,702
19년 전 조회 3,634
19년 전 조회 1,805
19년 전 조회 3,810
19년 전 조회 1,891
19년 전 조회 3,789
19년 전 조회 3,430
19년 전 조회 4,222
19년 전 조회 4,067
19년 전 조회 1,890
19년 전 조회 1,863
19년 전 조회 4,288
19년 전 조회 2,691
19년 전 조회 2,558
19년 전 조회 2,419
19년 전 조회 1,990
19년 전 조회 2,578
19년 전 조회 2,210
19년 전 조회 1,860
19년 전 조회 1,988
19년 전 조회 1,452
19년 전 조회 1,711
19년 전 조회 2,849
19년 전 조회 1,962
19년 전 조회 3,235
19년 전 조회 3,146
19년 전 조회 2,258
19년 전 조회 1,806
19년 전 조회 2,845
19년 전 조회 2,919
19년 전 조회 4,031
19년 전 조회 1,999
19년 전 조회 2,642
19년 전 조회 2,358
19년 전 조회 3,483
19년 전 조회 1,438
19년 전 조회 1,500
19년 전 조회 1,783
19년 전 조회 2,227
19년 전 조회 1,849
19년 전 조회 1,714
19년 전 조회 2,130
19년 전 조회 2,217
19년 전 조회 4,975
19년 전 조회 2,345
19년 전 조회 3,214
19년 전 조회 2,660
19년 전 조회 2,434
19년 전 조회 4,719
19년 전 조회 2,571
19년 전 조회 2,417
19년 전 조회 1,963
19년 전 조회 1,744
19년 전 조회 3,369
19년 전 조회 2,344
19년 전 조회 6,167
19년 전 조회 2,033
19년 전 조회 1,915
19년 전 조회 2,716
19년 전 조회 1,823
19년 전 조회 2,292
19년 전 조회 2,123
19년 전 조회 3,573
19년 전 조회 2,588
19년 전 조회 2,762
19년 전 조회 4,382
19년 전 조회 3,563
19년 전 조회 2,326
19년 전 조회 4,306
19년 전 조회 3,287
19년 전 조회 4,150
19년 전 조회 2,011
19년 전 조회 2,226
19년 전 조회 2,155
19년 전 조회 3,361
19년 전 조회 2,734