ClovisFilho

Untitled

Aug 15th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.45 KB | None | 0 0
  1.         <script type="text/javascript">
  2.             $(document).ready(function () {
  3.                 $("[rel=tooltip]").tooltip(); // Load the tooltip plugin
  4.                
  5.                 $('#refresh').click(function(){
  6.                     alert('Estou sendo clicado!');
  7.                     $.ajax({
  8.                         url: '<?php echo base_url(); ?>site/index/',
  9.                         sucess: function(ret) {
  10.                             $('#picture').html(ret);
  11.                         }
  12.                     })
  13.                 })
  14.             });
  15.         </script>
  16.  
  17. <!-- HTML -->
  18.             <div class="row-fluid">
  19.                 <?php
  20.                 foreach ($query->result() as $row)
  21.                 {
  22.                 ?>
  23.                 <div class="span6 well" class="picture">
  24.                     <h1><?php echo $row->pic_title; ?></h1>
  25.                     <img src="<?php echo $row->pic_url; ?>" border="0" />
  26.                     <span style="float: left; margin: 20px 0 0 0;">
  27.                         <a href="#" rel="tooltip" title="Like!" class="btn btn-large btn-success"> <i class="icon-thumbs-up icon-white"></i> </a>
  28.                         <a href="#" rel="tooltip" title="Hate!" class="btn btn-large btn-inverse"> <i class="icon-thumbs-down icon-white"></i> </a>
  29.                         <a href="#" rel="tooltip" title="Report" class="btn btn-large btn-danger"> <i class="icon-eye-open icon-white"></i> </a>
  30.                     </span>
  31.                 </div>
  32.                
  33.                 <?php
  34.                 }
  35.                 ?>
  36.                 <div class="span6 well">
  37.                     <a rel="tooltip" title="More puke, please" class="btn btn-large" id="refresh"> <i class="icon-refresh"></i> </a>
  38.                     <a href="<?php echo base_url(); ?>upload/" rel="tooltip" title="I want to upload my pic" class="btn btn-large btn-warning"> <i class="icon-upload"></i> </a>
  39.                 </div>
  40.             </div>
Advertisement
Add Comment
Please, Sign In to add comment