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

· 19년 전 · 3195
<?
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,990
19년 전 조회 1,883
19년 전 조회 1,729
19년 전 조회 1,928
19년 전 조회 1,970
19년 전 조회 2,016
19년 전 조회 2,761
19년 전 조회 5,394
19년 전 조회 1,801
19년 전 조회 1,649
19년 전 조회 1,506
19년 전 조회 1,669
19년 전 조회 1,611
19년 전 조회 1,523
19년 전 조회 1,526
19년 전 조회 1,449
19년 전 조회 1,523
19년 전 조회 2,877
19년 전 조회 3,891
19년 전 조회 5,287
19년 전 조회 1,452
19년 전 조회 4,613
19년 전 조회 3,054
19년 전 조회 1,558
19년 전 조회 2,760
19년 전 조회 3,694
19년 전 조회 1,857
19년 전 조회 3,869
19년 전 조회 1,949
19년 전 조회 3,846
19년 전 조회 3,495
19년 전 조회 4,274
19년 전 조회 4,121
19년 전 조회 1,951
19년 전 조회 1,915
19년 전 조회 4,332
19년 전 조회 2,742
19년 전 조회 2,611
19년 전 조회 2,463
19년 전 조회 2,048
19년 전 조회 2,635
19년 전 조회 2,263
19년 전 조회 1,913
19년 전 조회 2,046
19년 전 조회 1,504
19년 전 조회 1,760
19년 전 조회 2,894
19년 전 조회 2,014
19년 전 조회 3,282
19년 전 조회 3,196
19년 전 조회 2,309
19년 전 조회 1,844
19년 전 조회 2,885
19년 전 조회 2,967
19년 전 조회 4,077
19년 전 조회 2,051
19년 전 조회 2,697
19년 전 조회 2,407
19년 전 조회 3,528
19년 전 조회 1,488
19년 전 조회 1,544
19년 전 조회 1,843
19년 전 조회 2,280
19년 전 조회 1,899
19년 전 조회 1,775
19년 전 조회 2,182
19년 전 조회 2,266
19년 전 조회 5,025
19년 전 조회 2,396
19년 전 조회 3,266
19년 전 조회 2,720
19년 전 조회 2,484
19년 전 조회 4,765
19년 전 조회 2,618
19년 전 조회 2,470
19년 전 조회 2,016
19년 전 조회 1,802
19년 전 조회 3,414
19년 전 조회 2,392
19년 전 조회 6,214
19년 전 조회 2,089
19년 전 조회 1,977
19년 전 조회 2,772
19년 전 조회 1,872
19년 전 조회 2,345
19년 전 조회 2,174
19년 전 조회 3,616
19년 전 조회 2,633
19년 전 조회 2,814
19년 전 조회 4,427
19년 전 조회 3,603
19년 전 조회 2,384
19년 전 조회 4,360
19년 전 조회 3,344
19년 전 조회 4,194
19년 전 조회 2,069
19년 전 조회 2,274
19년 전 조회 2,202
19년 전 조회 3,409
19년 전 조회 2,777