<?php
$wpconfig = realpath("../../../wp-config.php");
if (!file_exists($wpconfig))  {
	echo "Could not found wp-config.php. Error in path :\n\n".$wpconfig ;	
	die;	
}
require_once($wpconfig);
require_once(ABSPATH.'/wp-admin/admin.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>插入视频</title>
<!-- 	<meta http-equiv="Content-Type" content="<?php// bloginfo('html_type'); ?>; charset=<?php //echo get_option('blog_charset'); ?>" /> -->
	<script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
	<script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
	<script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-content/plugins/playerV35/js/tinymce.js"></script>
	<base target="_self" />
    <style type="text/css">
body { font-family: "Microsoft YaHei" ! important; font-family:"微软雅黑"; font-size:14px; line-height:26px; }
.input{ border: #a6a6a6 1px solid;background: #ffffff ; font-size:14px; color:#C50A32; height: 26px; height: 26px;padding:1px;}
</style>
</head>
		<body id="link" onLoad="tinyMCEPopup.executeOnLoad('init();');" >
<!-- <form onsubmit="insertLink();return false;" action="#"> -->
<form id="ckvideo" action="#">
<table width="650" border="0" cellpadding="10" cellspacing="0" rules="rows" style="border:5px solid #E2E2E2;">
    <tr style="padding:0;margin:0;border:none;background:none;">
    <td width="82" style="text-align: right">视频名称</td>
    <td colspan=3 style="border:none;"><input name="cvname" type="text" class="input" id="cvname" style="width: 100%" title="输入视频名称." value="视频标题"></td>
    </tr>
   
  <tr style="padding:0;margin:0;border:none;background:none;">
	
  <td style="text-align: right">视频地址</td>
    <td colspan=3><input name="cvurl" type="text" class="input" id="cvurl" style="width: 100%" title="输入视频地址或视频ID." value=""></td>
  </tr>
  <tr style="padding:0;margin:0;border:none;background:none;">
	
  <td style="text-align: right">缩 略 图</td>
    <td colspan=3><input name="vimages" type="text" class="input" id="vimages" style="width: 100%" title="输入视频地址或视频ID." value="/wp-content/plugins/playerV35/player/images/startpic.jpg"></td>
  </tr>
  <tr style="padding:0;margin:0;border:none;background:none;">
    <td style="text-align: right"></td>
    <td colspan=3><div id="moreurldiv"  style="display:none">
				<div style="display:none">
				起始集数<input title="输入起始集数." class="java" id="startnum"  name="startnum" type="text" size="2" value="1"/>
				每行集数<input title="输入每行." class="java" id="linenum"  name="linenum" type="text" size="2" value="8"/></div>
                两集中间用“||”隔开。
                
                直播<input type="checkbox" id="lv"  />多集视频<input type="checkbox" name="moreurl" id="moreurl" onChange="moreURLdiv()" />
				</div>
	</td>	
  </tr>	
  <tr style="padding:0;margin:0;border:none;background:none;">
    <td style="text-align: right">视频宽度</td>
    <td width="219"><input title="输入视频宽度." class="input" id="cvwidth"  name="cvwidth" type="text" size="5" value="100%"/>px</td>
    <td width="68" align="right">视频高度</td>
    <td width="158"><input title="输入视频高度." class="input" id="cvheight"  name="cvheight" type="text" size="5" value="460"/>px</td>
  </tr>	
 
  <tr style="padding:0;margin:0;border:none;background:none;">
    <td style="text-align: right">自动播放</td>
    <td>是<input type="radio" name="autovideo" id="auto" value="yes" >否<input type="radio" name="autovideo" id="autono" value="no" checked="checked"></td>
	<td align="right">&nbsp;</td>
    <td></td>
  </tr>
  <tr style="border:none">
    <td></td>
    <td><input id="insert"  type="button" value="插&nbsp;&nbsp;入" name="insert" runat="server" onclick="insertCK_Videocode()" />
      <input id="cancel"  type="button" value="清&nbsp;&nbsp;除" name="cancel" runat="server" onclick="clearText()" /></td>
    <td align="right">&nbsp;</td>
	<td>&nbsp;</td>
  </tr>	
</table>
</form>
</body>
</html>