Guest User

Untitled

a guest
Apr 26th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.09 KB | None | 0 0
  1.                         // set iteration
  2.             $pageTpl->setIteration('iCollections');
  3.  
  4.             // loop values
  5.                         foreach ($collections as $collection) {
  6.                         $hrefColl = $_SERVER['PHP_SELF'].'?coll=' . urlencode($collection);
  7.                         $urlDel   = 'mycollections_delcoll.php?coll=' . urlencode($collection);
  8.                         $urlRen   = 'mycollections_rencoll.php?coll=' . urlencode($collection);
  9.                        
  10.                             // assign var
  11.                 $pageTpl->assignIteration('collection', $collection);
  12.                
  13.                 // refill Iteration
  14.                 $pageTpl->refillIteration('');
  15.                         }
  16.  
  17.  
  18. =====================================================
  19. =====================================================
  20.  
  21.                                 {iteration:iCollections}
  22.                                     <li>
  23.                     <a href="{hrefColl}" class="coll">{collection|ucfirst|htmlentities}</a>
  24.                     <a href="{urlDel}" class="delete">delete</a>
  25.                     <a href="{urlRen}" class="rename">rename</a>
  26.                                     </li>
  27.                                 {/iteration:iCollections}
Add Comment
Please, Sign In to add comment