home
/
zktecojo
/
public_html
/
app
/
storage
/
views
/
test
➕ New
📤 Upload
✎ Editing:
1a6727e7534e8a0e428d55a92c0203b9
← Back
<div class="box-body"> <?php echo $messages; ?> <?php echo Form::open(array('files'=>true,'id'=>"uploadGal",'name'=>"uploadGal")); ?> <input type="hidden" name="prd_id" id="prd_id" value="<?php echo $rsproducts->product_id ?>" /> <div class="form-group clearfix"> <label>Add Images</label> <input type="File" name="gal_name[]" class="form-control" /> <div class="col-sm-4 addVideo">+ Add More Image</div> </div> <div class="row"> <div class="col-sm-2"> <label> </label> <div class="form-group"> <input type="submit" name="creategeneral" value="Submit" id="uploadGallery" class="btn btn-primary"> </div> </div> </div> <?php echo Form::close(); ?> </div> <script type="text/javascript"> var baseURL = $("meta[name='baseurl']").attr("content"); $(document).ready( function(){ $("#uploadGal").on('submit',(function(e) { e.preventDefault(); $.ajax({ url: baseURL +"admin/product/update_gallery/", type:'post', data:new FormData(this), dataType:'html', statusCode: { 302:function(){ alert('Forbidden. Access Restricted'); }, 403:function(){ alert('Forbidden. Access Restricted','403'); }, 404:function(){ alert('Page not found','404'); }, 500:function(){ alert('Internal Server Error','500'); } } }).done(function(responseData){ alert(1); alert(responseData) $('#fragment-2').html(responseData); //$('#comBasic').unmask(); }).error(function(jqXHR,textStatus){ //$('#comBasic').unmask(); alert(10); $('#fragment-2').html(responseData); }); }).error(function(jqXHR,textStatus){ alert('error'); //$('#comBasic').unmask(); }); }); </script> <script type="text/javascript"> $('.addVideo').on('click',function(){ $('.addVideo').before('<div class="moreLink "><input type="file" name="gal_name[]" class="textlink"/><span class="removeLink">X</span></div>'); }); $('.form-group').on('click','.removeLink',function(e){ if(confirm('are you sure')==true){ $(this).parent().remove(); } }); </script>
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel