( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php $campaign = $_GET["campaign"];
if(!empty($campaign))
{?>
<section class=" " >
<header class="panel-heading " >
<table width="100%" border="0">
<tr>
<td><b class="text-success h4">Create Design and add JSON File</b></td>
<td><?php /*?> <button type="button" class="btn btn-white startCampaign pull-right"><i class="icon-chevron-left"></i>Back</button><?php */?></td>
</tr>
</table>
<?php /*?> <table width="100%" border="0">
<tr>
<td width="100%"> <b class="text-success h4">Start a Campaign</b> </td>
<td> </td>
</tr></table><?php */?> <?php /*?><div class="line line-dashed"></div><?php */?>
<?php /*?> <div class="line line-dashed"></div><?php */?>
<span class="h4 block m-b-lg<?php /*?> m-t-lg<?php */?> "> </span>
<div id="err"></div>
<form id="form" action="<?php echo $siteaddress;?>v/ajaxupload.php" method="post" enctype="multipart/form-data">
<div class="form-group col-lg-12" >
<input type="text" name="title" id="title" placeholder="Unique title of your design" class="form-control input-lg "> </div>
<div class="form-group col-lg-12">
<input type="text" name="width" id="width" placeholder="Width of your design in px" class="form-control input-lg "> </div>
<div class="form-group col-lg-12">
<input type="text" name="height" id="height" placeholder="Height of your design in px" class="form-control input-lg "> </div>
<div class="form-group col-lg-12">
<input class="btn btn-white" id="uploadImage" type="file" <?php /*?> accept="image/*" <?php */?>name="image" /></div>
<div id="preview" style="display: none"><img src="<?php echo $siteaddress;?>pages/splash/stock/list.png" /></div>
<input id="startCampaign" name="startCampaign" class="form-control" value="startCampaign" type="hidden">
<input id="realtheme" name="realtheme" class="form-control" value="<?php echo ucwords($resultLayout[0]["title"]);?>" type="hidden">
<input id="themeid" name="themeid" class="form-control" value="<?php echo ucwords($resultLayout[0]["id"]);?>" type="hidden"><input id="catalogid" name="catalogid" class="form-control" value="<?php echo $catalogidX;?>" type="hidden">
<input id="mytheme" name="mytheme" class="form-control" value="<?php if( $resultLayout[0]["isdisplay"] == 13) {?>machine<?php }else{?><?php echo ucwords($resultLayout[0]["title"]);?><?php }
?>" type="hidden">
<div class="form-group col-lg-12" style="margin-top:20px;">
<input class="btn btn-warning " type="submit" value="Import Design"></div>
</form>
<script>
$(document).ready(function (e) {
$("#form").on('submit',(function(e) {
e.preventDefault();
$.ajax({
url: "<?php echo $siteaddress;?>v/ajaxuploadjson.php",
type: "POST",
data: new FormData(this),
contentType: false,
cache: false,
processData:false,
beforeSend : function()
{
//$("#preview").fadeOut();
$("#err").fadeOut();
},
success: function(data)
{
if(data=='invalid')
{
// invalid file format.
$("#err").html("Invalid File !").fadeIn();
$("#check").html("Invalid File !").fadeIn();
}
else
{
if(data=='0')
{
$("#err").html("Duplicate design title. Choose another ").fadeIn();return;
}
window.location = "mode.php?mode=photoshop&design="+data;
// view uploaded file.
$("#preview").html(data).fadeIn();
$("#form")[0].reset();
}
},
error: function(e)
{
$("#err").html(e).fadeIn();
}
});
}));
});
</script>
</header></section>
<?php /*?><div class=" checkbox " style="font-size:12px; " >
Use of Hashbrand signifies acceptance of our terms and conditions. HashBrands last a maximum of 12hours
</div> <?php */?>
<?php } ?>