<script id="tmp_file" type="text/x-jquery-tmpl"> <tr id="file_${idx}" data-file_id="${idx}" class='file_row'> <td><a href="./${relative_path}" class='file_open' target='_blank'><i class="icon-search"></i> </a><input type="hidden" name="file_id[]" value="${idx}"/></a><input type="hidden" name="tipe_doc[]" value="${tipe_doc}"/></td><td><input name='dasar_surat[]' value="${file_name}" type="hidden" style='width:300px' class="required form-control input-sm"/><label style='height:auto;'>${file_name}</td><td><a href="" class='file_remove red'><i class="icon-remove"></i> </a></td></tr> </script> <script id="tmp_file_upload" type="text/x-jquery-tmpl"> <tr class='file_row' id="file_upload_${idx}" data-file_id="${idx}"> <td><input type="hidden" name="upload_file_id[]" value="${idx}"/><a href="./${relative_path}" class='file_open' target='_blank'><i class="icon-search"></i> </a></td><td> <label style='height:auto;'>${file_name}</label></td><td><a href="" class='upload_file_remove red'><i class="icon-remove"></i> </a></td></tr> </script> <?php echo loadFunction("select2"); ?> <script> $(function(){ $(".a_uu").click(function(e){ e.preventDefault(); var mytxt=$("#dasar_txt").val(); var myid=$("#dasar_id").val(); var url=$(this).attr("href"); if(mytxt!=""){ url+="?id="+encodeURIComponent(myid)+"&txt="+encodeURIComponent(mytxt); } $.colorbox({
<?php echo loadFunction("validate"); echo js_asset("plugin/date.format.js"); echo js_asset("plugin/json2/json2.js"); echo js_asset("plugin/store/store.min.js"); echo loadFunction("quicksearch"); ?> <script> $(function(){ var act_link="<?php echo substr(trim($this->module), 0, -1); ?> "; //alert(act_link); var currLink=window.location.pathname; var removeStr=currLink.split("<?php echo $this->module; ?> ")[1]; currLink=act_link+"/"+removeStr; var arrCurrLink=currLink.split("/"); currLink=arrCurrLink.join("/"); currLink = currLink.replace(/^\/|\/$/g, ''); //alert(currLink); var el=$(".sidebar-menu").find("a[href*='"+currLink+"']:first"); if(el.length<1){ var el=$(".sidebar-menu").find("a[href*='"+act_link+"']:first"); } //console.log(el); $(".sidebar-menu").find("li.active").removeClass("active");
<?php if (cek_array($data_file)) { ?> <?php foreach ($data_file as $x => $val) { ?> <li><a class="file" href="<?php echo str_replace("img/ori", "img/resize", $val["file_path"]); ?> "><?php echo $val["file_name"]; ?> </a></li> <?php } ?> <?php } ?> </ol> </div> </div> <?php echo loadFunction("colorbox"); ?> <script> $(function(){ $(".file[href$=jpg],.file[href$=jpeg],.file[href$=png],.file[href$=bmp]").colorbox(); }); </script>
<link href='assets/js/plugins/daterange/daterangepicker-bs3.css' rel='stylesheet' /> <!-- end: CSS --> <!-- The HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <script src="assets/js/respond.min.js"></script> <![endif]--> <!-- start: Favicon and Touch Icons --> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="57x57" href="assets/ico/apple-touch-icon-57-precomposed.png"> <link rel="shortcut icon" href="assets/ico/favicon.png"> <!-- end: Favicon and Touch Icons --> <script src="assets/js/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="assets/3.0/js/bootstrap.min.js"></script> <?php echo loadFunction("validate"); ?> <?php $this->load->view("admin_layout/header_js"); ?> </head> <body> <div id="content">
</div> <div class="formSep"></div> <div class="row"> <div class="col-md-12"> <div class="form-actions col-md-12"> <button class="btn btn-primary save" type="submit"><i class="icon-book icon-white"></i> Save </button> <button type="reset" class="btn btn-warning "><i class="icon-refresh"></i> Reset </button> </div> </div> </div> </form>--> </div> </div> <?php loadFunction("json"); echo js_asset("jquery.tmpl.min.js"); echo js_asset("jquery.tmplPlus.min.js"); ?> <script id="tmp_file" type="text/x-jquery-tmpl"> <tr id="file_${idx}" data-file_id="${idx}" class='file_row'> <td><a href="./${relative_path}" class='file_open' target='_blank'><i class="icon-search"></i> </a><input type="hidden" name="file_id[]" value="${idx}"/></a><input type="hidden" name="tipe_doc[]" value="${tipe_doc}"/></td><td><input name='dasar_surat[]' value="${file_name}" type="hidden" style='width:300px' class="form-control input-sm"/><label style='height:auto;'>${file_name}</td><td><a href="" class='file_remove red'><i class="icon-remove"></i> </a></td></tr> </script> <script id="tmp_file_peta" type="text/x-jquery-tmpl"> <tr class='file_row' id="file_peta_${idx}" data-file_id="${idx}"> <td><input type="hidden" name="peta_file_id[]" value="${idx}"/><a href="./${relative_path}" class='file_open' target='_blank'><i class="icon-search"></i> </a></td><td> <label style='height:auto;'>${file_name}</label></td><td><a href="" class='peta_file_remove red'><i class="icon-remove"></i> </a></td></tr> </script>