Pasek przełączania stron w PHP

Uwaga! Informacje na tej stronie mają ponad 3 lata. Nadal je udostępniam, ale prawdopodobnie nie odzwierciedlają one mojej aktualnej wiedzy ani przekonań.

21:24
Wed
21
Jan 2009

Pasek przełączania stron w PHP

Tym razem, nietypowo, napiszę o programowaniu stron WWW w PHP, a konkretnie o kwestii przełączania między stronami. Jeśli lista zarejestrowanych użytkowników, dodanych projektów, newsów czy czegokolwiek jest długa, istnieją różne rozwiązania na jej pokazywanie. Pierwsza to pokazać wszytkie (jak lista Parties na pouet.net). Druga to pokazać wszystkie na wybraną literę (jak lista Groups na pouet.net). Ta najczęściej stosowana to grupować obiekty po kilka na stronie i dać możliwość przełączania się między numerami stron.

Z kolei wybór strony też można pokazywać na różne sposoby. Można wstawić formularz z kontrolką <select>, czyli ComboBox. Można pokazać listę numerów stron. Jeśli jednak sama ta lista jest długa, warto ją skrócić. Tu właśnie, kończąc ten wstęp, chciałbym zaprezentować kawałek kodu PHP, który ostatnio napisałem. Wprowadziłem go do swojej strony domowej oraz na www.gamedev.pl. Wzorem SMF (używanego na naszym forum.gamedev.pl) pokazuje tylko numer strony bieżącej, pierwszej, ostatniej, dwóch poprzednich, dwóch następnych oraz dodatkowe strzałeczki do następnej i poprzedniej. Oto kod: Pasek_stron_PHP.txt. Tak to wygląda:

Pasek przełączania stron w PHP

Comments (1) | Tags: php webdev web gui | Author: Adam Sawicki | Share

Comments

