J'ai besoin d'une faveur de Dieu !
YoOl风
YoOl风 2019-08-07 15:50:13
0
2
1060

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<?php include("../Aconn.php");?> ;

<style type="text/css">

table{

border-spacing : 0;

border-collapse : réduire;

text-align:center;

}

#nr td,#nr2 td,#nr2 th{border:1px  #000000 solid;}

#nr3 td,#nr3 th{border:1px  #000000 solid;}

body{background-color:#FFFFFF;}

.mytable{color:#ffffff;}

select,input{font-size:16px;}

#nr,#nr2{font-size:25px;}

#nr3{font-size:20px;}

.kuan{largeur:150px;hauteur:35px;couleur-de-fond:#E3E3E3;}

.kuan2{largeur:230;hauteur:35px;couleur-de-fond:#E3E3E3;}

.zjtd1{couleur-de-fond: #E3E3E3; largeur:150px;hauteur:35px ;}

.zjtd{background-color:; largeur:150px;hauteur:35px ;}

.zjtd3{background-color:#E3E3E3;hauteur:35px ;largeur:150px}

.beizhu{width:150px;height:35px;border:0px}

#nr2 td{width:230px;}

#nr3 td{width:200px;}

</style>

<center>

<?php

date_default_timezone_set('Asia/Shanghai');/ /Asie/Shanghai

$sj=date("Y-m-d");//取得当前日期

$gq=0;

$bb=0;

if(!empty($_POST['sj']) ){

$sj=$_POST['sj'];

//$sj="$sj[6]"."$sj[7]"."$sj[8]"."$sj[ 9]"."-"."$sj[0]"."$sj[1]"."-"."$sj[3]"."$sj[4]";

}

if (!empty($_POST['gq'])){

$gq=$_POST['gq'];

}

if(!empty($_POST['bb'])){

$bb=$_POST['bb'];

}

//echo"<p>$sj,  $gq,  ";

$sql=mysql_query("select * from $bb où gq='$gq' et sj like'$sj%' order by id desc ");

$info=mysql_fetch_array($sql);

if($info==false){

/ /echo"<p>$array</p>";

echo "<div align='center'>对不起,没有查询到当前日期的报表!</div>";

}

elseif($bb=='zj_fzb'){

$sqlfzb=mysql_query("select * from zj_fzb inner join zj_fzb_lif on(zj_fzb.sj=zj_fzb_lif.sj et zj_fzb.gq = j_fzb_lif .gq) où zj_fzb.gq='$gq' et zj_fzb.sj like '$sj%' order by zj_fzb.id desc limit 1"); 

//echo $sqlfzb;

$info=mysql_fetch_array($sqlfzb );

?>

<table  width=920><tr>

<td style="text-align:left" width="230">查询时间:<?php echo $sj;?></td>

<td width="230">查询工区:<?php echo $gq;?></td>

<td 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="reset" value ="重置" /></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="reset" valeur ="重置" /></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="reset" valeur ="重置" /></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="reset" valeur ="重置" /></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="reset" valeur ="重置" /></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></td> > ;<?php echo $info['fzb21'];?></td>

<td class="zjtd"><?php echo $ info['fzb22'];?> </td>

<td></td>

<td></td>

<td></td>


<td>< /table>

< ;/ center>

<?php

}

La sortie est ce formulaire. J'ai besoin d'un maître pour m'aider à le coder. Je dois cliquer sur la requête temporelle pour obtenir les données correspondant au numéro de créneau. il n'y a pas de données, elle sera vide. Merci beaucoup mon frère!

YoOl风
YoOl风

répondre à tous(1)
YoOl风

Je ne sais pas quel est le problème avec le time code, il n'y a pas de sélection de date ! 123.png, idéalement ça devrait être comme ça, mais quand je le mets, il n'y a pas de case pour sélectionner la date ! Dieu aide moi!

  • répondre JS n'est-il pas exécuté ? Consultez les erreurs JS dans la console du navigateur.
    秋香姐家的小书童 auteur 2019-08-07 17:29:09
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!