Advertisement
neobeethoven

Untitled

Oct 12th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'
  2. 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
  3. <html>
  4. <head>
  5. <style type='text/css'>
  6. .headline {
  7. border: none;
  8. }
  9. .ctr {
  10. border: solid 1px black;
  11. border-collapse: collapse;
  12. }
  13. th {
  14. text-align: left;
  15. font-family: Cambria,'Times New Roman',Serif;
  16. font-size: 220%;
  17. color: #62194b;
  18. }
  19. hr {
  20. width: 800px;
  21. height: 4px;
  22. color: #679146;
  23. }
  24. td {
  25. text-align: left;
  26. font-family: Calibri,Arial,sans-serif;
  27. border: none;
  28. }
  29. tr {
  30. border: none
  31. }
  32. #names {
  33. float: right;
  34. position: relative;
  35. right: 40px;
  36. }
  37. .inputbox {
  38. position: absolute;
  39. left: 275px;
  40. }
  41. p {
  42. font-family: Calibri,Arial,Sans-serif;
  43. font-size: 0.9em;
  44. }
  45. label {
  46. font-family: Calibri,Arial,Sans-serif;
  47. font-size: 0.9em;
  48. }
  49. body {
  50. margin-left: 150px;
  51. margin-right: 150px;
  52. border: solid 1px black;
  53. padding: 5px;
  54. }
  55. h2 {
  56. font-family: Calibri,Arial,Sans-serif;
  57. font-size: 1.4em;
  58. color: #62194b;
  59. }
  60. </style>
  61. <script type='text/javascript' src='jquery.js'></script>
  62. <script type='text/javascript'>
  63. $(document).ready(function() {
  64. var lastNames = new Array("Lil Harry's Closet","Lil Harry's Closet","Name","Name");
  65. var firstNames = new Array("","","Name","Name");
  66. var middleIs = new Array("","","C","C");
  67. var ssns = new Array("xxxxxxxxx","xxxxxxxxx","xxxxxxxxx","xxxxxxxxx");
  68. var streets = new Array("23123 Hazelwood Ave","P O Box 46633","City","City");
  69. var cities = new Array("Hazel Park","Mt Clemens","City","City");
  70. var states = new Array("MI","MI","MI","MI");
  71. var zipCodes = new Array("48030","48046","48030","48030");
  72. var birthDates = new Array("09/16/1989","--/--/----","--/--/----","--/--/----");
  73. var occupations = new Array("","","","");
  74. var idTypes = new Array("0","0","0","0");
  75. var issuers = new Array("","","","");
  76. var idNumbers = new Array("","","X 123 456 789 012","X 123 456 789 012");
  77. $('.conductor').click(function() {
  78. var selector = $(this).val();
  79. $('#lname').val(lastNames.splice(selector,1));
  80. $('#fname').val(firstNames.splice(selector,1));
  81. $('#mi').val(middleIs.splice(selector,1));
  82. $('#ssn').val(ssns.splice(selector,1));
  83. $('#addr').val(streets.splice(selector,1));
  84. $('#city').val(cities.splice(selector,1));
  85. $('#state').val(states.splice(selector,1));
  86. $('#zip').val(zipCodes.splice(selector,1));
  87. $('#dob').val(birthDates.splice(selector,1));
  88. $('#occu').val(occupations.splice(selector,1));
  89. if (idTypes[selector] == 2)
  90. {
  91. $('#idtype1').attr('checked','checked');
  92. }
  93. else if (idTypes[selector] == 4 || idTypes[selector] == 5 )
  94. {
  95. $('#idtype2').attr('checked','checked');
  96. }
  97. else if (idTypes[selector] == 8 )
  98. {
  99. $('#idtype3').attr('checked','checked');
  100. }
  101. $('#iss').val(issuers.splice(selector,1));
  102. $('#dlnumber').val(idNumbers.splice(selector,1));
  103. for (i=0; i<lastNames.length; i++)
  104. {
  105. var titlestring = '<h2>Other name(s) on Account</h2>';
  106. var lname = '<p>Last name: <input type=\'text\' class=\'inputbox\' value=\'' + lastNames[i] + '\' /></p>';
  107. var fname = '<p>First name: <input type=\'text\' class=\'inputbox\' value=\'' + firstNames[i] + '\' /></p>';
  108. var midi = '<p>Middle initial: <input type=\'text\' class=\'inputbox\' value=\'' + middleIs[i] + '\' /></p>';
  109. var nssn = '<p>SSN: <input type=\'text\' class=\'inputbox\' value=\'' + ssns[i] + '\' /></p>';
  110. var nstreet = '<p>Street Address: <input type=\'text\' class=\'inputbox\' value=\'' + streets[i]+ '\' /></p>';
  111. var ncity = '<p>City: <input type=\'text\' class=\'inputbox\' value=\'' + cities[i] + '\' /></p>';
  112. var nstate = '<p>State: <input type=\'text\' class=\'inputbox\' value=\'' + states[i] + '\' /></p>';
  113. var nzip = '<p>ZIP Code: <input type=\'text\' class=\'inputbox\' value=\'' + zipCodes[i] + '\' /></p>';
  114. var ndob = '<p>Date of Birth: <input type=\'text\' class=\'inputbox\' value=\'' + birthDates[i] + '\' /></p>';
  115. var noccu = '<p>Occupation: <input type=\'text\' class=\'inputbox\' value=\'' + occupations[i] + '\' /></p>';
  116. $('#chosen').after('<div class=\'others\'></div>');
  117. $('.others').append(titlestring,lname,fname,midi,nssn,nstreet,ncity,nstate,nzip,ndob,noccu);
  118. }
  119. });
  120. $('#reload').click( function() {
  121. location.reload(true);
  122. });
  123. });
  124. </script>
  125. </head>
  126. <body>
  127. <div>
  128. <h2>
  129. Business Detail
  130. </h2>
  131. <p>Entity's Name: <input type='text' class='inputbox' size='40' id='detailName' value="Lil Harry's Closet" /></p>
  132. <p>Tax ID Number: <input type='text' class='inputbox' size='40' id='detailTID' value='454688067' /></p>
  133. <p>Address: <input type='text' class='inputbox' size='40' id='detailAddr' value='23123 Hazelwood Ave' /></p>
  134. <p>City: <input type='text' class='inputbox' size='40' id='detailCity' value='Hazel Park' /></p>
  135. <p>State: <input type='text' class='inputbox' size='40' id='detailState' value='MI' /></p>
  136. <p>Zip Code: <input type='text' class='inputbox' size='40' id='detailZIP' value='48030' /></p>
  137. <p>Type of Business: <input type='text' class='inputbox' size='40' value='Screen Printing Business' /></p>
  138. </div>
  139. <div id='names'>
  140. <p>Select the name of the person conducting the transaction:</p>
  141. <label for='name1'>Lil Harry's Closet</label>
  142. <input type='radio' name='conductor' class='conductor' id='name1' value=0 />
  143. <br />
  144. <label for='name2'>Lil Harry's Closet</label>
  145. <input type='radio' name='conductor' class='conductor' id='name2' value=1 />
  146. <br />
  147. <label for='name3'>Julie C Baumer</label>
  148. <input type='radio' name='conductor' class='conductor' id='name3' value=2 />
  149. <br />
  150. <br />
  151. <p>If you chose the wrong name, <input type='button' id='reload' value='Click Here'></p>
  152. </div>
  153. <div id='chosen'>
  154. <h2>Person conducting transaction detail</h2>
  155. <p>Last name: <input type='text' class='inputbox' id='lname'></p>
  156. <p>First name: <input type='text' class='inputbox' id='fname'></p>
  157. <p>Middle Initial: <input type='text' class='inputbox' id='mi'></p>
  158. <p>SSN: <input type='text' class='inputbox' id='ssn'></p>
  159. <p>Street Address: <input type='text' class='inputbox' id='addr'></p>
  160. <p>City: <input type='text' class='inputbox' id='city'></p>
  161. <p>State: <input type='text' class='inputbox' id='state'></p>
  162. <p>ZIP Code: <input type='text' class='inputbox' id='zip'></p>
  163. <p>Date of Birth: <input type='text' class='inputbox' id='dob'></p>
  164. <p>Occupation: <input type='text' class='inputbox' id='occu'></p>
  165. <p>ID Type:</p>
  166. <label for='idtype1'>Driver's license</label>
  167. <input type='radio' name='idtype' value='license' id='idtype1' />
  168. <label for='idtype2'>Passport</label>
  169. <input type='radio' name='idtype' value='passport' id='idtype2' />
  170. <label for='idtype3'>Alien Registration</label>
  171. <input type='radio' name='idtype' value='alien_registration' id='idtype3' />
  172. <p>Issued by: <input type='text' class='inputbox' id='iss'></p>
  173. <p>Number: <input type='text' class='inputbox' id='dlnumber'></p>
  174. </div>
  175. </body>
  176. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement