}
.border {
	border:1px white solid;
}
</style>




<link href="../../../../includes/style/admin.space.css" rel="stylesheet" type="text/css">
</head>

<body>
<div class="delete_picture">
	<div class="picture border" style="background-image:url('<?php 
echo getMultimediaPicture($multimedia_id, 'small');
?>
');"></div>
	<form method="post" target="picture_list" action="delete.php?multimedia_id=<?php 
echo $multimedia_id;
?>
">
		<h1>Delete this file?</h1>
		<span style="color:white">If you wish to delete the file click on the <br>button below. Cancel to return to the list</span>
		<p>&nbsp;</p>
		<p>
			<input type="submit" value="Yes am sure !"/>
			<input type="button" value="Cancel" onclick="self.parent.myLytebox.end();"/>
		</p>
	</form>
</div>
<link rel="stylesheet" href="../../../../includes/style/lytebox.css" type="text/css" >
<script type="text/javascript" src="../../../../includes/javascript/lytebox.js"></script>

</head>

<body>

<?php 
$nav_tab_id = $_GET['nav_tab_id'];
$feature_id = $_GET['feature_id'];
$mySQL = "SELECT * FROM multimedia WHERE nav_tab_id = '{$nav_tab_id}' AND feature_id = '{$feature_id}' AND status = 3 ORDER BY usort ASC";
$recSET = mysql_query($mySQL) or die(mysql_error());
while ($recROW = mysql_fetch_assoc($recSET)) {
    $usort = $recROW['usort'];
    $multimedia_id = $recROW['multimedia_id'];
    $image_path = getMultimediaPicture($multimedia_id, 'small');
    ?>

	<div class="picture_uploader_list_container">
		<a class="picture" href="<?php 
    echo deSanitizeData($absoluteURL) . "admin.space/feature.base/picture.uploader/modify/?multimedia_id={$multimedia_id}";
    ?>
" rel="lyteframe" rev="width: 430px; height: 130px; scrolling: no;"><?php 
    echo $recROW['multimedia_name'];
    ?>
<span>&nbsp;(<?php 
    echo number_format($recROW['size'], 2);
    ?>
KB)</span></a>
		<ul>
			<li><a href="<?php 
function deleteMultimedia($multimedia_id)
{
    $original_image = getMultimediaPicture($multimedia_id, 'original', 'yes');
    $large_image = getMultimediaPicture($multimedia_id, 'large', 'yes');
    $extra_large_image = getMultimediaPicture($multimedia_id, 'extra_large', 'yes');
    $medium_image = getMultimediaPicture($multimedia_id, 'medium', 'yes');
    $small_image = getMultimediaPicture($multimedia_id, 'small', 'yes');
    if (file_exists($original_image)) {
        unlink($original_image);
    }
    if (file_exists($large_image)) {
        unlink($large_image);
    }
    if (file_exists($extra_large_image)) {
        unlink($extra_large_image);
    }
    if (file_exists($medium_image)) {
        unlink($medium_image);
    }
    if (file_exists($small_image)) {
        unlink($small_image);
    }
    $mySQL = "UPDATE multimedia SET status = 0 WHERE multimedia_id = '{$multimedia_id}'";
    mysql_query($mySQL);
}