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

· 19년 전 · 3278
<?
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,081
19년 전 조회 1,961
19년 전 조회 1,820
19년 전 조회 2,004
19년 전 조회 2,043
19년 전 조회 2,098
19년 전 조회 2,834
19년 전 조회 5,479
19년 전 조회 1,884
19년 전 조회 1,731
19년 전 조회 1,585
19년 전 조회 1,753
19년 전 조회 1,693
19년 전 조회 1,613
19년 전 조회 1,620
19년 전 조회 1,538
19년 전 조회 1,595
19년 전 조회 2,965
19년 전 조회 3,984
19년 전 조회 5,373
19년 전 조회 1,536
19년 전 조회 4,706
19년 전 조회 3,134
19년 전 조회 1,651
19년 전 조회 2,841
19년 전 조회 3,774
19년 전 조회 1,941
19년 전 조회 3,950
19년 전 조회 2,024
19년 전 조회 3,925
19년 전 조회 3,569
19년 전 조회 4,354
19년 전 조회 4,205
19년 전 조회 2,031
19년 전 조회 1,998
19년 전 조회 4,422
19년 전 조회 2,821
19년 전 조회 2,698
19년 전 조회 2,544
19년 전 조회 2,129
19년 전 조회 2,716
19년 전 조회 2,345
19년 전 조회 1,999
19년 전 조회 2,130
19년 전 조회 1,584
19년 전 조회 1,831
19년 전 조회 2,982
19년 전 조회 2,099
19년 전 조회 3,357
19년 전 조회 3,279
19년 전 조회 2,382
19년 전 조회 1,938
19년 전 조회 2,968
19년 전 조회 3,035
19년 전 조회 4,161
19년 전 조회 2,132
19년 전 조회 2,783
19년 전 조회 2,481
19년 전 조회 3,618
19년 전 조회 1,562
19년 전 조회 1,624
19년 전 조회 1,912
19년 전 조회 2,360
19년 전 조회 1,980
19년 전 조회 1,859
19년 전 조회 2,250
19년 전 조회 2,345
19년 전 조회 5,104
19년 전 조회 2,489
19년 전 조회 3,348
19년 전 조회 2,804
19년 전 조회 2,562
19년 전 조회 4,845
19년 전 조회 2,706
19년 전 조회 2,549
19년 전 조회 2,102
19년 전 조회 1,886
19년 전 조회 3,494
19년 전 조회 2,472
19년 전 조회 6,308
19년 전 조회 2,173
19년 전 조회 2,054
19년 전 조회 2,854
19년 전 조회 1,953
19년 전 조회 2,422
19년 전 조회 2,254
19년 전 조회 3,703
19년 전 조회 2,707
19년 전 조회 2,893
19년 전 조회 4,518
19년 전 조회 3,690
19년 전 조회 2,457
19년 전 조회 4,451
19년 전 조회 3,422
19년 전 조회 4,286
19년 전 조회 2,157
19년 전 조회 2,350
19년 전 조회 2,293
19년 전 조회 3,492
19년 전 조회 2,862