|
<% if (withError) { %>
Log-in Name: <%= strUserLogName %>
Company: <%= strCompanyName %>
<% if (strFirstTimer.equals("true")) { %>
For other appropriate information of your company, please fill up the form below.
<% } else { %>
INVALID ENTRY/ENTRIES were found in your registration form.
<% if (invalidDialUpChar) { %>
You had entered a non-numeric character on your PHONE/FAX/ZIPCODE number.
<% } %>
<% if (incFax) { %>
FAX should at least have an AREA CODE and it's NUMBER to be valid.
<% } %>
<% if (invalidEMailAdd) { %>
You had entered an invalid or INCOMPLETE e-mail address entry. ( Valid samples of e-mail address: juan@skyinet.net and john_smith@hotmail.com )
<% } %>
<% if (invalidWebsite) { %>
Your website entry is not a valid site address. ( Samples of valid website: www.productguide.com and http://www.website.net.ph )
<% } %>
<% if (areaCodeOK==false) { %>
An area code entry (or entries) is not a valid Philippine telephone area code.
<% } %>
<% if (noContactPerson) { %>
You have not indicated a contact person.
<% } %>
<% if (cp1Inc) { %>
Your entries on Contact Person 1 is incomplete. ( You have left a field/fields with an asterisk (*) in Contact Person 1 empty )
<% } %>
<% if (cp2Inc) { %>
Your entries on Contact Person 2 is incomplete. ( You have left a field/fields with an asterisk (*) in Contact Person 2 empty )
<% } %>
<% if (cp3Inc) { %>
Your entries on Contact Person 3 is incomplete. ( You have left a field/fields with an asterisk (*) in Contact Person 3 empty )
<% } %>
<% if (noProvSelected) { %>
You have not SELECTED a province.
<% } %>
Also, please check if you left a mandatory field/fields (with ** on the label) BLANK or EMPTY.
<% } %>
<% } else { %>
<%
byte cpctr = 0;
if (bytButtonID == 1) {
bytButtonID = 10;
}
users.connect(strTempDB);
if (cp1NotEmpty) {
cpctr++;
SQLstmt = "INSERT INTO tblContactPersons VALUES (" + intCompanyID + ", " + bytButtonID + ", '" + strCP1FName + "', '" + strCP1LName + "', '" + strCP1Position + "', '" + strCP1TelArea + "', '" + strCP1TelNum + "', '" + strCP1TelLocal + "', '" + strCP1EMail + "', " + cpctr + ");";
users.updateData(SQLstmt);
}
if (cp2NotEmpty) {
cpctr++;
SQLstmt = "INSERT INTO tblContactPersons VALUES (" + intCompanyID + ", " + bytButtonID + ", '" + strCP2FName + "', '" + strCP2LName + "', '" + strCP2Position + "', '" + strCP2TelArea + "', '" + strCP2TelNum + "', '" + strCP2TelLocal + "', '" + strCP2EMail + "', " + cpctr + ");";
users.updateData(SQLstmt);
}
if (cp3NotEmpty) {
cpctr++;
SQLstmt = "INSERT INTO tblContactPersons VALUES (" + intCompanyID + ", " + bytButtonID + ", '" + strCP3FName + "', '" + strCP3LName + "', '" + strCP3Position + "', '" + strCP3TelArea + "', '" + strCP3TelNum + "', '" + strCP3TelLocal + "', '" + strCP3EMail + "', " + cpctr + ");";
users.updateData(SQLstmt);
}
byte cpuser = 0;
if (strCheckBox.equals("checked")) {
cpuser = 1;
}
SQLstmt = "INSERT INTO tblCPIndicator VALUES (" + intCompanyID + ", " + bytButtonID + ", " + cpuser + ", " + cpctr + ");";
users.updateData(SQLstmt);
SQLstmt = "UPDATE tblCoInfoIndicator SET " + strFieldName + " = 1 WHERE Co_ID = " + intCompanyID + ";";
users.updateData(SQLstmt);
byte bytStatus = 1;
users.addCoEtcInfo(strTblName, intCompanyID, strOfcStreetAdd, strOfcBrgyAdd, strOfcCityAdd, strProvAdd, strOfcZipCode, strOfcTelArea, strOfcTelNum, strOfcTelLocal, strOfcFaxArea, strOfcFaxNum, strOfcFaxLocal, strOfcEmail ,strOfcWebsite, bytStatus);
users.disconnect();
%>
<% } %>
|