<h3 align="center"><?php echo $heading ; ?></h3>
<div id="cssss"></div>
<div align="center" style="width:100%;">

<div class="err_msg" >
<?php
echo validation_errors();
echo $str;
?>
</div>

<div style="width:460px; height:auto; text-align:left;">

<form name="form1" method="post" action="" enctype="multipart/form-data">



<p>
<label>Order * </label><br>
<select name="order"  style="width:100px;"  >
<option value="">-Select order-</option>
<?php for($i=1;$i<=50;$i++): ?>
<option value="<?=$i?>" <?php if($i==$order){echo 'selected="selected"';}?> ><?=$i?></option>
<?php endfor; ?>
</select>
</p>


<p>
<label>products*</label><br>
<select name="product_id" id="product_id">
<option value="">Select Product-</option>
<?php foreach($product_result as $row_pro):?>
<option value="<?php echo $row_pro['aid'] ; ?>" <?php if($product_id==$row_pro['aid'])echo 'selected="selected"'; ?> >
<?=$row_pro['title'];?>
</option>
<?php endforeach; ?>
</select>
</p>


<p>
<label>related products* </label><br />
<select name="cat_id" id="cat_id">
<option value="">-Select Category-</option>
<?php foreach($related_result as $row_rel):?>
<option value="<?php echo $row_rel['id'] ; ?>" <?php if($related_id==$row_rel['id'])echo 'selected="selected"'; ?> >
<?=$row_rel['title'];?>
</option>
<?php endforeach; ?>
</select>
</p>

<?php foreach($related_result as $row_rel):?>
<p><input type="checkbox" value="<?php echo $row_rel['id'] ; ?>" name="cat_id" ><?=$row_rel['title'];?></p>
<?php endforeach; ?>


<p><input name="submit" class="button-primary" value="Submit" type="submit" ></p>


</form>


<p>&nbsp;</p>
</br>
</br>
<div id="email_div"></div>