|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/klengineers/klwebsite-controller/includes/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Admin</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<style media="all" type="text/css">@import "./css/all.css";</style>
<link href="uploadify/uploadify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="uploadify/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="uploadify/swfobject.js"></script>
<script type="text/javascript" src="uploadify/jquery.uploadify.v2.1.4.js"></script>
<script type="text/javascript">
function loadGallery(id)
{
if(id.length == 0) {
$('#roller').fadeOut();
} else {
$('#listingContainer').html('<div id="roller" style="margin:0 auto;margin-left:295px; height:100px;width:100px;" align="center"></div>');
$('#roller').addClass('load');
$.post("loadImageAdd.php", {id: ""+id+""}, function(data){
if(data.length >0) {
$('#roller').removeClass('load');
$('#roller').fadeIn();
$('#listingContainer').html(data);
}
});
}
}
function loadType(id)
{
if(id==1)
{
$.post("rental-form.php", function(data){
if(data.length >0) {
$('#typeLoad').html(data);
}
});
}
else if(id==2)
{
$.post("sell-form.php", function(data){
if(data.length >0) {
$('#typeLoad').html(data);
}
});
}
}
function delImage(image,id)
{
if(id.length == 0) {
$('#roller').fadeOut();
} else {
$('#listingContainer').html('<div id="roller" style="margin:0 auto;margin-left:295px; height:100px;width:100px;" align="center"></div>');
$('#roller').addClass('load');
$.post("delAddImage.php", {id: ""+id+"",name:""+image+""}, function(data){
if(data.length >0) {
$('#roller').removeClass('load');
$('#roller').fadeIn();
$('#response').html(data);
loadGallery('1');
}
});
}
}
$(document).ready(function() {
$('#file_upload').uploadify({
'uploader' : 'uploadify/uploadify.swf',
'script' : 'uploadify/uploadify_add.php',
'cancelImg' : 'uploadify/cancel.png',
'folder' : 'listing',
'multi' : true,
'queueID' : 'fileQueue',
'auto' : true,
'onAllComplete' : function() {
loadGallery('1');
}
});
});
</script>
</head>
<body>
<?php
$msg=""; /************ to avoid notice msg in some servers:"undefined variable msg************************/
?>