Dre4m Shell
Server IP : 103.6.199.200  /  Your IP : 18.117.192.64
Web Server : Microsoft-IIS/10.0
System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586
User : EMPUSA$ ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Domains/airzones/mpos.airzone.sg/wwwroot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/Domains/airzones/mpos.airzone.sg/wwwroot/ProductMaster.aspx
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/APOS.Master" CodeBehind="ProductMaster.aspx.cs"
    Inherits="Megazip.ProductMaster" %>

<asp:Content ContentPlaceHolderID="Content_Admin" ID="Product" runat="server">

    <script src="js/jquery-1.8.2.js" type="text/javascript"></script>

 <script type="text/javascript">
     function isNumberKey(evt, id) {
         try {
             var charCode = (evt.which) ? evt.which : event.keyCode;

             if (charCode == 46) {
                 var txt = document.getElementById(id).value;
                 if (!(txt.indexOf(".") > -1)) {

                     return true;
                 }
             }
             if (charCode > 31 && (charCode < 48 || charCode > 57))
                 return false;

             return true;
         } catch (w) {
             //alert(w);
         }
     }
    </script>



    <script type="text/javascript">
        function ShowPreview(input) {
            if (input.files && input.files[0]) {
                var ImageDir = new FileReader();
                ImageDir.onload = function(e) {
                    $('#ctl00_Content_Admin_imgName').attr('src', e.target.result);
                }
                ImageDir.readAsDataURL(input.files[0]);
            }
        }  
    </script>

    <ul class="breadcrumb push-down-0">
        <li><a href="#">Super Admin</a></li>
        <li class="active">Product Master</li>
    </ul>
    <style>
        .carousel-inner > .item > img, .carousel-inner > .item > a > img
        {
            width: 50%;
            margin: auto;
        }
    </style>

    <script language="javascript" type="text/javascript">

        function ClientTextBox() {
            var spclChars = "'!@#$%^*()";

            var ProductType = document.getElementById("ctl00_Content_Admin_ddlCapacity").value;
            var Location_name = document.getElementById("ctl00_Content_Admin_ddlLocation_name").value;
            var Product_name = document.getElementById("ctl00_Content_Admin_txtProduct_name").value;
            for (var i = 0; i < Product_name.length; i++) {
                if (spclChars.indexOf(Product_name.charAt(i)) != -1) {
                    alert(" Please enter product name special characters are not allowed.");
                    return false;
                }
            }
          
            var Value = document.getElementById("ctl00_Content_Admin_txtValue").value;

            var Desc = document.getElementById("ctl00_Content_Admin_txtDescription").value;
            for (var i = 0; i < Desc.length; i++) {
                if (spclChars.indexOf(Desc.charAt(i)) != -1) {
                    alert(" Please enter description special characters are not allowed.");
                    return false;
                }
            }
            
            
            
            if (ProductType == 0) {
                alert("Select Product Type");
                return false;
            }


            else if (Location_name == 0) {
                alert("Select The Location Name");
                return false;
            }

            else if (Product_name == null || Product_name == "") {
                alert("Enter The Product Name");
                return false;

            }

            else if (Value == null || Value == "") {
                alert("Enter The Price");
                return false;
            }

        }
    </script>
  
<%--<script>
    function checkDec(el) {
        var ex = /^[0-9]+\.?[0-9]*$/;
        if (ex.test(el.value) == false) {
            alert('Incorrect Price Value');
            document.getElementById("ctl00_Content_Admin_txtValue").value="";
        }
    }
