Advertisement
Advertisement
| 08.13.2008 at 02:09PM PDT, ID: 23646313 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: |
WEB PAGE 1
----------
<?php
session_start();
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Select Vendor</title>
<link href="images/ss1.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
width:700px;
}
</style>
<link href="images/ss.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form action="vchrAddHeader.html" method="post" name="invoiceType" id="invoiceType">
<input name="id" type="hidden" value="0"/>
<?php include 'includes/header1.php'; ?>
<p>
<table width="280" height="30" border="0" align="center" cellpadding="0" cellspacing="0" class="border-top" >
<tr>
<td width="280" colspan="2" align="center" bgcolor="#D0B759" class="blck15b" >Invoice Type Selection</td>
</tr>
</table>
<table width="280" border="0" align="center" class="border-middle">
<tr>
<td width="120" height="38" class="blck12b"> Region:</td>
<td width="189"><select name="company" size="1" id="company" tabindex="10">
<option value="01" selected="selected">Corporate</option>
<option value="02">US North East</option>
<option value="03">US South East</option>
<option value="04">US North West</option>
<option value="05">US SouthWest</option>
<option value="06">US Central</option>
<option value="07">US South</option>
</select></td>
</tr>
<tr>
<td height="40" class="blck12b"> Invoice Type:</td>
<td><select name="invType" size="1" id="invType" tabindex="20" >
<option value="01" selected="selected">Purchase Order</option>
<option value="02">Approval</option>
<option value="03">Travel & Expense</option>
</select>
</tr>
</table>
<table width="280" height="34" border="0" align="center" class="border-bottom">
<tr>
<td width="292" height="28">
<center>
<input name="vchrcontinue" type="submit" class="font-filler-button" id="vchrcontinue" tabindex="30" value="Continue"/>
</center> </td>
</table>
<p>
</form>
</body>
</html>
INTERMEDIATE WEB PAGE
---------------------
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Regular Voucher Entry</title>
<link href="images/ss.css" rel="stylesheet" type="text/css" />
<link href="images/ss.css1" rel="stylesheet" type="text/css" />
<link href="images/ss.css2" rel="stylesheet" type="text/css" />
<style type="text/css">
div {
display:inline;
white-space:nowrap;
}
.page
{
width: 675px
}
div {
display: inline;
white-space: nowrap;
text-align: right;
}
</style>
<script type="text/javascript" language="JavaScript1.2" src="C:/wamp/www/resume2/scripts/menu.js"></script>
<script type="text/javascript" src="./scripts/jquery-1.2.1.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var cursorval = 1;
$("#main input.delrow:first").css({display: "none"});
$("#addrow").click(function() {
$.get("./newrow.php",{ cursor: cursorval }, function(data) {
$("#main").append(data);
});
cursorval += 1;
$(document).ajaxSuccess(function(){
$("#main input.delrow:first").css({display: "inline"});
$("#addrow").appendTo("#main div:last");
$("#main input.delrow").bind("click", function() {
if($("#main input.delrow").length == 1) {
$("#main input.delrow:first").css({display: "none"});
}
if($("#main input.delrow").index($(this)[0]) != ($("#main input.delrow").length-1)) {
$(this).parents("tr").remove();
}
else {
$("#addrow").appendTo($("#main div").get(($("div").length)-2));
$("#main input.delrow:last").parents("tr").remove();
}
});
});
});
});
</script>
<script type="text/vbscript">
Dim mySrvObj
Sub cmdWorkInvoice_onclick
msgbox "in vbs"
Dim vCompany, vInvType, vDocID, vStatus, iResult
LoadSvr()
vCompany = document.getElementByID("company1").value
vInvType = document.getElementByID("invtype1").value
msgbox(document.getElementByID("invtype1").value & "|" & document.getElementByID("company1").value)
iResult = mySrvObj.WorkInvoice(vCompany, vInvType, vDocID, vStaus)
<<-- I DELETED A LOT OF VBScript CODE TO SAVE ROOM -->>
if isobject(mySrvObj) then
iResult = mySrvObj.GetVendorNameAddress(vSearchStr, vCount, vVendorNameAddr, vSatus)
//document.getElementByID("status1").value = (vStatus)
iStatus =CInt(vStatus)
//MsgBox "iStatus:" & CStr(iStatus) & "||" & "vbs vStatus-vendr info" & "|| vStatus:" & vStatus & "|| vndr Info:" & vVendorNameAddr
Select Case iStatus
Case 0 //Rem Selected Vendor
arrData = Split(vVendorNameAddr, "|")
document.getElementByID("vndrSearch").value = ""
document.getElementByID("vndrSearch").value = arrData(1)
document.getElementByID("VendorNameAddress").value = x
Case 1 //Rem Result Set > 20
Exit Sub
Case 2 //Cancel Vendor Lookup--Start over
document.getElementByID("vndrSearch").value = ""
document.getElementByID("VendorNameAddress").value = ""
Exit Sub
Case 5 //Rem DAtabase error
Exit Sub
Case Else
MsgBox "Unknown Error: VBS iStatus: " & CStr(sSatus) & "."
End Select
end if
End Sub
</script>
</head>
<?php
session_start();
?>
<frameset rows="100%,*" >
<frame name="MAIN" src="vchrAdd.php" />
<frame name="HIDDEN" src="ServerControl.html" />
</frameset>
</html>
<<-- END INTERMEDIATE PAGE -->>
WEB PAGE 2
----------
The first few lines of vchrAdd.php are:
<?php
session_start();
$id = $_POST["id"] ;
if (isset($_POST["nextVchrID"])) {
$vchrID = $_POST["$nextVchrID"];
} else {
$vchrID = "NEXT";
}
|