Mini Shell

Direktori : /home/sicomercio/public_html/adm/
Upload File :
Current File : /home/sicomercio/public_html/adm/trocarbanner.php

<?
include"menu.php";



switch ($permissao)
{
case "2":
 
break;


default:
echo "<script>
alert('sem permissão! ');
 
</script>";
exit();
break;
}





$id = $_GET["id"];
$antigo = $_GET["antigo"];






?>


<!DOCTYPE html>
<html>
  <head>
<title>ENVIO DE BANNER</title>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<style type="text/css">
      img {border-width: 0}
      * {font-family:'Lucida Grande', sans-serif;}
    </style>
<link href="css/uploadfilemulti.css" rel="stylesheet">
<script src="js/jquery-1.8.0.min.js"></script>
<script src="js/jquery.fileuploadmulti.min.js"></script>

</head>
  <body>
  <center>
  Envie o arquivo em JPG  ou  PNG

<div id="mulitplefileuploader">ENVIAR</div>

<div id="status"></div>
</center>



<script>

$(document).ready(function()
{

var settings = {
	url: "uploadtrocabanner.php?id=<? echo $id; ?>&antigo=<? echo $antigo; ?>",
	method: "POST",
	allowedTypes:"jpg,png",
	fileName: "myfile",
	multiple: false,
	onSuccess:function(files,data,xhr)
	{
		$("#status").html("<font color='green'>ENVIADO COM SUCESSO</font>");
		
	},
    afterUploadAll:function()
    {
        alert("ENVIADO COM SUCESSO!!");
		
			  window.history.back();
    },
	onError: function(files,status,errMsg)
	{		
		$("#status").html("<font color='red'>ERRO NO ENVIO</font>");
	}
}
$("#mulitplefileuploader").uploadFile(settings);

});
</script>
</body>
</html>

Zerion Mini Shell 1.0