NOT: diyelim resim alt yazisi ( öğretmenden işitilen.jpg ) yuklenediginde soyle oluyor ( 168271_retmenden işitilen.jpg
öğ silinmis oluyor. ve resim gozukmuyor
include("setting.php");
session_start();
$get_class_id=guvenlik($_SESSION["current_ad_id"]);
if(!empty($get_class_id)){
?>
<script></script>
<script></script>
<script></script>
<script></script>
<script></script>
<script>/js/jquery.form.js" defer></script>
<script>
$ImageUrls = array();
$Preview = array();
for($i = 0; $i < 50; $i++)
{
if(isset($_SESSION["thumb_".$i]))
{
if(strlen($_SESSION["thumb_".$i]) > 1)
{
$Preview[] = array(
'caption' => str_replace($_SESSION["current_ad_id"].'_', '', basename($_SESSION["thumb_".$i])),
'width' => '120px',
'key' => '1',
);
$ImageUrls[] = 'http://www.burada.co.uk/'.$_SESSION["thumb_".$i].'?'.time();
}
}
}
if(Count($ImageUrls) == 0)
{
$rsmsql=$mysqli->query("select resim1,resim2,resim3,resim4,resim5,resim6,resim7,r esim8,resim9,resim10,resim11,resim12,resim13,resim 14,resim15 from firmalar where Id='".$_SESSION["current_ad_id"]."' and uyeId='$_SESSION[uye]'")->fetch_assoc();
for($i = 0; $i < 50; $i++)
{
if(isset($rsmsql["resim".$i]))
{
if(strlen($rsmsql["resim".$i]) > 1)
{
$Preview[] = array(
'caption' => str_replace($_SESSION["current_ad_id"].'_', '', basename($rsmsql["resim".$i])),
'width' => '120px',
'key' => '1',
);
$ImageUrls[] = 'http://www.burada.co.uk/'.$rsmsql["resim".$i].'?'.time();
}
}
}
}
?>
$("#kv-explorer").fileinput({
language: 'tr',
theme: "explorer",
uploadUrl: "/libs/upload_image.php",
uploadAsync: true,
allowedFileExtensions: ['jpg', 'png', 'gif'],
overwriteInitial: false,
initialPreviewAsData: true,
showUpload: false,
showRemove: false,
initialPreview: ,
deleteUrl: "/libs/delete_image.php",
initialPreviewConfig: ,
maxFileCount: ,
uploadExtraData: function() {
var out = {}, key, i = 0;
$('.explorer-caption').each(function() {
$el = $(this);
key = 'init_' + i;
out[key] = $el.attr('title');
i++;
});
return out;
},
}).on("filebatchselected", function(event, files) {
$("#kv-explorer").fileinput("upload");
});
$('.kv-file-remove').on('click', function() {
var out = {}, key, i = 0;
$('.explorer-caption').each(function() {
$el = $(this);
key = 'init_' + i;
out[key] = $el.attr('title');
i++;
});
out['delete'] = $($(this).parent().parent().parent().parent().chil dren()[1]).children()[0].innerHTML;
$.ajax({
type: "POST",
url: '/libs/updateimages.php',
data: out,
});
});
</script>
}?>