1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
|
<form name="form" method="post" action="newslettersindex.php">
<tr>
<td align='left' width='20%'>Contenu disponible</td>
</tr>
<tr><td> </td></tr>
<tr id='ligne_tabl'>
<td align="left" width='20%'>Actus Produits <font color=red>*</font></td>
<td align="left" width='20%'>
<select name="newsprod" >
<option value="">Actus</option>
<?
$requete="select * from actus where id_cat='2'";
$resultat=mysql_query($requete, $link);
while($actus=mysql_fetch_object($resultat))
{
?>
<option value="<?php echo $actus->id_news; ?>" ><?php echo $actus->titreNews; ?></option>
<?
}
?>
</select> </td>
<td align="left" width="60%"> </td>
</tr>
<tr id='ligne_tabl'>
<td align="left" width='20%'>Coupons Promotionnels <font color=red>*</font></td>
<td align="left" width='20%'>
<?
$requete="select * from coup where id_restoOrig='9'";
$resultat=mysql_query($requete, $link);
?>
<select name="coupons">
<option value="">Coupons</option>
<?
while($coupon=mysql_fetch_object($resultat))
{
?>
<option value="<?php echo $coupon->id_coupon; ?>" title="<? echo $coupon->descCoupon; ?>"><?php echo $coupon->nomCoupon; ?></option>
<?
}
?>
</select> </td>
<td align="left" width="60%">
<!--<div id="test" style="display:none">
<textarea id="desc" type="text" value="" cols="30"rows="1" readonly></textarea>
</div>
<div id="test2" style="display:block">
</div>-->
</td>
</tr>
<tr id='ligne_tabl'>
<td>
Produits <font color=red>*</font>
</td>
<td valign="top">
<!-- Liaison actu produit avec produit -->
<?
$requete="select distinct(id_produit), nomProd, id_prodMere from prod as p, rec as r where p.id_produit=r.id_prod and imageRecette != '' and id_prodMere = 0";
$resultat=mysql_query($requete, $link);
?>
<select name='slcCat1' id='type' style='width:95px;' onChange="chercheproduit('maliste',this.options[this.selectedIndex].value, '1');">
<option value=''>Catégorie</option>
<?
while($cat=mysql_fetch_object($resultat))
{
?>
<option value='<? echo $cat->id_produit; ?>' ><? echo $cat->nomProd; ?></option>
<?
$requete="select * from prod where id_prodMere = '".$cat->id_produit."'";
$result = mysql_query($requete, $link);
$row=mysql_num_rows($result);
if($row!=0)
{
while($scat=mysql_fetch_object($result))
{
?>
<option value='<? echo $scat->id_produit; ?>'> - <? echo $scat->nomProd; ?></option>
<? }
}
}
?>
</select>
<div id='maliste'><select name ='slcProd'><option value='-1'>Produits</option></select></div>
</td>
<td valign="top">
<!-- Liaison actu produit avec produit -->
<?
$requete="select distinct(id_produit), nomProd, id_prodMere from prod as p, rec as r where p.id_produit=r.id_prod and imageRecette != '' and id_prodMere = 0";
$resultat=mysql_query($requete, $link);
?>
<select name='slcCat2' id='type' style='width:95px;' onChange="chercheproduit('maliste2',this.options[this.selectedIndex].value, '2', resto.value);">
<option value=''>Catégorie</option>
<?
while($cat=mysql_fetch_object($resultat))
{
?>
<option value='<? echo $cat->id_produit; ?>' ><? echo $cat->nomProd; ?></option>
<?
$requete="select * from prod where id_prodMere = '".$cat->id_produit."'";
$result = mysql_query($requete, $link);
$row=mysql_num_rows($result);
if($row!=0)
{
while($scat=mysql_fetch_object($result))
{
?>
<option value='<? echo $scat->id_produit; ?>'> - <? echo $scat->nomProd; ?></option>
<? }
}
}
?>
</select>
<div id='maliste2'><select name ='slcProd2'><option value='-1'>Produits</option></select></div>
</td>
</tr>
<tr id='ligne_tabl'>
<td colspan="3"> <input class="erreur" type="text" name="finalerror" readonly /> </td>
</tr>
<input type="hidden" name="resto" value="<?php echo $resto; ?>">
<tr id='ligne_tabl'>
<td colspan="3" align="center">
<input type="button" onClick="verif();" name="sub" value="Visualiser">
</td>
</tr>
</form> |
Partager