<div id="cardviewer" class="mini"><div onclick="toggleCardViewer('hide');" id="closecard"><img src="<?php echo $path; ?> /images/close.png"></div><div id="cardcloseup"><img src="<?php echo $firstcard_src; ?> "></div></div> <?php $cards_drafted = mysql_num_rows(mysql_query($apa = "SELECT fk_pack_id FROM md_packcard \n\t\t\t\tINNER JOIN md_pack ON pk_pack_id = fk_pack_id\n\t\t\t\tWHERE md_packcard.fk_user_id = {$_SESSION['md_userid']} AND md_pack.fk_draft_id = {$draft_id}")); if ($draft_info["show_picks"] == 1 || ($cards_drafted == 15 || $cards_drafted == 30)) { ?> <div class="roundbox grey"> <div id="picks"> <?php echo printDraftPicks($draft_id, $_SESSION["sort_order"]); ?> <div class="breaker"></div> </div> </div> <div class="roundbox grey bottom"></div> <?php } ?> <script type="text/javascript"> if(readCookie("cardposition_top")) { document.getElementById('cardviewer').style.top = readCookie("cardposition_top"); } if(readCookie("cardposition_left"))
function filterColors($_draft_id, $_color, $_part, $remove_it = true) { global $_SESSION; $objResponse = new xajaxResponse(); if ($remove_it == "false") { array_push($_SESSION["color_array"], $_color); array_unique($_SESSION["color_array"]); mysql_query($apa = "UPDATE md_packcard\n\t\t\tINNER JOIN md_cards ON fk_card_id = pk_card_id\n\t\t\tSET packcard_hidden = 0\n\t\t\tWHERE FIND_IN_SET('" . $_color . "',card_color) AND fk_user_id = {$_SESSION['md_userid']}"); } elseif ($remove_it == "true" && array_search($_color, $_SESSION["color_array"]) !== false) { $key = array_search($_color, $_SESSION["color_array"]); unset($_SESSION["color_array"][$key]); } if ($_part == "picks") { $output = printDraftPicks($_draft_id, $_SESSION["sort_order"]); } else { $output = printdeck($_draft_id, $_part, false, false); } $objResponse->assign($_part, "innerHTML", $output); return $objResponse; }