View Single Post
  #6  
Old 01-08-2016, 11:05 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,537
Abronsyth is on a distinguished road
Default

Yep! It was killing me to have to go to the adoptable and then click on the stats link to see any information about the pet XD If you need help getting any specific stats to display just ask! Here's my resulting page;


PHP Code:
    public function manage(){
        
$mysidia Registry::get("mysidia");
        
$aid $this->getField("aid")->getValue();
        
$name $this->getField("name")->getValue();
        
$image $this->getField("image");
        
$adopt = new OwnedAdoptable($aid);
        
        
$document $this->document;        
        
$document->setTitle("Managing {$name}");
        
$document->add($image);
        
$document->add(new Comment("<br><br>This page allows you to manage {$name}.  Click on an option below to change settings.<br>
                        <a href='http://YOUR URL/levelup/click/
{$aid}'>Play</a> | <a href='http://YOUR URL/myadopts/stats/{$aid}'>Stats</a> | <a href='http://YOUR URL/myadopts/bbcode/{$aid}'>Codes</a> | <a href='http://YOUR URL/myadopts/freeze/{$aid}'>(Un)Freeze</a><br>
                        <ul>
                                        <li><strong>Name:</strong> 
{$name} | <a href='http://YOUR URL/myadopts/rename/{$aid}'>change</a></li>
                                        <li><strong>Birthday:</strong> 
{$adopt->getBirthday()} </li>
                                        <li><strong>Type:</strong> 
{$adopt->getType()}</li>
                                        <li><strong>Sex:</strong> 
{$adopt->getGender()}</li>
                                        <li><strong>Trade Status:</strong> 
{$adopt->getTradeStatus()} | <a href='http://YOUR URL/myadopts/trade/{$aid}'>change</a></li>
                                        <li><strong>LVL:</strong> 
{$adopt->getCurrentLevel()}</li>
                                        <li><strong>Total EXP:</strong> 
{$adopt->getTotalClicks()}  </li> 
                                    </ul>"
));
        
        
$document->add(new Image("templates/icons/delete.gif"));
        
$document->add(new Link("pound/pound/{$aid}"" Pound {$name}"TRUE)); 
    } 
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote