<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Support_Utility_VideoViewer, App_Web_tysspfsh" uiculture="auto" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <cc1:ModalPopupExtender ID="VideoExtender" runat="server" TargetControlID="HidenButton"
                PopupControlID="DetailPanel" BackgroundCssClass="modalBackground" DropShadow="false" />
            <asp:LinkButton runat="server" ID="HidenButton" />
            <asp:Panel ID="IshiharaChartPopUpPanel" runat="server" Width="600px" BorderWidth="0" CssClass="confirmationPanel">              
                <asp:Panel ID="DetailPanel" runat="server" Width="600px" meta:resourcekey="DetailPanelResource1">
                    <div class="himssuHeaderconfirmWireBox whitebox" style="border:thin">
                        <div class="himsBoxHeader">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="fLeft headerText" style="visibility:hidden"">
                                    Video Viewer</div>
                                <div class="windowcloseButton">
                                    <asp:ImageButton runat="server" ID="CloseButton" CssClass="fRight" ToolTip="Close" ImageUrl="~/Images/closePopup.gif" />
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent">
                            <div class="contentHolder">
                                <iframe id="IframId" runat="server" width="580" height="390" visible="false"></iframe>
                                <asp:Panel ID="MediaPlayerPanel" runat="server" Visible="false">
                                    <object id="MediaPlayer"  width="550" height="300" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
                                        standby="Loading Windows Media Player components..." type="application/x-oleobject">
                                        <param name="FileName" id="paramMediaPath"  runat="server" />
                                        <param name="ShowControls" value="true" />
                                        <param name="ShowStatusBar" value="false" />
                                        <param name="ShowDisplay" value="false" />
                                        <param name="autostart" value="true" />                                       
                                    </object>
                                </asp:Panel>
                                <div class="spacer5">
                                    <asp:Image ID="Image4" runat="server" ImageUrl="../../../Images/spacer.gif" />
                                </div>
                                <asp:Button runat="server" ID="CancelButton" Text="Cancel" OnClick="CancelButton_Click" Visible="false"/>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
            </asp:Panel>
              <div id="divContentPage">              
                 <div style="width: 100%;padding:2px;margin:2px">
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px" cellpadding="0"
                        cellspacing="0"> 
                        <tr>                        
                         <td class="dashBoardLeftCont" valign="top">
                                <div class="himssuHeader3WireBox">                                  
                                    <table width="0px" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="114"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td> 
                            <td style="vertical-align: top;" width="100%" class="whiteboxpaddingleft">
                                  <div class="himssuHeader1WireBox whitebox">
                                          <div class="himsBoxHeader note note1 box box-danger">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <asp:Label ID="Label1" runat="server" Text="Video Viewer"></asp:Label> 
                                                </div> 
                                                 <div class="fRight"    style="margin-top: -15px">
                                                <asp:DropDownList ID="VideoTypeDropDownList" runat="server" AutoPostBack="true" 
                                                    OnSelectedIndexChanged="VideoTypeDropDownList_OnSelectedIndexChanged">
                                                    <asp:ListItem Text="- ALL -" Value="0" Selected="True"></asp:ListItem>
                                                    <asp:ListItem Text="Local" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="YouTube" Value="2"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                              
                                            </div> 
                                        </div> 
                                    <div class="himsBoxContent"> 
                                            <div class="contentHolder"> 
                                <div id="Div1" class="himssuHeader6WireBox box-body box-solid gridviewfontbigger" runat="server" style="width: 100%; height: 100%">
                                    <div id="VideoListDetailDiv" runat="server"> 
                                        <div class="himsBoxContent">
                                            <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                <ContentTemplate>
                                                    <div id="Div5" runat="server">                                                    
                                                        <asp:GridView ID="VideoGridView" runat="server" Width="100%" AutoGenerateColumns="False" CssClass="table table-striped table-bordered"
                                                            EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true">                                                           
                                                            <Columns>
                                                                <asp:BoundField DataField="Id" HeaderText="Id" Visible="false" ></asp:BoundField>
                                                                <asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                <asp:BoundField DataField="VideoType" HeaderText="Type" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                <asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" HeaderText="Path" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="PathLinkButton" runat="server" Text='<%# Bind("Path") %>' CausesValidation="false"
                                                                            OnClick="VideoPath_Click"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </div>
                                    </div>
                                </div>
                                            </div>
                                   </div>
                            </div> 
                            </td>
                    </table>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
     <%--<script data-main="../../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>