0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: delete_file_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 FileSearch { //7 public function printFileDetails($sql1) {//10 $sql=mysql_query($sql1); if(mysql_affected_rows()>0) {//14 ?> <div align="center"><b>File Details</b> </div> <table width="837" border="1" align="center" bordercolor="#CC0000"> <tr> <th width="59"> S No </th> <th width="220"> File Name </th> <th width="70"> Date </th> <th width="189">Description</th> <th width="97">Download</th> <th width="72"> Edit </th> <th width="135"> Delete </th> </tr> <tr><?php while($row=mysql_fetch_array($sql)) { ?> <th height="54"><?php @$_SESSION['sl_no']=@$_SESSION['sl_no']+1; echo @$_SESSION['sl_no']; ?></th> <th><?php echo $row['filename']; ?></a></th> <th><?php echo $row['date']; ?></th> <th><?php echo $row['description']; ?></th> <th><a href= "<?php echo "../Proposels/".$row['fileupload'];?>" target="_blank"><img src="../images/white_download.png" alt="download" width="44" height="44" /></a><a href= "<?php echo "../Proposels/".$row['fileupload'];?>" target="_blank"></a></th> <th><a href="../USER/fileUpdation.php?id=<?php echo $row['file_shelf_id']; ?>&name=<?php echo $row['filename'];?>"><img src="../images/edit.png" alt="edit" width="25" height="25" /></a></th> <th><a href="../USER/file_delete.php?id=<?php echo $row['file_shelf_id']; ?>&name=<?php echo $row['filename'];?>"><img src="../images/delete.jpg" alt="Delete" width="25" height="25" /></a><a href="../USER/file_delete.php?id=<?php echo $row['file_shelf_id']; ?>&name=<?php echo $row['filename']; ?>"></a></th> </tr> <?php }//32 ?> </table> <?php }//14 else {//14 ?><font color="#CC0000"><b><?php echo "No file to display"; ?></b></font><?php }//14 }//10 }//7 ?>