อยากทราบวิธีที่ว่าจะทำอยากเมื่อ if แรกแสดงแท็ก input และ if ถัดไปที่แสดงแท็ก img ออกมาจะไปอยู่ในบรรทัดเดียวกันได้ครับ
Code: Select all
<div class="data">
<?php if ($prod['not_qty_update']){?>
<span class="qtyval"><?php print $prod['quantity'] ?></span>
<?php }else{?>
<input type = "text" name = "quantity[<?php print $key_id ?>]" value = "<?php print $prod['quantity'] ?>" class = "inputbox" />
<?php }?>
<?php print $prod['_qty_unit']; ?>
<?php if (!$prod['not_qty_update']){?>
<span class = "cart_reload">
<img src="<?php print $this->image_path?>images/reload.png" title="<?php print _MZC_UPDATE_CART ?>" alt = "<?php print _MZC_UPDATE_CART ?>" onclick="document.updateCart.submit();" />
</span>
<?php }?>
</div>