wi
2015-06-29 07:19:43
soccer shoes, http://www.soccer-shoes.org/
softball bats, http://www.softball-bats.us/
supra shoes, http://www.suprashoe.net/
swarovski outlet, http://www.swarovskicrystal.com.co/
swarovski outlet, http://www.swarovskijewelry.com.co/
swarovski, http://www.swarovski-uk.org.uk/
north face outlet online, http://www.the-northface.com.co/
the north face outlet, http://www.the-northface.in.net/
north face uk, http://www.thenorth-face.org.uk/
the north face outlet, http://www.thenorthface.us.org/
calvin kleins outlet, http://www.calvinklein.co.com/
celine bags, http://www.celinebags.org/
cheap nfl jerseys, http://www.cheapjerseys.in.net/
air jordan retro, http://www.cheap-jordans.net/
michael kors outlet, http://www.cheapmichaelkors.us.org/
nike sneakers, http://www.cheap-nikeshoes.com/
oakley vault, http://www.cheapoakley.us.org/
oakley vault, http://www.cheapoakleysunglasses.ar.com/
cheap oakley, http://www.cheap-oakleysunglasses.in.net/
ray ban sunglasses, http://www.cheaprayban.com.co/
discount shoes, http://www.cheapshoes.com.co/
ugg boots clearance, http://www.cheapuggboots.eu.com/
flat iron, http://www.chiflatiron.net.co/
air max 2015, http://www.nike-air-max.us/
nike outlet, http://www.nikefactory.org/
nike running shoes, http://www.nikefree5.net/
nike free, http://www.nikefree-run.net/
nike running, http://www.nikefree-run.org.uk/
nike air max, http://www.jordanrelease-dates.com/
nike mercurial, http://www.nikemercurial.net/
roshe run, http://www.nikerosherun.us/
cheap nike shoes, http://www.nikestore.us/
north face jackets, http://www.northface.us.org/
north face jackets women, http://www.northfaceoutlet.com.co/
oakley sunglasses outlet, http://www.oakleyoutlet.us.org/
oakley outlet, http://www.oakley-sunglasses.us.org/
oakley vault, http://www.oakleysunglassescheap.in.net/
cheap oakley sunglasses, http://www.oakleysunglassesoutlet.com.co/
omega watches, http://www.omegawatches.us.com/
pandora sale, http://www.pandora-charms.org.uk/
pandora charms, http://www.pandorajewelry.com.co/
ralph lauren outlet, http://www.polo-outlets.com/
prada outlet, http://www.pradahandbags.net.co/
prada outlet, http://www.pradahandbags.com.co/
prada shoes for men, http://www.pradashoes.com.co/
polo ralph lauren outlet online, http://www.ralph-lauren.org.uk/
ralph lauren outlet, http://www.ralphlaurenoutlet.us.com/
ralph lauren outlet, http://www.ralphlauren-outlet.org.uk/
ralph lauren shirts, http://www.ralphlaurenoutletonline.com.co/
ralph lauren outlet online, http://www.ralphlaurenoutletonline.in.net/
ralph lauren outlet online, http://www.ralphlaurenpolo.in.net/
ray-ban, http://www.ray-ban-outlet.us.com/
ray-ban sunglasses, http://www.raybans.us.org/
ray ban sunglasses, http://www.rayban-sunglasses.org.uk/
ray ban sunglasses outlet, http://www.rayban-sunglasses.us.org/
cheap ray ban, http://www.raybansunglassesoutlet.net.co/
burberry outlet, http://burberry.outletnow.net/
red bottoms, http://christian.louboutin-outlet.net/
tory burch handbags, http://toryburch.salesandals.net/
abercrombie and fitch kids, http://www.abercrombieand-fitch.com.co/
abercrombie fitch, http://www.abercrombiefitch.us.com/
abercrombie.com, http://www.abercrombie-kids.us.com/
air huarache, http://www.air-huarache.co.uk/
jordan shoes, http://www.airjordans.us/
jordan retro, http://www.airjordanshoes2015.com/
nike air max 2014, http://www.airmax-2015.org/
nike air max 2015, http://www.airmax-90.org/
babyliss pro, http://www.babyliss-pro.net/
basketball shoes, http://www.basketballshoes.com.co/
beats by dre outlet, http://www.beatsbydrdre.co.com/
beats headphones, http://www.beatsbydre.com.co/
beats by dre outlet, http://www.beats-by-dre.com.co/
beats by dr dre, http://www.beatsheadphones.in.net/
bottega, http://www.bottega.us/
burberry outlet, http://www.burberryhandbags.net.co/
burberry outlet, http://www.burberry-outlet.jp.net/
burberry outlet, http://www.burberryoutlet.org.uk/
burberry, http://www.burberryoutlet-online.co.com/
burberry.com, http://www.burberryoutlet-online.in.net/
christian louboutin shoes, http://www.christian--louboutin.in.net/
christian louboutin, http://www.christianlouboutin.org.uk/
christian louboutin shoes, http://www.christianlouboutinshoes.jp.net/
coachfactory.com/shop, http://www.coachfactory-outlet.co.com/
coachfactory.com, http://www.coachfactoryoutletonline.co.com/
coach handbags outlet, http://www.coach-handbags.com.co/
coach factory outlet online, http://www.coachoutlet-online.com.co/
coachoutlet.com, http://www.coachoutletstore.net.co/
coach bags outlet, http://www.coachoutletstore-online.com.co/
chanel outlet, http://www.coco-chanelbags.com.co/
converse shoes, http://www.converse.net.co/
hermes handbags, http://www.designerhandbagsoutlet.com.co/
cheap glasses, http://www.eyeglassesonline.us.com/
sunglasses for women, http://www.eyeglassframes.us.com/
hollister clothes, http://www.fashion-clothing.us.com/
chanel bags, http://www.chanelhandbags.net.co/
softball bats, http://www.cheapbaseballbats.net/
christian louboutin, http://www.christianlouboutinshoes.ar.com/
ferragamo outlet, http://www.ferragamo.com.co/
salvatore ferragamo outlet, http://www.ferragamoshoes.net/
hair straightener, http://www.ghdhairstraightener.com.co/
gucci sale, http://www.gucci.me.uk/
gucci belt, http://www.guccihandbags.com.co/
gucci handbags, http://www.gucci-outlet.in.net/
gucci belt, http://www.gucci--outlet.com.co/
gucci shoes outlet, http://www.guccishoes.net.co/
gucci outlet, http://www.guccishoes.us.org/
hermes birkin bag, http://www.hermesbags.com.co/
hermes birkin, http://www.hermesbirkin.com.co/
hermes bags, http://www.hermesoutlet.net.co/
hollister kids, http://www.hollister.us.org/
hollister, http://www.hollisterclothing-store.in.net/
insanity workout calendar, http://www.insanityworkout.net.co/
iphone 4s cases, http://www.iphone-cases.us/
jimmy choo shoes, http://www.jimmychoo.net.co/
air jordan, http://www.jordanretro.org/
air jordan shoes, http://www.jordan-shoes.com.co/
juicy couture, http://www.juicycouture.com.co/
juicy couture outlet, http://www.juicycoutureoutlet.net.co/
kate spade, http://www.kate-spade.com.co/
katespade, http://www.katespade-outlet.com.co/
kate spade bags, http://www.kate-spades.com/
longchamp bags, http://www.longchamp.us.org/
longchamp outlet, http://www.longchamp.com.co/
louboutin, http://www.louboutin.jp.net/
louis vuitton canada, http://www.louis-vuittoncanada.ca/
louis vuitton outlet stores, http://www.louisvuitton.jp.net/
louis vuitton outlet, http://www.louis--vuitton.org.uk/
louis vuitton outlet, http://www.louisvuitton.so/
louis vuitton outlet online, http://www.louisvuittonas.com/
louis vuitton outlet, http://www.louisvuitton-outlet.com.co/
louis vuitton handbags, http://www.louisvuitton-outlets.us/
marc jacobs bags sale, http://www.marcjacobsonsale.com/
mcm bags, http://www.mcm-bags.net/
mcm handbags, http://www.mcmhandbags.com.co/
michael kors outlet store, http://www.michaelkors.so/
michael kors outlet online, http://www.michael--kors.us.com/
michael kors outlet, http://www.michaelkorsbags.us.org/
michael kors uk, http://www.michaelkorshandbags.org.uk/
michael kors, http://www.michael-kors-handbags.us.com/
michael kors outlet online sale, http://www.michaelkorsoutlet.ar.com/
michael kors purses, http://www.michael-kors-outlet.us.org/
michael kors handbags, http://www.michaelkorsoutlet-online.ar.com/
michael kors, http://www.michael-kors-outlet-online.us.org/
michael kors outlet online sale, http://www.michaelkorsoutletonline-sale.us.com/
michael kors bags, http://www.michaelkors-uk.org.uk/
mont blanc, http://www.montblanc--pens.net/
new balance, http://www.newbalance-outlet.org/
ray ban sunglasses outlet, http://www.raybanwayfarer.in.net/
knock off designer handbags, http://www.replicahandbags.com.co/
rolex watches, http://www.replicawatches.us.com/
jordan 6, http://www.retro-jordans.com/
omega watches, http://www.rolex-watches.me.uk/
roshe run, http://www.rosherun.org.uk/
roshe runs, http://www.rosheruns.us/
salvatore ferragamo shoes, http://www.salvatoreferragamo.in.net/
north face jackets outlet, http://www.thenorthfacejackets.in.net/
thomas sabo, http://www.thomassabo-uk.org.uk/
tiffany jewelry, http://www.tiffanyandco.net.co/
tiffany co, http://www.tiffanyjewelry.us.org/
timberland boots, http://www.timberlandboots-outlet.net/
timberland outlet, http://www.timberland-shoes.com/
tommy hilfiger polos, http://www.tommyhilfiger.net.co/
tommy hilfiger coupons, http://www.tommy-hilfigeroutlet.com/
toms shoes, http://www.tomshoesoutlet.com/
toms outlet, http://www.toms-outlet.in.net/
toms shoes, http://www.toms-shoes.com.co/
tory burch handbags, http://www.tory-burch-outlet.in.net/
tory burch handbags, http://www.tory-burchoutlet.us.com/
true religion jeans outlet, http://www.true-religion.com.co/
true religion outlet, http://www.truereligionjeans.net.co/
true religion jeans women, http://www.truereligion-outlet.com.co/
ugg boots, http://www.uggaustralia.net.co/
uggs outlet, http://www.uggboots.net.co/
ugg australia, http://www.uggbootsclearance.com.co/
ugg, http://www.uggsonsale.com.co/
ugg boots clearance, http://www.uggsoutlet.com.co/
coach outlet online, http://www.uptocoachoutlet.com/
vans shoes, http://www.vansshoes.us/
dresses for weddings, http://www.weddingdressesuk.org.uk/
yoga pants, http://www.yogapants.com.co/
uggs outlet, http://www.ugg-boots.us.org/
polo ralph lauren outlet online, http://www.poloralphlaurenoutlet.net.co/
burberry outlet online, http://www.burberryoutletonline.ar.com/
toms shoes outlet, http://www.toms-outlet.net.co/
cheap michael kors, http://www.michaelkors.in.net/
louboutin, http://www.christianlouboutinoutlet.net.co/
tory burch shoes, http://www.toryburchsale.com.co/
prada outlet, http://www.pradaoutlet.com.co/
longchamp outlet, http://www.longchamp-handbags.in.net/
longchamp, http://www.longchampoutlet.com.co/
chanel bags, http://www.chanel-bags.com.co/
true religion jeans outlet, http://www.truereligion-outlet.us.org/
abercrombie fitch, http://www.abercrombie-and-fitch.us.com/
hollister co, http://www.hollisterclothing.in.net/
new balance store, http://www.newbalance-shoes.org/
converse sneakers, http://www.converse--shoes.net/
lululemon outlet, http://www.lululemonoutlet.com.co/
cheap jerseys, http://www.nfl-jerseys.in.net/
nfl jerseys, http://www.cheapjerseys.us.org/
rolex watches, http://www.rolex-watches.us.com/
omega watches, http://www.rolexwatchesforsale.us.com/
p90x, http://www.p90xworkout.in.net/
giuseppe zanotti, http://www.giuseppezanotti.com.co/
mac cosmetics, http://www.maccosmetics.net.co/
instyler, http://www.instyler.in.net/
mizuno running, http://www.mizunorunning.net/
handbags outlet, http://www.handbagsoutlet.com.co/
hilfiger outlet, http://www.hilfigeroutlet.in.net/
ed hardy, http://www.edhardy.in.net/
levi's jeans, http://www.levisjeans.com.co/
bcbg max azria, http://www.bcbgdresses.net/
bebe outlet, http://www.bebeclothing.net/
harrods, http://www.harrods-london.co.uk/
gucci outlet, http://www.guccishoes.com.co/
polo ralph lauren outlet, http://www.ralphlaurenoutletonline.us.org/

Post comment

Nick *
Your name or nickname
E-mail
Your contact information (optional, will not be shown)
Text *
Content of your comment
Calculate *
(* - required field)
STAT NO AD [Stat] [Admin] [STAT NO AD] [pub] [Mirror] Copyright © 2004-2016 Adam Sawicki
Copyright © 2004-2016 Adam Sawicki