PageRenderTime 24ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/application/config/includes/form_validation/primary.php

https://gitlab.com/sylver.gocloud/demo-sw-k12-enrollment
PHP | 465 lines | 448 code | 1 blank | 16 comment | 0 complexity | 4ccf68341260801d46cc937a199e1235 MD5 | raw file
  1. <?php
  2. $primary = [
  3. array(
  4. 'field' => 'child_fname',
  5. 'label' => 'Child First name',
  6. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  7. ),
  8. array(
  9. 'field' => 'child_lname',
  10. 'label' => 'Child Last Name',
  11. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  12. ),
  13. array(
  14. 'field' => 'child_mname',
  15. 'label' => 'Childs Middle Name',
  16. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  17. ),
  18. array(
  19. 'field' => 'child_nickname',
  20. 'label' => 'Childs Nickname',
  21. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  22. ),
  23. array(
  24. 'field' => 'b_month',
  25. 'label' => 'Birth month',
  26. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  27. ),
  28. array(
  29. 'field' => 'b_day',
  30. 'label' => 'Day Of Birth',
  31. 'rules' => 'required|datechecker_2|trim|htmlspecialchars|strip_tags'
  32. ),
  33. array(
  34. 'field' => 'b_year',
  35. 'label' => 'Year of Birth',
  36. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  37. ),
  38. array(
  39. 'field' => 'gender',
  40. 'label' => 'Childs Gender',
  41. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  42. ),
  43. array(
  44. 'field' => 'child_placeofbirth',
  45. 'label' => 'Child\'s Place of Birth',
  46. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  47. ),
  48. array(
  49. 'field' => 'child_nationality',
  50. 'label' => 'Child\'s Nationality',
  51. 'rules' => 'text_all|required|trim|htmlspecialchars|strip_tags'
  52. ),
  53. array(
  54. 'field' => 'child_religous',
  55. 'label' => 'Religous Affilation',
  56. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  57. ),
  58. array(
  59. 'field' => 'child_city_address',
  60. 'label' => 'Childs City Address',
  61. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  62. ),
  63. array(
  64. 'field' => 'child_telno',
  65. 'label' => 'Contact Number',
  66. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  67. ),
  68. array(
  69. 'field' => 'email',
  70. 'label' => 'Email Address',
  71. 'rules' => 'required|valid_email|trim|htmlspecialchars|strip_tags'
  72. ),
  73. array(
  74. 'field' => 'child_adresshowlong',
  75. 'label' => 'How Long Has Child Been Living',
  76. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  77. ),
  78. array(
  79. 'field' => 'school_last_attended',
  80. 'label' => 'School Last Attended',
  81. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  82. ),
  83. array(
  84. 'field' => 'school_level_completed',
  85. 'label' => 'School Level Completed',
  86. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  87. ),
  88. array(
  89. 'field' => 'school_address',
  90. 'label' => 'School Address',
  91. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  92. ),
  93. array(
  94. 'field' => 'father_name',
  95. 'label' => 'Father\'s Name',
  96. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  97. ),
  98. array(
  99. 'field' => 'father_age',
  100. 'label' => 'Father\'s Age',
  101. 'rules' => 'required|numeric|trim|htmlspecialchars|strip_tags'
  102. ),
  103. array(
  104. 'field' => 'father_relaffil',
  105. 'label' => 'Father\'s Religous Affilation',
  106. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  107. ),
  108. array(
  109. 'field' => 'father_citizenship',
  110. 'label' => 'Father\'s Citizenship',
  111. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  112. ),
  113. array(
  114. 'field' => 'father_educ',
  115. 'label' => 'Father\'s Educational Attainment',
  116. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  117. ),
  118. array(
  119. 'field' => 'father_talent',
  120. 'label' => 'Father\'s Hobies and Talent',
  121. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  122. ),
  123. array(
  124. 'field' => 'father_occup',
  125. 'label' => 'Father\'s Occupation',
  126. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  127. ),
  128. array(
  129. 'field' => 'father_office_address',
  130. 'label' => 'Father\'s Office Address',
  131. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  132. ),
  133. array(
  134. 'field' => 'father_office_tel',
  135. 'label' => 'Father\'s Office Tel',
  136. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  137. ),
  138. array(
  139. 'field' => 'mother_name',
  140. 'label' => 'Mother\'s Name',
  141. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  142. ),
  143. array(
  144. 'field' => 'mother_age',
  145. 'label' => 'Mother\'s Age',
  146. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  147. ),
  148. array(
  149. 'field' => 'mother_relaffil',
  150. 'label' => 'Mother\'s Religous Affilation',
  151. 'rules' => 'text_all|required|trim|htmlspecialchars|strip_tags'
  152. ),
  153. array(
  154. 'field' => 'mother_citizenship',
  155. 'label' => 'Mother\'s Citizenship',
  156. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  157. ),
  158. array(
  159. 'field' => 'mother_educ',
  160. 'label' => 'Mother\'s Educational Attainment',
  161. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  162. ),
  163. array(
  164. 'field' => 'mother_talent',
  165. 'label' => 'Mother\'s Hobbies and Talent',
  166. 'rules' => 'trim|htmlspecialchars|strip_tags'
  167. ),
  168. array(
  169. 'field' => 'mother_occup',
  170. 'label' => 'Mother\'s Occupation',
  171. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  172. ),
  173. array(
  174. 'field' => 'mother_office_address',
  175. 'label' => 'Mother\'s Office Address',
  176. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  177. ),
  178. array(
  179. 'field' => 'mother_office_tel',
  180. 'label' => 'Mother\'s Office Tel',
  181. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  182. ),
  183. array(
  184. 'field' => 'guardian_name',
  185. 'label' => 'Guardians Name',
  186. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  187. ),
  188. array(
  189. 'field' => 'guardian_relation',
  190. 'label' => 'Guardian Relation',
  191. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  192. ),
  193. array(
  194. 'field' => 'guardian_address',
  195. 'label' => 'Guardian\'s Address',
  196. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  197. ),
  198. array(
  199. 'field' => 'guardian_contact_num',
  200. 'label' => 'Guardian\'s Contact Number',
  201. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  202. ),
  203. array(
  204. 'field' => 'guardian_reason',
  205. 'label' => 'Reason For Having Guardian',
  206. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  207. ),
  208. array(
  209. 'field' => 'parent_status',
  210. 'label' => 'Parent\'s Marriage Status',
  211. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  212. ),
  213. array(
  214. 'field' => 'status_how_long',
  215. 'label' => 'For how long',
  216. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  217. ),
  218. array(
  219. 'field' => 'right_over_child',
  220. 'label' => 'Right over Child',
  221. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  222. ),
  223. array(
  224. 'field' => 'position_of_child',
  225. 'label' => 'Child\'s Position',
  226. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  227. ),
  228. array(
  229. 'field' => 'is_child_adopted',
  230. 'label' => 'Is Child Adopted',
  231. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  232. ),
  233. array(
  234. 'field' => 'age_of_adoption',
  235. 'label' => 'Age Of Adpoption',
  236. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  237. ),
  238. array(
  239. 'field' => 'child_aware_adopted',
  240. 'label' => 'Child Aware Adopted',
  241. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  242. ),
  243. array(
  244. 'field' => 'mother_presently_pregnant',
  245. 'label' => 'Is Mother Presently Pregnant',
  246. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  247. ),
  248. array(
  249. 'field' => 'mother_pregnancy_due_date',
  250. 'label' => 'Mother\'s Pregnance Due Date',
  251. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  252. ),
  253. array(
  254. 'field' => 'family_deaths',
  255. 'label' => 'Family Deaths',
  256. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  257. ),
  258. array(
  259. 'field' => 'family_deaths_relation',
  260. 'label' => 'Relation',
  261. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  262. ),
  263. array(
  264. 'field' => 'family_accidents',
  265. 'label' => 'Family Related Accidents',
  266. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  267. ),
  268. array(
  269. 'field' => 'family_accidents_relation',
  270. 'label' => 'Relation to Family Accidents',
  271. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  272. ),
  273. array(
  274. 'field' => 'what',
  275. 'label' => 'what',
  276. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  277. ),
  278. array(
  279. 'field' => 'when',
  280. 'label' => 'when',
  281. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  282. ),
  283. array(
  284. 'field' => 'hhmembers1',
  285. 'label' => 'House Member',
  286. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  287. ),
  288. array(
  289. 'field' => 'hhmembers2',
  290. 'label' => 'House Member',
  291. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  292. ),
  293. array(
  294. 'field' => 'hhmembers3',
  295. 'label' => 'House Member',
  296. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  297. ),
  298. array(
  299. 'field' => 'hhmembers4',
  300. 'label' => 'House Member',
  301. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  302. ),
  303. array(
  304. 'field' => 'hhmembers5',
  305. 'label' => 'House Member',
  306. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  307. ),
  308. array(
  309. 'field' => 'hhmembers6',
  310. 'label' => 'House Member',
  311. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  312. ),
  313. array(
  314. 'field' => 'hhmembersage1',
  315. 'label' => 'House Members Age',
  316. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  317. ),
  318. array(
  319. 'field' => 'hhmembersage2',
  320. 'label' => 'House Members Age',
  321. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  322. ),
  323. array(
  324. 'field' => 'hhmembersage3',
  325. 'label' => 'House Members Age',
  326. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  327. ),
  328. array(
  329. 'field' => 'hhmembersage4',
  330. 'label' => 'House Members Age',
  331. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  332. ),
  333. array(
  334. 'field' => 'hhmembersage5',
  335. 'label' => 'House Members Age',
  336. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  337. ),
  338. array(
  339. 'field' => 'hhmembersage6',
  340. 'label' => 'House Members Age',
  341. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  342. ),
  343. array(
  344. 'field' => 'language_at_home',
  345. 'label' => 'Languages Spoken at Home',
  346. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  347. ),
  348. array(
  349. 'field' => 'family_activities',
  350. 'label' => 'Family Activities',
  351. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  352. ),
  353. array(
  354. 'field' => 'family_activities_frequent',
  355. 'label' => 'Family Activities',
  356. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  357. ),
  358. array(
  359. 'field' => 'tv_time',
  360. 'label' => 'TV Time Spent',
  361. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  362. ),
  363. array(
  364. 'field' => 'tv_whom',
  365. 'label' => 'TV Spen with Whom',
  366. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  367. ),
  368. array(
  369. 'field' => 'radio_time',
  370. 'label' => 'Radio Time Spent',
  371. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  372. ),
  373. array(
  374. 'field' => 'radio_whom',
  375. 'label' => 'Radio Time Spent With Whom',
  376. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  377. ),
  378. array(
  379. 'field' => 'computergames_time',
  380. 'label' => 'Computer Games Time Spent',
  381. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  382. ),
  383. array(
  384. 'field' => 'computergames_whom',
  385. 'label' => 'Computer Games Time Spent with Whom',
  386. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  387. ),
  388. array(
  389. 'field' => 'child_responsibilities',
  390. 'label' => 'Child Responsibilites',
  391. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  392. ),
  393. array(
  394. 'field' => 'child_responsibilities_what',
  395. 'label' => 'What are you\'re Child Responsibilites',
  396. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  397. ),
  398. array(
  399. 'field' => 'child_play_group',
  400. 'label' => 'Child Play Group',
  401. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  402. ),
  403. array(
  404. 'field' => 'child_play_group_frequent',
  405. 'label' => 'Child Frequent Playgroup Frequent',
  406. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  407. ),
  408. array(
  409. 'field' => 'other_interest',
  410. 'label' => 'Other Interest',
  411. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  412. ),
  413. /*
  414. array(
  415. 'field' => 'sibling[firstname][]',
  416. 'label' => 'Sibling Firstname',
  417. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  418. ),
  419. array(
  420. 'field' => 'sibling[age][]',
  421. 'label' => 'Sibling Age',
  422. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  423. ),
  424. array(
  425. 'field' => 'sibling[lastname][]',
  426. 'label' => 'Sibling Lastname',
  427. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  428. ),*/
  429. array(
  430. 'field' => 'pt_watch',
  431. 'label' => 'Past Time watching',
  432. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  433. ),
  434. array(
  435. 'field' => 'pt_boardgames',
  436. 'label' => 'Past time board games',
  437. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  438. ),
  439. array(
  440. 'field' => 'pt_comp',
  441. 'label' => 'Past Time Computer',
  442. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  443. ),
  444. array(
  445. 'field' => 'pt_reading',
  446. 'label' => 'Past Time Reading',
  447. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  448. ),
  449. array(
  450. 'field' => 'pt_sports',
  451. 'label' => 'Past Time sports',
  452. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  453. ),
  454. array(
  455. 'field' => 'pe_dmilk',
  456. 'label' => 'Drink milk from the bottle',
  457. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  458. ),
  459. array(
  460. 'field' => 'pe_study',
  461. 'label' => 'Regular study time',
  462. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  463. )
  464. ];