<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master" AutoEventWireup="true" CodeFile="User_CuttOff.aspx.cs"
    Inherits="Admin_User_CuttOff"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <script src="script/ddlevelsmenu.js" type="text/javascript"></script>

    <script src="script/func.js" type="text/javascript"></script>
    
    <script type="text/javascript" src="../Javascript/datetimepicker_css.js"></script>
        <script type="text/javascript" src="../Javascript/datetimepicker.js"></script>
        <script language="JavaScript" type="text/JavaScript" src="../JavaScript/CFunc.js"></script>

        <script src="../javascript/scriptvalidation.js" type="text/javascript"></script>
        
        <script type="text/javascript" language="javascript">
            function DisableRightClick(event) {

                //For mouse right click

                if (event.button == 2) {

                    alert("Right Clicking not allowed!");

                }

            }

            function DisableCtrlKey(e) {

                var code = (document.all) ? event.keyCode : e.which;

                var message = "Ctrl key functionality is disabled!";

                // look for CTRL key press

                if (parseInt(code) == 17) {

                    //alert(message);

                    window.event.returnValue = false;

                }

            }

    </script>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="contentmain">
<div id="content">
<div id="detailform">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
	
<tr>
  <td><table cellpadding="0" cellspacing="0" align="center">
    <tr><td colspan="10" style="text-align:center"><asp:Label ID="lblsucess" runat="server"></asp:Label>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 
 
 <tr>
    <td width="30%">&nbsp;</td>
    <td width="15%">User ID</td>
    <td width="1%"><strong>:</strong></td>
    <td width="54%"><asp:DropDownList ID="ddl_user" runat="server" Width="176px" AutoPostBack="true"
            onselectedindexchanged="ddl_user_SelectedIndexChanged">
    <asp:ListItem>Select</asp:ListItem></asp:DropDownList></td>
  </tr>
  
  <tr id="cutOff" runat="server">
    <td width="30%">&nbsp;</td>
    <td width="15%">Current CutOff Amount</td>
    <td width="1%"><strong>:</strong></td>
    <td width="54%"><asp:Label ID="lbl_cutoffamount" runat="server"></asp:Label></td>
  </tr>
  
 <tr>
    <td width="30%">&nbsp;</td>
    <td width="15%">Set CutOff Amount</td>
    <td width="1%"><strong>:</strong></td>
    <td width="54%"><asp:TextBox ID="txtAmount" onkeypress="return digitonly(this,event)" runat="server"
                        MaxLength="5" Width="174px" ToolTip="Please Enter CutOff Amount" oncopy="return false"  onpaste="return false" oncut="return false" onmousedown="DisableRightClick(event)" onkeydown="return DisableCtrlKey(event)" autocomplete="off"></asp:TextBox>                    
                    <asp:RequiredFieldValidator ID="rfv_Amount" runat="server" ControlToValidate="txtAmount" 
                        ErrorMessage="Please Enter Amount" Display="None">
                    </asp:RequiredFieldValidator></td>
  </tr>
 
  
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><strong>&nbsp;</strong></td>
    <td style="padding:10px ;">
        <asp:Button ID="btnActive" runat="server" Text="Submit" 
            class="button active" onclick="btnActive_Click" /></td>
  </tr>
</table>







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

</div></div>
</asp:Content>