</script>--%>


    <div class="page-content-wrap">
        <form id="Form1" runat="server">
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-success panel-hidden-controls">
                    <div class="panel-heading">
                        <h3 class="panel-title">
                            Product Master</h3>
                        <ul class="panel-controls">
                            <li><a href="#" class="panel-fullscreen"><span class="fa fa-expand"></span></a></li>
                            <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span
                                class="fa fa-cog"></span></a>
                                <ul class="dropdown-menu">
                                    <li><a href="#" class="panel-collapse"><span class="fa fa-angle-down"></span>Collapse</a></li>
                                    <li><a href="#" class="panel-refresh"><span class="fa fa-refresh"></span>Refresh</a></li>
                                </ul>
                            </li>
                            <li><a href="#" class="panel-remove"><span class="fa fa-times"></span></a></li>
                        </ul>
                        <div class="pull-right">
                            <asp:Button ID="btnback" Text="Back" runat="server" class="btn btn-info" OnClick="btnback_Click" />
                        </div>
                    </div>
                    <div class="panel-body">
                        <div class="row">
                            <div class="col-md-6">
                                <div class="row">
                                    <div class="form-group">
                                        <asp:Label ID="lblProduct_ID" runat="server" class="col-md-4 col-xs-12 control-label">Product ID</asp:Label>
                                        <div class="col-md-6 col-xs-12">
                                            <asp:TextBox ID="txtProduct_ID" Enabled="false" runat="server" class="form-control"
                                                TabIndex="1"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                  <div class="row">
                                    <div class="form-group">
                                        <asp:Label ID="lblLocation_name" runat="server" class="col-md-4 col-xs-12 control-label">Location Name<span style="color:Red";><label>&nbsp;*</label></span></asp:Label>
                                        <div class="col-md-6 col-xs-12">
                                            <asp:DropDownList ID="ddlLocation_name"  CssClass="form-control selected"
                                                TabIndex="2" runat="server" OnSelectedIndexChanged="ddlLocation_name_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                
                                <br />
                                <div class="row">
                                    <div class="form-group">
                                        <asp:Label ID="lblValue" runat="server" class="col-md-4 col-xs-12 control-label">Price<span style="color:Red";><label>&nbsp;*</label></span></asp:Label>
                                        <div class="col-md-6 col-xs-12">
                                            <asp:TextBox ID="txtValue" runat="server" class="form-control" onkeypress="return isNumberKey(event,this.id)" TabIndex="3"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <div class="row">
                                    <div class="form-group">
                                        <asp:Label ID="lblDescription" runat="server" class="col-md-4 col-xs-12 control-label">Description</asp:Label>
                                        <div class="col-md-6 col-xs-12">
                                            <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Rows="4" Columns="4"
                                                class="form-control" TabIndex="5"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <div class="row">
                                    <div class="form-group">
                                        <asp:Label ID="Label2" runat="server" class="col-md-4 col-xs-12 control-label">Show in Online</asp:Label>
                                        <div class="col-md-6 col-xs-12">
                                            <div class="input-group">
                                                <asp:RadioButtonList ID="rbtnOnlinStatus" RepeatDirection="Horizontal" runat="server">
                                                    <asp:ListItem Selected="True" Value="1">Yes &nbsp; &nbsp; </asp:ListItem>
                                                    <asp:ListItem Value="0">No</asp:ListItem>
                                                </asp:RadioButtonList>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <div class="row">
                                    <div class="form-group">
                                        <asp:Label ID="lblstatus" runat="server" class="col-md-4 col-xs-12 control-label">Status</asp:Label>
                                        <div class="col-md-6 col-xs-12">
                                            <div class="input-group">
                                                <asp:RadioButtonList ID="rbtnStatus" RepeatDirection="Horizontal" runat="server">
                                                    <asp:ListItem Selected="True" Value="Active">Active &nbsp; &nbsp; </asp:ListItem>
                                                    <asp:ListItem Value="Deactive">Deactive</asp:ListItem>
                                                </asp:RadioButtonList>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                
                            </div>
                            <div class="col-md-6">
                                <div class="row">
                                    <div class="form-group">
                                        <asp:Label ID="Label1" runat="server" class="col-md-4 col-xs-12 control-label">Is a Standard Product<span style="color:Red";><label>&nbsp;*</label></span></asp:Label>
                                        <div class="col-md-6 col-xs-12">
                                            <asp:DropDownList ID="ddlCapacity" AutoPostBack="true" CssClass="form-control selected"
                                                TabIndex="2" runat="server">
                                                <asp:ListItem Value="0">---Select Product Type---</asp:ListItem>
                                                <asp:ListItem Value="1">YES</asp:ListItem>
                                                <asp:ListItem Value="2">NO</asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <br />
                              <div class="row">
                                    <div class="form-group">
                                        <asp:Label ID="lblProduct_name" runat="server" class="col-md-4 col-xs-12 control-label">Product Name<span style="color:Red";><label>&nbsp;*</label></span></asp:Label>
                                        <div class="col-md-6 col-xs-12">
                                            <asp:TextBox ID="txtProduct_name" runat="server" class="form-control" TabIndex="3"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <div class="row">
                                    <div class="form-group">
                                        <asp:Label ID="lblcurenc" runat="server" class="col-md-4 col-xs-12 control-label">Currency Type</asp:Label>
                                        <div class="col-md-6 col-xs-12">
                                            <asp:TextBox ID="txtcuren" runat="server" Enabled="false" class="form-control"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <div class="row" id="divimage" runat="server">
                                    <div class="form-group">
                                        <asp:Label ID="Label12" runat="server" class="col-md-3 col-xs-12 control-label">Photo</asp:Label>
                                        <div class="col-md-6 col-xs-12">
                                            <div class="input-group" style="margin-left: 45px;">
                                                <asp:Image ID="imgName" Height="100px" Width="150px" runat="server" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <div id="PhotoName" runat="server">
                                    <div class="row">
                                        <div class="form-group">
                                            <asp:Label ID="lblPhoto" runat="server" class="col-md-4 col-xs-12 control-label"></asp:Label>
                                            <div class="col-md-6 col-xs-12">
                                                <asp:TextBox ID="txt_Photo" runat="server" class="form-control"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                              <br />
                                <div class="row">
                                    <div class="form-group">
                                        <asp:Label ID="lbluploadimage" runat="server" Style="color: black;" class="col-md-4 col-xs-12 control-label"></asp:Label>
                                        <div class="col-md-6 col-xs-12">
                                            <div class="input-group">
                                                <div class="btn btn-danger btn-file">
                                                    <i class="glyphicon glyphicon-folder-open"></i>&nbsp;Browse …
                                                    <input id="txtPhoto" runat="server" name="browse" type="file" onchange="ShowPreview(this)"
                                                        tabindex="5" /></div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />                                
                            </div>
                            <div class="row">
                                <div class="form-group">
                                    <asp:Label ID="Label5" runat="server" class="col-md-4 col-xs-12 control-label"></asp:Label>
                                    <div class="col-md-12 col-xs-12">
                                        <center>
                                            <asp:Button ID="btn_PlanMaster" Text="Submit" runat="server" class="btn btn-success"
                                                OnClick="btn_PlanMaster_Click" OnClientClick="javascript:return ClientTextBox();" />
                                            <asp:Button ID="btnClear" runat="server" Text="Clear" class="btn btn-danger" OnClick="btnClear_Click" />
                                        </center>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <br />
                    </div>
                </div>
            </div>
        </div>
        </form>
    </div>
</asp:Content>

Anon7 - 2022
AnonSec Team