<?php
/**********************************************************
* show error information
**********************************************************/
function show_error($errinfo, $title, $url)
{
	?>
<center>
	<div style="border:2px solid #65a4d7;width:500px">
		<table style="width:500px;word-break:break-all;word-wrap:break-word;">
			<tr>
				<td align="right" width=45%> <img src="images/error.gif"> </td> <td colspan="2" style="font-size:20px;font-weight:bold"><?php echo $title; ?></td>
			</tr>
			<tr bgcolor=#dddddd>
				<td colspan="3"><?php echo $errinfo ?> </td>
			</tr>
			<tr>
				<td colspan="3" align="center"> <a href=<?php echo $url;?>>return</a></td>
			</tr>
		</table>
	</div>
</center>
	<?php
}


/********************************************************
* operation success
*********************************************************/
function show_done($doneinfo, $title, $url)
{
	?>	
<center>
	<div style="border:0px solid #65a4d7;width:500px;overflow-y:auto;height:360px;">
		<table style="width:500px;table-layout:fixed;word-break:break-all;word-wrap:break-word;border:2px solid #65a4d7;">
			<tr>
				<td align="right" width=45%> <img src="images/done.gif"> </td> <td colspan="2" style="font-size:20px;font-weight:bold"><?php echo $title; ?></td>
			</tr>
			<tr bgcolor=#dddddd>
				<td colspan="3"><?php echo $doneinfo ?> </td>
			</tr>
			<tr>
				<td colspan="3" align="center"> <a href=<?php echo $url;?> >return</a></td>
			</tr>
		</table>
	</div>
</center>
	<?php
}

?>