<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
if($action=="add"){
?>
<br>
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="tableborder">
  <form name="form1" method="post" action="?action=add&reaction=addok">
  <tr>
    <td colspan="2" class="tit1"><? echo $lang['address.info1']?><a href="address.php?action=add"><? echo $lang['address.info2']?></a></td>
  </tr>
  <tr>
    <td class="td1" height="30" width="20%"><b><? echo $lang['address.info3']?></b></td>
    <td class="td1" height="30" width="80%"><? echo $lang['address.info4']?></td>
  </tr>
  <tr>
    <td colspan="2" class="tit1"><? echo $lang['address.info5']?></td>
  </tr>
  <tr>
    <td class="td1" height="30"><? echo $lang['address.info7']?></td>
    <td class="td1" height="30"><input type="text" size="40" name="start_ip"></td>
  </tr>
  <tr>
    <td colspan="2" height="1" bgcolor="ffffff"></td>
  </tr>
  <tr>
    <td class="td1" height="30"><? echo $lang['address.info8']?></td>
    <td class="td1" height="30"><input type="text" name="end_ip" size="40"></td>
  </tr>
  <tr>
    <td colspan="2" height="1" bgcolor="ffffff"></td>
  </tr>
  <tr>
    <td class="td1" height="30"><? echo $lang['address.info9']?></td>
    <td class="td1" height="30"><input type="text" size="40" name="from_nation"></td>
  </tr>
  <tr>
    <td colspan="2" height="1" bgcolor="ffffff"></td>
  </tr>
  <tr>
    <td class="td1" height="30"><? echo $lang['address.info10']?></td>
    <td class="td1" height="30"><input type="text" size="40" name="from_city"></td>
  </tr>
  <tr>
    <td colspan="2" height="1" bgcolor="ffffff"></td>
  </tr>
  <tr>
    <td class="td1" height="30"></td>
    <td class="td1" height="30"><input type="submit" name="Submit" value="  <?=$lang['submit']?>  "></td>
  </tr>
    </form>
</table>
<?
}
else{
?>
<br>
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="tableborder">
  <form name="form1" method="post" action="?reaction=search">
  <tr>
    <td colspan="2" class="tit1"><? echo $lang['address.info1']?><a href="address.php?action=add"><? echo $lang['address.info2']?></a></td>
  </tr>
  <tr>
    <td class="td1" height="30" width="20%"><b><? echo $lang['address.info3']?></b></td>
    <td class="td1" height="30" width="80%"><? echo $lang['address.info4']?></td>
  </tr>
  <tr>
    <td colspan="2" class="tit1"><? echo $lang['search.info1']?></td>
  </tr>
  <tr>
    <td class="td1" height="30"><? echo $lang['search.info2']?></td>
    <td class="td1" height="30"><input type="text" size="40" name="ip"></td>
  </tr>
  <tr>
    <td colspan="2" height="1" bgcolor="ffffff"></td>
  </tr>
  <tr>
    <td class="td1" height="30"><? echo $lang['search.info3']?></td>
    <td class="td1" height="30"><input type="text" name="nation" size="40"></td>
  </tr>
  <tr>
    <td colspan="2" height="1" bgcolor="ffffff"></td>
  </tr>
    <tr>
    <td class="td1" height="30"><? echo $lang['search.info4']?></td>
    <td class="td1" height="30"><input type="text" size="40" name="city"></td>
  </tr>
  <tr>
    <td colspan="2" height="1" bgcolor="ffffff"></td>
  </tr>
  <tr>
    <td class="td1" height="30"></td>
    <td class="td1" height="30"><input type="submit" name="Submit" value="  <?=$lang['search']?>  "></td>
  </tr>
    </form>
</table>
<?}?>