반

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

· 2006-08-11 (금) 09:33:12 · 4170
<?
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>
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
06-11-28 조회 4,168
06-11-28 조회 6,460
06-11-27 조회 3,688
06-11-27 조회 4,618
06-11-27 조회 5,516
06-11-25 조회 3,760
06-11-24 조회 3,712
06-11-22 조회 5,382
06-11-21 조회 4,008
06-11-18 조회 4,215
06-11-15 조회 3,436
06-11-15 조회 3,468
06-11-11 조회 3,200
06-11-10 조회 4,587
06-11-04 조회 3,320
06-10-29 조회 3,976
06-10-29 조회 2,987
06-10-24 조회 6,507
06-10-17 조회 4,818
06-10-17 조회 5,553
06-10-16 조회 4,296
06-10-16 조회 3,735
06-10-15 조회 5,112
06-10-13 조회 3,832
06-10-13 조회 4,207
06-10-13 조회 4,167
06-10-12 조회 5,360
06-10-12 조회 4,330
06-10-12 조회 4,267
06-10-12 조회 4,837
06-10-10 조회 4,160
06-10-10 조회 3,409
06-10-10 조회 3,458
06-10-10 조회 3,389
06-10-09 조회 4,008
06-10-04 조회 3,769
06-10-02 조회 4,555
06-10-01 조회 4,455
06-09-29 조회 3,039
06-09-29 조회 3,956
06-09-27 조회 9,045
06-09-27 조회 3,693
06-09-26 조회 4,350
06-09-26 조회 4,068
06-09-26 조회 4,213
06-09-26 조회 3,381
06-09-26 조회 3,641
06-09-26 조회 5,344
06-09-26 조회 3,463
06-09-26 조회 5,468
06-09-26 조회 3,587
06-09-26 조회 3,289
06-09-26 조회 3,514
06-09-26 조회 3,071
06-09-26 조회 3,640
06-09-26 조회 3,436
06-09-26 조회 4,337
06-09-26 조회 3,033
06-09-26 조회 4,729
06-09-25 조회 3,945
06-09-25 조회 4,695
06-09-25 조회 4,642
06-09-25 조회 4,385
06-09-25 조회 6,638
06-09-23 조회 3,337
06-09-23 조회 3,439
06-09-23 조회 3,479
06-09-23 조회 4,571
06-09-22 조회 4,981
06-09-22 조회 4,917
06-09-22 조회 3,547
06-09-22 조회 3,692
06-09-22 조회 3,910
06-09-22 조회 4,331
06-09-22 조회 3,772
06-09-22 조회 3,902
06-09-22 조회 3,725
06-09-22 조회 3,516
06-09-22 조회 4,551
06-09-22 조회 4,564
06-09-22 조회 4,266
06-09-21 조회 6,069
06-09-21 조회 3,862
06-09-21 조회 4,587
06-09-21 조회 4,316
06-09-21 조회 3,245
06-09-21 조회 4,326
06-09-21 조회 2,994
06-09-21 조회 3,464
06-09-21 조회 3,538
06-09-21 조회 5,186
06-09-21 조회 4,319
06-09-21 조회 4,278
06-09-21 조회 3,718
06-09-21 조회 3,188
06-09-21 조회 2,708
06-09-21 조회 3,620
06-09-21 조회 3,450
06-09-21 조회 2,905
06-09-21 조회 2,946