Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] pobieranie po podaniu hasla
buliyo
post
Post #1





Grupa: Zarejestrowani
Postów: 82
Pomógł: 0
Dołączył: 9.01.2006

Ostrzeżenie: (0%)
-----


Witam.. raczej raczkuje w php wiec prosze was o pomoc..
Robie taka mala galerie w singapore i chcialem ja troche zmodyfikowac mianowicie..
normalnie wyswietlaja mi sie fotki w rozdzielczosci 500x700 jednak pod fotka jest link do otworzenia fotki w pelnych wymiarach uploadu..
chcialbym zrobic aby otworzenie tej ftoki bylo mozliwe po wpisaniu hasla.. i klikniecie na button ktory zastapi link jednak nie wiem jak to zrobic sad.gif
kod pliku image.tpl.php
  1. <h2><?php echo $sg->image->name(); ?></h2>
  2. <h4><?php echo $sg->image->byArtistText(); ?></h4>
  3. </div>
  4. <div id="sgContent">
  5.  
  6. <div class="sgImageWrapper">
  7. <div class="sgImageBox" style="width: <?php echo $sg->image->width(); ?>px; ">
  8. <?php echo $sg->image->imageHTML() ?>
  9. <a class="thumb" style="width: <?php echo $sg->image->width().'px;" href="'.$sg->image->parent->URL().'"><span>'.$sg->translator->_g("image|Thumbnails").'</span></a>'; ?>
  10. <?php if($sg->image->hasPrev()) {echo '<a class="prev" style="height:'.$sg->image->height().'px;" href="'.$sg->image->prevURL().'"><span style="margin-top:'.floor(($sg->image->height())/2).'px;">'.$sg->translator->_g("image|Previous").'</span></a>'; } ?>
  11. <?php if($sg->image->hasNext()) {echo '<a class="next" style="height:'.$sg->image->height().'px;" href="'.$sg->image->nextURL().'"><span style="margin-top:'.floor(($sg->image->height())/2).'px;">'.$sg->translator->_g("image|Next").'</span></a>'; } ?>
  12. </div>
  13. </div>
  14.  
  15. <?php if ($sg->config->show_fullsizeURL == 1) { ?>
  16. <p class="sgFullsize"><a href="<?php echo $sg->image->realURL(); ?>"><?php echo $sg->translator->_g("image|View Full Size Image"); ?></a> <a href="<?php echo $sg->image->realURL(); ?>" target="_new">[+]</a></p>
  17. <?php } ?>
  18.  
  19. <div class="sgDetailsList">
  20. <dl>
  21. <?php foreach($sg->image->detailsArray() as $key => $value): ?>
  22. <dt><?php echo $key; ?>:</dt><dd><?php echo $value; ?></dd>
  23. <?php endforeach; ?>
  24. </dl>
  25. </div>
  26.  
  27. <div class="sgPreview">
  28. <?php echo $sg->previewThumbnails(); ?>
  29. <p>
  30. <?php if($sg->image->hasPrev()) echo "‹ ".$sg->image->prevLink()." "; ?>
  31. <?php echo $sg->image->parentLink(); ?>
  32. <?php if($sg->image->hasNext()) echo " ".$sg->image->nextLink()." ›"; ?>
  33. </p>
  34. </div>
  35. </div>
  36. <?php echo $sg->imageMap() ?>


Prosze o pomoc..
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 17:13