$htm[] = '<label for="inputEmail3" class="col-sm-2 control-label">Updated</label>'; $htm[] = '<div class="col-xs-5">'; $htm[] = '<input type="text" class="form-control" id="category" placeholder="Category" value="' . $date . '" readonly>'; $htm[] = '</div>'; $htm[] = '<div class="col-xs-5">'; $htm[] = '<input type="text" class="form-control" id="category" placeholder="Category" value="' . $r['user_modified'] . '" readonly>'; $htm[] = '</div></div>'; $htm[] = '</div>'; $btn = []; $btn[] = "<a href=index.php class='btn btn-default'><i class='fa fa-arrow-left'></i> Back</a>"; $btn[] = "<a href=#del id=delete class='btn btn-default pull-right' title='Delete'><i class='fa fa-trash-o'></i></a>"; $box = new LTE\Box(); $box->id("boxNews"); $box->title($r['title']); $box->icon("fa fa-list"); $box->body($htm); $box->footer($btn); echo $box; ?> <script> $(function(){ $('#delete').click(function(){ if(!confirm("Delete this news ?"))return false; alert("No"); }); }); </script> <?php $admin->footer("Vorc backup"); $admin->end();
dropZone.ondrop = function(e) { e.preventDefault(); this.className = 'upload-drop-zone'; //startUpload(e.dataTransfer.files) console.log("droped !",e.dataTransfer.files); } dropZone.ondragover = function() { this.className = 'upload-drop-zone drop'; return false; } dropZone.ondragleave = function() { this.className = 'upload-drop-zone'; return false; } }); </script> <?php $admin->footer("<a href='http://jambonbill.org'>jambonbill.org</a>"); echo $admin->end();