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

· 19년 전 · 3284
<?
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,093
19년 전 조회 1,973
19년 전 조회 1,836
19년 전 조회 2,015
19년 전 조회 2,060
19년 전 조회 2,111
19년 전 조회 2,850
19년 전 조회 5,493
19년 전 조회 1,897
19년 전 조회 1,748
19년 전 조회 1,598
19년 전 조회 1,769
19년 전 조회 1,701
19년 전 조회 1,626
19년 전 조회 1,631
19년 전 조회 1,552
19년 전 조회 1,614
19년 전 조회 2,977
19년 전 조회 3,991
19년 전 조회 5,391
19년 전 조회 1,551
19년 전 조회 4,711
19년 전 조회 3,144
19년 전 조회 1,659
19년 전 조회 2,855
19년 전 조회 3,790
19년 전 조회 1,951
19년 전 조회 3,968
19년 전 조회 2,039
19년 전 조회 3,936
19년 전 조회 3,583
19년 전 조회 4,365
19년 전 조회 4,221
19년 전 조회 2,042
19년 전 조회 2,005
19년 전 조회 4,434
19년 전 조회 2,833
19년 전 조회 2,707
19년 전 조회 2,558
19년 전 조회 2,145
19년 전 조회 2,732
19년 전 조회 2,358
19년 전 조회 2,011
19년 전 조회 2,151
19년 전 조회 1,598
19년 전 조회 1,849
19년 전 조회 2,995
19년 전 조회 2,113
19년 전 조회 3,370
19년 전 조회 3,285
19년 전 조회 2,397
19년 전 조회 1,949
19년 전 조회 2,984
19년 전 조회 3,047
19년 전 조회 4,177
19년 전 조회 2,145
19년 전 조회 2,792
19년 전 조회 2,500
19년 전 조회 3,632
19년 전 조회 1,581
19년 전 조회 1,637
19년 전 조회 1,929
19년 전 조회 2,375
19년 전 조회 1,991
19년 전 조회 1,871
19년 전 조회 2,265
19년 전 조회 2,355
19년 전 조회 5,120
19년 전 조회 2,501
19년 전 조회 3,358
19년 전 조회 2,817
19년 전 조회 2,573
19년 전 조회 4,856
19년 전 조회 2,717
19년 전 조회 2,566
19년 전 조회 2,112
19년 전 조회 1,903
19년 전 조회 3,507
19년 전 조회 2,480
19년 전 조회 6,317
19년 전 조회 2,186
19년 전 조회 2,070
19년 전 조회 2,867
19년 전 조회 1,962
19년 전 조회 2,437
19년 전 조회 2,268
19년 전 조회 3,720
19년 전 조회 2,722
19년 전 조회 2,914
19년 전 조회 4,525
19년 전 조회 3,698
19년 전 조회 2,472
19년 전 조회 4,463
19년 전 조회 3,438
19년 전 조회 4,297
19년 전 조회 2,170
19년 전 조회 2,368
19년 전 조회 2,300
19년 전 조회 3,504
19년 전 조회 2,871