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

· 19년 전 · 3139
<?
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,919
19년 전 조회 1,817
19년 전 조회 1,658
19년 전 조회 1,846
19년 전 조회 1,898
19년 전 조회 1,953
19년 전 조회 2,701
19년 전 조회 5,323
19년 전 조회 1,730
19년 전 조회 1,579
19년 전 조회 1,441
19년 전 조회 1,602
19년 전 조회 1,534
19년 전 조회 1,454
19년 전 조회 1,465
19년 전 조회 1,385
19년 전 조회 1,450
19년 전 조회 2,813
19년 전 조회 3,832
19년 전 조회 5,222
19년 전 조회 1,391
19년 전 조회 4,551
19년 전 조회 2,992
19년 전 조회 1,500
19년 전 조회 2,696
19년 전 조회 3,623
19년 전 조회 1,796
19년 전 조회 3,800
19년 전 조회 1,882
19년 전 조회 3,783
19년 전 조회 3,428
19년 전 조회 4,218
19년 전 조회 4,062
19년 전 조회 1,884
19년 전 조회 1,850
19년 전 조회 4,282
19년 전 조회 2,684
19년 전 조회 2,551
19년 전 조회 2,411
19년 전 조회 1,983
19년 전 조회 2,571
19년 전 조회 2,206
19년 전 조회 1,853
19년 전 조회 1,982
19년 전 조회 1,449
19년 전 조회 1,704
19년 전 조회 2,844
19년 전 조회 1,953
19년 전 조회 3,229
19년 전 조회 3,140
19년 전 조회 2,253
19년 전 조회 1,798
19년 전 조회 2,840
19년 전 조회 2,909
19년 전 조회 4,026
19년 전 조회 1,992
19년 전 조회 2,639
19년 전 조회 2,347
19년 전 조회 3,474
19년 전 조회 1,431
19년 전 조회 1,497
19년 전 조회 1,777
19년 전 조회 2,219
19년 전 조회 1,840
19년 전 조회 1,708
19년 전 조회 2,122
19년 전 조회 2,214
19년 전 조회 4,971
19년 전 조회 2,338
19년 전 조회 3,205
19년 전 조회 2,651
19년 전 조회 2,419
19년 전 조회 4,713
19년 전 조회 2,566
19년 전 조회 2,413
19년 전 조회 1,952
19년 전 조회 1,737
19년 전 조회 3,365
19년 전 조회 2,335
19년 전 조회 6,163
19년 전 조회 2,029
19년 전 조회 1,907
19년 전 조회 2,713
19년 전 조회 1,818
19년 전 조회 2,284
19년 전 조회 2,118
19년 전 조회 3,568
19년 전 조회 2,580
19년 전 조회 2,755
19년 전 조회 4,378
19년 전 조회 3,559
19년 전 조회 2,317
19년 전 조회 4,304
19년 전 조회 3,280
19년 전 조회 4,144
19년 전 조회 2,004
19년 전 조회 2,219
19년 전 조회 2,148
19년 전 조회 3,357
19년 전 조회 2,724