<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="DetalleCursos.aspx.cs" Inherits="QuintoCaminoV2.Cursos.DetalleCursos" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="aspj" %>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="ContentPlaceHolder1">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
               <div class="row">
                  
                        <div class="col-sm-4 col-xs-6" style=" width:600px">  
                             <div class="row">
                            <div class="alert alert-success text-center">
                            <h1>&nbsp;$ <asp:Label ID="lblCosto" runat="server"  Text='' ></asp:Label></h1>
                            <div class="text-uppercase h3"><asp:Label ID="lblTitulo" runat="server"  Text='' ></asp:Label></div>
                            <div>
                                <div id="divDescripcion" runat="server" ><asp:Label ID="lblDescripcion" runat="server"  Text=''></asp:Label></div>
                                <div id="Fecha" style="float:left; width: 286px;">
                                  
                                </div>
                                
                                
                                 <hr />
                                                         
                                    <asp:LinkButton ID="lnkInscribir" runat="server" OnClick="lnkInscribir_Click">Inscribirme ahora</asp:LinkButton>
                                
                            </div>
                            <br />
                            <div>
                            </div>
                             <aspj:ModalPopupExtender ID="ModalPopupExtender2" runat="server" BackgroundCssClass="FondoAplicacion" TargetControlID="LinkButton2"
                                    PopupControlID="pnlVerPagos" 
                                    OkControlID="LinkButton2" 
                                    CancelControlID="btnCancelaUsu" DynamicServicePath="" Enabled="True">
                                    </aspj:ModalPopupExtender>
                            </div>

                            <div class="col-sm-4 col-xs-6" style=" width:600px">  
                                   <asp:Panel ID="panelPay" Visible="false" runat="server" CssClass="CajaDialogo">
                                    <div class="row">
                                        <div class="alert alert-dismissible alert-danger">
                                            <strong>Pagar con:</strong>
                                            <br />
                      
                                        <asp:ImageButton ID="ImageButton1" OnClick="ImageButton1_Click" runat="server" ImageUrl="https://www.paypalobjects.com/webstatic/es_MX/mktg/logos-buttons/PP_Acceptance_Marks_for_LogoCenter_150x94.png" />                   
                      
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                         </div>
                        </div>
                       
           
                   
          <div class="col-sm-4 col-xs-6" style="width:260px">
            <div class="panel panel-primary" style="width:290px">
              <div class="panel-heading">
                <h3 class="panel-title">Cursos</h3>
              </div>
              <div class="panel-body">
                <asp:DataList ID="DataCursos" runat="server" Width="253px" HorizontalAlign="Center">
                <ItemTemplate>  
                <div >  
                     <div class="panel-default">
                            <div class="panel-heading">
                                <div class="row">
                                    <div class="col-xs-3">
                                       <i class="fa-video-camera icon-5x"></i>
                                    </div>
                                    <div class="col-xs-9 text-center">
                                        <div class="huge"><h4><asp:Label ID="ProductNameLabel" runat="server"  Text='<%# Eval("vchTitulo") %>' ></asp:Label></h4></div>
                                        <div><asp:Label ID="Label1" runat="server"  Text='<%# Eval("vchDescripcionCorta") %>' ></asp:Label></div>
                                    </div>
                                </div>
                            </div>
                            <a href="DetalleCursos.aspx?iCursoId=<%# Eval("intCursoId") %>" >
                                <div class="panel-footer">
                                    <span class="pull-left">Ir al curso</span>
                                    <span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
                                    <div class="clearfix"></div>
                                </div>
                            </a>
                        </div>
                     <%-- <h2></h2>
                      <p class="text-muted"></p>
                      <asp:LinkButton ID="LinkButton2" CssClass="btn btn-primary btn-sm"  runat="server" CommandArgument ='<%# Eval("intCursoId") %>' OnClick="LinkButton2_Click" >Ir al curso </asp:LinkButton>--%>
                  
                   </div>  
                     <hr>                    
                </ItemTemplate>            
            </asp:DataList>  
              </div>
            </div>
        </div>


          </div>

       


             <asp:Panel ID="pnlVerPagos" runat="server" CssClass="CajaDialogo">
               
                  <div class="modal-dialog" style="width:400px">
                    <div class="modal-content">
                      <div class="modal-header">
                        <asp:Button ID="btnCancelaUsu" runat="server"  class="close" data-dismiss="modal" Text="x" aria-hidden="true"/>
                     <h3 class="panel-title">Registrarse al curso</h3>
                    </div>  
             <div class="modal-body">  
                <div>
                    <table>
                        <tr>
                            <td  style="text-align: left; text-align:center">
                                Para poder continuar con tu pago debes estar registrado:
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; text-align:center">
                                 <a href="../Account/Login.aspx" class="btn btn-warning">Iniciar sesion</a> <asp:LinkButton ID="LinkButton2" runat="server"> <a class="btn btn-danger" href="../Account/Register.aspx">Registrarse</a></asp:LinkButton>
                            </td>

                        </tr>               
                    </table>
                </div>
                <div>
                                       
                    
                </div>
                </div>
            </div>
        </div>
        

            </asp:Panel>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="lnkInscribir" />
            <asp:PostBackTrigger ControlID="ImageButton1" />
        </Triggers>
    </asp:UpdatePanel>

</asp:Content>
