<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_radio_edit.aspx.cs" Inherits="HteamDd.Web.Admin.Admin_radio_edit" %>

<!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 id="Head1" runat="server">
    <title>视频信息编辑</title>
    <meta content="IE=EmulateIE7" http-equiv="X-UA-Compatible" />
    <link href="/css/style.css" rel="stylesheet" type="text/css" />
    <script src="/jscript/common.js" type="text/javascript"></script>
    <script src="/jscript/jquery-1.4.2.js" type="text/javascript"></script>
  <script type="text/javascript" language="javascript">
      var jq = jQuery.noConflict();
      jq(document).ready(function () {

          jq(".feed-video-img-holder").show();
          jq(".feed-video-close").hide();
          jq(".feed-full-video-wrap.clearfix").hide();

          jq(".feed-video-play").click(function () {
              jq(".feed-video-close").show();
              jq(".feed-video-img-holder").hide();
              jq(this).parent("div").parent("div").prepend(get_parent_video_url(this));
              //              jq(".feed-full-video-wrap.clearfix").show();
          });

          jq(".feed-video-close").click(function () {
              jq(".feed-video-close").hide();
              jq(".feed-video-img-holder").show();
              jq(".feed-full-video-wrap.clearfix").remove();
              //              jq(".feed-full-video-wrap.clearfix").hide();
          });
      });
      function get_parent_video_url(video_play) {
          var parent = jq(video_play).parent("div").parent("div");
          var json = eval(parent.attr("data").toString());
          video_show = '<div class="feed-full-video-wrap clearfix">'
            + '<div class="feed-full-video">'
            + '<object width="500" height="416">'
            + '<param value="true" name="isAutoPlay">'
            + '<param value="sameDomain" name="allowscriptaccess">'
            + '<param value="transparent" name="wmode">'
            + '<param value="true" name="allowfullscreen">'
            + '<param value='
            + json[0].flashurl.toString()
            + '&amp;isAutoPlay=true" name="movie">'
            + '<embed width="500" height="416" allowfullscreen="true" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="sameDomain" src="'
            + json[0].flashurl.toString()
            + '&amp;isAutoPlay=true" flashvars="isAutoPlay=true">'
            + '</object>'
            + '</div>'
            + '<div class="feed-video-footer clearfix">'
            + '<span class="feed-video-link">'
            + '<a target="_blank" href="'
            + json[0].videourl.toString()
            + '">youku.com</a>→'
            + '</span>'
            + '</div>'
            + '</div>';
          return video_show;
      }
            </script>
    <style type="text/css">    
     
        .feed-video-img-holder {
            float: left;
            height: 113px;
            margin-right: 10px;
            overflow: hidden;
            position: relative;
        }
        .feed-video .feed-video-img {
            cursor: pointer;
            height: 113px;
            width: 150px;
        }
     
        .feed-video-play {
            background: url("/images/player_$295.png") no-repeat scroll 0 0 transparent;
            display: block;
            height: 48px;
            left: 50%;
            margin: -22px 0 0 -22px;
            position: absolute;
            text-indent: -9999px;
            top: 50%;
            width: 43px;
        }
        .feed .feed-full-video {
            background-color: #F3F3F3;
        }
        .feed-ct .feed-video-footer {
            font-size: 10px;
        }
        .feed-ct .feed-video-link {
            float: left;
        }
    </style>
    <!--编辑器代码-开始 -->
    <script src="../kindeditor/kindeditor.js" type="text/javascript"></script>
    <script type="text/javascript">
        KE.show({
            id: 'txtContent',
            imageUploadJson: '/kindeditor/plugins/upload_json.ashx',
            fileManagerJson: '/kindeditor/plugins/file_manager_json.ashx',
            allowFileManager: true,
            width: "70%", //编辑器的宽度为70%  
            height: "250px", //编辑器的高度为100px    
            filterMode: false, //不会过滤HTML代码  
            resizeMode: 0 //2或1或0，2时可以拖动改变宽度和高度，1时只能改变高度，0时不能拖动。
        });
        </script>
<!-- 编辑器代码结束 -->
</head>
<body>
    <form id="form1" runat="server" >
     <table style="width: 100%;" class="maintable" cellpadding="0" cellspacing="1" border="0" >
       <tr><th colspan="2"><a href="Admin_radio_manage.aspx">视频信息管理</a> | <a href="Admin_radio_recycle.aspx">视频回收站</a></th></tr>
        <tr>
         <td class="left" style="width: 89px">视频发布作者：</td>
         <td>
             <asp:TextBox ID="txtName" runat="server" Width="528px" Enabled="False" 
                 ReadOnly="True"></asp:TextBox>
             <span class="explain">视频发布作者不能修改！</span></td>
       </tr>
       <tr>
         <td class="left" style="width: 89px">视频预览：</td>
         <td>
            <div class="feed-video-ct" data='[{"flashurl":"<%=video_url %>","videourl":"<%=video_address %>"}]'>
    <span class="feed-video-link"> <a class="feed-video-close"  style="cursor:pointer;">关闭视频</a></span>
    <div class="feed-video-img-holder">
        <img class="feed-video-img" src="<%=video_image%>" alt=""/>
        <a class="feed-video-play">播放</a>
    </div>                                      
</div>
            </td>
       </tr>
       <tr>
         <td class="left" style="width: 89px">视频描述：</td>
         <td>
              &nbsp;<asp:TextBox 
                  ID="txtContent" runat="server" Height="150px" TextMode="MultiLine" 
                  Width="322px"></asp:TextBox>
              &nbsp;<span class="explain">视频描述内容，可以插入图片，视频等</span></td>
       </tr>
       <tr>
       <td class="left" style="width: 89px">标签：</td>
       <td>
           <asp:TextBox ID="txtTag" runat="server" Width="299px"></asp:TextBox>&nbsp;<span class="explain">标签之间用，隔开</span></td>
       </tr>
          
        <tr>
       <td class="left">是否删除：</td>
       <td class="right">
           <asp:RadioButton ID="rbtdelete1" runat="server" Text="删除"  GroupName="delete"/>
           <asp:RadioButton ID="rbtdelete2" runat="server" Text="不删除" Checked="true" GroupName="delete"/>
           </td>
       </tr>
       <tr><td class="left">是否审核</td>
<td class="right">
 <asp:RadioButton ID="rbtVerity1" runat="server" Text="已审" Checked="true" GroupName="verity"/>
           <asp:RadioButton ID="rbtVerity2" runat="server" Text="未审" GroupName="verity"/>
</td></tr>
       <tr>
       <td class="left"></td>
       <td> 
           <asp:Button ID="btnSubmit" runat="server" 
               Text="提  交" onclick="btnSubmit_Click" />&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button 
               ID="btnReset" runat="server" Text="重  置" onclick="btnReset_Click" />
                </td>
       </tr>
     </table>
    </form>
</body>
</html>
