<?php $base_url = base_url();?>
		<!-- basic scripts -->

		<!--[if !IE]> -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='<?php echo $base_url;?>assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='<?php echo $base_url;?>assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='<?php echo $base_url;?>assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="<?php echo $base_url;?>assets/js/bootstrap.min.js"></script>
		<script src="<?php echo $base_url;?>assets/js/typeahead-bs2.min.js"></script>

		<!-- page specific plugin scripts -->

		<!--[if lte IE 8]>
		  <script src="<?php echo $base_url;?>assets/js/excanvas.min.js"></script>
		<![endif]-->
		<script src="<?php echo $base_url;?>assets/js/dropzone.min.js"></script>

		<script src="<?php echo $base_url;?>assets/js/fuelux/data/fuelux.tree-sampledata.js"></script>
		<script src="<?php echo $base_url;?>assets/js/fuelux/fuelux.tree.min.js"></script>

		<script src="<?php echo $base_url;?>assets/js/jquery-ui-1.10.3.custom.min.js"></script>
		<script src="<?php echo $base_url;?>assets/js/jquery.ui.touch-punch.min.js"></script>
		<script src="<?php echo $base_url;?>assets/js/jquery.slimscroll.min.js"></script>

		<!-- ace scripts -->

		<script src="<?php echo $base_url;?>assets/js/ace-elements.min.js"></script>
		<script src="<?php echo $base_url;?>assets/js/ace.min.js"></script>

		<!-- inline scripts related to this page -->

		<script type="text/javascript">
			jQuery(function($){
			
			try {
			  $(".dropzone").dropzone({
			    paramName: "file", // The name that will be used to transfer the file
			    maxFilesize: 0.5, // MB
			  
				addRemoveLinks : true,
				dictDefaultMessage :
				'<span class="bigger-150 bolder"><i class="icon-caret-right red"></i> Kéo thả file</span>  để tải lên \
				<span class="smaller-80 grey">(hoặc click)</span> <br /> \
				<i class="upload-icon icon-cloud-upload blue icon-3x"></i>'
			,
				dictResponseError: 'Error while uploading file!',
				
				//change the previewTemplate to use Bootstrap progress bars
				previewTemplate: "<div class=\"dz-preview dz-file-preview\">\n  <div class=\"dz-details\">\n    <div class=\"dz-filename\"><span data-dz-name></span></div>\n    <div class=\"dz-size\" data-dz-size></div>\n    <img data-dz-thumbnail />\n  </div>\n  <div class=\"progress progress-small progress-striped active\"><div class=\"progress-bar progress-bar-success\" data-dz-uploadprogress></div></div>\n  <div class=\"dz-success-mark\"><span></span></div>\n  <div class=\"dz-error-mark\"><span></span></div>\n  <div class=\"dz-error-message\"><span data-dz-errormessage></span></div>\n</div>"
			  });
			} catch(e) {
			  alert('Dropzone.js does not support older browsers!');
			}
			
			});

			$('#tree2').ace_tree({
				dataSource: treeDataSource2 ,
				loadingHTML:'<div class="tree-loading"><i class="icon-refresh icon-spin blue"></i></div>',
				'open-icon' : 'icon-folder-open',
				'close-icon' : 'icon-folder-close',
				'selectable' : false,
				'selected-icon' : null,
				'unselected-icon' : null
			});
		</script>
		</script>
                <?php
                if (isset($usjs))
                {
                foreach ($usjs as $file)
                {
                ?>
                	<script src="<?php echo $base_url;?><?php echo $file?>"></script>
                <?php
                }
                }
                ?>
		<script>
	</body>
</html>