- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
#top1
if($this->space == "slot1")
{
$pos = new Rennab();
$this->size = $pos->getSizes('slot1');
$this->content = Doctrine::getTable('Rennab')->createQuery('a')
->where('a.position = ?', array('slot1'))
->orderBy('RAND()')
->fetchOne();
}
#top2
if($this->space == "slot2")
{
$pos = new Rennab();
$this->size = $pos->getSizes('slot2');
$this->content = Doctrine::getTable('Rennab')->createQuery('a')
->leftJoin('a.Photo ph')
->where('a.position = ?', array('slot2'))
->orderBy('RAND()')
->fetchOne();
}
#top3
if($this->space == "slot3")
{
$pos = new Rennab();
$this->size = $pos->getSizes('slot3');
$this->content = Doctrine::getTable('Rennab')->createQuery('r')
->leftJoin('r.Photo ph')
->where('r.position = ?', array('slot3'))
->orderBy('RAND()')
->fetchOne();
}
guest 25.11.2011 12:01 # +2
roman-kashitsyn 25.11.2011 12:03 # +2
bugmenot 25.11.2011 12:16 # +4
Lure Of Chaos 26.11.2011 03:15 # +1
Lure Of Chaos 25.11.2011 13:57 # +1
temkin 25.11.2011 14:03 # +1
guestGovno 25.11.2011 19:10 # +1
windrun 25.11.2011 18:25 # +1
guest8 09.04.2019 12:14 # −999