Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 12-29-2016, 05:27 PM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 29,507
parayna is on a distinguished road
Default

Um, I managed to get the page not showing any errors but no adopts show up.. :/ I had tried before but couldn't find my way around it, but this time is slightly better, I suppose...

Would you have any idea on how to make it work?

PHP Code:
    public function index(){
        
$mysidia Registry::get("mysidia");
        
$document $this->document;    
        
$document->setTitle($this->lang->title);        
        
$document->addLangvar($this->lang->default);
        
        
$readoptForm = new Form("readoptform""pound/adopt""post");
        
$readoptHeader = new Comment("Pounded Adoptables for adoption");
        
$readoptHeader->setHeading(3);
        
$readoptForm->add($readoptHeader);
        
        
$readoptTable = new TableBuilder("readopttable");
        
$readoptTable->setAlign(new Align("center""middle"));
        
$readoptTable->buildHeaders();
        
$readoptTable->setHelper(new AdoptTableHelper);
        
        
$pounds $this->getField("pounds");        
        
$iterator $pounds->iterator();        
        while(
$iterator->hasNext()){
            
$entry $iterator->next();
            
$adopt $entry->getKey();
            
$cost $entry->getValue();

                
$cells = new ArrayList;
                
$lvl $adopt->getCurrentLevel();
                if (
$lvl == 0) { $cells->add(new Comment("<a href='/myadopts/manage/{$adopt->getAdoptID()}'><img src='{$adopt->getImage()}'></a>")); }
                if (
$lvl == 1) { $cells->add(new Comment("<a href='/myadopts/manage/{$adopt->getAdoptID()}'><img src='{$adopt->getImage()}'></a>")); }
                if (
$lvl >= 2) { $cells->add(new Comment("<a href='/myadopts/manage/{$adopt->getAdoptID()}'><img src='{$adopt->getImage()}' width= '200px'></a>")); }  
                
$cells->add(new Comment("<b>Name: </b>"));
                
$cells->add(new Comment("<b>Gender: </b>"));
                
$cells->add(new Comment("<b>Total Clicks: </b>"));
                
$aCells = new TCell($cells"cell{$index}");
                
$aCells->setAlign(new Align("center""center"));
}
            
$readoptTable->add($aCells);
        
    } 
Thanks ^_^
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:25 AM.

Currently Active Users: 2739 (0 members and 2739 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636