function deckProfile($deck) { if ($deck == NULL || $deck->id == 0) { echo "<span class=\"error\"><center>Deck is not found. It is possible that it is not entered yet.</center></span>"; return; } echo "<center><form action=\"deckdl.php\" method=\"post\">\n"; echo "<input type=\"hidden\" name=\"id\" value=\"{$deck->id}\" />\n"; echo "<input type=\"submit\" name=\"mode\" "; echo "value=\"Download deck as .txt file\" /></form></center><br>\n"; echo "<div class=\"grid_5 alpha\"><div id=\"gatherling_lefthalf\">\n"; deckInfoCell($deck); maindeckTable($deck); sideboardTable($deck); echo "</div> </div>\n"; echo "<div class=\"grid_5 omega\"><div id=\"gatherling_righthalf\">\n"; trophyCell($deck); matchupTable($deck); echo "<div class=\"grid_2 alpha\">\n"; symbolTable($deck); echo "</div> <div class=\"grid_2 omega\">\n"; ccTable($deck); echo "</div>\n"; echo "<div class=\"clear\"></div>"; exactMatchTable($deck); echo " </div> </div>\n"; echo "<div class=\"clear\"></div>"; echo "<div>"; commentsTable($deck); echo "</div>"; echo "<div class=\"clear\"></div>"; echo "<center>\n"; echo "<form action=\"deck.php\" method=\"post\">\n"; echo "<input type=\"hidden\" name=\"id\" value=\"{$deck->id}\" />\n"; echo "<input type=\"submit\" name=\"mode\" value=\"Edit Deck\" />\n"; echo "</form></center>\n"; }
function deckProfile($deck) { if ($deck == NULL || $deck->id == 0) { echo "<center>Deck is not found. It is possible that it is not entered yet.</center>"; return; } echo "<center><form action=\"deckdl.php\" method=\"post\">\n"; echo "<input type=\"hidden\" name=\"id\" value={$deck->id}>\n"; echo "<input type=\"submit\" name=\"mode\" "; echo "value=\"Download deck as .txt file\"></form></center><br>\n"; echo "<table align=\"center\" style=\"border-width: 0px;\" width=600>\n"; echo "<tr><td width=225>"; deckInfoCell($deck); echo "</td>\n<td valign=\"top\" align=\"right\">"; trophyCell($deck); echo "</td></tr>"; echo "<tr><td>"; maindeckTable($deck); echo "</td><td valign=\"top\" align=\"right\">"; echo "<table style=\"border-width: 0px;\" align=\"right\" width=350>"; echo "<tr><td colspan=3 align=\"right\">"; matchupTable($deck); echo "</td></tr>"; echo "<tr><td width=50></td><td valign=\"top\" align=\"left\" width=150>"; symbolTable($deck); echo "</td><td align=\"right\" width=150>"; ccTable($deck); echo "</td></tr></table>"; echo "</td>\n"; echo "<tr><td>"; sideboardTable($deck); echo "</td></tr>\n"; echo "<tr><td colspan=2>"; commentsTable($deck); echo "</td></tr>\n"; echo "<tr><td> </td></tr>\n"; echo "<tr><td colspan=2 align=\"center\">\n"; echo "<form action=\"deck.php\" method=\"post\">\n"; echo "<input type=\"hidden\" name=\"id\" value=\"{$deck->id}\">\n"; echo "<input type=\"submit\" name=\"mode\" value=\"Edit Deck\">\n"; echo "</form></td></tr>\n"; echo "</table>\n"; }