0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
metalsheetfabrication
/
admin
/
pages
/
[
Home
]
File: sample_lists.php
<style type="text/css"> <!-- .style5 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000033; } .style6 { font-family: Arial, Helvetica, sans-serif; font-size: 16px; color: #FFFFFF; font-weight: bold; } .style7 { color: #FF0000; font-style: italic; } .before_after_link { font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#FF0000; } .download { font-family:Arial, Helvetica, sans-serif; color:#009900; font-size:12px; font-weight:bold; } --> </style> <? if($_GET['action']=="add") { include('pages/add_sample.php'); } if($_GET['action']=="delete") { include('pages/delete_sample.php'); } $q_sam="select * from `tbl_sample` order by `sample_id` ASC"; $r_sam=mysql_query($q_sam); ?> <table width="700" border="0" cellspacing="0" cellpadding="5" style="border:1px solid #0099FF;"> <tr> <td colspan="3" align="left" valign="top" bgcolor="#0099FF" class="style6">Before / After Resume Samples</td> </tr> <? if(mysql_num_rows($r_sam)>0) { while($row_sam=mysql_fetch_array($r_sam)) { $before_path=$row_sam['before_path']; $after_path=$row_sam['after_path']; ?> <tr> <td width="150" align="left" valign="top" class="style5">Sample <?=$row_sam['sample_id']?></td> <td width="260" align="left" valign="top" class="style5"><? if($row_sam['before_path']!=''){ echo "Before Sample Uploaded<br><span class='download' onclick=\"javascript:window.open('http://www.resumepass.com/download.php?filename=".$before_path."','mywindow','status=1');\" onmouseover=\"this.style.cursor='pointer';\">Download !!</span> or <a href='index.php?page=sample_lists&&action=delete&&id=".$row_sam['sample_id']."&&sample_type=before' class='before_after_link'><b>DELETE !!</b></a>"; }else{ echo "<font color=#ff0000>Before Sample Not Uploaded<br><b><a href='index.php?page=sample_lists&&action=add&&id=".$row_sam['sample_id']."&&sample_type=before' class='before_after_link'>Click Here</a></b> To Add Before Sample ".$row_sam['sample_id']."</font>"; }?></td> <td width="260" align="left" valign="top" class="style5"><? if($row_sam['after_path']!=''){ echo "After Sample Uploaded<br><span class='download' onclick=\"javascript:window.open('http://www.resumepass.com/download.php?filename=".$after_path."','mywindow','status=1');\" onmouseover=\"this.style.cursor='pointer';\">Download !!</span> or <a href='index.php?page=sample_lists&&action=delete&&id=".$row_sam['sample_id']."&&sample_type=after' class='before_after_link'><b>DELETE !!</b></a>"; }else{ echo "<font color=#ff0000>After Sample Not Uploaded<br><b><a href='index.php?page=sample_lists&&action=add&&id=".$row_sam['sample_id']."&&sample_type=after' class='before_after_link'>Click Here</a></b> To Add After Sample ".$row_sam['sample_id']."</font>"; }?></td> </tr> <? } } else { ?> <tr> <td colspan="3" align="center" valign="middle" class="style5 style7">Nothing To Show</td> </tr> <? } ?> </table>