<% @Import Namespace="Seven.Front" %>
<% @Import Namespace="Seven.Front.Globals" %>
<% @Import Namespace="Seven.Front.Objects" %>
<%@ Page Language="C#" MasterPageFile="Model.Master" AutoEventWireup="true" CodeBehind="Configuracion.aspx.cs" Inherits="Seven.Front.Configuracion" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHeader" runat="server">

    <% try{ %>

    <title><%=L.LBL("LblGENConfiguracion") %></title>
    
    <script type="text/javascript">
        
    </script>
    
    <script type="text/javascript">

        $(document).ready(function () {

            $("#EnlaceMaestro").focus();

            <%
            //$("#MainForm").validate({
            //    rules: {
            //        txtImpuestoVentas: {
            //            required: true,
            //            digits: true
            //        }
            //    },
            //    messages: {
            //        txtImpuestoVentas: "Requerido / Numérico"
            //    }
            //});
            %>

            $("#SevenMenu").accordion("option", "active", 0);

        });
    </script>

    <% } catch { } %>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cpPrincipal" runat="server">

    <% try{ %>

    <div id="SevenBreadcrumb" class="ui-state-default">
        <table style="width: 100%; white-space: nowrap;">
            <tr>
                <td>
                    <div class="SevenEnlaces" onclick="window.location.href='Menu.aspx#M1';" style="cursor: pointer;">
                        <table>
                            <tr>
                                <td>
                                    <img src="img/application-icon-large.png" />
                                </td>
                                <td>
                                    <%=L.LBL("LblGENMenuTactil") %>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td>&nbsp;</td>
                <td>
                    <a href="Inicio.aspx"><%=L.LBL("LblGENInicio") %></a>
                    <img src="img/arrow.png" alt="" />
                    <a href="Configuracion.aspx"><%=L.LBL("LblGENConfiguracion") %></a>
                </td>
                <td style="width: 100%;"></td>
                <td>
                    <%=L.LBL("LblGENLanguage") %>
                </td>
                <td>
                    <!-- #include file="LanguageCombo.html" -->
                </td>
            </tr>
        </table>
    </div>
            
    <div id="SevenPrincipal">
                
        <div id="SevenMedio">
                    
            <div id="SevenInterno" style="width: 525px;">

                <table>
                    <tr>
                        <td>
                            <span class="SevenTitulo"><%=L.LBL("LblGENConfiguracion") %></span>
                        </td>
                        <td>&nbsp;&nbsp;&nbsp;</td>
                        <%--<td>
                            <div class="SevenEnlaces">
                                <table>
                                    <tr>
                                        <td>
                                            <a href="Ayuda/HLPConfiguracion.aspx" id="A1" ><img src="img/question.png" /> <%=L.LBL("LblGENHelp") %></a>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>--%>
                    </tr>
                </table>

                <% 
                    if (CorrectoIns)
                    {    
                %>

                    <p class="SevenMsgExito"><%=L.LBL("LblGENMSG_SavedData") %></p>

                <%  } %>

                <% 
                    if (CorrectoMod)
                    {    
                %>

                    <p class="SevenMsgExito"><%=L.LBL("LblGENMSG_UpdatedData") %></p>

                <%  } %>

                <% 
                    if (CorrectoEli)
                    {    
                %>

                    <p class="SevenMsgExito"><%=L.LBL("LblGENMSG_DeletedData") %></p>

                <%  } %>

                <% 
                    if (!String.IsNullOrEmpty(ErrorMsg))
                    {    
                %>

                    <p class="SevenMsgError"><%=ErrorMsg %></p>

                <%  } %>
                            
                            
                            
                <div id="Formulario">

                            
                                
                                
                    <form id="MainForm" action="Configuracion.aspx<%  Response.Write("?d=0"); 
                                                        if (!string.IsNullOrEmpty(Request.QueryString["p"]))
                                                        { 
                                                        Response.Write("&p=" + Request.QueryString["p"]); 
                                                        }else{
                                                        Response.Write("&p=1"); 
                                                        }
                                                        if (!string.IsNullOrEmpty(Request.QueryString["q"]))
                                                        { 
                                                        Response.Write("&q=" + Request.QueryString["q"]); 
                                                        }else{
                                                        Response.Write("&q="); 
                                                        }%>" method="POST">
                                
                        <input type="hidden" id="txtImpuestoVentas" name="txtImpuestoVentas" value="<%=elemento.ImpuestoVentas %>"/>

                        <table style="width: 100%;">
                            <%--<tr>
                                <td colspan="2">
                                    <h3><%=L.LBL("LblGENGeneral") %></h3>
                                </td>
                            </tr>
                            <tr>
	                            <td><%=L.LBL("LblGENSalesTax") %><span class="error"> * </span>: </td>
	                            <td>
		                            <input type="text" id="txtImpuestoVentas" name="txtImpuestoVentas" value="<%=elemento.ImpuestoVentas %>"/>
	                            </td>
                            </tr>--%>
                            <tr>
                                <td colspan="2">
                                    <h3><%=L.LBL("LblGENSystemSecurity") %></h3>
                                </td>
                            </tr>
                            <tr>
	                            <td><%=L.LBL("LblGENUseCAPTCHA") %>: </td>
	                            <td>
		                            <input type="radio" name="rbCaptcha" value="1" <% if(elemento.Captcha){ %> checked="checked" <% } %>/> <%=L.LBL("LblGENYes") %>
                                    <input type="radio" name="rbCaptcha" value="0" <% if(!elemento.Captcha){ %> checked="checked" <% } %>/> <%=L.LBL("LblGENNo") %>
	                            </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <%=L.LBL("LblGENCAPTCHAWarning") %>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4">
                                    <table style="width: 100%;">
                                        <tr>
                                            <td style="width: 100%;"></td>
                                            <td>
                                                <button type="submit">
                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    <img src="img/disk.png" alt="<%=L.LBL("LblGENSave") %>" />
                                                                </td>
                                                                <td><%=L.LBL("LblGENSave") %></td>
                                                            </tr>
                                                        </table>
                                                </button>
                                            </td>
                                            <td>
                                                <button type="button" onclick="window.location.href='http://<%=Request.Url.Authority %>/Configuracion.aspx<%  Response.Write("?d=0"); 
                                                                                                                                                                                            if (!string.IsNullOrEmpty(Request.QueryString["p"]))
                                                                                                                                                                                            { 
                                                                                                                                                                                                Response.Write("&p=" + Request.QueryString["p"]); 
                                                                                                                                                                                            }else{
                                                                                                                                                                                                Response.Write("&p=1"); 
                                                                                                                                                                                            }
                                                                                                                                                                                            if (!string.IsNullOrEmpty(Request.QueryString["q"]))
                                                                                                                                                                                            { 
                                                                                                                                                                                                Response.Write("&q=" + Request.QueryString["q"]); 
                                                                                                                                                                                            }else{
                                                                                                                                                                                                Response.Write("&q="); 
                                                                                                                                                                                            }%>'">
                                                        <table><tr><td><img src="img/arrow-return-180-left.png" alt="<%=L.LBL("LblGENCancel") %>" /></td><td><%=L.LBL("LblGENCancel") %></td></tr></table>
                                                </button>
                                            </td>
                                            <td>
                                                <button type="button" onclick="window.location.href='http://<%=Request.Url.Authority %>/Inicio.aspx'" >
                                                        <table><tr><td><img src="img/cross.png" alt="<%=L.LBL("LblGENExit") %>" /></td><td><%=L.LBL("LblGENExit") %></td></tr></table>
                                                </button>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                                
                    </form>
                                
                            
                </div>
                 
            </div>
                    
        </div>
                
    </div>

    <% } catch { } %>

</asp:Content>

