/*
 * Author       : edotson
 * Generated on : 22-Nov-2009 23:13:48
 * Version      : 3.0
 */
application "Distributor Business Profile Form"
{
    type = public
    date format = "dd-MMM-yyyy"
    time zone = "US/Indiana-Starke"
    section Home
    {
        form  Business_Profile_Form
        {
            displayname  =  "Indique Distributor- Business Profile Form"
            success message  =  "Your Data Added Successfully! We appreciate your filling out the form. Please allow 24 hours for an Indique Distributor Representative to contact you. If you have any questions, please call 877.556.4247 ext. 703."
            
            plain3
            (
                type  =  plaintext
                value = "<DIV id=ted>\n<DIV id=ted>\n<DIV id=ted>\n<DIV id=ted><FONT face=arial,helvetica,sans-serif><FONT size=2><STRONG>Thank you for your interest in the Indique product line.</STRONG>&nbsp; Please fill out the form below and submit.&nbsp; An Indique Distributor Representative will contact you within 24 hours upon receipt.&nbsp; <STRONG>IMPORTANT:</STRONG> <SPAN style=\"FONT-SIZE: 10pt; COLOR: #3d3d3d; LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; mso-no-proof: yes; mso-fareast-font-family: Calibri; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA\">Indique requires a minimum investment of $2,500 to become an Indique Distributor.&nbsp; Feel free to contact us at 877.556.4247 ext. 3 if you have any questions.&nbsp; Indique Distributor Representatives are available Monday through Friday, 9am to 5pm EST.<STRONG>&nbsp; We look forward to doing business with you!</STRONG></SPAN></FONT></FONT> </DIV></DIV></DIV></DIV>\n"
            )

            plain2
            (
                type  =  plaintext
                value = "<DIV id=ted>\n<P><FONT face=arial,helvetica,sans-serif><STRONG>Thank you for your interest in the Indique product line.</STRONG>&nbsp; Please fill out the form below and submit.&nbsp; An Indique Distributor Representative will contact you within 24 hours of receipt of this form.&nbsp; <STRONG>IMPORTANT:</STRONG>&nbsp; Indique requires a minimum investment of $2,500 to become an Indique Distributor.&nbsp;&nbsp;Feel free to contact us at 877.556.4247 ext. 3&nbsp;if you have any questions.&nbsp; Indique&nbsp;Distributor Representatives are available Monday through Friday, 9am to 5pm est.&nbsp; <STRONG>We look forward to doing business with you!</STRONG></FONT></P></DIV>\n"
            )

            plain
            (
                type  =  plaintext
                value = "\n\n\n\n\n\n\n\n\n\n\n\n\n\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; line-height: normal; font-family: serif;\"><span style=\"font-size: 9pt; color: rgb(214, 0, 107);\">INDIQUE HAIR\nINTERNATIONAL</span><br><span style=\"font-size: 10pt;\">708 <st1:Street w:st=\"on\"><st1:address w:st=\"on\">Third Avenue</st1:address></st1:Street>, 5<sup>th</sup>\nFl.</span><br><st1:place w:st=\"on\"><st1:City w:st=\"on\"><span style=\"font-size: 10pt;\">New York</span></st1:City><span style=\"font-size: 10pt;\">, <st1:State w:st=\"on\">NY</st1:State> <st1:PostalCode w:st=\"on\">10017</st1:PostalCode></span></st1:place><span style=\"font-size: 10pt;\"><o:p></o:p></span><span style=\"font-size: 6pt;\"><o:p></o:p></span></p><p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; line-height: normal; font-family: serif;\"><span style=\"font-size: 6pt;\"><o:p></o:p></span><b style=\"\"><span style=\"font-size: 10pt; color: rgb(38, 38, 38);\">CONTACT:</span></b><span style=\"font-size: 10pt; color: rgb(38, 38, 38);\"><span style=\"\">&nbsp; </span>Distributor Department</span><br><b style=\"\"><span style=\"font-size: 10pt; color: rgb(38, 38, 38);\">DIRECT PH:</span></b><span style=\"font-size: 10pt; color: rgb(38, 38, 38);\"> <span style=\"\">&nbsp;</span>877.556.4247 ext. 703</span><br><b style=\"\"><span style=\"font-size: 10pt; color: rgb(38, 38, 38);\">FAX:</span></b><span style=\"font-size: 10pt; color: rgb(38, 38, 38);\"> <span style=\"\">&nbsp;</span>877.556.4247<o:p></o:p></span></p>\n\n\n\n<p class=\"MsoNormal\" style=\"margin-bottom: 0.0001pt; line-height: normal;\"><b style=\"font-family: serif;\"><span style=\"font-size: 10pt; color: rgb(38, 38, 38);\">EMAIL:</span></b><span style=\"font-size: 10pt; color: rgb(38, 38, 38); font-family: serif;\"><span style=\"\">&nbsp; </span>distributor@indiquehair.com</span><br style=\"font-family: serif;\"><span style=\"font-size: 10pt;\"><a style=\"font-family: serif;\" href=\"http://www.indiquehair.com/\">www.indiquehair.com</a><o:p></o:p></span></p>\n\n"
            )

            must  have  First_Name
            (
                displayname  =  "Company Name"
                type  =  text
                tooltip  =  "Enter your company name."
            )

            must  have  Last_Name
            (
                displayname  =  "Contact Person Full Name"
                type  =  text
                tooltip  =  "Enter your full name."
            )

            must  have  Contact_Phone
            (
                displayname  =  "Contact Phone"
                type  =  number
                width  =  20
            )

            must  have  Email_Address
            (
                displayname  =  "Email Address"
                type  =  email
            )

            Business_Full_Address
            (
                displayname  =  "Full Business Address"
                type  =  textarea
            )

            Business_Website_Address_if_applicable
            (
                displayname  =  "Business Website (if applicable)"
                type  =  url
            )

            must  have  Whatis_the_nature_of_your_business
            (
                displayname  =  "What is the nature of your business?"
                type  =  radiobuttons
                values  =  {"Salon",   "Beauty Supply Store",   "Distributor of Hair Products",   "Other"}
            )

            If_you_chose_Other_as_your_nature_of_business_please_describe_business_type_below
            (
                displayname  =  "If you chose Other as your nature of business, please describe business type:"
                type  =  textarea
            )

            must  have  Date_business_was_established
            (
                displayname  =  "Date business was established:"
                type  =  date
            )

            must  have  Areany_of_your_customers_salon_owners
            (
                displayname  =  "Are any of your customers salon owners?"
                type  =  checkboxes
                values  =  {"Yes",   "No"}
            )

            If_so_what_percentage
            (
                displayname  =  "If your answer is Yes, what percentage of your customers are salon owners?"
                type  =  percentage
                width  =  20
            )

            must  have  Business_License_Number_Tax_I_D
            (
                displayname  =  "Business License Number/Tax I.D."
                type  =  text
            )

            must  have  Number_of_Employees
            (
                displayname  =  "Number of Employees"
                type  =  number
                width  =  20
            )

            Number_of_Sales_Personell
            (
                displayname  =  "Number of Sales Personnel"
                type  =  number
                width  =  20
            )

            must  have  Number_of_Retail_Locations_must_have_at_least_one
            (
                displayname  =  "Number of Retail Locations (must have at least one)"
                type  =  number
                width  =  20
            )

            must  have  Describe_your_typical_customer
            (
                displayname  =  "Describe your typical customer:"
                type  =  textarea
            )

            Gross_Sales_for_Year_2006
            (
                displayname  =  "Gross Sales for Year 2006 (digits only please, no commas)"
                type  =  USD
                width  =  20
            )

            must  have  Gross_Sales_for_Year_2007
            (
                displayname  =  "Gross Sales for Year 2007 (digits only please, no commas)"
                type  =  USD
                width  =  20
            )

            Questions_Comments
            (
                displayname  =  "Questions/Comments?"
                type  =  textarea
            )

            Important
            (
                type  =  plaintext
                value = "\n\n<p class=\"MsoNormal\" style=\"margin-bottom: 6pt; line-height: normal; font-family: tahoma,arial,helvetica,sans-serif; color: rgb(102, 102, 102);\"><font size=\"2\"><b style=\"\"><span style=\"font-size: 10pt;\"><span style=\"color: rgb(0, 0, 0);\"><span style=\"text-decoration: underline;\">IMPORTANT</span>: Indique\nrequires a minimum investment of $2,500 to become an Indique Distributor.</span><o:p></o:p></span></b></font></p>\n\n<p class=\"MsoNormal\" style=\"margin-bottom: 6pt; line-height: normal; font-family: tahoma,arial,helvetica,sans-serif; color: rgb(102, 102, 102);\"><font size=\"2\"><b style=\"\"><span style=\"font-size: 10pt;\">An Indique Distributor\nService Representative will contact you with 24 hours of receiving the above\ninformation.</span></b></font></p><p class=\"MsoNormal\" style=\"margin-bottom: 6pt; line-height: normal;\"><font style=\"color: rgb(102, 153, 204); font-weight: bold;\" size=\"2\"><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">Thank you for your interest in our product line.&nbsp; We look forward to doing business with you!</span></font><br><b style=\"\"><span style=\"font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(61, 61, 61);\"></span></b><span style=\"font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(61, 61, 61);\"> <o:p></o:p></span></p>\n\n"
            )

            plain1
            (
                type  =  plaintext
                value = "<DIV id=ted>\n<DIV id=ted>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 6pt; LINE-HEIGHT: normal\"><SPAN style=\"FONT-SIZE: 10pt; COLOR: #3d3d3d; FONT-FAMILY: 'Arial','sans-serif'; mso-no-proof: yes\"><FONT face=tahoma,arial,helvetica,sans-serif><STRONG>IMPORTANT:</STRONG> Indique requires a minimum investment of $2,500 to become an Indique Distributor<?xml:namespace prefix = o ns = \"urn:schemas-microsoft-com:office:office\" /><o:p></o:p></FONT></SPAN></P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 6pt; LINE-HEIGHT: normal\"><SPAN><FONT face=tahoma,arial,helvetica,sans-serif><FONT size=2>An Indique Distributor Service Representative will contact you with 24 hours of receiving the above information</FONT>. </FONT></SPAN></P>\n<P class=MsoNormal style=\"MARGIN: 0in 0in 6pt; LINE-HEIGHT: normal\"><SPAN><FONT face=tahoma,arial,helvetica,sans-serif size=2>Thank you for filling out the Distributor Profile Form. We look forward to doing business with you!</FONT></SPAN></P></DIV></DIV>\n"
            )

            actions
            {
                on add
                {
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                        on success
                        {
                            sendmail
                            (
                                To       :  "edotson@indiquehair.com; kjhalani@ihi.co.in" 
                                From     :  zoho.adminuserid 
                                Subject  :  "NEW Applicant- Indique Distributor" 
                                Message  :  input.Last_Name + " with " + input.First_Name + " just submitted a Distributor Business Profile Form.&nbsp; You can reach this applicant via phone at " + input.Contact_Phone + " or email: " + input.Email_Address + " if you have any questions." + input.formdata 
                            )
                        }
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

        grid  Business_Profile_Form_View
        {
            displayname = "Business Profile Form View"
            show  all  rows  from  Business_Profile_Form 
            (
                First_Name as "First Name"
                Last_Name as "Last Name"
                Contact_Phone as "Contact Phone"
                Email_Address as "Email Address"
                Business_Website_Address_if_applicable as "Business Website Address (if applicable)"
                If_you_chose_Other_as_your_nature_of_business_please_describe_business_type_below as "If you chose Other as your nature of business, please describe business type below."
                Date_business_was_established as "Date business was established:"
                Business_License_Number_Tax_I_D as "Business License Number/Tax I.D."
                Number_of_Employees as "Number of Employees"
                Number_of_Sales_Personell as "Number of Sales Personell"
                Number_of_Retail_Locations_must_have_at_least_one as "Number of Retail Locations (must have at least one)"
                Describe_your_typical_customer as "Describe your typical customer:"
                Areany_of_your_customers_salon_owners as "Areany of your customers salon owners?"
                Whatis_the_nature_of_your_business as "Whatis the nature of your business?"
                Gross_Sales_for_Year_2006 as "Gross Sales for Year 2006"
                Gross_Sales_for_Year_2007 as "Gross Sales for Year 2007"
                If_so_what_percentage as "If so, what percentage?"
                Questions_Comments as "Questions/Comments?"
                Business_Full_Address as "Business Full Address"
            )
            filters 
            (
                Whatis_the_nature_of_your_business
            )
            options
            (
                display rows = 100
            )
        }

    }

}
