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

· 19년 전 · 3276
<?
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,079
19년 전 조회 1,959
19년 전 조회 1,820
19년 전 조회 2,003
19년 전 조회 2,042
19년 전 조회 2,094
19년 전 조회 2,833
19년 전 조회 5,476
19년 전 조회 1,881
19년 전 조회 1,730
19년 전 조회 1,582
19년 전 조회 1,750
19년 전 조회 1,689
19년 전 조회 1,610
19년 전 조회 1,619
19년 전 조회 1,535
19년 전 조회 1,594
19년 전 조회 2,961
19년 전 조회 3,979
19년 전 조회 5,372
19년 전 조회 1,535
19년 전 조회 4,705
19년 전 조회 3,132
19년 전 조회 1,651
19년 전 조회 2,839
19년 전 조회 3,772
19년 전 조회 1,940
19년 전 조회 3,946
19년 전 조회 2,024
19년 전 조회 3,924
19년 전 조회 3,569
19년 전 조회 4,351
19년 전 조회 4,200
19년 전 조회 2,029
19년 전 조회 1,997
19년 전 조회 4,417
19년 전 조회 2,820
19년 전 조회 2,696
19년 전 조회 2,542
19년 전 조회 2,126
19년 전 조회 2,714
19년 전 조회 2,343
19년 전 조회 1,995
19년 전 조회 2,128
19년 전 조회 1,583
19년 전 조회 1,828
19년 전 조회 2,979
19년 전 조회 2,097
19년 전 조회 3,352
19년 전 조회 3,277
19년 전 조회 2,378
19년 전 조회 1,934
19년 전 조회 2,967
19년 전 조회 3,033
19년 전 조회 4,159
19년 전 조회 2,131
19년 전 조회 2,777
19년 전 조회 2,478
19년 전 조회 3,616
19년 전 조회 1,559
19년 전 조회 1,621
19년 전 조회 1,910
19년 전 조회 2,359
19년 전 조회 1,978
19년 전 조회 1,856
19년 전 조회 2,249
19년 전 조회 2,344
19년 전 조회 5,103
19년 전 조회 2,485
19년 전 조회 3,343
19년 전 조회 2,800
19년 전 조회 2,561
19년 전 조회 4,843
19년 전 조회 2,705
19년 전 조회 2,547
19년 전 조회 2,100
19년 전 조회 1,884
19년 전 조회 3,491
19년 전 조회 2,470
19년 전 조회 6,304
19년 전 조회 2,171
19년 전 조회 2,052
19년 전 조회 2,851
19년 전 조회 1,952
19년 전 조회 2,421
19년 전 조회 2,249
19년 전 조회 3,701
19년 전 조회 2,706
19년 전 조회 2,892
19년 전 조회 4,517
19년 전 조회 3,688
19년 전 조회 2,455
19년 전 조회 4,448
19년 전 조회 3,421
19년 전 조회 4,284
19년 전 조회 2,154
19년 전 조회 2,348
19년 전 조회 2,287
19년 전 조회 3,490
19년 전 조회 2,860