All pastes #2126023 Raw Edit

Untitled

public text v1 · immutable
#2126023 ·published 2012-03-08 03:10 UTC
rendered paste body

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>

</title>
    <style type="text/css">
        body
        {
            background-color: #CCCCCC;
        }
        .mainDiv
        {
            width: 500px;
            background-color: #FFFFFF;
            border-style: double;
            margin-right: auto;
            margin-left: auto;
            height: 520px;
            margin-top: 20px;
        }
        h1
        {
            text-align: center;
            color: #008080;
        }
        .content
        {
            width: 90%;
            margin-right: auto;
            margin-left: auto;
            margin-top: 26px;
        }
        .style1
        {
            width: 100%;
            height: 52px;
        }
        .style3
        {
            width: 72px;
            height: 72px;
        }
        .style4
        {
            width: 105px;
        }
        .inputBox
        {
            width: 25px;
        }
        .rowHeight
        {
            height: 86px;
        }
        .style5
        {
            width: 59px;
        }
        .style8
        {
            width: 305px;
        }
        .style9
        {
            width: 66px;
        }
    </style>
</head>
<body>
    <form method="post" action="CashRegister.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE4MzMwMzgyOTYPZBYCAgMPZBYGAgEPDxYCHgRUZXh0BQUkMS41MGRkAgkPDxYCHwAFBSQxLjU5ZGQCEQ8PFgIfAAUFJDMuNzlkZGRgn1trR1JFPTjthQT6pzRMBALWV+0XXFsYsSJJTKTYwA==" />

</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>


<script src="/WebSite4/WebResource.axd?d=MqIBgI25Qp4wF0c69AuidZo1nph0kLEFhmJs3pPeH5FQ7A4bBPHRdVjW2rSJpbb8caB-I_H4mw4QdRoS2qzmBY_9j9pMDZkVxYg9k7Yo5Pg1&amp;t=634662543062720875" type="text/javascript"></script>


<script src="/WebSite4/WebResource.axd?d=lQr4Joxitdsc5ryQikRS7WIlRfmbCKYBTJQrfbUAQ9eEvJ70CP8hisS8fM9Y1u_hxbUDQQN27hZ6Sh_2jEZLlOiiDUS3OmPsFcTtSL5cv5Q1&amp;t=634662543062720875" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
//]]>
</script>

<div class="aspNetHidden">

	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBQKCmYbRBQL2h9XdCALCssaYCQKb+47ZCALCi9reA1MkPMMOalundqHT0C8szpMIOq841FcmMaaGJWrKOZja" />
</div>
    <div class="mainDiv">
        <h1>
            Product Reorder System</h1>
        <div class="content">
            Enter the quantity needed for each product.<br />
            The minimum order accepted is one of each item.<br />

            <br />
            <table class="style1">
                <tr class="rowHeight">
                    <td class="style4">
                        <img alt="plates" class="style3" src="Images/plate.jpg" />
                    </td>
                    <td>
                        Plates (pk of 18) -
                        <span id="lblPlatePrice">$1.50</span>

                        <br />
                        <br />
                        Quantity: &nbsp;<input name="txtPlate" type="text" id="txtPlate" style="width:25px;" />
                        &nbsp;<span id="RequiredFieldValidator1" style="color:Red;display:none;">Quantity Required</span>
                        <span id="RangeValidator1" style="color:Red;display:none;">Enter a value 1-100</span>
                    </td>
                </tr>

                <tr class="rowHeight">
                    <td class="style4">
                        <img alt="napkins" class="style3" src="Images/napkin.jpg" />
                    </td>
                    <td>
                        Napkins (pk of 30) -
                        <span id="lblNapkinPrice">$1.59</span>
                        <br />
                        <br />

                        Quantity:&nbsp;
                        <input name="txtNapkin" type="text" id="txtNapkin" style="width:25px;" />
                        &nbsp;<span id="RequiredFieldValidator2" style="color:Red;display:none;">Quantity Required</span>
                        <span id="RangeValidator2" style="color:Red;display:none;">Enter a value 1-100</span>
                    </td>
                </tr>
                <tr class="rowHeight">

                    <td class="style4">
                        <img alt="cups" class="style3" src="Images/cup.jpg" />
                    </td>
                    <td>
                        Cups (pk of 24) -
                        <span id="lblCupPrice">$3.79</span>
                        <br />
                        <br />
                        Quantity:&nbsp;

                        <input name="txtCup" type="text" id="txtCup" style="width:25px;" />
                        &nbsp;<span id="RequiredFieldValidator3" style="color:Red;display:none;">Quantity Required</span>
                        <span id="RangeValidator3" style="color:Red;display:none;">Enter a value 1-100</span>
                    </td>
                </tr>
            </table>
            <hr />
            <table>

                <tr>
                    <td class="style8">
                        <div id="pnlButton">
	
                            <input type="submit" name="btnSubmit" value="Submit Order" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnSubmit&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="btnSubmit" />
                        
