<!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
                <div class="title_left">
                    <h3>Publisher</h3>
                </div>
            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-6 col-xs-6">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>Edit Publisher</h2>
                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Liberary_definations/edit_Publisher/<?php echo $id; ?>" method="post" enctype='multipart/form-data'>
                        <input type="hidden" name="writer_id" id="writer_id"/>
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="b_head">Name<span class="required">*</span>
                        </label>
                        <?php foreach($w as $val){ ?> 
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input id="writer_name" class="form-control col-md-7 col-xs-12" name="p_name" placeholder="Writer Name...." required type="text" value="<?php echo $val['name'];?>">
                        </div>
                       
                      </div>
                        <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="b_head">Address<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <textarea  id="publisher_address" name="publisher_address" class="form-control col-md-7 col-xs-12"><?php echo $val['address'];?></textarea>
                        </div>
                      </div>
                       <?php } ?>
                     <div class="ln_solid"></div>
                      <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                          <button id="send" type="submit" class="btn btn-success pull-right">Update</button>
                        </div>
                      </div>
                    </form>
                  </div>
                </div>
              </div>
              </div>
             
              </div>
            
            </div>
          </div>
        </div>
       
        <!-- /page content -->
        
 <!-- Datatables -->
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net/js/jquery.dataTables.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net/js/jquery.dataTables.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons/js/buttons.print.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-scroller/js/dataTables.scroller.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/jszip/dist/jszip.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/pdfmake/build/pdfmake.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/pdfmake/build/vfs_fonts.js"></script>

	<script>
	/*
	var jq = jQuery.noConflict();
	jq(document).ready(function () {
 
	jq('#posts').DataTable({
		dom: 'Bfrtip',
            buttons: [
            'csv', 'pdf','excel','print'    ],
		 "bLengthChange": false,
 		"bProcessing": true,
		
            
		
                 "sAjaxSource": '<?php// echo base_url("Liberary_definations/get_writer") ?>',
 				 "aoColumns": [
 						{ mData: 'id' } ,
                        { mData: 'name' },
						{ mData: 'actions' }

                ] 
			
           
      	  });   
		});
	</script>
        <script>/*
         $(function(){
                $(document).on('click','.edit',function(e){
                  e.preventDefault();
                      var id=$(this).attr("data-id");
            $.ajax({
                    url: "<?php// echo $base_url; ?>Liberary_definations/SearchById/"+id+"/writer",
                    data: {},
                      success: function(d) {
                        var re = jQuery.parseJSON(d);
                              $('#writer_name').val(re.name);
                              $('#writer_id').val(re.id);
                              // $('#img').val(re.picture);
                           }
                    });
                      });
                      });
                   
     $('#datatable-buttons').DataTable(
            {
            
            dom: 'Bfrtip',
            buttons: [
            'csv', 'pdf','excel','print'    ]
            
            });
         
                      
        
                  
            
      */
    </script>