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

· 19년 전 · 3397
<?
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,227
19년 전 조회 2,114
19년 전 조회 1,952
19년 전 조회 2,128
19년 전 조회 2,173
19년 전 조회 2,231
19년 전 조회 2,961
19년 전 조회 5,601
19년 전 조회 2,024
19년 전 조회 1,864
19년 전 조회 1,721
19년 전 조회 1,897
19년 전 조회 1,812
19년 전 조회 1,738
19년 전 조회 1,771
19년 전 조회 1,669
19년 전 조회 1,724
19년 전 조회 3,091
19년 전 조회 4,125
19년 전 조회 5,508
19년 전 조회 1,679
19년 전 조회 4,843
19년 전 조회 3,286
19년 전 조회 1,772
19년 전 조회 2,967
19년 전 조회 3,905
19년 전 조회 2,070
19년 전 조회 4,089
19년 전 조회 2,167
19년 전 조회 4,055
19년 전 조회 3,686
19년 전 조회 4,484
19년 전 조회 4,342
19년 전 조회 2,151
19년 전 조회 2,112
19년 전 조회 4,553
19년 전 조회 2,960
19년 전 조회 2,825
19년 전 조회 2,686
19년 전 조회 2,256
19년 전 조회 2,861
19년 전 조회 2,472
19년 전 조회 2,120
19년 전 조회 2,251
19년 전 조회 1,710
19년 전 조회 1,967
19년 전 조회 3,112
19년 전 조회 2,218
19년 전 조회 3,473
19년 전 조회 3,398
19년 전 조회 2,516
19년 전 조회 2,076
19년 전 조회 3,099
19년 전 조회 3,159
19년 전 조회 4,290
19년 전 조회 2,243
19년 전 조회 2,919
19년 전 조회 2,609
19년 전 조회 3,746
19년 전 조회 1,693
19년 전 조회 1,754
19년 전 조회 2,041
19년 전 조회 2,484
19년 전 조회 2,099
19년 전 조회 1,982
19년 전 조회 2,380
19년 전 조회 2,472
19년 전 조회 5,229
19년 전 조회 2,611
19년 전 조회 3,473
19년 전 조회 2,930
19년 전 조회 2,687
19년 전 조회 4,974
19년 전 조회 2,834
19년 전 조회 2,679
19년 전 조회 2,240
19년 전 조회 2,008
19년 전 조회 3,640
19년 전 조회 2,595
19년 전 조회 6,440
19년 전 조회 2,321
19년 전 조회 2,176
19년 전 조회 2,994
19년 전 조회 2,093
19년 전 조회 2,539
19년 전 조회 2,377
19년 전 조회 3,843
19년 전 조회 2,837
19년 전 조회 3,041
19년 전 조회 4,640
19년 전 조회 3,841
19년 전 조회 2,574
19년 전 조회 4,574
19년 전 조회 3,553
19년 전 조회 4,428
19년 전 조회 2,284
19년 전 조회 2,493
19년 전 조회 2,424
19년 전 조회 3,627
19년 전 조회 3,010