<?php echo incCSS(locationPlugin('url') . 'toggles/dist/css/bootstrap3/bootstrap-switch.min'); echo incJS(locationPlugin('url') . 'toggles/dist/js/bootstrap-switch.min'); ?> <script> $(document).ready(function(){ $("[name='service']").bootstrapSwitch(); $('input[name="service"]').on('switchChange.bootstrapSwitch', function(event, state) { if(state==true){ $("#laststate").val("1"); $("#option").show(); }else{ $("#laststate").val("0"); $("#option").hide(); } }); $("#tipe").change(function(){ var id=$(this).val(); $.ajax({ type:'get', dataType:'html', url:'<?php echo base_url(roleURIUser() . "/config/captcha/showconfig"); ?> ', data:'tipe='+id, beforeSend:function(){ $("#config").hide(); $("#loader").show();
<?php echo incCSS(locationPlugin('url') . 'datatables/dataTables.bootstrap'); echo incCSS(locationPlugin('url') . 'datatables/extensions/responsive/css/dataTables.responsive'); echo incJS(locationPlugin('url') . 'datatables/jquery.dataTables'); echo incJS(locationPlugin('url') . 'datatables/dataTables.bootstrap'); echo incJS(locationPlugin('url') . 'datatables/extensions/responsive/js/dataTables.responsive'); ?> <script> $(document).ready(function(){ $('.data-render').dataTable({ "sPaginationType": "full_numbers", "iDisplayLength": 10, "oLanguage": { "sLengthMenu": "<span class='lenghtMenu'> _MENU_</span><span class='lengthLabel'>Entries per page:</span>", }, "sDom": '<"tbl-searchbox clearfix"fl<"clear">>,<"table_content"t>,<"widget-bottom"p<"clear">>' }); $("div.tbl-searchbox select").addClass('tbl_length'); $(".editbtn").each(function(){ $(this).click(function(){ var did=$(this).attr('data-id'); $.ajax({ type:'get', dataType:'html', url:'<?php echo base_url(roleURIUser() . "content/category/edit"); ?>
<?php echo incCSS(locationPlugin() . 'tags/jquery-tag-this'); echo incCSS(locationPlugin() . 'jqueryui/jquery-ui.min'); echo incCSS(locationPlugin() . 'tags/jquery-ui-1.9.2.custom.min'); echo incJS(locationPlugin() . 'jqueryui/jquery-ui.min'); echo incJS(locationPlugin() . 'tags/jquery-ui-1.9.2.custom.min'); echo incJS(locationPlugin() . 'tags/jquery.tagthis'); echo incCSS(locationPlugin() . 'timepicker/bootstrap-timepicker.min'); echo incJS(locationPlugin() . 'timepicker/bootstrap-timepicker.min'); ?> <script> $(document).ready(function(){ $(".timepicker").timepicker({ secondStep: false, showMeridian:false, showInputs: false }); $("#triggertimer").click(function(){ $(".timepicker").trigger("focus"); }); $(".tanggal").datepicker({ dateFormat: "yy-mm-dd", showAnim:"slide", changeMonth: true, changeYear: true, yearRange:'c-2:c+1',
if(url!=''){ $("#addFeature").hide(); } } }; div.innerHTML = '<iframe name="kcfinder_iframe" src="<?php echo locationPlugin("url") . "kcfinder"; ?> /browse.php?type=images&dir=assets/uploads/" ' + 'frameborder="0" width="100%" height="100%" marginwidth="0" marginheight="0" scrolling="no" />'; div.style.display = 'block'; } </script> <?php echo incCSS(locationPlugin() . 'bootstrapeditor/bootstrap3-wysihtml5.min'); echo incJS(locationPlugin() . 'bootstrapeditor/bootstrap3-wysihtml5.all.min'); foreach ($data as $row) { } $att = array('class' => 'form-horizontal'); echo form_open(base_url(roleURIUser() . 'media/album/editapply'), $att); ?> <input type="hidden" name="albumid" value="<?php echo $row->album_id; ?> "/> <div class="col-sm-12" id="btnup"> <button type="submit" class="btn btn-default btn-flat pull-right" id="submitbtn">Simpan</button> </div> <div id="kcfinder_div"></div> <div class="form-group"> <label class="col-sm-2 control-label">Nama Album</label>
<?php echo incCSS(locationPlugin() . 'jqueryui/jquery-ui.min'); echo incJS(locationPlugin() . 'jqueryui/jquery-ui.min'); echo incJS(locationAsset('url') . 'js/nestedmenu'); echo incCSS(locationAsset() . 'css/nestedmenu'); ?> <script> $(document).ready(function(){ var ns = $('ol.sortable').nestedSortable({ forcePlaceholderSize: true, handle: 'div', helper: 'clone', items: 'li', opacity: .6, placeholder: 'placeholder', revert: 250, tabSize: 25, tolerance: 'pointer', toleranceElement: '> div', maxLevels: 3, isTree: true, expandOnHover: 700, startCollapsed: false, update: function(){ serialized = $('ol.sortable').nestedSortable('serialize'); $.ajax({ type:"post", dataType:"json", url:'<?php echo site_url(roleURIUser());
if($(".textarea-editor").length){ $(".textarea-editor").wysihtml5(); } $(".select2").select2({ placeholder: "Ketik nama Album" }); }); </script> <?php echo incCSS(locationPlugin() . 'bootstrapeditor/bootstrap3-wysihtml5.min'); echo incCSS(locationPlugin() . 'select2/select2'); echo incCSS(locationPlugin() . 'select2/select2-bootstrap'); echo incJS(locationPlugin() . 'bootstrapeditor/bootstrap3-wysihtml5.all.min'); echo incJS(locationPlugin() . 'select2/select2.min'); echo incJS(locationPlugin() . 'select2/select2_locale_id'); $att = array('class' => 'form-horizontal'); echo form_open(base_url(roleURIUser() . 'media/gallery/addapply'), $att); ?> <div class="col-sm-12" id="btnup"> <button type="submit" class="btn btn-default btn-flat pull-right" id="submitbtn">Simpan</button> </div> <div id="kcfinder_div"></div> <div class="form-group"> <label class="col-sm-2 control-label">Nama Galeri</label> <div class="col-md-6"> <input type="text" name="nama" class="form-control" required="" value="<?php echo set_value('nama'); ?> "/> </div>
<?php foreach ($data as $row) { } echo incJS(locationPlugin('url') . 'ckeditor/ckeditor'); $token = md5(sha1(md5(userInfo('user_id')))); ?> <textarea id="editor1" name="konten" class="form-control" placeholder="Tulis Konten berita" required=""> <?php echo $row->post_content; ?> </textarea> <div id="kcfinder_div"></div> <script> CKEDITOR.replace( 'editor1', { language: 'en', filebrowserBrowseUrl: '<?php echo locationPlugin("url") . "kcfinder/"; ?> browse.php?opener=ckeditor&type=files&token=<?php echo $token; ?> ', filebrowserImageBrowseUrl: '<?php echo locationPlugin("url") . "kcfinder/"; ?> browse.php?opener=ckeditor&type=images&token=<?php echo $token; ?> ', filebrowserFlashBrowseUrl: '<?php