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

· 19년 전 · 3136
<?
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,917
19년 전 조회 1,813
19년 전 조회 1,656
19년 전 조회 1,845
19년 전 조회 1,897
19년 전 조회 1,948
19년 전 조회 2,698
19년 전 조회 5,321
19년 전 조회 1,727
19년 전 조회 1,576
19년 전 조회 1,439
19년 전 조회 1,599
19년 전 조회 1,532
19년 전 조회 1,451
19년 전 조회 1,460
19년 전 조회 1,383
19년 전 조회 1,447
19년 전 조회 2,813
19년 전 조회 3,831
19년 전 조회 5,217
19년 전 조회 1,385
19년 전 조회 4,548
19년 전 조회 2,989
19년 전 조회 1,496
19년 전 조회 2,693
19년 전 조회 3,620
19년 전 조회 1,789
19년 전 조회 3,796
19년 전 조회 1,880
19년 전 조회 3,779
19년 전 조회 3,424
19년 전 조회 4,212
19년 전 조회 4,057
19년 전 조회 1,882
19년 전 조회 1,846
19년 전 조회 4,280
19년 전 조회 2,682
19년 전 조회 2,550
19년 전 조회 2,410
19년 전 조회 1,982
19년 전 조회 2,568
19년 전 조회 2,202
19년 전 조회 1,849
19년 전 조회 1,976
19년 전 조회 1,448
19년 전 조회 1,701
19년 전 조회 2,841
19년 전 조회 1,953
19년 전 조회 3,224
19년 전 조회 3,137
19년 전 조회 2,248
19년 전 조회 1,795
19년 전 조회 2,836
19년 전 조회 2,906
19년 전 조회 4,023
19년 전 조회 1,987
19년 전 조회 2,636
19년 전 조회 2,344
19년 전 조회 3,472
19년 전 조회 1,426
19년 전 조회 1,493
19년 전 조회 1,775
19년 전 조회 2,217
19년 전 조회 1,839
19년 전 조회 1,705
19년 전 조회 2,118
19년 전 조회 2,210
19년 전 조회 4,968
19년 전 조회 2,337
19년 전 조회 3,203
19년 전 조회 2,649
19년 전 조회 2,416
19년 전 조회 4,709
19년 전 조회 2,565
19년 전 조회 2,412
19년 전 조회 1,951
19년 전 조회 1,735
19년 전 조회 3,359
19년 전 조회 2,331
19년 전 조회 6,160
19년 전 조회 2,024
19년 전 조회 1,904
19년 전 조회 2,709
19년 전 조회 1,815
19년 전 조회 2,282
19년 전 조회 2,116
19년 전 조회 3,565
19년 전 조회 2,578
19년 전 조회 2,755
19년 전 조회 4,373
19년 전 조회 3,557
19년 전 조회 2,315
19년 전 조회 4,302
19년 전 조회 3,276
19년 전 조회 4,141
19년 전 조회 2,002
19년 전 조회 2,217
19년 전 조회 2,145
19년 전 조회 3,354
19년 전 조회 2,723