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

· 19년 전 · 3244
<?
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,043
19년 전 조회 1,931
19년 전 조회 1,796
19년 전 조회 1,982
19년 전 조회 2,020
19년 전 조회 2,070
19년 전 조회 2,811
19년 전 조회 5,448
19년 전 조회 1,856
19년 전 조회 1,703
19년 전 조회 1,560
19년 전 조회 1,721
19년 전 조회 1,658
19년 전 조회 1,575
19년 전 조회 1,585
19년 전 조회 1,505
19년 전 조회 1,572
19년 전 조회 2,933
19년 전 조회 3,955
19년 전 조회 5,346
19년 전 조회 1,503
19년 전 조회 4,670
19년 전 조회 3,105
19년 전 조회 1,615
19년 전 조회 2,807
19년 전 조회 3,749
19년 전 조회 1,914
19년 전 조회 3,921
19년 전 조회 2,004
19년 전 조회 3,895
19년 전 조회 3,546
19년 전 조회 4,330
19년 전 조회 4,175
19년 전 조회 1,996
19년 전 조회 1,967
19년 전 조회 4,391
19년 전 조회 2,785
19년 전 조회 2,671
19년 전 조회 2,517
19년 전 조회 2,103
19년 전 조회 2,690
19년 전 조회 2,315
19년 전 조회 1,971
19년 전 조회 2,103
19년 전 조회 1,556
19년 전 조회 1,806
19년 전 조회 2,951
19년 전 조회 2,061
19년 전 조회 3,327
19년 전 조회 3,245
19년 전 조회 2,357
19년 전 조회 1,906
19년 전 조회 2,942
19년 전 조회 3,011
19년 전 조회 4,131
19년 전 조회 2,102
19년 전 조회 2,747
19년 전 조회 2,454
19년 전 조회 3,580
19년 전 조회 1,538
19년 전 조회 1,598
19년 전 조회 1,886
19년 전 조회 2,335
19년 전 조회 1,950
19년 전 조회 1,828
19년 전 조회 2,229
19년 전 조회 2,315
19년 전 조회 5,078
19년 전 조회 2,454
19년 전 조회 3,319
19년 전 조회 2,774
19년 전 조회 2,539
19년 전 조회 4,823
19년 전 조회 2,681
19년 전 조회 2,521
19년 전 조회 2,065
19년 전 조회 1,853
19년 전 조회 3,468
19년 전 조회 2,448
19년 전 조회 6,274
19년 전 조회 2,141
19년 전 조회 2,028
19년 전 조회 2,827
19년 전 조회 1,921
19년 전 조회 2,393
19년 전 조회 2,222
19년 전 조회 3,673
19년 전 조회 2,682
19년 전 조회 2,866
19년 전 조회 4,485
19년 전 조회 3,660
19년 전 조회 2,431
19년 전 조회 4,417
19년 전 조회 3,398
19년 전 조회 4,256
19년 전 조회 2,126
19년 전 조회 2,324
19년 전 조회 2,254
19년 전 조회 3,462
19년 전 조회 2,835