0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: search_stockusage_entry_ctrl.php
<?php require_once "../lib/config.php"; //require_once BASE_DIR."/lib/db/DBconnection.php"; require_once BASE_DIR."/lib/db/connection.php"; class SearchStockusageentry { //7 public function printStockusageentryDetails($sql1) {//10 $sql=mysql_query($sql1); if(mysql_affected_rows()>0) {//14 ?> <div align="center"> <p><font color="#853008" size="4"><strong>Details of Items Used</strong></font></p> </div> <table width="615" height="103" border="1" align="center" bordercolor="#CC0000"> <tr bgcolor="#853008"> <th width="24" height="36" bgcolor="#853008"><font color="#F4E7BD"><strong>S No</strong></font></th> <th width="87"><strong><font color="#F4E7BD"> Item Name </font></strong></th> <th width="84"><strong><font color="#F4E7BD">Category</font></strong></th> <th width="97"><strong><font color="#F4E7BD"> Date</font></strong></th> <th width="112"><font color="#F4E7BD"><strong>Number of items used</strong></font></th> <th width="77"><strong><font color="#F4E7BD">Description</font></strong></th> <th width="37"> <div align="center"><font color="#F4E7BD"><strong>Edit </strong></font></div></th> <th width="45"><strong><font color="#F4E7BD">Delete</font></strong></th> </tr><?php while($row=mysql_fetch_array($sql)) {//32 ?> <tr> <th><?php @$_SESSION['sl_no']=@$_SESSION['sl_no']+1; echo @$_SESSION['sl_no']; ?></th> <th><?php $item_db=$row['item_name']; echo $item_db; ?></th> <th><?php $sqlcat="select * from stockitem where item_name='$item_db'"; $sql1=mysql_query($sqlcat); while($row1=mysql_fetch_array($sql1)) { echo $row1['category_name']; } ?></th> <th><?php echo $row['date']; ?></th> <th><?php echo $row['itemused']; ?></th> <th><?php echo $row['description']; ?></th> <th><a href="edit_stockusage_entry.php?id=<?php echo $row['stockusage_id']; ?>&name=<?php echo $row['item_name'];?>"><img src="../images/business_user_edit.png" alt="edit" width="25" height="25" /></a></th> <th><a href="delete_stockusage_entry.php?id=<?php echo $row['stockusage_id']; ?>&name=<?php echo $row['item_name'];?>"><img src="../images/remove_male_user_256.png" alt="Delete" width="25" height="25" /></a></th> </tr> <?php }//32 ?> </table> <?php }//14 else {//14 ?><font color="#CC0000"><b><?php echo "Nothing to display"; ?></b></font><?php }//14 }//10 }//7 ?>