Advertisement
eduardopaludo

insertimg.php

Jul 28th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. <script>
  2.         window.onload = function(){
  3.         $('.buscarimg').click(function(){
  4.         var destino = "<?php echo base_url('midia/get_imgs') ?>";
  5.         var dados = $("#buscartxt").serialize();
  6.         $.ajax({
  7.             type: "POST",
  8.             url: destino,
  9.             data: dados,
  10.             success: function(retorno){
  11.                 $(".retorno").html(retorno);
  12.             }
  13.         });
  14.     });
  15. }; 
  16. </script>
  17.  
  18. <div id="modalimg" class="reveal-modal" data-reveal>
  19.     <div class="row collapse">
  20.         <div class="collapse small-7 columns">
  21.             <?php echo form_input(array('name'=>'pesquisarimg', 'class'=>'buscartxt')); ?>
  22.         </div>
  23.         <div class="small-5 columns">
  24.             <?php echo form_button('', 'Buscar', 'class="buscarimg button tiny radius"'); ?>
  25.             <?php echo form_button('', 'Limpar', 'class="limparimg button tiny alert radius"'); ?>
  26.         </div>
  27.     </div>
  28.     <div class="retorno">&nbsp;</div>
  29.     <a class="close-reveal-modal">&#215;</a>
  30. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement