<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="True" Inherits="site_HITS_CallRecordings_Details" Title="Brightstar Device Protection: Call Recordings" UICulture="auto" Codebehind="Details.aspx.cs" %>
<%@ Register Src="~/Controls/PersistNav.ascx" TagName="PersistNav" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ChildHeader.ascx" TagName="ChildHeader" TagPrefix="uc" %>
<%@ Register Src="~/Controls/HITSCalendar.ascx" TagName="HITSCalendar" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <h1>
                    <asp:Literal ID="LiteralNamePage" runat="server" Text="<%$ Resources: CallRecordingManagement, CallRecordingsLabel %>" />
                </h1>
            </td>
            <td valign="top">
                <uc:PersistNav ID="PersistNav1" runat="server" />
            </td>
        </tr>
    </table>
    <uc:ChildHeader ID="ChildHeader1" runat="server" />
    <h2>
        <asp:Label ID="m_lblSuccess" runat="server" />
    </h2>
    <div class="greyblock">
        <table border="0" cellspacing="0" cellpadding="0" class="gvTable">
            <tr>
                <td align="right">
                    <b>
                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources: CallRecordingManagement, FileLabel %>" />
                    </b>
                </td>
                <td style="height: 20px">
                    <asp:Label ID="m_lblFileName" runat="server" />
                </td>
                <td align="right" style="height: 20px">
                    <b>
                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources: CallRecordingManagement, SizeLabel %>" />
                    </b>
                </td>
                <td style="height: 20px">
                    <asp:Label ID="m_lblFileSize" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <b>
                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources: Default, DateTimeLabelColon %>" />
                    </b>
                </td>
                <td>
                    <uc:HITSCalendar ID="m_calDate" runat="server" />                    
                </td>
                <td align="right">
                    <b>
                        <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources: CallRecordingManagement, LengthLabel %>" />
                    </b>
                </td>
                <td>
                    <asp:Label ID="m_lblLength" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <b>
                        <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources: SubscriberManagement, LabelSubscriberColon %>" />
                    </b>
                </td>
                <td>
                    <asp:LinkButton ID="m_lbtnSubscriber" runat="server" onClick="m_lbtnSubscriber_Click"/>
                </td>
                <td align="right">
                    <b>
                        <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources: ClaimsManagement, LabelClaimIDColon %>" />
                    </b>
                </td>
                <td>
                    <asp:LinkButton ID="m_lbtnClaimID" runat="server" OnClick="m_lbtnClaimID_Click" />
                </td>                
            </tr>
            <tr>
                <td style="height: 15px"></td>
                <td style="height: 15px"></td>
                <td style="height: 15px"></td>
                <td style="height: 15px"></td>
            </tr>
            <tr>
                <td align="right">
                    <b>
                        <asp:HyperLink ID="m_lbtnPlay" runat="server" Text="<%$ Resources: CallRecordingManagement, PlayLabel %>" />
                    </b>
                </td>
                <td>
                    <b>
                        <asp:HyperLink ID="m_lbtnDownload" runat="server" Text="<%$ Resources: CallRecordingManagement, DownloadLabel %>" />
                    </b>                    
                </td>
                <td>
                    <b>
                        <asp:HyperLink ID="m_hlSpeechToText" runat="server" Text="<%$ Resources: CallRecordingManagement, SpeechToLabel %>" />
                    </b>
                </td>
            </tr>
        </table>
    </div>
    <h2>
        <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources: CallRecordingManagement, AnnotationHistoryLabel %>" />
    </h2>
    <table border="0" cellpadding="0" class="gvTable" width="100%">
        <tr>
            <td style="width: 241px">
                <asp:Label ID="m_lblNoteSuccess" runat="server" />
            </td>
        </tr>
        <tr>
            <td style="width: 241px">
                <asp:GridView ID="m_gvNotes" runat="server" AutoGenerateColumns="False" Width="80%" OnRowDataBound="m_gvNotes_RowDataBound" >
                    <Columns>                        
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Literal ID="m_litEdit" Text="<%$ Resources: CallRecordingManagement, EditTable %>" runat="server" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="m_lbtnEdit" Text="<%$ Resources: CallRecordingManagement, EditTable %>" runat="server" onClick="m_lbtnEdit_Click"/>
                            </ItemTemplate>
                            <ItemStyle Width="8%" HorizontalAlign="Center"  VerticalAlign="Top"/>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Literal ID="m_litDate" runat="server" Text="<%$ Resources: Default, LabelDate %>" />
                            </HeaderTemplate>               
                            <ItemTemplate>
                                <asp:Label ID="m_lblDate" runat="server" />                    
                            </ItemTemplate>
                            <ItemStyle Width="12%" HorizontalAlign="Center" VerticalAlign="Top"/>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Literal ID="m_litAnnotation" runat="server" Text="<%$ Resources: CallRecordingManagement, AnnotationTable %>" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="m_lblAnnotation" runat="server" />
                             </ItemTemplate>                    
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Literal ID="m_litAnnotator" runat="server" Text="<%$ Resources: CallRecordingManagement, AnnotatorTable %>" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="m_lbtnAnnotator" runat="server" onClick="m_lbtnAnnotator_Click"/>
                            </ItemTemplate>  
                            <ItemStyle Width="15%" HorizontalAlign="Center" VerticalAlign="Top"/>                  
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Literal ID="m_litDel" runat="server" Text="<%$ Resources: CallRecordingManagement, DelTable %>" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="m_lbtnDel" runat="server" Text="<%$ Resources: CallRecordingManagement, DelTable %>" Font-Underline="True" OnClick="m_lbtnDel_Click" OnClientClick="javascript:return confirm('Are you sure you want to delere this note?');" />
                            </ItemTemplate>      
                            <ItemStyle Width="6%" HorizontalAlign="Center" VerticalAlign="Top" />              
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>    
            </td>
        </tr>
    </table>   
    
    
     <div align="left">
        <asp:TextBox ID="m_tbAnnotation" runat="server" TextMode="Multiline" Width="40%" Height="80px" />
        <br/>
        &nbsp;&nbsp;&nbsp;
        <asp:LinkButton ID="m_lbtnAddAnnotation" runat="server" Text="<%$ Resources: Default, ButtonAdd %>" OnClick="m_lbtnAddAnnotation_Click" />
        &nbsp;&nbsp;&nbsp;
        <asp:LinkButton ID="m_lbtnUpdateAnnotation" runat="server" Text="<%$ Resources: Default, ButtonUpdate %>" OnClick="m_lbtnUpdateAnnotation_Click" />
        <br/><br/>
     </div>
    
    <div align="center">
        <asp:Button ID="m_btnUpdate" runat="server" Text="<%$ Resources: Default, ButtonUpdate %>" CssClass="pagebutton" OnClick="m_btnUpdate_Click" Enabled="False" />
        <asp:Button ID="m_btnCancel" runat="server" Text="<%$ Resources: Default, ButtonCancel %>" CssClass="pagebutton" OnClick="m_btnCancel_Click" />
    </div>
</asp:Content>

