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

· 19년 전 · 3129
<?
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,911
19년 전 조회 1,803
19년 전 조회 1,647
19년 전 조회 1,840
19년 전 조회 1,885
19년 전 조회 1,942
19년 전 조회 2,688
19년 전 조회 5,315
19년 전 조회 1,719
19년 전 조회 1,566
19년 전 조회 1,432
19년 전 조회 1,590
19년 전 조회 1,524
19년 전 조회 1,443
19년 전 조회 1,450
19년 전 조회 1,373
19년 전 조회 1,441
19년 전 조회 2,803
19년 전 조회 3,824
19년 전 조회 5,210
19년 전 조회 1,376
19년 전 조회 4,542
19년 전 조회 2,983
19년 전 조회 1,491
19년 전 조회 2,687
19년 전 조회 3,614
19년 전 조회 1,781
19년 전 조회 3,785
19년 전 조회 1,874
19년 전 조회 3,773
19년 전 조회 3,420
19년 전 조회 4,200
19년 전 조회 4,048
19년 전 조회 1,875
19년 전 조회 1,844
19년 전 조회 4,272
19년 전 조회 2,674
19년 전 조회 2,542
19년 전 조회 2,400
19년 전 조회 1,974
19년 전 조회 2,562
19년 전 조회 2,194
19년 전 조회 1,844
19년 전 조회 1,965
19년 전 조회 1,439
19년 전 조회 1,693
19년 전 조회 2,834
19년 전 조회 1,946
19년 전 조회 3,217
19년 전 조회 3,130
19년 전 조회 2,240
19년 전 조회 1,788
19년 전 조회 2,831
19년 전 조회 2,902
19년 전 조회 4,013
19년 전 조회 1,978
19년 전 조회 2,627
19년 전 조회 2,338
19년 전 조회 3,464
19년 전 조회 1,420
19년 전 조회 1,487
19년 전 조회 1,767
19년 전 조회 2,208
19년 전 조회 1,836
19년 전 조회 1,697
19년 전 조회 2,110
19년 전 조회 2,203
19년 전 조회 4,959
19년 전 조회 2,330
19년 전 조회 3,196
19년 전 조회 2,645
19년 전 조회 2,410
19년 전 조회 4,702
19년 전 조회 2,557
19년 전 조회 2,405
19년 전 조회 1,944
19년 전 조회 1,727
19년 전 조회 3,351
19년 전 조회 2,325
19년 전 조회 6,155
19년 전 조회 2,017
19년 전 조회 1,900
19년 전 조회 2,702
19년 전 조회 1,804
19년 전 조회 2,276
19년 전 조회 2,107
19년 전 조회 3,558
19년 전 조회 2,573
19년 전 조회 2,744
19년 전 조회 4,367
19년 전 조회 3,549
19년 전 조회 2,308
19년 전 조회 4,297
19년 전 조회 3,266
19년 전 조회 4,133
19년 전 조회 1,995
19년 전 조회 2,210
19년 전 조회 2,141
19년 전 조회 3,344
19년 전 조회 2,715
🐛 버그신고