Guest User

Untitled

a guest
May 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. <div id='gallery'>
  2. {php}
  3. $i=0;
  4. $j=0;
  5. {/php}
  6. {foreach from=$image_data1 item=image_data1}
  7. {php}$i=$i+1;{/php}
  8. <div class='pc'>
  9.  
  10. {if $image_data1.URL=="" || $image_data1.URL==null}
  11. <!--
  12. <a href="profile.php?uid={$image_data1.Id}" rel="width:950, height:700" id={php}echo 'mb'.$i;{/php} class="mb" title="{$image_data1.Name}"><img src='images/noimg.gif' width="100" height="100" /></a>
  13. -->
  14. <a href="profile.php?uid={$image_data1.Id}" rel="iframe" class="lightview" id={php}echo 'lightview'.$i;{/php} title="{$image_data1.Name} :: :: fullscreen: true" ><img src='images/noimg.gif' width="100" height="100" /></a>
  15. {else}
  16. {php}
  17. global $image_data1;
  18. global $mainurl;
  19.  
  20. $usrid=$image_data1[$j]['Id'];
  21. $img_url=$image_data1[$j]['URL'];
  22.  
  23. $repstr=$mainurl.'thumbnails/t_';
  24. $pos=stripos($img_url,"/");
  25. //echo "POSITION::".$pos;
  26.  
  27. $url=substr_replace($img_url,$repstr,0,$pos+1);
  28. //echo "image url::".$url;
  29. $this->assign('url',$url);
  30. {/php}
  31. <!--
  32. <a href="profile.php?uid={$image_data1.Id}" rel="width:950, height:700" id={php}echo 'mb'.$i;{/php} class="mb" title="{$image_data1.Name}"><img src='{$url}' width="100" height="100" /></a>
  33. -->
  34. <a href="profile.php?uid={$image_data1.Id}" rel="iframe" id={php}echo 'lightview'.$i;{/php} class="lightview" title="{$image_data1.Name} :: :: fullscreen: true" ><img src='{$url}' width="100" height="100" /></a>
  35. {/if}
  36.  
  37. </div>
  38. {php}$j=$j+1;{/php}
  39. {/foreach}
  40. <div class="clearer"></div>
  41. </div>
Add Comment
Please, Sign In to add comment