1. Results: <strong>{$how_much}</strong>
  2. {foreach from=$results id=id thumb=thumb title=title item=out}
  3.  
  4. <table class="results" onMouseOver="this.style.backgroundColor='#f9f9f9'" onMouseOut="this.style.backgroundColor='#fdfeff'">
  5. <td>
  6.  
  7. <a href="view/video/{$out.id}/{$out.id}.html">
  8. <img src="{$out.thumb}" alt="video" width="130" height="97" /></a>
  9. </td>
  10.  
  11. <td class="more_video_info">
  12.  
  13. <p class="left">
  14. <strong>{$out.title}</strong>
  15. </p>
  16.  
  17. <p class="left">
  18. {$out.desc}
  19. </p>
  20.  
  21. <p class="left">
  22. Views: <strong>{$out.views}</strong> | Time: <strong>{$out.time}</strong>
  23. </p>
  24.  
  25. <br />
  26.  
  27. <p class="left">Rating: {$out.rating}</p><br />
  28.  
  29. <p class="right">
  30. Source: <strong>{$out.source}</strong> | Added: <strong>{$out.added}</strong>
  31.  
  32. </td>
  33. </table>
  34.  
  35. {/foreach}



Kod pliku results.tpl

Więc problem jest taki - wszystko z pętli ładnie się wrzuciło (z pętli $results)


  1. <?php
  2. $video = array();
  3.  foreach($get as $video) {
  4.  $videos[] = array(
  5. 'id' => $video[1],
  6. 'thumb' => $video[2],
  7. 'title' => $video[3]
  8.  );
  9. }
  10. ?>




Ale jeszcze chciałbym to dodać...

  1. <?php
  2. $this->desc;
  3. $this->added;
  4. $this->views;
  5. $this->time;
  6. $this->rating;
  7. ?>


Tylko że te dane są pobierane funkcją
  1. <?php
  2. get_descr($id)
  3. ?>


- po ID które chciałbym wciągnąć z
  1. <?php
  2. $video[$i][1];
  3. ?>

sad.gif ale już nie mam pomysłów.