<?php if ( isset( $_GET["cost"] ) ) { $in = $_GET["cost"]; $cost = Cost::CostFromString($_GET["cost"]); $in = substr($in, 2); } else { $cost = new Cost($_GET["id"]); $in = $cost->EditString(); } $d = $cost->EditRecord(); $cL = $d->Get("colorless"); $clp1 = $cL+1; $cL = str_pad($cL, 2, "0", STR_PAD_LEFT); $clp1 = str_pad($clp1, 2, "0", STR_PAD_LEFT); $s = DB::zdb()->select() ->from("symbols"); $rows = DB::zdb()->fetchAll($s); $colors = array(); function BasicImgStr($color, $i) { $r = "<span onmouseover=\"hover($i);\""; $r .= " onclick=\"click_base($i);\">"; $r .= '<img src="Views/img/mana_symbols/';