public static function getDepositTextLong($pid, $x, $y) { $deposit = mysql_query("SELECT * FROM " . $GLOBALS['DB_table_prefix'] . "grids WHERE planet_uid = '{$pid}' AND planX = '{$x}' AND planY = '{$y}'"); if (mysql_num_rows($deposit) == 1) { $result = mysql_result($deposit, 0, 'mat_quant'); $result .= " unit(s) of "; $result .= \planets::getMatName(mysql_result($deposit, 0, 'mat_type')); $result .= " discovered by "; $result .= stripslashes(mysql_result($deposit, 0, 'prospector')); $result .= "."; return $result; } else { return 'No deposit here.'; } }
?> <!--Form for submitting new deposits--> <form method="POST" action="index.php?mode=submit"> <table> <tr> <td>Name:</td><td><input type="hidden" name="pid" value="<?php echo $pid; ?> "/><input type="text" name="who" size="50"/></td> </tr> <tr> <td>Choose mat type:</td> <td> <select name="mat" id="planet" value="type"> <?php echo \planets::generateMatOptions(); ?> </select> </td> </tr> <tr> <td>Size of deposit:</td><td><input type="text" name="size" size="50"/></td> </tr> <tr> <td>Surface X:</td><td><input type="text" name="surfX" size="50"/></td> </tr> <tr> <td>Surface Y:</td><td><input type="text" name="surfY" size="50"/></td> </tr> <tr> <td colspan="2" align="center"><input type="submit" size="50" name="Submit" value="Submit"/></td>