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

· 19년 전 · 3127
<?
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,908
19년 전 조회 1,797
19년 전 조회 1,645
19년 전 조회 1,837
19년 전 조회 1,885
19년 전 조회 1,940
19년 전 조회 2,687
19년 전 조회 5,314
19년 전 조회 1,718
19년 전 조회 1,564
19년 전 조회 1,432
19년 전 조회 1,589
19년 전 조회 1,522
19년 전 조회 1,441
19년 전 조회 1,448
19년 전 조회 1,371
19년 전 조회 1,438
19년 전 조회 2,803
19년 전 조회 3,821
19년 전 조회 5,208
19년 전 조회 1,373
19년 전 조회 4,538
19년 전 조회 2,982
19년 전 조회 1,491
19년 전 조회 2,686
19년 전 조회 3,613
19년 전 조회 1,780
19년 전 조회 3,784
19년 전 조회 1,872
19년 전 조회 3,771
19년 전 조회 3,418
19년 전 조회 4,200
19년 전 조회 4,047
19년 전 조회 1,873
19년 전 조회 1,841
19년 전 조회 4,271
19년 전 조회 2,674
19년 전 조회 2,541
19년 전 조회 2,399
19년 전 조회 1,971
19년 전 조회 2,562
19년 전 조회 2,194
19년 전 조회 1,841
19년 전 조회 1,964
19년 전 조회 1,437
19년 전 조회 1,690
19년 전 조회 2,832
19년 전 조회 1,944
19년 전 조회 3,215
19년 전 조회 3,128
19년 전 조회 2,238
19년 전 조회 1,785
19년 전 조회 2,830
19년 전 조회 2,898
19년 전 조회 4,010
19년 전 조회 1,973
19년 전 조회 2,622
19년 전 조회 2,335
19년 전 조회 3,462
19년 전 조회 1,420
19년 전 조회 1,485
19년 전 조회 1,766
19년 전 조회 2,207
19년 전 조회 1,833
19년 전 조회 1,696
19년 전 조회 2,106
19년 전 조회 2,202
19년 전 조회 4,958
19년 전 조회 2,328
19년 전 조회 3,195
19년 전 조회 2,644
19년 전 조회 2,407
19년 전 조회 4,699
19년 전 조회 2,555
19년 전 조회 2,403
19년 전 조회 1,942
19년 전 조회 1,724
19년 전 조회 3,349
19년 전 조회 2,322
19년 전 조회 6,153
19년 전 조회 2,016
19년 전 조회 1,898
19년 전 조회 2,699
19년 전 조회 1,801
19년 전 조회 2,275
19년 전 조회 2,106
19년 전 조회 3,555
19년 전 조회 2,572
19년 전 조회 2,743
19년 전 조회 4,366
19년 전 조회 3,545
19년 전 조회 2,306
19년 전 조회 4,293
19년 전 조회 3,265
19년 전 조회 4,130
19년 전 조회 1,993
19년 전 조회 2,208
19년 전 조회 2,137
19년 전 조회 3,343
19년 전 조회 2,714
🐛 버그신고