<?php
/*********************/
/*                   */
/*  Version : 5.1.0  */
/*  Author  : RM     */
/*  Comment : 071223 */
/*                   */
/*********************/

echo "<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\r\n";
$classe = new td_class( );
$mid = $classe->checkcookie( );
$character = $classe->checkcookiechar( );
$move = $_POST['moveok'];
if ( $move )
{
    $numerodomapa = stripslashes( $_POST['numerodomapa'] );
    $coordx = stripslashes( $_POST['coordx'] );
    $coordy = stripslashes( $_POST['coordy'] );
    $classe->checanumeropositivo( $coordx );
    $classe->checanumeropositivo( $coordy );
    $classe->checacoordenadas( $coordx );
    $classe->checacoordenadas( $coordy );
    $classe->executamover( $character, $numerodomapa, $coordx, $coordy );
}
$qChar = mssql_query( "Select * From Character WHERE Name='".$character."'" );
$Char = mssql_fetch_array( $qChar );
echo "<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\" class=\"paineltitulo\">\r\n<tr><td>\r\n<table width=\"100%\" border=\"0\" align=\"center\">\r\n<form name=\"form1\" method=\"post\" action=\"\" target=\"_self\">\r\n<tr valign=\"top\">\r\n<td colspan=\"3\">\r\n<table width=\"100%\" height=\"65\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> \r\n<tr bgcolor=\"#096f9e\">\r\n<td height=\"22\" colspan=\"10\" align=\"center\" class=\"paineltitulo\">MOVER PERSONAGEM</td></tr>\r\n<tr>\r\n<td width=\"16%\" height=\"24\" class=\"paineltextoescuro\">Personagem</td>\r\n<td width=\"9%\" align=\"center\" class=\"paineltextoescuro\">Level</td>\r\n<td width=\"9%\" align=\"center\" class=\"paineltextoescuro\">Pks</td>\r\n<td width=\"9%\" align=\"center\" class=\"paineltextoescuro\">Mapa</td>\r\n<td width=\"9%\" align=\"center\" class=\"paineltextoescuro\">Coord x</td>\r\n<td width=\"9%\" align=\"center\" class=\"paineltextoescuro\">Coor&nbsp; y</td>\r\n<td width=\"14%\" align=\"center\" class=\"paineltextoescuro\">Zen</td>\r\n</tr>\r\n<input name=\"character\" type=\"hidden\" value='";
echo $character;
echo "'>\r\n<tr>";
echo "\r\n<td height='19' align='center' class=\"painelchar\">".$character."</td>\r\n<td align='center' class=\"painelchar\">".$Char['cLevel']."</td>\r\n<td align='center' class=\"painelchar\">".$Char['PkCount']."</td>\r\n<td align='center' class=\"painelchar\">".$classe->mostramapa( $character )."</td>\r\n<td align='center' class=\"painelchar\">".$Char['MapPosX']."</td>\r\n<td align='center' class=\"painelchar\">".$Char['MapPosY']."</td>\r\n<td align='center' class=\"painelchar\">".$Char['Money']."</td>";
echo "</tr></table>\r\n</td></tr>\r\n\r\n<tr>\r\n<td width=\"26%\" align=\"center\" class=\"painelchar\">Mapa desejado\r\n<td width=\"79\" class=\"painelchar\"><select name=\"numerodomapa\" id=\"numerodomapa\">\r\n                <option value=\"0\">Lorencia</option>\r\n                <option value=\"1\">Dungeon</option>\r\n                <option value=\"2\">Davias</option>\r\n                <option value=\"3\">Noria</option>\r\n                <option value=\"4\">Losttower</option>\r\n                <option value=\"6\">Arena</option>\r\n                <option value=\"7\">Atlans</option>\r\n                <option value=\"8\">Tarkan</option>\r\n\t\t\t\t<option value=\"10\">Icarus</option>\r\n\t\t\t\t<option value=\"24\">Kalima I</option>\r\n\t\t\t\t<option value=\"25\">Kalima II</option>\r\n\t\t\t\t<option value=\"26\">Kalima III</option>\r\n\t\t\t\t<option value=\"27\">Kalima IV</option>\r\n\t\t\t\t<option value=\"28\">Kalima V</option>\r\n\t\t\t\t<option value=\"29\">Kalima VI</option>\r\n\t\t\t\t<option value=\"30\">Loren</option>\r\n\t\t\t\t<option value=\"31\">Land Of trial</option>\r\n\t\t\t\t<option value=\"33\">Aida</option>\r\n\t\t\t\t<option value=\"34\">Crywolf</option>\r\n              </select></td>\r\n<td width=\"270\" align=\"left\" class=\"painelchar\">Zen Requerido <strong>5.000 (5k)</strong></td>\r\n</tr>\r\n<tr> \r\n<td align=\"center\" class=\"painelchar\">Coordenada X</td>\r\n<td class=\"painelchar\"><input name=\"coordx\" type=\"text\" id=\"coordx\" value=\"0\" size=6 maxlength=\"3\"></td>\r\n<td></td>\r\n</tr>\r\n<tr bgcolor=\"#EFEFEF\"> \r\n<td align=\"center\" class=\"painelchar\">Coordenada Y</td>\r\n<td class=\"painelchar\"><input name=\"coordy\" type=\"text\" id=\"coordy\" value=\"0\" size=\"6\" maxlength=\"3\"></td>\r\n<td class=\"paineltextoescuro\"><input name=\"moveok\" id=\"moveok\" type=\"submit\" value=\"Mover\"></td>\r\n</tr></form>\r\n</table>\r\n</td>\r\n</tr>\r\n</table>\r\n</body>\r\n</html>";
?>
