cooper549

default.asp

Mar 21st, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 16.63 KB | None | 0 0
  1. <%@LANGUAGE="VBSCRIPT"%>
  2. <!--#include file="form-functions.asp" -->
  3. <%
  4. ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  5.  
  6.     FormAction = "step-2.asp"
  7.  
  8.     FormButton1 = ""
  9.     FormButton2 = "Next"
  10.  
  11.     StepNum = "1"  
  12.  
  13. ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  14.  
  15.     SQL = "SELECT * FROM teachapp WHERE UsersRef = '" & UsersRef & "'"
  16.     Set RS = Conn.execute(SQL)
  17.    
  18.     if RS.EOF then
  19.    
  20.         ShowLogin = True
  21.  
  22.     else
  23.  
  24.         postof              = RS("sONEpostof")
  25.         title               = RS("sONEtitle")
  26.         forename            = RS("sONEforename")
  27.         surname             = RS("sONEsurname")
  28.         previousname        = RS("sONEpreviousname")
  29.         address             = RS("sONEaddress")
  30.         town                = RS("sONEtown")
  31.         county              = RS("sONEcounty")
  32.         postcode            = RS("sONEpostcode")
  33.         home                = RS("sONEhome")
  34.         mobile              = RS("sONEmobile")
  35.         work                = RS("sONEwork")
  36.         telpreferred        = RS("sONEtelpreferred")
  37.         workcontact         = RS("sONEworkcontact")
  38.         email               = RS("sONEemail")
  39.         password            = RS("sONEpassword")
  40.         natno               = RS("sONEnatno")
  41.  
  42.         qts                 = RS("sONEqts")
  43.         qtsaward            = RS("sONEqtsaward")
  44.         qtsno               = RS("sONEqtsno")
  45.         dfecomplete         = RS("sONEdfecomplete")
  46.         dfedate             = RS("sONEdfedate")
  47.         gtcref              = RS("sONEgtcref")
  48.         gtcreg              = RS("sONEgtcreg")
  49.         gtccondition        = RS("sONEgtccondition")
  50.        
  51.         presentpost         = RS("sONEpresentpost")
  52.         appointed           = RS("sONEappointed")
  53.         schoolname          = RS("sONEschoolname")
  54.         schooltype          = RS("sONEschooltype")
  55.         schooladdress       = RS("sONEschooladdress")
  56.         schooltown          = RS("sONEschooltown")
  57.         schoolcounty        = RS("sONEschoolcounty")
  58.         schoolpostcode      = RS("sONEschoolpostcode")
  59.         schoolgender        = RS("sONEschoolgender")
  60.         schoolroll          = RS("sONEschoolroll")
  61.         schoolage           = RS("sONEschoolage")
  62.  
  63.         points              = RS("sONEpoints")
  64.         salarybasic         = RS("sONEsalarybasic")
  65.         salaryplus          = RS("sONEsalaryplus")
  66.         csaemploy           = RS("sONEcsaemploy")
  67.         otheraddress        = RS("sONEotheraddress")
  68.         othertown           = RS("sONEothertown")
  69.         othercounty         = RS("sONEothercounty")
  70.         otherpostcode       = RS("sONEotherpostcode")
  71.         othertel            = RS("sONEothertel")
  72.  
  73.     end if 
  74.    
  75.  
  76. ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  77. %>
  78.  
  79. <script language="JavaScript" type="text/JavaScript">
  80. <!--
  81.     function CheckForm() {
  82.  
  83.         emailCheck = document.application.email.value.indexOf("@", 1)
  84.         stopCheck = document.application.email.value.indexOf(".", 1)
  85.  
  86.         if ((document.application.title.value.length == 0) || (document.application.title.value == "Mr, Mrs, Miss, Ms, Other")) {
  87.             window.alert('Please enter a title');
  88.             document.application.title.focus(); return false
  89.         }
  90.         if (document.application.surname.value.length == 0) {
  91.             window.alert('Please enter your surname');
  92.             document.application.surname.focus(); return false
  93.         }
  94.         if (document.application.forename.value.length == 0) {
  95.             window.alert('Please enter your first name.');
  96.             document.application.forename.focus(); return false
  97.         }
  98.         if (document.application.address.value.length == 0) {
  99.             window.alert('Please enter your address.');
  100.             document.application.address.focus(); return false
  101.         }
  102.         if (document.application.town.value.length == 0) {
  103.             window.alert('Please enter your town.');
  104.             document.application.town.focus(); return false
  105.         }
  106.         if (document.application.county.value.length == 0) {
  107.             window.alert('Please enter your county.');
  108.             document.application.county.focus(); return false
  109.         }
  110.         if (document.application.postcode.value.length == 0) {
  111.             window.alert('Please enter your postcode.');
  112.             document.application.postcode.focus(); return false
  113.         }
  114.         if (document.application.home.value.length == 0) {
  115.             window.alert('Please enter a home phone number.');
  116.             document.application.home.focus(); return false
  117.         }
  118.         if (document.application.mobile.value.length == 0) {
  119.             window.alert('Please enter a mobile phone number.');
  120.             document.application.mobile.focus(); return false
  121.         }
  122.         if ((document.application.email.value.length <= 5) || (emailCheck == -1) || (stopCheck == -1)) {
  123.             window.alert('Please enter your email address.');
  124.             document.application.email.focus(); return false
  125.         }
  126.         if (document.application.password.value.length == 0) {
  127.             window.alert('Please enter a password to save your application.');
  128.             document.application.password.focus(); return false
  129.         }
  130.         if (document.application.natno.value.length == 0) {
  131.             window.alert('Please enter your Nastional Insurance Number.');
  132.             document.application.natno.focus(); return false
  133.         }
  134.  
  135.         else {
  136.             return true
  137.         }
  138.     }
  139. //-->
  140. </script>
  141.  
  142. <!--#include file="form-header.asp" -->
  143.  
  144. <p class="BodyText"><strong>Application for the post of:</strong><input name="postof" type="text" class="Fieldsign" id="postof" value="<%=postof%>"/></p>
  145.  
  146. <div class="ClearBoth"></div>
  147.  
  148. <div class="FormHeader"><strong>PERSONAL DETAILS</strong></div>
  149.  
  150. <div class="FormLeft">
  151.     <div class="FieldRow">
  152.         <div class="FieldName">Title:</div>
  153.         <div class="FieldText"><input name="title" type="text" class="FieldMedium" id="title" value="<%=title%>" onFocus="javascript: if (this.value=='Mr, Mrs, Miss, Ms, Other') { this.value='';}"/></div>
  154.     </div>
  155.     <div class="FieldRow">
  156.         <div class="FieldName">Surname:</div>
  157.         <div class="FieldText"><input name="surname" type="text" class="FieldMedium" id="surname" value="<%=surname%>"/></div>
  158.     </div>
  159.     <div class="FieldRow">
  160.         <div class="FieldName">Forename(s):</div>
  161.         <div class="FieldText"><input name="forename" type="text" class="FieldMedium" id="forename" value="<%=forename%>"/></div>
  162.     </div>
  163.     <div class="FieldRow" style="height: 50px;">
  164.         <div class="FieldName">Previous Name(s)(including Maiden name if applicable):</div>
  165.         <div class="FieldText"><input name="previousname" type="text" class="FieldMedium" id="previousname" value="<%=previousname%>"/></div>
  166.     </div>
  167.     <div class="FieldRow">
  168.         <div class="FieldName">Home Address:</div>
  169.         <div class="FieldText"><input name="address" type="text" class="FieldLong" id="address" value="<%=address%>"/></div>
  170.     </div>
  171.     <div class="FieldRow">
  172.         <div class="FieldName">Town:</div>
  173.         <div class="FieldText"><input name="town" type="text" class="FieldMedium" id="town" value="<%=town%>"/></div>
  174.     </div>
  175.     <div class="FieldRow">
  176.         <div class="FieldName">County:</div>
  177.         <div class="FieldText"><input name="county" type="text" class="FieldMedium" id="county" value="<%=county%>"/></div>
  178.     </div>
  179.     <div class="FieldRow">
  180.         <div class="FieldName">Postcode:</div>
  181.         <div class="FieldText"><input name="postcode" type="text" class="FieldMedium" id="postcode" value="<%=postcode%>"/></div>
  182.     </div>
  183.     <div class="FieldRow" style="height: 40px;">
  184.         <div class="FieldName">Home Tel No:</div>
  185.         <div class="FieldText"><input name="home" type="text" class="FieldMedium" id="home" value="<%=home%>"/><br /><label><input name="telpreferred" type="radio" value="Home" <%=CHECKED(telpreferred,"Home")%> />Preferred</label></div>
  186.     </div>
  187.     <div class="FieldRow" style="height: 40px;">
  188.         <div class="FieldName">Mobile No:</div>
  189.         <div class="FieldText"><input name="mobile" type="text" class="FieldMedium" id="mobile" value="<%=mobile%>"/><br /><label><input name="telpreferred" type="radio" value="Mobile" <%=CHECKED(telpreferred,"Mobile")%> />Preferred</label></div>
  190.     </div>
  191.     <div class="FieldRow" style="height: 40px;">
  192.         <div class="FieldName">Work No:</div>
  193.         <div class="FieldText"><input name="work" type="text" class="FieldMedium" id="work" value="<%=work%>"/><br /><label><input name="telpreferred" type="radio" value="Work" <%=CHECKED(telpreferred,"Work")%> />Preferred</label></div>
  194.     </div>
  195.     <div class="FieldRow" >
  196.         <div class="FieldName">May we contact you at work</div>
  197.         <div class="FieldText"><label><input type="radio" name="workcontact" value="Yes" <%=CHECKED(workcontact,"Yes")%>/>Yes</label><label><input name="workcontact" type="radio" value="No" <%=CHECKED(workcontact,"No")%> />No</label></div>
  198.     </div>
  199.     <div class="FieldRow">
  200.         <div class="FieldName">Email:</div>
  201.         <div class="FieldText"><input name="email" type="text" class="FieldLong" id="email" value="<%=email%>"/></div>
  202.     </div>
  203.     <div class="FieldRow">
  204.         <div class="FieldName">Password (For saving):</div>
  205.         <div class="FieldText"><input name="password" type="password" class="FieldLong" id="password" value="<%=password%>" /></div>
  206.     </div>
  207.         <div class="FieldRow">
  208.         <div class="FieldName">National Insurance Number:</div>
  209.         <div class="FieldText"><input name="natno" type="text" class="FieldLong" id="natno" value="<%=natno%>"/></div>
  210.     </div>
  211.  
  212. </div>
  213.  
  214. <div class="FormRight">
  215.     <div class="FieldRow" style="height: 50px;">
  216.         <div class="FieldName">Do you hold qualified teacher status?</div>
  217.         <div class="FieldText"><label><input type="radio" name="qts" value="Yes" <%=CHECKED(qts,"Yes")%>/>Yes</label><label><input name="qts" type="radio" value="No" <%=CHECKED(qts,"No")%> />No</label></div>
  218.     </div>
  219.     <div class="FieldRow" >
  220.         <div class="FieldName">if yes,please give date of award:</div>
  221.         <div class="FieldText"><input name="qtsaward" type="text" class="FieldLong" id="qtsaward" value="<%=qtsaward%>"/></div>
  222.     </div>
  223.     <div class="FieldRow" style="height: 50px;">
  224.         <div class="FieldName">QTS Certificate Number (If available):</div>
  225.         <div class="FieldText"><input name="qtsno" type="text" class="FieldLong" id="qtsno" value="<%=qtsno%>"/></div>
  226.     </div>
  227.     <div class="FieldRow" style="height: 90px;">
  228.         <div class="FieldName">Have you successfully completed a period of induction as a qualified teacher in this country where the DfE requires this?</div>
  229.         <div class="FieldText"><label><input type="radio" name="dfecomplete" value="Yes" <%=CHECKED(dfecomplete,"Yes")%> />Yes</label><label><input name="dfecomplete" type="radio" value="No" <%=CHECKED(dfecomplete,"No")%> />No</label></div>
  230.     </div>
  231.     <div class="FieldRow" style="height: 50px;">
  232.         <div class="FieldName">If yes, please give date of completion:</div>
  233.         <div class="FieldText"><input name="dfedate" type="text" class="FieldLong" id="dfedate" value="<%=dfedate%>"/></div>
  234.     </div>
  235.     <div class="FieldRow" style="height: 50px;">
  236.         <div class="FieldName">GTC Teacher Reference Number (DfE number)(eg 12/34567):</div>
  237.         <div class="FieldText"><input name="gtcref" type="text" class="FieldLong" id="gtcref" value="<%=gtcref%>"/></div>
  238.     </div>
  239.     <div class="FieldRow" style="height: 50px;">
  240.         <div class="FieldName">Are you registered with the GTC?</div>
  241.         <div class="FieldText"><label><input type="radio" name="gtcreg" value="Yes" <%=CHECKED(gtcreg,"Yes")%>/>Yes</label><label><input name="gtcreg" type="radio" value="No" <%=CHECKED(gtcreg,"No")%>/>No</label></div>
  242.     </div>
  243.     <div class="FieldRow" style="height: 90px;">
  244.         <div class="FieldName">Are you subject to any conditions of prohibitions placed on you by the GTC (or another GTC in the UK?)</div>
  245.         <div class="FieldText"><label><input type="radio" name="gtccontick" value="Yes" <%=CHECKED(gtccontick,"Yes")%>/>Yes</label><label><input name="gtccontick" type="radio" value="No" <%=CHECKED(gtccontick,"No")%>/>No</label></div>
  246.     </div>
  247.     <div class="FieldRow">
  248.         <div class="FieldName">if yes please give full details:</div>
  249.         <div class="FieldText"><input name="gtccondition" type="text" class="FieldLong" id="gtccondition" value="<%=gtccondition%>"/></div>
  250.     </div>
  251. </div>
  252.  
  253. <div class="ClearBoth"></div>
  254.  
  255. <div class="FormHeader"><strong>PRESENT POSITION</strong></div>
  256.  
  257. <div class="FormLeft">
  258.  
  259.     <div class="FieldRow">
  260.         <div class="FieldName">Present post:</div>
  261.         <div class="FieldText"><input name="presentpost" type="text" class="FieldMedium" id="presentpost" value="<%=presentpost%>"/></div>
  262.     </div>
  263.     <div class="FieldRow">
  264.         <div class="FieldName">Date Appointed (DD-MM-YYYY):</div>
  265.         <div class="FieldText"><input name="appointed" type="text" class="FieldLong" id="appointed" value="<%=appointed%>"/></div>
  266.     </div>
  267.     <div class="FieldRow">
  268.         <div class="FieldName">School/Establishment Name:</div>
  269.         <div class="FieldText"><input name="schoolname" type="text" class="FieldMedium" id="schoolname" value="<%=schoolname%>"/></div>
  270.     </div>
  271.     <div class="FieldRow">
  272.         <div class="FieldName">School Type:</div>
  273.         <div class="FieldText"><input name="schooltype" type="text" class="FieldMedium" id="schooltype" value="<%=schooltype%>"/></div>
  274.     </div>
  275.     <div class="FieldRow">
  276.         <div class="FieldName">Address:</div>
  277.         <div class="FieldText"><input name="schooladdress" type="text" class="FieldLong" id="schooladdress" value="<%=schooladdress%>"/></div>
  278.     </div>
  279.     <div class="FieldRow">
  280.         <div class="FieldName">Town:</div>
  281.         <div class="FieldText"><input name="schooltown" type="text" class="FieldMedium" id="schooltown" value="<%=schooltown%>"/></div>
  282.     </div>
  283.     <div class="FieldRow">
  284.         <div class="FieldName">County:</div>
  285.         <div class="FieldText"><input name="schoolcounty" type="text" class="FieldMedium" id="schoolcounty" value="<%=schoolcounty%>"/></div>
  286.     </div>
  287.     <div class="FieldRow">
  288.         <div class="FieldName">Postcode:</div>
  289.         <div class="FieldText"><input name="schoolpostcode" type="text" class="FieldMedium" id="schoolpostcode" value="<%=schoolpostcode%>"/></div>
  290.     </div>
  291.     <div class="FieldRow">
  292.         <div class="FieldName">Single sex or mixed:</div>
  293.         <div class="FieldText"><label><input type="radio" name="schoolgender" value="Single" <%=CHECKED(schoolgender,"Single")%>/>Single</label><label><input name="schoolgender" type="radio" value="" <%=CHECKED(schoolgender,"Mixed")%> />Mixed</label></div>
  294.     </div>
  295.         <div class="FieldRow">
  296.         <div class="FieldName">Number on roll (Total):</div>
  297.         <div class="FieldText"><input name="schoolroll" type="text" class="FieldLong" id="schoolroll" value="<%=schoolroll%>"/></div>
  298.     </div>
  299.     <div class="FieldRow">
  300.         <div class="FieldName">Age Range</div>
  301.         <div class="FieldText"><input name="schoolage" type="text" class="FieldLong" id="schoolage" value="<%=schoolage%>"/></div>
  302.     </div>
  303.  
  304. </div>
  305.  
  306. <div class="FormRight">
  307.     <div class="FieldRow">
  308.         <div class="FieldName">Spinal Column Point/Group:</div>
  309.         <div class="FieldText"><input name="points" type="text" class="FieldLong" id="points" value="<%=points%>"/></div>
  310.     </div>
  311.     <div class="FieldRow">
  312.         <div class="FieldName">Salary: Basic £</div>
  313.         <div class="FieldText"><input name="salarybasic" type="text" class="FieldLong" id="salarybasic" value="<%=salarybasic%>"/></div>
  314.     </div>
  315.     <div class="FieldRow">
  316.         <div class="FieldName">Salary: +£ (if applicable)</div>
  317.         <div class="FieldText"><input name="salaryplus" type="text" class="FieldLong" id="salaryplus" value="<%=salaryplus%>"/></div>
  318.     </div>
  319.     <div class="FieldRow">
  320.         <div class="FieldName">CSA or other Employer:</div>
  321.         <div class="FieldText"><input name="csaemploy" type="text" class="FieldLong" id="csaemploy" value="<%=csaemploy%>"/></div>
  322.     </div>
  323.     <div class="FieldRow">
  324.         <div class="FieldName">Address:</div>
  325.         <div class="FieldText"><input name="otheraddress" type="text" class="FieldLong" id="otheraddress" value="<%=otheraddress%>"/></div>
  326.     </div>
  327.     <div class="FieldRow">
  328.         <div class="FieldName">Town:</div>
  329.         <div class="FieldText"><input name="othertown" type="text" class="FieldMedium" id="othertown" value="<%=othertown%>"/></div>
  330.     </div>
  331.     <div class="FieldRow">
  332.         <div class="FieldName">County:</div>
  333.         <div class="FieldText"><input name="othercounty" type="text" class="FieldMedium" id="othercounty" value="<%=othercounty%>"/></div>
  334.     </div>
  335.     <div class="FieldRow">
  336.         <div class="FieldName">Postcode:</div>
  337.         <div class="FieldText"><input name="otherpostcode" type="text" class="FieldMedium" id="otherpostcode" value="<%=otherpostcode%>"/></div>
  338.     </div>
  339.     <div class="FieldRow">
  340.         <div class="FieldName">Tel No:</div>
  341.         <div class="FieldText"><input name="othertel" type="text" class="FieldMedium" id="othertel" value="<%=othertel%>"/></div>
  342.     </div>
  343. </div>
  344.  
  345. <div class="ClearBoth"></div>
  346.  
  347. <!--#include file="form-footer.asp" -->
Advertisement
Add Comment
Please, Sign In to add comment