Advertisement
nenhumdeucerto

Exemplo

Dec 6th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. <?php
  2.   foreach ($ft as $fts) {
  3.     $cont = 1;
  4.     ?>
  5.     <table width="100%" border="1">
  6.       $resto = $cont % 2;
  7.       if ($resto != 0) {
  8.         <tr>
  9.           <th>
  10.             <img style="height: 50%; width: 50%;" src="assets/img/fotos_preliminares/<?=$fts['img']; ?>" class="img-responsive">
  11.             <div class="well" style="width: 50%;">
  12.               <?=str_replace('.jpeg', '', $fts['texto']); ?>
  13.             </div>
  14.           </th>
  15.       } else {
  16.         <th>
  17.             <img style="height: 50%; width: 50%;" src="assets/img/fotos_preliminares/<?=$fts['img']; ?>" class="img-responsive">
  18.             <div class="well" style="width: 50%;">
  19.               <?=str_replace('.jpeg', '', $fts['texto']); ?>
  20.             </div>
  21.           </th>
  22.         </tr>
  23.       }
  24.     </table>
  25.     <div class="col-sm-6">
  26.     </div>
  27.     <?php
  28.     $cont ++;
  29.   }
  30. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement