TLT96
05-05-2014, 07:07 PM
Well, i want to edit a lot of mysidia, i have some changes but i get stuck in this part....
I want to put two links with images in one row... Here the code (I tried but i cant...)
public function index(){
$mysidia = Registry::get("mysidia");
$document = $this->document;
$document->setTitle($this->lang->title);
$pagination = $this->getField("pagination");
$stmt = $this->getField("stmt")->get();
if($stmt->rowCount() == 0){
$document->addLangvar($this->lang->empty);
return;
}
$adoptTable = new TableBuilder("adopttable", 650);
$adoptTable->setAlign(new Align("center", "middle"));
$adoptTable->buildHeaders("First", "Second", "Third", "Fourth");
while($aid = $stmt->fetchColumn()){
$adopt = new OwnedAdoptable($aid);
$cells = new LinkedList;
$STATS=new Link("myadopts/stats/{$aid}", new Image("templates/icons/stats.gif"));
$FEEDEAR=new Link("levelup/click/{$aid}", new Image("templates/icons/add.gif"));
$cells->add($STATS);
$cells->add(new TCell(new Link("myadopts/manage/{$aid}", $adopt->getImage("gui"))));
$cells->add(new TCell($adopt->getTotalClicks()));
$cells->add(new TCell($adopt->getNivel()));
$adoptTable->buildRow($cells);
}
$document->add($adoptTable);
$document->addLangvar($pagination->showPage());
}
I have two variables called: STATS and FEEDEAR, they have links with images (Using codes from mysidia), but i cant put in just 1 row (I know how to put sepparated in two rows) but i want to show two images with links in the same row....
Php/Html knowledge = 2/10 :wiii:
I want to put two links with images in one row... Here the code (I tried but i cant...)
public function index(){
$mysidia = Registry::get("mysidia");
$document = $this->document;
$document->setTitle($this->lang->title);
$pagination = $this->getField("pagination");
$stmt = $this->getField("stmt")->get();
if($stmt->rowCount() == 0){
$document->addLangvar($this->lang->empty);
return;
}
$adoptTable = new TableBuilder("adopttable", 650);
$adoptTable->setAlign(new Align("center", "middle"));
$adoptTable->buildHeaders("First", "Second", "Third", "Fourth");
while($aid = $stmt->fetchColumn()){
$adopt = new OwnedAdoptable($aid);
$cells = new LinkedList;
$STATS=new Link("myadopts/stats/{$aid}", new Image("templates/icons/stats.gif"));
$FEEDEAR=new Link("levelup/click/{$aid}", new Image("templates/icons/add.gif"));
$cells->add($STATS);
$cells->add(new TCell(new Link("myadopts/manage/{$aid}", $adopt->getImage("gui"))));
$cells->add(new TCell($adopt->getTotalClicks()));
$cells->add(new TCell($adopt->getNivel()));
$adoptTable->buildRow($cells);
}
$document->add($adoptTable);
$document->addLangvar($pagination->showPage());
}
I have two variables called: STATS and FEEDEAR, they have links with images (Using codes from mysidia), but i cant put in just 1 row (I know how to put sepparated in two rows) but i want to show two images with links in the same row....
Php/Html knowledge = 2/10 :wiii: