Rumah > Soal Jawab > teks badan
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php include("../Aconn.php");?> ;
<style type="text/css">
jadual{
jarak sempadan: 0;
runtuh sempadan: runtuh;
text-align:center;
}td,#nr2 td,#nr2 th{border:1px #000000 solid;}
#nr3 td,#nr3 th{border:1px #000000 solid;}
body{warna latar:#FFFFFF;}
.mytable{color:#ffffff;}
pilih,input{font-size:16px;}
#nr,#nr2{font-size:25px;}
#nr3{font-size:20px;}
.kuan{width:150px;height:35px;background-color:#E3E3E3;}
.kuan2{width:230;height:35px ;background-color:#E3E3E3;}
.zjtd1{background-color: #E3E3E3; lebar:150px;tinggi:35px ;}
.zjtd{warna latar belakang:; lebar:150px;tinggi:35px ;}
.zjtd3{warna-latar:#E3E3E3;tinggi:35px ;width:150px}
.beizhu{width:150px;height:35px;border:0px}
td{width:230px;}#nr3 td{width:200px;}</style><center>
<?php
('hai'siadate_set_set_time/time_set) /Asia/Shanghai
$sj=date("Y-m-d");//取得当前日期
$gq=0;
$bb=0;
jika(!kosong($_POST)['sj'] ){
$sj=$_POST['sj'];
//$sj="$sj[6]"."$sj[7]"."$sj[8]"."$sj[ 9]"."-"."$sj[0]"."$sj[1]"."-"."$sj[3]"."$sj[4]";
}
jika (!kosong($_POST['gq'])){
$gq=$_POST['gq'];
}
if(!kosong($_POST['bb'])){
$bb=$_POST['bb'];
}
//echo"<p>$sj, $gq, ";
$sql=mysql_query("select * dari $bb di mana gq='$gq' dan sj suka'$sj%' pesanan mengikut id desc ");
$info=mysql_fetch_array($sql);
if($info==false){
/ /echo"<p>$array</p>";
echo "<div align='center'>对不起,没有查询到当前日期的报表!<t;表!<;";
}
elseif($bb=='zj_fzb'){
$sqlfzb=mysql_query("pilih * daripada zj_fzb inner join zj_fzb_lif on(zj_fzb_lif on(zj_fzb = zj_fzb_lif .gq) di mana zj_fzb.gq='$gq' dan zj_fzb.sj suka '$sj%' pesanan oleh zj_fzb.id desc had 1");
//echo $sqlfzb;
$info=mysql_fetch_array($sql_fetch_array );
?>
<table width=920><tr>
<td style="text-align:left" width="230">查询时间:< $sj;?></td>
<td width="230">查询工区:<?php echo $gq;?></td>
;< "230">查询报表:<?php echo "分子比";?></td>
<td style="text-align:right" width="230">填闡时:<?php echo $info[1];?></td>
</tr></table>
<table id="nr" algin=center>
;tr>
<td class="kuan" colspan="1" rowspan="1" align="center">A系列工区</td>
<td class="kuan" colspan= "7" rowspan="1" align="center">时间</td>
</tr>
<tr>
<td class="kuan" colspan="1" rowspan="1" align="center">槽号</td>
<td><input type="text" name="sj" class="laydate-icon" id= "demo" value="<?php echo date("Y-m-d")?>" class="userData" onclick="laydate()" style="cursor: hand;" onpropertychange="document.getElementById('canshu ').submit();"/>
<input type="submit" value="查询" />
<input type="reset" value="重置" />< /td>
<td><input type="text" name="sj1" class="laydate-icon" id="demo" value="<?php echo date("Y-m-d")?> ;" class="userData" onclick="laydate()" style="cursor: hand;" onpropertychange="document.getElementById('canshu').submit();"/>
<input type= "submit" value="查询" />
<input type="reset" value="重置" /></td>
<td><input type="text" name="sj2" class="laydate-icon" id="demo" value="<?php echo date("Y-m-d")?>" class="userData" onclick="laydate()" style="cursor: hand;" onpropertychange="document.getElementById('canshu').submit();"/>
<input type="submit" value="查询" />
<input type="set semula" nilai ="重置" /></td>
<td><input type="text" name="sj3" class="laydate-icon" id="demo" value="<? php echo date("Y-m-d")?>" class="userData" onclick="laydate()" style="cursor: hand;" onpropertychange="document.getElementById('canshu').submit();"/>
<input type="submit" value="查询" />
<input type="set semula" nilai ="重置" /></td>
<td><input type="text" name="sj4" class="laydate-icon" id="demo" value="<? php echo date("Y-m-d")?>" class="userData" onclick="laydate()" style="cursor: hand;" onpropertychange="document.getElementById('canshu').submit();"/>
<input type="submit" value="查询" />
<input type="set semula" nilai ="重置" /></td>
<td><input type="text" name="sj5" class="laydate-icon" id="demo" value="<? php echo date("Y-m-d")?>" class="userData" onclick="laydate()" style="cursor: hand;" onpropertychange="document.getElementById('canshu').submit();"/>
<input type="submit" value="查询" />
<input type="set semula" nilai ="重置" /></td>
<td><input type="text" name="sj6" class="laydate-icon" id="demo" value="<? php echo date("Y-m-d")?>" class="userData" onclick="laydate()" style="cursor: hand;" onpropertychange="document.getElementById('canshu').submit();"/>
<input type="submit" value="查询" />
<input type="set semula" nilai ="重置" /></td>
</tr>
<tr>
<td class="zjtd"><?php echo $info['fzb11'];?></td>
<td class="zjtd"><?php echo $ info['fzb12'];?></td>
<td></td>
<td></td>
<td>> <td></td> > ;<?php echo $info['fzb21'];?></td>
<td class="zjtd"><?php echo $ info['fzb22'];?> </td>
<td></td>
<td></td></td>< <td></td>
<td></td>
< ;center>
<?php
}
YoOl风2019-08-07 15:52:23
Saya tidak tahu apa yang salah dengan kod masa, tiada pemilihan tarikh! , idealnya macam ni, tapi bila dah letak, tak ada kotak untuk pilih tarikh! Tuhan tolong aku!