<?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['ccvideo.liststyle'].$lang['ccvideo.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['ccvideo.btn']?>" style="color: #FF0000;width:80px;height:50px;border:1px outset;">
</td>
<td height="23" class="forumrow" style="LINE-HEIGHT: 140%">
<?=$lang['ccvideo.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['ccvideo.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['ccvideo.liststyle']?> <?=$lang['ccvideo.title']?></td>
  </tr>
  <tr class="forumrow">
   <td width="30%" class="forumrow"> <?=$lang['ccvideo.enabledccvideo']?></td>
   <td width="20%" class="forumrow">
    <input type="radio" name="p['enabledccvideo']" value="1" <?echo ($ccvideo['enabledccvideo']?"checked":"")?>><?=$lang['ccvideo.yes']?>&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="p['enabledccvideo']" value="0" <?echo ($ccvideo['enabledccvideo']?"":"checked")?>><?echo $lang['ccvideo.no']?>&nbsp;
   </td>
 <td width="50%" class="forumrow" align="left"> <?=$lang['ccvideo.enabledccvideoserver1']?></td>
  </tr>
  <tr class="forumrow1">
    <td  height="25"><?php echo $lang['ccvideo.ccvideoid']?></td>
    <td  height="25"><input type="text" name="p['ccvideoid']" size="35" value="<?echo $ccvideo["ccvideoid"]?>" id="ccvideouserid"></td>
    <td align="left"> <?=$lang['ccvideo.ccvideoid1']?></td>
   </tr>

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

<tr class="forumrow">
    <td height="25"><?echo $lang['ccvideo.ccvideobtn']?></td>
    <td  height="25">
    <select name="p['ccvideobtn']" onchange="showbtnpre()" id="ccvideobtn">
    <?php
    for($i=1;$i<=16;$i++){
    	$selected=$ccvideo['ccvideobtn']=="plugin_{$i}"?'selected':'';
     echo "<option value=\"plugin_{$i}\" {$selected}>{$lang['ccvideo.btnstyle'][$i-1]}</option>";
    }
    ?>
    </select>
    </td>
 
<td height="25" id="ccvideobtnpre"><object width='86' height='22'><param name='wmode' value='transparent' /><param name='allowScriptAccess' value='always' /><param name='movie' value='http://union.bokecc.com/flash/plugin/<?php echo $ccvideo['ccvideobtn']?>.swf?userID=<?php echo $ccvideo['ccvideoid']?>&type=wowo' /><embed src='http://union.bokecc.com/flash/plugin/<?php echo $ccvideo['ccvideobtn']?>.swf?userID=<?php echo $ccvideo['ccvideoid']?>&type=wowo' type='application/x-shockwave-flash' width='86' height='22' allowFullscreen=true ></embed></object></td>
</tr>
<script language="javascript">
    function showbtnpre(){
    	btn=document.getElementById("ccvideobtn").value;
    	userid=document.getElementById("ccvideouserid").value
    	btnurl="http://union.bokecc.com/flash/plugin/"+btn+".swf?userID="+userid+"&type=wowo";
    	cchtml="<param name='wmode' value='transparent' /><param name='allowScriptAccess' value='always' /><param name='movie' value='"+btnurl+"' /><embed src='"+btnurl+"' type='application/x-shockwave-flash' width='86' height='22' allowFullscreen=true ></embed></object>";
    	document.getElementById("ccvideobtnpre").innerHTML=cchtml;
    }
    </script>
    
<tr class="forumrow1">
    <td height="25"><?echo $lang['ccvideo.enableshow']?></td>
    <td  height="25">
    <input type="radio" name="p['enableshow']" value="1" <?echo ($ccvideo['enableshow']?"checked":"")?>><?=$lang['ccvideo.yes']?>&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="p['enableshow']" value="0" <?echo ($ccvideo['enableshow']?"":"checked")?>><?echo $lang['ccvideo.no']?>&nbsp;</td>
<td height="25"></td>
</tr>

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