<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
?>
<br>
<table width="95%" border="0" cellspacing="1" cellpadding="0"  align="center" class="tableborder">
<tr> 
<td height="23" align="left" colspan="6" class="tit1"><? echo $lang['passport.liststyle'].$lang['passport.title']?></td>
</tr>
<tr align="left">
<td height="23" class="forumrow" style="text-align:center;width:15%">
<input type="submit" name="Submit" value="<? echo $lang['passport.btn']?>" style="color: #FF0000;width:80px;height:50px;border:1px outset;">
</td>
<td height="23" class="forumrow" style="LINE-HEIGHT: 140%">
<?=$lang['passport.announce']?>
</td>
</tr>
</table>
<!--µ¼؛½-->
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<tr align="center">
<td height="25" align="center" bgcolor="#C9DEFA"  width="20%"><font color="red"><?=$lang['passport.title']?></font></a></td>
<td height="25" align="center" bgcolor="#F1F3F5" width="80%" ></td>
</tr>
</table>
<!--µ¼؛½½لتّ-->
<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#C4D8ED" class="tableborder">
  <form name="from1" id="frmsetting" method="POST" action="">
  <input type="hidden" name="reaction" value="save">
  <tr>
    <td colspan="3" class="tdtit"><?=$lang['passport.liststyle']?> <?=$lang['passport.title']?></td>
  </tr>
  <tr class="forumrow">
   <td width="30%" class="forumrow"> <?=$lang['passport.enabledpassportserver']?></td>
   <td width="20%" class="forumrow">
    <input type="radio" name="p['enabledpassportserver']" value="1" <?echo ($passport['enabledpassportserver']?"checked":"")?>><?=$lang['passport.yes']?>&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="p['enabledpassportserver']" value="0" <?echo ($passport['enabledpassportserver']?"":"checked")?>><?echo $lang['passport.no']?>&nbsp;
   </td>
 <td width="50%" class="forumrow" align="left"> <?=$lang['passport.enabledpassportserver1']?></td>
  </tr>
  <tr class="forumrow1">
    <td  height="25"><?php echo $lang['passport.colientaddresses']?></td>
    <td  height="25"><input type="text" name="p['colientaddresses']" size="35" value="<?echo $passport["colientaddresses"]?>"></td>
    <td align="left"> <?=$lang['passport.colientaddresses1']?></td>
   </tr>
   
   <tr class="forumrow1">
    <td  height="25"><?php echo $lang['passport.colientsystem']?></td>
    <td  height="25">
    <select name="p['colientsystem']">
      <?php
      $dir=opendir(ROOT_PATH."passport");
      while($f=readdir($dir)){
      	if($f!='.'&&$f!='..'){
      	(false!==$pos=strrpos($f,"."))&&($extname=strtolower(substr($f,$pos+1)));
      	if('php'==$extname){
      	$f=strtolower(substr($f,0,$pos));
      	$f=substr($f,0,$pos);
      	echo "<option value='{$f}'";
      	if($f==$passport["colientsystem"])echo " selected";
      	echo ">{$f}</option>";
      	}
      	}
      }
      ?>
    </select>
    </td>
    <td align="left"></td>
   </tr> 
   
    <tr class="forumrow">
    <td height="25"><?echo $lang['passport.enabledpassportclient']?></td>
    <td  height="25"><input type="radio" name="p['enabledpassportclient']" value="1" <?echo ($passport['enabledpassportclient']?"checked":"")?>><?php echo $lang['passport.yes']?>&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="p['enabledpassportclient']" value="0" <?echo ($passport['enabledpassportclient']?"":"checked")?>><?=$lang['passport.no']?>&nbsp;</td>
<td height="25"><?echo $lang['passport.enabledpassportclient1']?></td>
</tr>

<tr class="forumrow1">
    <td height="25"><?echo $lang['passport.serveraddress']?></td>
    <td  height="25"><input type="text" name="p['serveraddress']" size="35" value="<?echo $passport["serveraddress"]?>"></td>
<td height="25"><?echo $lang['passport.serveraddress1']?></td>
</tr>

<tr class="forumrow">
    <td height="25"><?echo $lang['passport.serverlogin']?></td>
    <td  height="25"><input type="text" name="p['serverlogin']" size="35" value="<?echo $passport["serverlogin"]?>"></td>
<td height="25"><?echo $lang['passport.serveraddress1']?></td>
</tr>

<tr class="forumrow1">
    <td height="25"><?echo $lang['passport.serverlogout']?></td>
    <td  height="25"><input type="text" name="p['serverlogout']" size="35" value="<?echo $passport["serverlogout"]?>"></td>
<td height="25"><?echo $lang['passport.serveraddress1']?></td>
</tr>

<tr class="forumrow">
    <td height="25"><?echo $lang['passport.serverregister']?></td>
    <td  height="25"><input type="text" name="p['serverregister']" size="35" value="<?echo $passport["serverregister"]?>"></td>
<td height="25"><?echo $lang['passport.serveraddress1']?></td>
</tr>

<tr class="forumrow">
    <td height="25"><?echo $lang['passport.servergetpwd']?></td>
    <td  height="25"><input type="text" name="p['servergetpwd']" size="35" value="<?echo $passport["servergetpwd"]?>"></td>
<td height="25"><?echo $lang['passport.serveraddress1']?></td>
</tr>

<tr class="forumrow">
    <td height="25"><?echo $lang['passport.passport_pkey']?></td>
    <td  height="25"><input type="text" name="p['passport_pkey']" size="35" value="<?echo $passport["passport_pkey"]?>"></td>
<td height="25"><?echo $lang['passport.passport_pkey1']?></td>
</tr>

<tr><td colspan="3" class="forumrow1" style="text-align:center">
<input type="button" name="test" value="<?php echo $lang['passport.test']?>" class="button">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="Submit" value="<?php echo $lang['passport.save']?>" class="button">
</td>
</tr>
</form>
</table>