whoami7 - Manager
:
/
home
/
papecmvm
/
www
/
documents
/
6204_Rajpara
/
2020
/
k_november
/
receipt
/
Upload File:
files >> //home/papecmvm/www/documents/6204_Rajpara/2020/k_november/receipt/portfolio.tar
portfolio.php 0000644 00000011776 14655120231 0007305 0 ustar 00 <?php require_once(APPPATH.'views/header.php');?> <?php require_once(APPPATH.'views/menu.php');?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Portfolio </h1> <ol class="breadcrumb"> <li><a href="<?php echo site_url('admin/welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li class="active">Portfolio</li> </ol> </section> <!-- Main content --> <section class="content"> <?php echo form_open("", array('id'=>'formid')); ?> <!-- /.row --> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-header"> <div class="text-left"> <a href="<?php echo base_url();?>admin/portfolio/add_portfolio" class="btn btn-success"><i class="fa fa-plus"></i> Add portfolio</a> <button class="btn btn-danger" id="deletedata" type="button"><i class="fa fa-trash"></i> Trash </button> </div> </div><!-- /.box-header --> <div class="box-body"> <?php if($this->session->flashdata('msg')){ echo $this->session->flashdata('msg'); } ?> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th> <input type="checkbox" class="minimal-red" name="checkall" id="checkall" /></th> <th>Portfolio Name</th> <th>Portfolio Category</th> <th>Portfolio Description</th> <th>Action</th> </tr> </thead> <tbody> <?php foreach($view as $key) { $this->load->model('alldata','model'); $encrypted_id = $this->model->encryptdata($key['portfolio_id']); ?> <tr> <td> <input type="checkbox" name="ck" class="minimal-red" value="<?php echo $key['portfolio_id'];?>"/> </td> <td><?php echo $key['portfolio_name']; ?></td> <td><?php echo $key['portfolio_cat_name']; ?></td> <td><?php echo $key['prot_desc']; ?></td> <td> <a class="btn btn-primary" href="<?php echo base_url(); ?>admin/portfolio/edit_portfolio/<?php echo $encrypted_id; ?>" title="Edit"><i class="glyphicon glyphicon-edit text-center"></i></a> </td> </tr> <?php } ?> </tbody> </table> </div><!-- /.box-body --> </div><!-- /.box --> </div> </div> <!-- /.row --> <?php echo form_close(); ?> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/footer.php');?> <script type="text/javascript"> $(document).ready(function(){ //---------------- delete message ------------------------------------- $('#deletedata').click(function() { var exists = $('input[type=checkbox][name^=ck]:checked').filter(':checked').length; if( !exists ) { alert('Please select at least 1 checkbox!'); return false; } else if(confirm('Are you sure you want to delete this Data?')) { var cct = $.cookie("<?php echo $this->config->item('csrf_cookie_name'); ?>"); var postData = $('input[type=checkbox][name^=ck]:checked').serialize(); $.post("portfolio/delete_portfolio",{ck: postData,'<?php echo $this->security->get_csrf_token_name(); ?>': cct}, function(data,status){ location.reload(); }); //$('#formid').submit(); } else { return false; } }); }); </script> portfolio_cat.php 0000644 00000012025 14655120232 0010121 0 ustar 00 <?php require_once(APPPATH.'views/header.php');?> <?php require_once(APPPATH.'views/menu.php');?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Portfolio Category </h1> <ol class="breadcrumb"> <li><a href="<?php echo site_url('admin/welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li class="active">Portfolio Category</li> </ol> </section> <!-- Main content --> <section class="content"> <?php echo form_open("admin/portfolioCategory/delete_portfoliocategory", array('id'=>'formid')); ?> <!-- /.row --> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-header"> <div class="text-left"> <a href="<?php echo base_url();?>admin/portfoliocategory/add_portfoliocategory" class="btn btn-success"><i class="fa fa-plus"></i> Add Portfolio Category</a> <button class="btn btn-danger" id="deletedata" type="button"><i class="fa fa-trash"></i> Trash </button> </div> </div><!-- /.box-header --> <div class="box-body"> <?php if($this->session->flashdata('msg')){ echo $this->session->flashdata('msg'); } ?> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th> <input type="checkbox" class="minimal-red" name="checkall" id="checkall" /></th> <th>Portfolio Category Name</th> <th>Category Code</th> <th>Action</th> </tr> </thead> <tbody> <?php foreach($view as $key) { $this->load->model('alldata','model'); $encrypted_id = $this->model->encryptdata($key['portfolio_cat_id']); ?> <tr> <td> <input type="checkbox" name="ck" class="minimal-red" value="<?php echo $key['portfolio_cat_id'];;?>"/> </td> <td><?php echo $key['portfolio_cat_name']; ?></td> <td><?php echo $key['portfolio_code']; ?></td> <td> <a class="btn btn-primary" href="<?php echo base_url(); ?>admin/portfoliocategory/edit_portfolioCategory/<?php echo $encrypted_id; ?>" title="Edit"><i class="glyphicon glyphicon-edit text-center"></i></a> </td> </tr> <?php } ?> </tbody> </table> </div><!-- /.box-body --> </div><!-- /.box --> </div> </div> <!-- /.row --> <?php echo form_close(); ?> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/footer.php');?> <script type="text/javascript"> $(document).ready(function(){ //---------------- delete message ------------------------------------- $('#deletedata').click(function() { var exists = $('input[type=checkbox][name^=ck]:checked').filter(':checked').length; if( !exists ) { alert('Please select at least 1 checkbox!'); return false; } else if(confirm('Are you sure you want to delete this Data?')) { var cct = $.cookie("<?php echo $this->config->item('csrf_cookie_name'); ?>"); var postData = $('input[type=checkbox][name^=ck]:checked').serialize(); $.post("portfoliocategory/delete_portfoliocategory",{ck: postData,'<?php echo $this->security->get_csrf_token_name(); ?>': cct}, function(data,status){ //alert(data); location.reload(); }); //$('#formid').submit(); } else { return false; } }); }); </script> portfolio_sub_add.php 0000644 00000010302 14655120233 0010750 0 ustar 00 <?php require_once(APPPATH.'views/header.php');?> <?php require_once(APPPATH.'views/menu.php');?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php if (!isset($view)) {?> <?php echo "Add Portfolio Category"; ?> <?php }else{?> <?php echo "Edit Portfolio Category";} ?> </h1> <ol class="breadcrumb"> <li><a href="<?php echo site_url('admin/welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li> <a href="<?php echo site_url('admin/portfolioCategory')?>">Portfolio Category</a></li> <li class="active"><?php if (!isset($view)) {?> <?php echo "Add Portfolio Category"; ?> <?php }else{?> <?php echo "Edit Portfolio Category";} ?> </li> </ol> </section> <!-- Main content --> <section class="content"> <?php $attributes = array('class' =>'defaultForm','data-bv-message'=>'This value is not valid', 'data-bv-feedbackicons-validating'=>'glyphicon glyphicon-refresh'); if (isset($view)) {?> <?php $this->load->model('alldata','model'); $encrypted_id = $this->model->encryptdata($view[0]['psid']); echo form_open_multipart("admin/Portfolio_subcat/edit_portfoliocategory/{$encrypted_id}",$attributes); ?> <?php }else{?> <?php echo form_open_multipart('admin/Portfolio_subcat/add_portfoliocategory',$attributes); ?> <?php }?> <!-- /.row --> <div class="row"> <div class="col-xs-12"> <div class="box box-success"> <div class="box-header"> </div><!-- /.box-header --> <div class="box-body"> <div class="form-group"> <label>Portfolio Category</label> <?php if(isset($view)){ echo $catid=$view[0]['pid'];} ?> <select name="pid" class="form-control"> <option>----SELECT</option> <?php foreach ($port as $key) { ?> <option value="<?php echo $key['portfolio_cat_id']; ?>" <?php if(isset($view)){ if($catid== $key['portfolio_cat_id']){ echo "selected='selected'";}}?>><?php echo $key['portfolio_cat_name']; ?></option> <?php } ?> </select> </div> <div class="form-group"> <label>Portfolio Sub Category</label> <input type="text" class="form-control" data-bv-regexp-message="Special characters not allowed..." pattern='^[^\`\~\@\#\$\%\^\*\[\]\{\}\\;:<>=+"]+$' placeholder="Portfolio Category" name="ps_name" value="<?php if(isset($view)){echo $view[0]['ps_name'];}?>" required data-bv-notempty-message="The portfolio category is required and cannot be empty" /> </div> <button class="btn btn-primary bg-blue" name="save" value="save" type="submit">Save</button> </div><!-- /.box-body --> </div><!-- /.box --> </div><!--End .col-xs-12--> </div> <!-- /.row --> <?php echo form_close(); ?> <!-- /.Form data --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/footer.php');?> portfolio_cat_add.php 0000644 00000006623 14655120234 0010742 0 ustar 00 <?php require_once(APPPATH.'views/header.php');?> <?php require_once(APPPATH.'views/menu.php');?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php if (!isset($view)) {?> <?php echo "Add Portfolio Category"; ?> <?php }else{?> <?php echo "Edit Portfolio Category";} ?> </h1> <ol class="breadcrumb"> <li><a href="<?php echo site_url('admin/welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li> <a href="<?php echo site_url('admin/portfolioCategory')?>">Portfolio Category</a></li> <li class="active"><?php if (!isset($view)) {?> <?php echo "Add Portfolio Category"; ?> <?php }else{?> <?php echo "Edit Portfolio Category";} ?> </li> </ol> </section> <!-- Main content --> <section class="content"> <?php $attributes = array('class' =>'defaultForm','data-bv-message'=>'This value is not valid', 'data-bv-feedbackicons-validating'=>'glyphicon glyphicon-refresh'); if (isset($view)) {?> <?php $this->load->model('alldata','model'); $encrypted_id = $this->model->encryptdata($view[0]['portfolio_cat_id']); echo form_open_multipart("admin/portfoliocategory/edit_portfoliocategory/{$encrypted_id}",$attributes); ?> <?php }else{?> <?php echo form_open_multipart('admin/portfoliocategory/add_portfoliocategory',$attributes); ?> <?php }?> <!-- /.row --> <div class="row"> <div class="col-xs-12"> <div class="box box-success"> <div class="box-header"> </div><!-- /.box-header --> <div class="box-body"> <div class="form-group"> <label>Portfolio Category</label> <input type="text" class="form-control" data-bv-regexp-message="Special characters not allowed..." pattern='^[^\`\~\@\#\$\%\^\*\[\]\{\}\\;:<>=+"]+$' placeholder="Portfolio Category" name="portfolio_cat_name" value="<?php if(isset($view)){echo $view[0]['portfolio_cat_name'];}?>" required data-bv-notempty-message="The portfolio category is required and cannot be empty" /> </div> <button class="btn btn-primary bg-blue" name="save" value="save" type="submit">Save</button> </div><!-- /.box-body --> </div><!-- /.box --> </div><!--End .col-xs-12--> </div> <!-- /.row --> <?php echo form_close(); ?> <!-- /.Form data --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/footer.php');?> portfolio_add.php 0000644 00000021332 14655120235 0010106 0 ustar 00 <?php require_once(APPPATH.'views/header.php');?> <?php require_once(APPPATH.'views/menu.php');?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php if (!isset($view)) {?> <?php echo "Add Portfolio"; ?> <?php }else{?> <?php echo "Edit Portfolio";} ?> </h1> <ol class="breadcrumb"> <li><a href="<?php echo site_url('admin/welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li> <a href="<?php echo site_url('admin/portfolio')?>">Portfolio</a></li> <li class="active"><?php if (!isset($view)) {?> <?php echo "Add Portfolio"; ?> <?php }else{?> <?php echo "Edit Portfolio";} ?> </li> </ol> </section> <!-- Main content --> <section class="content"> <?php $attributes = array('class' =>'defaultForm','data-bv-message'=>'This value is not valid', 'data-bv-feedbackicons-validating'=>'glyphicon glyphicon-refresh'); if (isset($view)) {?> <?php $this->load->model('alldata','model'); $encrypted_id = $this->model->encryptdata($view[0]['portfolio_id']); echo form_open_multipart("admin/portfolio/edit_portfolio/{$encrypted_id}",$attributes); ?> <?php }else{?> <?php echo form_open_multipart('admin/portfolio/add_portfolio',$attributes); ?> <?php }?> <!-- /.row --> <div class="row"> <div class="col-xs-12"> <div class="box box-success"> <div class="box-header"> </div><!-- /.box-header --> <div class="box-body"> <div class="form-group"> <label>Porfolio Name</label> <input type="text" data-bv-regexp-message="Special characters not allowed..." pattern='^[^\`\~\@\#\$\%\^\*\[\]\{\}\\;:<>=+"]+$' class="form-control" placeholder="Portfolio Name" name="portfolio_name" value="<?php if(isset($view)){echo $view[0]['portfolio_name'];}?>" required data-bv-notempty-message="The Portfolio name is required and cannot be empty" /> </div> <div class="form-group"> <label>Content: </label> <textarea id="editor" name='portfolio_Desc' class='mybox1'> <?php if(isset($view)){echo $view[0]['prot_desc'];}?> </textarea> </div> <div class="form-group"> <label>Porfolio Category </label> <?php if(isset($view)){ $catid=$view[0]['portfolio_cat_id'];} ?> <select onchange="subfun()" class="form-control" name="portfolio_cat_id" id="portfolio_cat_id" required data-bv-notempty-message="The Portfolio Category is required and cannot be empty"> <option value="">--- Select Portfolio Category ---</option> <?php foreach($portfolio_category as $key ) { ?> <option value="<?Php echo $key['portfolio_cat_id'] ?>" <?php if(isset($view)){ if($catid== $key['portfolio_cat_id']){ echo "selected='selected'";}}?>><?Php echo $key['portfolio_cat_name'] ?></option> <?php }?> </select> </div> <div class="form-group"> <label for="model_name" class="control-label" >Select Sub Category</label> <select class="form-control multiselect" id="sub" name="port_sub_cat" required > <option>--SELECT--</option> <?php if (isset($view)) { $c = $view[0]['port_sub_cat']; } foreach ($sub_cat as $ct) { ?> <option value="<?php echo $ct['psid']; ?>" <?php if (isset($view)) { if ($c == $ct['psid']) { echo "selected"; } } ?>><?php echo $ct['ps_name']; ?></option> <?php } ?> </select> </div> <div class="form-group photo"> <label>Upload Image</label> <?php if(isset($view)){ ?> <img src="<?php echo base_url()."portfolio_images/".$view[0]['portfolio_image_path'];?>" class="thumbnail" width="150" /> <input class="file-0" type="file" name="image_name" data-show-upload="false" /> <?php }else{?> <input required="" class="file-0" type="file" name="image_name" data-show-upload="false" /> <?php } ?> <input type="hidden" value="<?php if(isset($view)){echo $view[0]['portfolio_image_path'];}?>" name="hidden_photo"/> </div> <div class="form-group"> <label>Slider</label> <select class="form-control" name="banner_id" id="banner_id"> <option value="">--- Select Banner ---</option> <?php if(isset($view)){ $banner_id=$view[0]['banner_id'];} foreach($bannergrid as $bannergrid1){?> <option value="<?php echo $bannergrid1["banner_id"]; ?>" <?php if(isset($view)){if($bannergrid1["banner_id"]==$banner_id){ echo "selected='selected'";}}?>><?php echo $bannergrid1["banner_title"]; ?></option> <?php } ?> </select> </div> <?php if(isset($view)){ ?> <div class="form-group"> <label>Porfolio Video Path</label> <input type="text" class="form-control" placeholder="Portfolio Video Path" name="portfolio_video_path" value="<?php if(isset($view)){echo $view[0]['portfolio_video_path'];}?>" /> </div> <?php }else{ ?> <div class="form-group video"> <label>Porfolio Video Path</label> <input type="text" class="form-control" placeholder="Portfolio Video Path" name="portfolio_video_path" value="" /> </div> <?php } ?> <div class="form-group"> <label>Porfolio Link</label> <input type="text" data-bv-regexp-message="Special characters not allowed..." class="form-control" placeholder="Portfolio Name" name="portfolio_link" value="<?php if(isset($view)){echo $view[0]['portfolio_link'];}?>" /> </div> <button class="btn btn-primary bg-blue" name="save" value="save" type="submit">Save</button> </div><!-- /.box-body --> </div><!-- /.box --> </div><!--End .col-xs-12--> </div> <!-- /.row --> <?php echo form_close(); ?> <!-- /.Form data --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/footer.php');?> <script> function subfun(){ var cat = $('#portfolio_cat_id').val(); //alert (cat); $.ajax({ url:'<?php echo base_url(); ?>admin/portfolio/subfun/'+cat, type:'PUT', //data : {dist:dist}, success:function(data){ $('#sub').html(data); } }); } /*$(document).ready(function(){ $(".video").hide(); $(".link").hide(); $("#portfolio_cat_id").change(function(){ var group=document.getElementById("portfolio_cat_id").value; if(group==3){ $(".video").show(); $(".photo").hide(); }else{ $(".video").hide(); $(".photo").show(); } }); });*/ </script> portfolio_sub.php 0000644 00000012667 14655120236 0010163 0 ustar 00 <?php require_once(APPPATH.'views/header.php');?> <?php require_once(APPPATH.'views/menu.php');?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Portfolio Sub Category </h1> <ol class="breadcrumb"> <li><a href="<?php echo site_url('admin/welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li class="active">Portfolio Sub Category</li> </ol> </section> <!-- Main content --> <section class="content"> <?php echo form_open("admin/Portfolio_subcat/delete_portfoliocategory", array('id'=>'formid')); ?> <!-- /.row --> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-header"> <div class="text-left"> <a href="<?php echo base_url();?>admin/portfolio_subcat/add_portfoliocategory" class="btn btn-success"><i class="fa fa-plus"></i> Add Portfolio Sub Category</a> <button class="btn btn-danger" id="deletedata" type="button"><i class="fa fa-trash"></i> Trash </button> </div> </div><!-- /.box-header --> <div class="box-body"> <?php if($this->session->flashdata('msg')){ echo $this->session->flashdata('msg'); } ?> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th> <input type="checkbox" class="minimal-red" name="checkall" id="checkall" /></th> <th>Portfolio Category Name</th> <th>Portfolio Sub Category Name</th> <th>Action</th> </tr> </thead> <tbody> <?php foreach($view as $key) { $this->load->model('alldata','model'); $encrypted_id = $this->model->encryptdata($key['psid']); ?> <tr> <td> <input type="checkbox" name="ck[]" class="minimal-red" value="<?php echo $key['psid'];;?>"/> </td> <td> <?php $pid = $key['pid']; $where=array('portfolio_cat_id'=>$pid); $cat=$this->model->DetailData('tbl_portfolio_category',$where); echo $cat[0]['portfolio_cat_name']; ?> </td> <td><?php echo $key['ps_name']; ?></td> <td> <a class="btn btn-primary" href="<?php echo base_url(); ?>admin/portfolio_subcat/edit_portfolioCategory/<?php echo $encrypted_id; ?>" title="Edit"><i class="glyphicon glyphicon-edit text-center"></i></a> </td> </tr> <?php } ?> </tbody> </table> </div><!-- /.box-body --> </div><!-- /.box --> </div> </div> <!-- /.row --> <?php echo form_close(); ?> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/footer.php');?> <script type="text/javascript"> $(document).ready(function(){ //---------------- delete message ------------------------------------- $('#deletedata').click(function() { var exists = $('input[type=checkbox][name^=ck]:checked').filter(':checked').length; if( !exists ) { alert('Please select at least 1 checkbox!'); return false; } else if(confirm('Are you sure you want to delete this Data?')) { var cct = $.cookie("<?php echo $this->config->item('csrf_cookie_name'); ?>"); var postData = $('input[type=checkbox][name^=ck]:checked').serialize(); $.post("portfolio_subcat/delete_portfoliocategory",{ck: postData,'<?php echo $this->security->get_csrf_token_name(); ?>': cct}, function(data,status){ //alert(data); location.reload(); }); //$('#formid').submit(); } else { return false; } }); }); </script>
Copyright ©2021 || Defacer Indonesia