SHARE
TWEET

Untitled

a guest Jul 16th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <form class="form-horizontal form-material" id="manual-form" method="post" action="<?php echo base_url('app/Manual/salvar'); ?>">
  2.     <!--  Modal -->
  3.     <div class="modal fade " id="myModal" style="padding-top: 0px;">
  4.         <div class="modal-dialog modal-lg">
  5.             <div class="modal-content">
  6.  
  7.                 <!-- Modal Cabecalho -->
  8.                 <div class="modal-header">
  9.                     <h4 class="modal-title"><?php echo $servico_manual->titulo; ?></h4>
  10.                     <button type="button" class="close" style="outline:0;-webkit-box-shadow:none;box-shadow: none;" data-dismiss="modal">&times;
  11.                     </button>
  12.                 </div>
  13.  
  14.                 <!-- Modal Corpo -->
  15.                 <div class="modal-body">
  16.                     <input id ="conteudo" name="conteudo" aria-hidden="true" style="width:100%;border-color:#cccccc;outline:0;-webkit-box-shadow:none;box-shadow: none;" value="<?php echo $servico_manual->conteudo; ?>">  
  17.                 </div>
  18.                 <!-- Modal Rodape-->
  19.                 <div class="modal-footer">
  20.                 <button type="button" class="btn " style="background-color: #1d436f;color:white;outline:0;-webkit-box-shadow:none;box-shadow: none;" data-dismiss="modal">Fechar</button>
  21.  
  22.                 <!-- Botão abaixo para salvar edições feitas no conteudo do Manual -->
  23.                 <button type="submit" class="btn" style="background-color: #1d436f;color: white;outline:0;-webkit-box-shadow:none;box-shadow: none;">Salvar Alterações</button>
  24.                 </div>
  25.  
  26.             </div>
  27.         </div>
  28.     </div>
  29. </form>
  30.      
  31. public function salvar($id=null)
  32. {
  33.     $conteudo = $_POST["conteudo"];
  34.     $this->Manualserv->conteudo = $conteudo;
  35.     $this->Manualserv->atualizar_conteudo_manual($id);
  36.     $data['page_title'] = 'Manual Servidor';
  37.     $this->load->view('app/index', $data);
  38.     redirect(base_url() . 'app/manual/manualservidores/', 'refresh');
  39. }
  40.      
  41. public function atualizar_conteudo_manual($id_processo_manual)
  42. {
  43.     $dadosmanual_update = array ("conteudo"=>$this->conteudo);
  44.     return $this->db->update('tb_processos_manuais',$dadosmanual_update);
  45. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top