Пример #1
0
            $bildexp = eregi_replace("'", "", strtolower($bildexp));
        }
        if ($pick[pk_card_id] == $_POST[chosen_card]) {
            $kortnamn = "<span class=\"" . color2class($pick[card_color]) . "\">" . $pick["card_name"] . "</span>";
            if ($xet == 1) {
                $title = "Sweet!";
                $grade = "We think you made the right pick since {$kortnamn} has higher points than the rest.";
            } elseif ($xet == 2) {
                $title = "OK!";
                $grade = "We think you made an alright pick since {$kortnamn} has the second best points of the three.";
            } elseif ($xet == 3) {
                $title = "Ouch...";
                $grade = "Nooo... bad choice. At least does the community think so since {$kortnamn} is rated as the worst card of the three.";
            }
        }
        $list_output .= "\n\t\t\t\t<li><span onmouseover=\"viewCard('../cardpics/" . $bildexp . "/" . cardname2filename($pick[card_name], $pick[version]) . "')\" class=\"pointer " . color2class($pick[card_color]) . "\">" . $pick[card_name] . "</span>\n\t\t\t\t    <br /><span class=\"grey\">" . $pick[stats_rating] . " points</span></li>";
    }
    ?>
			<h1><?php 
    echo $title;
    ?>
</h1><br />
			<p class="text"><?php 
    echo $grade;
    ?>
</p>

			<ol class="small">
				<?php 
    echo $list_output;
    ?>
Пример #2
0
    ?>
</span></h2>
					<ol class="small">
						<?php 
    while ($pick = mysql_fetch_array($picks)) {
        $bildexp = eregi_replace(' ', "", stripslashes($pick[exp_name]));
        $bildexp = eregi_replace("'", "", strtolower($bildexp));
        ?>
							<li><span onmouseover="viewCard('cardpics/<?php 
        echo $bildexp;
        ?>
/<?php 
        echo cardname2filename($pick[card_name], $pick[version]);
        ?>
')" class="pointer <?php 
        echo color2class($pick[card_color]);
        ?>
"><?php 
        echo $pick[card_name];
        ?>
</span>
							    <br /><span class="grey"><?php 
        echo round($pick[nmb] / $nmb_voters * 100);
        ?>
% (<?php 
        echo $pick[nmb];
        ?>
)</span></li>
							<?php 
    }
    ?>