Guest User

Untitled

a guest
Nov 19th, 2021
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.40 KB | None | 0 0
  1. <?
  2. $copyright_text             =   $this->db->get_where('config', array('title' => 'copyright_text'))->row()->value;
  3. ?>
  4. <div class="card">
  5.   <?php echo form_open(base_url() . 'admin/footer_setting/update/' , array('class' => 'form-horizontal group-border-dashed', 'enctype' => 'multipart/form-data'));?>
  6.   <div class="row">
  7.     <!-- panel  -->
  8.     <div class="col-md-12">
  9.       <div class="panel panel-border panel-primary">
  10.         <div class="panel-heading">
  11.           <h3 class="panel-title"><?php echo trans('footer_setting'); ?></h3>
  12.         </div>
  13.         <div class="panel-body">
  14.           <!-- panel  -->
  15.          
  16.           <div class="form-group row">
  17.             <label class=" col-sm-3 control-label"><?php echo trans('Footer_1_title'); ?></label>
  18.             <div class="col-sm-8">
  19.               <input type="text" name="footer1_title" class="form-control" value="<?php echo $this->db->get_where('config' , array('title' =>'footer1_title'))->row()->value;?>" required>
  20.             </div>
  21.           </div>
  22.           <div class="form-group row">
  23.             <label class="control-label col-md-3"><?php echo trans('footer_1_content'); ?></label>
  24.             <div class="col-md-8">
  25.               <textarea class="wysihtml5 form-control" name="footer1_content" id="footer-1" rows="10"><?php echo $this->db->get_where('config' , array('title' =>'footer1_content'))->row()->value;?></textarea>
  26.             </div>
  27.           </div>
  28.           <div class="form-group row">
  29.             <label class=" col-sm-3 control-label"><?php echo trans('Footer_2_title'); ?></label>
  30.             <div class="col-sm-8">
  31.               <input type="text" name="footer2_title" class="form-control" value="<?php echo $this->db->get_where('config' , array('title' =>'footer2_title'))->row()->value;?>" required>
  32.             </div>
  33.           </div>
  34.           <div class="form-group row">
  35.             <label class="control-label col-md-3"><?php echo trans('footer_2_content'); ?></label>
  36.             <div class="col-md-8">
  37.               <textarea class="wysihtml5 form-control" name="footer2_content" id="footer-2" rows="10"><?php echo $this->db->get_where('config' , array('title' =>'footer2_content'))->row()->value;?></textarea>
  38.             </div>
  39.           </div>
  40.  
  41.           <div class="form-group row">
  42.             <label class=" col-sm-3 control-label"><?php echo trans('Footer_3_title'); ?></label>
  43.             <div class="col-sm-8">
  44.               <input type="text" name="footer3_title" class="form-control" value="<?php echo $this->db->get_where('config' , array('title' =>'footer3_title'))->row()->value;?>" required>
  45.             </div>
  46.           </div>
  47.           <div class="form-group row">
  48.             <label class="control-label col-md-3"><?php echo trans('footer_3_content'); ?></label>
  49.             <div class="col-md-8">
  50.               <textarea class="wysihtml5 form-control" name="footer3_content" id="footer-3" rows="10"><?php echo $this->db->get_where('config' , array('title' =>'footer3_content'))->row()->value;?></textarea>
  51.             </div>
  52.           </div>
  53.  
  54.           <div class="form-group row">
  55.             <label class="control-label col-md-3"><?php echo $copyright_text; ?></label>
  56.             <div class="col-md-8">
  57.               <textarea class="wysihtml5 form-control" name="copyright_text" id="copyright_text" rows="10"><?php echo $this->db->get_where('config' , array('title' =>'copyright_text'))->row()->value;?></textarea>
  58.             </div>
  59.           </div>              
  60.  
  61.  
  62.           <div class="col-sm-offset-3 col-sm-9 m-t-15">
  63.             <button type="submit" class="btn btn-sm btn-primary"><span class="btn-label"><i class="fa fa-floppy-o"></i></span><?php echo trans('save_changes'); ?> </button>
  64.           </div>
  65.           <?php echo form_close(); ?>
  66.         </div>
  67.       </div>
  68.     </div>
  69.   </div>
  70. </div>
  71.  
  72. <!-- file select-->
  73. <script src="<?php echo base_url(); ?>assets/plugins/bootstrap-filestyle/src/bootstrap-filestyle.min.js" type="text/javascript"></script>
  74. <!-- file select-->
  75.  
  76. <!--form validation init-->
  77. <script src="<?php echo base_url() ?>assets/plugins/summernote/dist/summernote.min.js"></script>
  78. <script>
  79.     jQuery(document).ready(function() {
  80.  
  81.         $('#footer-1').summernote({
  82.             height: 200, // set editor height
  83.             minHeight: null, // set minimum height of editor
  84.             maxHeight: null, // set maximum height of editor
  85.             focus: false // set focus to editable area after initializing summernote
  86.         });
  87.         $('#footer-2').summernote({
  88.             height: 200, // set editor height
  89.             minHeight: null, // set minimum height of editor
  90.             maxHeight: null, // set maximum height of editor
  91.             focus: false // set focus to editable area after initializing summernote
  92.         });
  93.         $('#footer-3').summernote({
  94.             height: 200, // set editor height
  95.             minHeight: null, // set minimum height of editor
  96.             maxHeight: null, // set maximum height of editor
  97.             focus: false // set focus to editable area after initializing summernote
  98.         });
  99.         $('#copyright_text').summernote({
  100.             height: 200, // set editor height
  101.             minHeight: null, // set minimum height of editor
  102.             maxHeight: null, // set maximum height of editor
  103.             focus: false // set focus to editable area after initializing summernote
  104.         });
  105.  
  106.     });
  107.  
  108. </script>
  109.  
Advertisement
Add Comment
Please, Sign In to add comment