</div>
                        
                    </td>
                    <td>
                        
                    </td>
                </tr>

            </table>
        </div>
    </div>
    
<script type="text/javascript">
//<![CDATA[
var Page_Validators =  new Array(document.getElementById("RequiredFieldValidator1"), document.getElementById("RangeValidator1"), document.getElementById("RequiredFieldValidator2"), document.getElementById("RangeValidator2"), document.getElementById("RequiredFieldValidator3"), document.getElementById("RangeValidator3"));
//]]>
</script>

<script type="text/javascript">
//<![CDATA[
var RequiredFieldValidator1 = document.all ? document.all["RequiredFieldValidator1"] : document.getElementById("RequiredFieldValidator1");
RequiredFieldValidator1.controltovalidate = "txtPlate";
RequiredFieldValidator1.errormessage = "Quantity Required";
RequiredFieldValidator1.display = "Dynamic";
RequiredFieldValidator1.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
RequiredFieldValidator1.initialvalue = "";
var RangeValidator1 = document.all ? document.all["RangeValidator1"] : document.getElementById("RangeValidator1");
RangeValidator1.controltovalidate = "txtPlate";
RangeValidator1.errormessage = "Enter a value 1-100";
RangeValidator1.display = "Dynamic";
RangeValidator1.type = "Integer";
RangeValidator1.evaluationfunction = "RangeValidatorEvaluateIsValid";
RangeValidator1.maximumvalue = "100";
RangeValidator1.minimumvalue = "1";
var RequiredFieldValidator2 = document.all ? document.all["RequiredFieldValidator2"] : document.getElementById("RequiredFieldValidator2");
RequiredFieldValidator2.controltovalidate = "txtNapkin";
RequiredFieldValidator2.errormessage = "Quantity Required";
RequiredFieldValidator2.display = "Dynamic";
RequiredFieldValidator2.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
RequiredFieldValidator2.initialvalue = "";
var RangeValidator2 = document.all ? document.all["RangeValidator2"] : document.getElementById("RangeValidator2");
RangeValidator2.controltovalidate = "txtNapkin";
RangeValidator2.errormessage = "Enter a value 1-100";
RangeValidator2.display = "Dynamic";
RangeValidator2.type = "Integer";
RangeValidator2.evaluationfunction = "RangeValidatorEvaluateIsValid";
RangeValidator2.maximumvalue = "100";
RangeValidator2.minimumvalue = "1";
var RequiredFieldValidator3 = document.all ? document.all["RequiredFieldValidator3"] : document.getElementById("RequiredFieldValidator3");
RequiredFieldValidator3.controltovalidate = "txtCup";
RequiredFieldValidator3.errormessage = "Quantity Required";
RequiredFieldValidator3.display = "Dynamic";
RequiredFieldValidator3.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
RequiredFieldValidator3.initialvalue = "";
var RangeValidator3 = document.all ? document.all["RangeValidator3"] : document.getElementById("RangeValidator3");
RangeValidator3.controltovalidate = "txtCup";
RangeValidator3.errormessage = "Enter a value 1-100";
RangeValidator3.display = "Dynamic";
RangeValidator3.type = "Integer";
RangeValidator3.evaluationfunction = "RangeValidatorEvaluateIsValid";
RangeValidator3.maximumvalue = "100";
RangeValidator3.minimumvalue = "1";
//]]>
</script>


<script type="text/javascript">
//<![CDATA[

var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}

function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
        //]]>
</script>
</form>

</body>
</html>