프린트하려하는대요. 리스트가 안나오내요...

프린트하려하는대요. 리스트가 안나오내요...

QA

프린트하려하는대요. 리스트가 안나오내요...

답변 1

본문

안녕하세요.

기본입력창에서  출력을 누를 경우

아래의 출력창이 나옵니다.

기능은 시작날짜 (from) 끝날짜 (end) 를 기준('달력에서 선택')으로 리스트 업(list up)을 클릭할경우. 해당날짜에 해당하는 대이타가  아래 폼에 리스트돼고요.

이것을 플린트 하거나 엑셀에 익스포트 하는기능입니다.

 

그런대 날짜 선택후 리스트업 클릭시.. 해당대이타를 쿼리해서 가져와야 하는대요. 안나옵니다.

그래서 강제로 넘겨지는 대이타에 날짜를 임의로 강제로 하드코딩해서 하면. 대이타가 출력됍니다.

리스트 업 클릭시 아래 폼에 뿌려주고싶은대요. 안돼내요.. 참고로 print.php   를 사진아래 넣었습니다.

많은 조언부탁드립니다. (__

------------- print.php -------------

<?
include_once("./_common.php");
if($excel == "y") {
 $title = "Report";
 header( "Content-type: application/vnd.ms-excel" ); 
 header( "Content-Disposition: attachment; filename=".date("dmYmsh").".xls"); 
// $title 변수명으로 저장됩니다. 원하는 이름으로 바꾸세요
 header( "Content-Description: PHP4 Generated Data" );
}
?>
<style type="text/css">
</style>

<link rel="stylesheet" href="./css.css" /> 
<script src="<?=$g4[path]?>/js/jquery-1.9.1.js"></script> 
<script src="<?=$g4[path]?>/js/jquery-ui.js"></script> 

<script>  $(function() {
$( "#from" ).datepicker({dateFormat:"dd-mm-yy", numberOfMonths: 2, showButtonPanel: true});
$( "#end" ).datepicker({dateFormat:"dd-mm-yy", numberOfMonths: 2, showButtonPanel: true});
}); 
</script>
<script language=javascript>
  function win_print() {
              self.print();
  }
</script>
<? if($print== "y") { ?>
<body onload="javascript:win_print()" oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
<? } ?>
<table width=100% cellpadding="5" cellspacing="0" border="1" align="center" style="border-collapse:collapse; border:1px gray solid;">
<col width="30" />

   
    <col width="10%" />
    <col width="10%" />

    <col width="10%" />
    <col width="10%" />
<col  />
    <col width="10%" />
    <col width="10%" />
    <col width="8%" />

 <tr>
        <th colspan=18  align=center>
 <table >
 <form id="inputForm" action="print.php" method="POST">
 <tr>
 <td  align=center>Date to print From <input type="text" id=from name="from" readonly> End <input  id=end type="text" name="end" readonly> </form><input type="submit" value="List up"/>
</td> <td  width=130 align=center><a href="print.php?print=y"> Print </a>
</td><td width=200  align=center><a href="print.php?excel=y">Export to excel</a></td>
 </tr>
 </table>
 </td>
 </tr>​

...... 폼 리스팅.. .....

 $form = "03-07-2014" 

$end = "07-07-2014"  --> 강제로 대이타 넣을경우 제대로 리스팅 됍니다..

 

그런대 제가 위에서 선택해서 리스트 버튼클릭시엔 뿌려주질 않네요..

이제 php 배우는 단계라서 그런지 무엇이 문제인질 모르겠습니다..

347d5dbcee889da474cf6227f6938017_1404902624_1766.gif


이 질문에 댓글 쓰기 :

답변 1

버튼이 안 눌린다는건가요??


 

<td  align=center>

​​<form id="inputForm" action="print.php" method="POST">

Date to print From <input type="text" id=from name="from" readonly> End <input  id=end type="text" name="end" readonly><input type="submit" value="List up"/>

</form>
</td>

 

 

<form>문을 <td> 안에 넣어보세요. 

 

아닐까요? 

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 10,637
© SIRSOFT
현재 페이지 제일 처음으로