whoami7 - Manager
:
/
proc
/
self
/
root
/
home
/
papecmvm
/
www
/
application
/
views
/
Web
/
Upload File:
files >> //proc/self/root/home/papecmvm/www/application/views/Web/service.php
<?php $CI =& get_instance(); $offset=$this->uri->segment(1); echo "<style>.".$offset.">a{ border-left: 2px solid #c1d208!important;}</style>"; echo "<style>.".$offset."menu>a{ color:#c1d208!important;}</style>"; echo "<style>.main_".$offset.">a{ color:#c1d208!important;}</style>"; ?> <style> </style> <div class="block"></div> <div class="container-fluid"> <div class="inner-head"> <h1><?php echo $service[0]['titlepost'];?></h1> </div> </div> <div class="block"></div> <div class="row no-gutters"> <div class="col-sm-12"> <div class="container-fluid"> <div class="inner-content"> <?php echo $service[0]['contentpost'];?> </div> </div> </div> </div> <div class="block"></div> <script> $(document).ready(function(){ //------------ featch style tag css --------------- (function ($) { $.fn.inlineStyle = function (prop) { var styles = this.attr("style"), value; //alert(styles); return styles; }; }(jQuery)); //---------------- replace table tags -------------- var tbllen=$( ".div-table tr:visible" ).length; $(".div-table tr").each(function() { var tableData = $(this).find('td'); //alert($('table tr:visible').length ); var len=tableData.length; //alert(tableData.length); var i=0; for(var n=1; n<=tbllen; n++){ var tbllen1=$( ".div-table:lt("+n+") tr:visible" ).length; var tableData1 = $(".div-table:lt("+n+")").find('td'); var len1=tableData1.length; // alert(len1); if (tableData1.length > 0) { var x=0; tableData1.each(function() { //var colspan=$(this).prop("rowspan"); // alert(colspan); var stylecss_Arr=$(this).inlineStyle(); // STYLE TAG CSS if(stylecss_Arr!=undefined){ stylecss=stylecss_Arr; }else{ stylecss=""; } //-------- CHECK : TD COUNT ------- if(len1==1){ var className="col-sm-12"; }else if(len1==2){ var className="col-sm-6"; }else if(len1==3){ var className="col-sm-4"; }else if(len1==4){ var className="col-sm-3"; }else{ var className=""; } if($('img').length){ $("img").addClass("img-responsive"); } $(this).replaceWith($('<div class="'+className+'" style="'+stylecss+'">').html($(this).html())); x++; }); } i++; //alert(len1+"--"+i); if(tbllen1==i){ $(".div-table:lt("+n+")").replaceWith( "<div class='row'>" + $('.div-table:lt('+n+')').html() + "</div>" ); } } }); }); </script>
Copyright ©2021 || Defacer Indonesia