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

· 19년 전 · 3143
<?
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,927
19년 전 조회 1,824
19년 전 조회 1,666
19년 전 조회 1,853
19년 전 조회 1,907
19년 전 조회 1,958
19년 전 조회 2,710
19년 전 조회 5,330
19년 전 조회 1,737
19년 전 조회 1,587
19년 전 조회 1,446
19년 전 조회 1,608
19년 전 조회 1,540
19년 전 조회 1,460
19년 전 조회 1,473
19년 전 조회 1,390
19년 전 조회 1,456
19년 전 조회 2,815
19년 전 조회 3,834
19년 전 조회 5,226
19년 전 조회 1,393
19년 전 조회 4,558
19년 전 조회 2,996
19년 전 조회 1,507
19년 전 조회 2,697
19년 전 조회 3,629
19년 전 조회 1,802
19년 전 조회 3,805
19년 전 조회 1,887
19년 전 조회 3,788
19년 전 조회 3,430
19년 전 조회 4,220
19년 전 조회 4,067
19년 전 조회 1,887
19년 전 조회 1,857
19년 전 조회 4,286
19년 전 조회 2,687
19년 전 조회 2,554
19년 전 조회 2,416
19년 전 조회 1,987
19년 전 조회 2,577
19년 전 조회 2,210
19년 전 조회 1,859
19년 전 조회 1,986
19년 전 조회 1,451
19년 전 조회 1,708
19년 전 조회 2,847
19년 전 조회 1,959
19년 전 조회 3,233
19년 전 조회 3,144
19년 전 조회 2,254
19년 전 조회 1,803
19년 전 조회 2,843
19년 전 조회 2,918
19년 전 조회 4,029
19년 전 조회 1,998
19년 전 조회 2,641
19년 전 조회 2,355
19년 전 조회 3,482
19년 전 조회 1,435
19년 전 조회 1,498
19년 전 조회 1,782
19년 전 조회 2,224
19년 전 조회 1,847
19년 전 조회 1,712
19년 전 조회 2,128
19년 전 조회 2,215
19년 전 조회 4,973
19년 전 조회 2,344
19년 전 조회 3,210
19년 전 조회 2,659
19년 전 조회 2,427
19년 전 조회 4,716
19년 전 조회 2,567
19년 전 조회 2,415
19년 전 조회 1,960
19년 전 조회 1,740
19년 전 조회 3,368
19년 전 조회 2,340
19년 전 조회 6,166
19년 전 조회 2,032
19년 전 조회 1,912
19년 전 조회 2,716
19년 전 조회 1,823
19년 전 조회 2,290
19년 전 조회 2,120
19년 전 조회 3,572
19년 전 조회 2,585
19년 전 조회 2,761
19년 전 조회 4,381
19년 전 조회 3,562
19년 전 조회 2,322
19년 전 조회 4,306
19년 전 조회 3,284
19년 전 조회 4,148
19년 전 조회 2,009
19년 전 조회 2,223
19년 전 조회 2,153
19년 전 조회 3,361
19년 전 조회 2,730