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

· 19년 전 · 3328
<?
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,137
19년 전 조회 2,034
19년 전 조회 1,876
19년 전 조회 2,059
19년 전 조회 2,102
19년 전 조회 2,158
19년 전 조회 2,889
19년 전 조회 5,524
19년 전 조회 1,946
19년 전 조회 1,785
19년 전 조회 1,643
19년 전 조회 1,809
19년 전 조회 1,742
19년 전 조회 1,660
19년 전 조회 1,693
19년 전 조회 1,596
19년 전 조회 1,655
19년 전 조회 3,015
19년 전 조회 4,036
19년 전 조회 5,430
19년 전 조회 1,595
19년 전 조회 4,760
19년 전 조회 3,190
19년 전 조회 1,703
19년 전 조회 2,896
19년 전 조회 3,832
19년 전 조회 1,997
19년 전 조회 4,015
19년 전 조회 2,089
19년 전 조회 3,978
19년 전 조회 3,617
19년 전 조회 4,418
19년 전 조회 4,259
19년 전 조회 2,075
19년 전 조회 2,045
19년 전 조회 4,468
19년 전 조회 2,881
19년 전 조회 2,750
19년 전 조회 2,606
19년 전 조회 2,183
19년 전 조회 2,763
19년 전 조회 2,399
19년 전 조회 2,043
19년 전 조회 2,193
19년 전 조회 1,638
19년 전 조회 1,891
19년 전 조회 3,033
19년 전 조회 2,151
19년 전 조회 3,406
19년 전 조회 3,329
19년 전 조회 2,439
19년 전 조회 1,995
19년 전 조회 3,027
19년 전 조회 3,086
19년 전 조회 4,222
19년 전 조회 2,191
19년 전 조회 2,831
19년 전 조회 2,531
19년 전 조회 3,673
19년 전 조회 1,612
19년 전 조회 1,685
19년 전 조회 1,971
19년 전 조회 2,417
19년 전 조회 2,029
19년 전 조회 1,911
19년 전 조회 2,305
19년 전 조회 2,395
19년 전 조회 5,159
19년 전 조회 2,543
19년 전 조회 3,401
19년 전 조회 2,866
19년 전 조회 2,606
19년 전 조회 4,899
19년 전 조회 2,761
19년 전 조회 2,614
19년 전 조회 2,153
19년 전 조회 1,944
19년 전 조회 3,551
19년 전 조회 2,521
19년 전 조회 6,365
19년 전 조회 2,232
19년 전 조회 2,106
19년 전 조회 2,915
19년 전 조회 2,013
19년 전 조회 2,472
19년 전 조회 2,299
19년 전 조회 3,761
19년 전 조회 2,769
19년 전 조회 2,958
19년 전 조회 4,566
19년 전 조회 3,743
19년 전 조회 2,509
19년 전 조회 4,509
19년 전 조회 3,479
19년 전 조회 4,349
19년 전 조회 2,213
19년 전 조회 2,414
19년 전 조회 2,337
19년 전 조회 3,551
19년 전 조회 2,921