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

· 19년 전 · 3217
<?
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,010
19년 전 조회 1,902
19년 전 조회 1,756
19년 전 조회 1,947
19년 전 조회 1,989
19년 전 조회 2,038
19년 전 조회 2,787
19년 전 조회 5,421
19년 전 조회 1,825
19년 전 조회 1,671
19년 전 조회 1,524
19년 전 조회 1,686
19년 전 조회 1,629
19년 전 조회 1,547
19년 전 조회 1,549
19년 전 조회 1,473
19년 전 조회 1,541
19년 전 조회 2,898
19년 전 조회 3,922
19년 전 조회 5,312
19년 전 조회 1,471
19년 전 조회 4,635
19년 전 조회 3,071
19년 전 조회 1,579
19년 전 조회 2,783
19년 전 조회 3,715
19년 전 조회 1,882
19년 전 조회 3,890
19년 전 조회 1,972
19년 전 조회 3,865
19년 전 조회 3,514
19년 전 조회 4,295
19년 전 조회 4,142
19년 전 조회 1,966
19년 전 조회 1,934
19년 전 조회 4,351
19년 전 조회 2,760
19년 전 조회 2,631
19년 전 조회 2,485
19년 전 조회 2,070
19년 전 조회 2,652
19년 전 조회 2,286
19년 전 조회 1,936
19년 전 조회 2,072
19년 전 조회 1,522
19년 전 조회 1,777
19년 전 조회 2,922
19년 전 조회 2,030
19년 전 조회 3,298
19년 전 조회 3,218
19년 전 조회 2,327
19년 전 조회 1,868
19년 전 조회 2,912
19년 전 조회 2,984
19년 전 조회 4,099
19년 전 조회 2,068
19년 전 조회 2,716
19년 전 조회 2,426
19년 전 조회 3,553
19년 전 조회 1,511
19년 전 조회 1,570
19년 전 조회 1,864
19년 전 조회 2,299
19년 전 조회 1,917
19년 전 조회 1,801
19년 전 조회 2,196
19년 전 조회 2,285
19년 전 조회 5,043
19년 전 조회 2,417
19년 전 조회 3,284
19년 전 조회 2,741
19년 전 조회 2,505
19년 전 조회 4,785
19년 전 조회 2,646
19년 전 조회 2,490
19년 전 조회 2,032
19년 전 조회 1,818
19년 전 조회 3,433
19년 전 조회 2,412
19년 전 조회 6,238
19년 전 조회 2,103
19년 전 조회 1,997
19년 전 조회 2,799
19년 전 조회 1,890
19년 전 조회 2,366
19년 전 조회 2,194
19년 전 조회 3,639
19년 전 조회 2,650
19년 전 조회 2,837
19년 전 조회 4,451
19년 전 조회 3,621
19년 전 조회 2,402
19년 전 조회 4,381
19년 전 조회 3,360
19년 전 조회 4,218
19년 전 조회 2,091
19년 전 조회 2,295
19년 전 조회 2,221
19년 전 조회 3,424
19년 전 조회 2,802