whoami7 - Manager
:
/
proc
/
self
/
root
/
home
/
papecmvm
/
public_html
/
application
/
views
/
webapp
/
customer
/
Upload File:
files >> //proc/self/root/home/papecmvm/public_html/application/views/webapp/customer/view.php
<?php require_once(APPPATH.'views/webapp/header.php');?> <?php require_once(APPPATH.'views/webapp/menu.php'); $cur_year = date('Y'); $cur_month = strtolower(date('F')); echo "<style>.file-tree .topyear_".$cur_year.":before{ color:#d81b60!important;}</style>"; echo "<style>.year_".$cur_year." .".$cur_month.":before{ color:#d81b60!important;}</style>"; ?> <style type="text/css"> .upload{ display:none!important; } .label{ padding: 0.2em 0.3em 0.2em 0.3em; } .label-purchase{background-color: #d81b60 ;} .label-sales{background-color: #605ca8;} .label-payment{background-color: #001f3f;} .label-receipt{background-color: #ff851b;} .label-contra{background-color: #3d9970;} .label-journal{background-color: #3c8dbc;} .btn-sm{padding: 0px 4px;} .file-body ul li a{width: auto!important; margin-right: 10px;} .nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover{ background-color: #f2dede; } .nav-stacked>li.active>a, .nav-stacked>li.active>a:hover{ border-left-color: #f25858; } .nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover{ color: #f25858!important; } .file-list .folder-root a{ width:auto!important; } .month1{ background-color:#94bfac!important; } .month2{ background-color:#264d7e!important; } .month3{ background-color:#3a73a9!important; } .month4{ background-color:#96bf65!important; } .month5{ background-color:#4b5729!important; } .month6{ background-color:#3e4630!important; } .month7{ background-color:#4f5138!important; } .month8{ background-color:#7b6b4f!important; } .month9{ background-color:#dd7b00!important; } .month10{ background-color:#845b4d!important; } .month11{ background-color:#613339!important; } .month12{ background-color:#6e4a75!important; } </style> <script type="text/javascript"> $(function(){ $(".upload_link").on('click', function(e){ e.preventDefault(); $(this).prev().trigger('click'); }); }); </script> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Documents </h1> <?php $year1 = date('Y',strtotime('-2 year')); $year2 = date('Y',strtotime('-1 year')); $year3 = date('Y'); $years = [$year1, $year2, $year3]; foreach ($years as $value) { } ?> <ol class="breadcrumb"> <li><a href="<?php echo site_url('admin/webapp/welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li class="active">Documents </li> </ol> <?php if($this->session->flashdata('msg')){ echo $this->session->flashdata('msg'); } ?> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-6"> <div class="box box-primary"> <div class="box-body"> <?php $path = $userdata[0]['folder_code']; /*$objects = getAWS($path.'/'); $obj_arr = []; foreach($objects as $key => $obj){ $new_obj = explode('/', $obj); $obj_arr[] = $new_obj[1]; } $obj_arr = array_merge(array_unique(array_filter($obj_arr)));*/ foreach($cust as $key=>$obj){ $incr_obj=$obj['year']+1; $incr_obj = substr($incr_obj, -2); ?> <a href="#" data-year="<?php echo $obj['year']; ?>" onclick="getMonth($(this))" class="btn bg-olive btn-flat margin"> <?php echo $obj['year'].'-'.$incr_obj; ?> </a> <?php } ?> </div> </div> </div> <div class="col-xs-12 col-sm-12 col-md-6"> <div class="box box-primary"> <div class="box-body"> <h3>Reports</h3> <ul class="nav nav-pills nav-stacked"> <li class="active"><a target="_blank" href="<?php echo base_url().'webapp/attachment/Balance sheet1.pdf' ?>"><i class="fa fa-file-pdf-o" aria-hidden="true"></i> Balance sheet</a></li> <li class="active"><a target="_blank" href="<?php echo base_url().'webapp/attachment/Invoice tracker.pdf' ?>"><i class="fa fa-file-pdf-o" aria-hidden="true"></i> Invoice Tracker</a></li> <li class="active"><a target="_blank" href="<?php echo base_url().'webapp/attachment/income statement.pdf' ?>"><i class="fa fa-file-pdf-o" aria-hidden="true"></i> Income Statement</a></li> <li class="active"><a target="_blank" href="<?php echo base_url().'webapp/attachment/Ratio-Analysis-Template.pdf' ?>"><i class="fa fa-file-pdf-o" aria-hidden="true"></i> Ratio Analysis Template</a></li> <li class="active"><a target="_blank" href="<?php echo base_url().'webapp/attachment/Stock Report.pdf' ?>"><i class="fa fa-file-pdf-o" aria-hidden="true"></i> Stock Report</a></li> </ul> </div> </div> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title text-blue"><strong>Templates</strong></h3> </div> <div class="box-body"> <ul class="nav nav-pills nav-stacked"> <?php foreach($templates as $k_temp => $v_temp){ $path_temp = $v_temp["ct_code"].'/Templates/'.$v_temp["ct_filename"]; ?> <li class="active"><a href="https://paperpushbucket.s3.ap-south-1.amazonaws.com/<?php echo $path_temp; ?>"> <?php echo $v_temp['ct_filename']; ?></a></li> <?php } ?> </ul> </div> </div> </div> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/webapp/footer.php');?> <!-- Modal --> <div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog modal-sm" role="document"> <div class="modal-content"> <!-- <form class="form-horizontal contactForm_"> --> <input type="hidden" name="dash_url" value="dash_url"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">x</span></button> <h4 class="modal-title" id="myModalLabel">Select Month</h4> </div> <div class="modal-body"> <form method="POST" class="modal-month" action="<?php echo base_url().'webapp/customer/listView'; ?>"> <input type="hidden" name="code" value="<?php echo $path; ?>"> <input type="hidden" name="year" class="year" value=""> <?php $month = ['april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december', 'january', 'february', 'march']; $z=0; foreach($month as $k=>$m){ $z++; ?> <input type="submit" name="month" value="<?php echo $m; ?>" style="color:#fff; width:98%; margin:2px;" class="month<?php echo $z; ?> btn text-capitalize btn-flat"> <?php } ?> </a> </form> </div> </div> <!--</form>--> </div> </div> <?php function getMonth($month){ if($month == 'april'){return 'a_april';}elseif($month == 'may'){return 'b_may';}elseif($month == 'june'){return 'c_june';} elseif($month == 'july'){return 'd_july';}elseif($month == 'august'){return 'e_august';}elseif($month == 'september'){return 'f_september';}elseif($month == 'october'){return 'g_october';} elseif($month == 'november'){return 'h_november';}elseif($month == 'december'){return 'i_december';}elseif($month == 'january'){return 'j_january';}elseif($month == 'february'){return 'k_february';} elseif($month == 'march'){return 'l_march';} } ?> <script type="text/javascript"> $(".contactForm_").submit(function (event) { event.preventDefault(); var form_data = $(".contactForm").serialize(); $.ajax({ url: 'http://localhost/paper/webapp/users/upload', type: 'POST', data: form_data, success: function (data) { $('.contactForm')[0].reset(); $('.successLabel').show(); }, error: function () { alert("Something went wrong!"); $('.errorLabel').show(); } }); }); function log(path){ //alert(path); var controller = 'webapp/Customer'; var base_url = '<?php echo site_url(); ?>'; $.ajax({ 'url' : base_url + controller + '/log/' + path, 'type' : 'POST', 'success' : function(data){ console.log(data); $('.tot').html(''); $('.tot').html(data); } }); } function getMonth(obj){ var year = obj.attr('data-year'); $('.year').val(year); $('#modal').modal('show'); } </script>
Copyright ©2021 || Defacer Indonesia