/application/config/form_validation.php

https://gitlab.com/sylver.gocloud/demo-sw-k12-enrollment · PHP · 1795 lines · 1776 code · 7 blank · 12 comment · 0 complexity · 7cb540fecf5c82ba63ad0403fcaa45ce MD5 · raw file

  1. <?php
  2. $config = array(
  3. 'enrollment_profile_preschool' => array(
  4. array(
  5. 'field' => 'child_fname',
  6. 'label' => 'Child First name',
  7. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  8. ),
  9. array(
  10. 'field' => 'child_lname',
  11. 'label' => 'Child Last Name',
  12. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  13. ),
  14. array(
  15. 'field' => 'child_mname',
  16. 'label' => 'Childs Middle Name',
  17. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  18. ),
  19. array(
  20. 'field' => 'child_nickname',
  21. 'label' => 'Childs Nickname',
  22. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  23. ),
  24. array(
  25. 'field' => 'b_month',
  26. 'label' => 'Birth month',
  27. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  28. ),
  29. array(
  30. 'field' => 'b_day',
  31. 'label' => 'Day Of Birth',
  32. 'rules' => 'required|datechecker_2|trim|htmlspecialchars|strip_tags'
  33. ),
  34. array(
  35. 'field' => 'b_year',
  36. 'label' => 'Year of Birth',
  37. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  38. ),
  39. array(
  40. 'field' => 'gender',
  41. 'label' => 'Childs Gender',
  42. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  43. ),
  44. array(
  45. 'field' => 'child_placeofbirth',
  46. 'label' => 'Child\'s Place of Birth',
  47. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  48. ),
  49. array(
  50. 'field' => 'child_nationality',
  51. 'label' => 'Child\'s Nationality',
  52. 'rules' => 'text_all|required|trim|htmlspecialchars|strip_tags'
  53. ),
  54. array(
  55. 'field' => 'child_religous',
  56. 'label' => 'Religous Affilation',
  57. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  58. ),
  59. array(
  60. 'field' => 'child_city_address',
  61. 'label' => 'Childs City Address',
  62. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  63. ),
  64. array(
  65. 'field' => 'child_telno',
  66. 'label' => 'Contact Number',
  67. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  68. ),
  69. array(
  70. 'field' => 'email',
  71. 'label' => 'Email Address',
  72. 'rules' => 'required|valid_email|trim|htmlspecialchars|strip_tags'
  73. ),
  74. array(
  75. 'field' => 'child_adresshowlong',
  76. 'label' => 'How Long Has Child Been Living',
  77. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  78. ),
  79. array(
  80. 'field' => 'school_last_attended',
  81. 'label' => 'School Last Attended',
  82. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  83. ),
  84. array(
  85. 'field' => 'school_level_completed',
  86. 'label' => 'School Level Completed',
  87. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  88. ),
  89. array(
  90. 'field' => 'school_address',
  91. 'label' => 'School Address',
  92. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  93. ),
  94. array(
  95. 'field' => 'father_name',
  96. 'label' => 'Father\'s Name',
  97. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  98. ),
  99. array(
  100. 'field' => 'father_age',
  101. 'label' => 'Father\'s Age',
  102. 'rules' => 'required|numeric|trim|htmlspecialchars|strip_tags'
  103. ),
  104. array(
  105. 'field' => 'father_relaffil',
  106. 'label' => 'Father\'s Religous Affilation',
  107. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  108. ),
  109. array(
  110. 'field' => 'father_citizenship',
  111. 'label' => 'Father\'s Citizenship',
  112. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  113. ),
  114. array(
  115. 'field' => 'father_educ',
  116. 'label' => 'Father\'s Educational Attainment',
  117. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  118. ),
  119. array(
  120. 'field' => 'father_talent',
  121. 'label' => 'Father\'s Hobies and Talent',
  122. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  123. ),
  124. array(
  125. 'field' => 'father_occup',
  126. 'label' => 'Father\'s Occupation',
  127. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  128. ),
  129. array(
  130. 'field' => 'father_office_address',
  131. 'label' => 'Father\'s Office Address',
  132. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  133. ),
  134. array(
  135. 'field' => 'father_office_tel',
  136. 'label' => 'Father\'s Office Tel',
  137. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  138. ),
  139. array(
  140. 'field' => 'mother_name',
  141. 'label' => 'Mother\'s Name',
  142. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  143. ),
  144. array(
  145. 'field' => 'mother_age',
  146. 'label' => 'Mother\'s Age',
  147. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  148. ),
  149. array(
  150. 'field' => 'mother_relaffil',
  151. 'label' => 'Mother\'s Religous Affilation',
  152. 'rules' => 'text_all|required|trim|htmlspecialchars|strip_tags'
  153. ),
  154. array(
  155. 'field' => 'mother_citizenship',
  156. 'label' => 'Mother\'s Citizenship',
  157. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  158. ),
  159. array(
  160. 'field' => 'mother_educ',
  161. 'label' => 'Mother\'s Educational Attainment',
  162. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  163. ),
  164. array(
  165. 'field' => 'mother_talent',
  166. 'label' => 'Mother\'s Hobbies and Talent',
  167. 'rules' => 'trim|htmlspecialchars|strip_tags'
  168. ),
  169. array(
  170. 'field' => 'mother_occup',
  171. 'label' => 'Mother\'s Occupation',
  172. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  173. ),
  174. array(
  175. 'field' => 'mother_office_address',
  176. 'label' => 'Mother\'s Office Address',
  177. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  178. ),
  179. array(
  180. 'field' => 'mother_office_tel',
  181. 'label' => 'Mother\'s Office Tel',
  182. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  183. ),
  184. array(
  185. 'field' => 'guardian_name',
  186. 'label' => 'Guardians Name',
  187. 'rules' => 'required|required|text_all|trim|htmlspecialchars|strip_tags'
  188. ),
  189. array(
  190. 'field' => 'guardian_relation',
  191. 'label' => 'Guardian Relation',
  192. 'rules' => 'required|required|text_all|trim|htmlspecialchars|strip_tags'
  193. ),
  194. array(
  195. 'field' => 'guardian_address',
  196. 'label' => 'Guardian\'s Address',
  197. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  198. ),
  199. array(
  200. 'field' => 'guardian_contact_num',
  201. 'label' => 'Guardian\'s Contact Number',
  202. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  203. ),
  204. array(
  205. 'field' => 'guardian_reason',
  206. 'label' => 'Reason For Having Guardian',
  207. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  208. ),
  209. array(
  210. 'field' => 'parent_status',
  211. 'label' => 'Parent\'s Marriage Status',
  212. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  213. ),
  214. array(
  215. 'field' => 'status_how_long',
  216. 'label' => 'For how long',
  217. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  218. ),
  219. array(
  220. 'field' => 'right_over_child',
  221. 'label' => 'Right over Child',
  222. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  223. ),
  224. array(
  225. 'field' => 'position_of_child',
  226. 'label' => 'Child\'s Position',
  227. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  228. ),
  229. array(
  230. 'field' => 'is_child_adopted',
  231. 'label' => 'Is Child Adopted',
  232. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  233. ),
  234. array(
  235. 'field' => 'age_of_adoption',
  236. 'label' => 'Age Of Adpoption',
  237. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  238. ),
  239. array(
  240. 'field' => 'child_aware_adopted',
  241. 'label' => 'Child Aware Adopted',
  242. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  243. ),
  244. array(
  245. 'field' => 'mother_presently_pregnant',
  246. 'label' => 'Is Mother Presently Pregnant',
  247. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  248. ),
  249. array(
  250. 'field' => 'mother_pregnancy_due_date',
  251. 'label' => 'Mother\'s Pregnance Due Date',
  252. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  253. ),
  254. array(
  255. 'field' => 'family_deaths',
  256. 'label' => 'Family Deaths',
  257. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  258. ),
  259. array(
  260. 'field' => 'family_deaths_relation',
  261. 'label' => 'Relation',
  262. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  263. ),
  264. array(
  265. 'field' => 'family_accidents',
  266. 'label' => 'Family Related Accidents',
  267. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  268. ),
  269. array(
  270. 'field' => 'family_accidents_relation',
  271. 'label' => 'Relation to Family Accidents',
  272. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  273. ),
  274. array(
  275. 'field' => 'what',
  276. 'label' => 'what',
  277. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  278. ),
  279. array(
  280. 'field' => 'when',
  281. 'label' => 'when',
  282. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  283. ),
  284. array(
  285. 'field' => 'hhmembers1',
  286. 'label' => 'House Member',
  287. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  288. ),
  289. array(
  290. 'field' => 'hhmembers2',
  291. 'label' => 'House Member',
  292. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  293. ),
  294. array(
  295. 'field' => 'hhmembers3',
  296. 'label' => 'House Member',
  297. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  298. ),
  299. array(
  300. 'field' => 'hhmembers4',
  301. 'label' => 'House Member',
  302. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  303. ),
  304. array(
  305. 'field' => 'hhmembers5',
  306. 'label' => 'House Member',
  307. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  308. ),
  309. array(
  310. 'field' => 'hhmembers6',
  311. 'label' => 'House Member',
  312. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  313. ),
  314. array(
  315. 'field' => 'hhmembersage1',
  316. 'label' => 'House Members Age',
  317. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  318. ),
  319. array(
  320. 'field' => 'hhmembersage2',
  321. 'label' => 'House Members Age',
  322. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  323. ),
  324. array(
  325. 'field' => 'hhmembersage3',
  326. 'label' => 'House Members Age',
  327. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  328. ),
  329. array(
  330. 'field' => 'hhmembersage4',
  331. 'label' => 'House Members Age',
  332. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  333. ),
  334. array(
  335. 'field' => 'hhmembersage5',
  336. 'label' => 'House Members Age',
  337. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  338. ),
  339. array(
  340. 'field' => 'hhmembersage6',
  341. 'label' => 'House Members Age',
  342. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  343. ),
  344. array(
  345. 'field' => 'language_at_home',
  346. 'label' => 'Languages Spoken at Home',
  347. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  348. ),
  349. array(
  350. 'field' => 'family_activities',
  351. 'label' => 'Family Activities',
  352. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  353. ),
  354. array(
  355. 'field' => 'family_activities_frequent',
  356. 'label' => 'Family Activities',
  357. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  358. ),
  359. array(
  360. 'field' => 'tv_time',
  361. 'label' => 'TV Time Spent',
  362. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  363. ),
  364. array(
  365. 'field' => 'tv_whom',
  366. 'label' => 'TV Spen with Whom',
  367. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  368. ),
  369. array(
  370. 'field' => 'radio_time',
  371. 'label' => 'Radio Time Spent',
  372. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  373. ),
  374. array(
  375. 'field' => 'radio_whom',
  376. 'label' => 'Radio Time Spent With Whom',
  377. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  378. ),
  379. array(
  380. 'field' => 'computergames_time',
  381. 'label' => 'Computer Games Time Spent',
  382. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  383. ),
  384. array(
  385. 'field' => 'computergames_whom',
  386. 'label' => 'Computer Games Time Spent with Whom',
  387. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  388. ),
  389. array(
  390. 'field' => 'child_responsibilities',
  391. 'label' => 'Child Responsibilites',
  392. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  393. ),
  394. array(
  395. 'field' => 'child_responsibilities_what',
  396. 'label' => 'What are you\'re Child Responsibilites',
  397. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  398. ),
  399. array(
  400. 'field' => 'child_play_group',
  401. 'label' => 'Child Play Group',
  402. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  403. ),
  404. array(
  405. 'field' => 'child_play_group_frequent',
  406. 'label' => 'Child Frequent Playgroup Frequent',
  407. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  408. ),
  409. array(
  410. 'field' => 'other_interest',
  411. 'label' => 'Other Interest',
  412. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  413. ),
  414. array(
  415. 'field' => 'age_first_walked',
  416. 'label' => 'Age First Walked',
  417. 'rules' => 'required|numeric|trim|htmlspecialchars|strip_tags'
  418. ),
  419. array(
  420. 'field' => 'age_first_talked',
  421. 'label' => 'Age First Talked',
  422. 'rules' => 'required|numeric|trim|htmlspecialchars|strip_tags'
  423. ),
  424. array(
  425. 'field' => 'w_for_urinate',
  426. 'label' => 'Word used for urination',
  427. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  428. ),
  429. array(
  430. 'field' => 'w_for_bowel',
  431. 'label' => 'Word used for bowel movement',
  432. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  433. ),
  434. array(
  435. 'field' => 'w_usual_time',
  436. 'label' => 'Usual Time',
  437. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  438. ),
  439. array(
  440. 'field' => 'child_dress',
  441. 'label' => 'Child Dress Self',
  442. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  443. ),
  444. array(
  445. 'field' => 'child_undress',
  446. 'label' => 'Child Undress Self',
  447. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  448. ),
  449. array(
  450. 'field' => 'hand_orientation',
  451. 'label' => 'Hand Orientation',
  452. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  453. ),
  454. array(
  455. 'field' => 'self_feed',
  456. 'label' => 'Child Self Feed',
  457. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  458. ),
  459. array(
  460. 'field' => 'stayinplace',
  461. 'label' => 'Stay In Place',
  462. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  463. ),
  464. array(
  465. 'field' => 'joinothereating',
  466. 'label' => 'Join Family when eating',
  467. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  468. ),
  469. array(
  470. 'field' => 'food_preferences',
  471. 'label' => 'Food Preferences',
  472. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  473. ),
  474. array(
  475. 'field' => 'drink_from_bottle',
  476. 'label' => 'Drink From Bottle',
  477. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  478. ),
  479. array(
  480. 'field' => 'toilet_trained',
  481. 'label' => 'Toilet Trained',
  482. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  483. )
  484. ),
  485. /*+-------------------------------------------------+
  486. * | Enrollment form validation for secondary |
  487. * +-------------------------------------------------+
  488. */
  489. 'enrollment_profile_gradeschool' => array(
  490. array(
  491. 'field' => 'child_fname',
  492. 'label' => 'Child First name',
  493. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  494. ),
  495. array(
  496. 'field' => 'child_lname',
  497. 'label' => 'Child Last Name',
  498. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  499. ),
  500. array(
  501. 'field' => 'child_mname',
  502. 'label' => 'Childs Middle Name',
  503. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  504. ),
  505. array(
  506. 'field' => 'child_nickname',
  507. 'label' => 'Childs Nickname',
  508. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  509. ),
  510. array(
  511. 'field' => 'b_month',
  512. 'label' => 'Birth month',
  513. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  514. ),
  515. array(
  516. 'field' => 'b_day',
  517. 'label' => 'Day Of Birth',
  518. 'rules' => 'required|datechecker_2|trim|htmlspecialchars|strip_tags'
  519. ),
  520. array(
  521. 'field' => 'b_year',
  522. 'label' => 'Year of Birth',
  523. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  524. ),
  525. array(
  526. 'field' => 'gender',
  527. 'label' => 'Childs Gender',
  528. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  529. ),
  530. array(
  531. 'field' => 'child_placeofbirth',
  532. 'label' => 'Child\'s Place of Birth',
  533. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  534. ),
  535. array(
  536. 'field' => 'child_nationality',
  537. 'label' => 'Child\'s Nationality',
  538. 'rules' => 'text_all|required|trim|htmlspecialchars|strip_tags'
  539. ),
  540. array(
  541. 'field' => 'child_religous',
  542. 'label' => 'Religous Affilation',
  543. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  544. ),
  545. array(
  546. 'field' => 'child_city_address',
  547. 'label' => 'Childs City Address',
  548. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  549. ),
  550. array(
  551. 'field' => 'child_telno',
  552. 'label' => 'Contact Number',
  553. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  554. ),
  555. array(
  556. 'field' => 'email',
  557. 'label' => 'Email Address',
  558. 'rules' => 'required|valid_email|trim|htmlspecialchars|strip_tags'
  559. ),
  560. array(
  561. 'field' => 'child_adresshowlong',
  562. 'label' => 'How Long Has Child Been Living',
  563. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  564. ),
  565. array(
  566. 'field' => 'school_last_attended',
  567. 'label' => 'School Last Attended',
  568. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  569. ),
  570. array(
  571. 'field' => 'school_level_completed',
  572. 'label' => 'School Level Completed',
  573. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  574. ),
  575. array(
  576. 'field' => 'school_address',
  577. 'label' => 'School Address',
  578. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  579. ),
  580. array(
  581. 'field' => 'father_name',
  582. 'label' => 'Father\'s Name',
  583. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  584. ),
  585. array(
  586. 'field' => 'father_age',
  587. 'label' => 'Father\'s Age',
  588. 'rules' => 'required|numeric|trim|htmlspecialchars|strip_tags'
  589. ),
  590. array(
  591. 'field' => 'father_relaffil',
  592. 'label' => 'Father\'s Religous Affilation',
  593. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  594. ),
  595. array(
  596. 'field' => 'father_citizenship',
  597. 'label' => 'Father\'s Citizenship',
  598. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  599. ),
  600. array(
  601. 'field' => 'father_educ',
  602. 'label' => 'Father\'s Educational Attainment',
  603. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  604. ),
  605. array(
  606. 'field' => 'father_talent',
  607. 'label' => 'Father\'s Hobies and Talent',
  608. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  609. ),
  610. array(
  611. 'field' => 'father_occup',
  612. 'label' => 'Father\'s Occupation',
  613. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  614. ),
  615. array(
  616. 'field' => 'father_office_address',
  617. 'label' => 'Father\'s Office Address',
  618. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  619. ),
  620. array(
  621. 'field' => 'father_office_tel',
  622. 'label' => 'Father\'s Office Tel',
  623. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  624. ),
  625. array(
  626. 'field' => 'mother_name',
  627. 'label' => 'Mother\'s Name',
  628. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  629. ),
  630. array(
  631. 'field' => 'mother_age',
  632. 'label' => 'Mother\'s Age',
  633. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  634. ),
  635. array(
  636. 'field' => 'mother_relaffil',
  637. 'label' => 'Mother\'s Religous Affilation',
  638. 'rules' => 'text_all|required|trim|htmlspecialchars|strip_tags'
  639. ),
  640. array(
  641. 'field' => 'mother_citizenship',
  642. 'label' => 'Mother\'s Citizenship',
  643. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  644. ),
  645. array(
  646. 'field' => 'mother_educ',
  647. 'label' => 'Mother\'s Educational Attainment',
  648. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  649. ),
  650. array(
  651. 'field' => 'mother_talent',
  652. 'label' => 'Mother\'s Hobbies and Talent',
  653. 'rules' => 'trim|htmlspecialchars|strip_tags'
  654. ),
  655. array(
  656. 'field' => 'mother_occup',
  657. 'label' => 'Mother\'s Occupation',
  658. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  659. ),
  660. array(
  661. 'field' => 'mother_office_address',
  662. 'label' => 'Mother\'s Office Address',
  663. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  664. ),
  665. array(
  666. 'field' => 'mother_office_tel',
  667. 'label' => 'Mother\'s Office Tel',
  668. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  669. ),
  670. array(
  671. 'field' => 'guardian_name',
  672. 'label' => 'Guardians Name',
  673. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  674. ),
  675. array(
  676. 'field' => 'guardian_relation',
  677. 'label' => 'Guardian Relation',
  678. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  679. ),
  680. array(
  681. 'field' => 'guardian_address',
  682. 'label' => 'Guardian\'s Address',
  683. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  684. ),
  685. array(
  686. 'field' => 'guardian_contact_num',
  687. 'label' => 'Guardian\'s Contact Number',
  688. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  689. ),
  690. array(
  691. 'field' => 'guardian_reason',
  692. 'label' => 'Reason For Having Guardian',
  693. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  694. ),
  695. array(
  696. 'field' => 'parent_status',
  697. 'label' => 'Parent\'s Marriage Status',
  698. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  699. ),
  700. array(
  701. 'field' => 'status_how_long',
  702. 'label' => 'For how long',
  703. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  704. ),
  705. array(
  706. 'field' => 'right_over_child',
  707. 'label' => 'Right over Child',
  708. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  709. ),
  710. array(
  711. 'field' => 'position_of_child',
  712. 'label' => 'Child\'s Position',
  713. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  714. ),
  715. array(
  716. 'field' => 'is_child_adopted',
  717. 'label' => 'Is Child Adopted',
  718. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  719. ),
  720. array(
  721. 'field' => 'age_of_adoption',
  722. 'label' => 'Age Of Adpoption',
  723. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  724. ),
  725. array(
  726. 'field' => 'child_aware_adopted',
  727. 'label' => 'Child Aware Adopted',
  728. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  729. ),
  730. array(
  731. 'field' => 'mother_presently_pregnant',
  732. 'label' => 'Is Mother Presently Pregnant',
  733. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  734. ),
  735. array(
  736. 'field' => 'mother_pregnancy_due_date',
  737. 'label' => 'Mother\'s Pregnance Due Date',
  738. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  739. ),
  740. array(
  741. 'field' => 'family_deaths',
  742. 'label' => 'Family Deaths',
  743. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  744. ),
  745. array(
  746. 'field' => 'family_deaths_relation',
  747. 'label' => 'Relation',
  748. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  749. ),
  750. array(
  751. 'field' => 'family_accidents',
  752. 'label' => 'Family Related Accidents',
  753. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  754. ),
  755. array(
  756. 'field' => 'family_accidents_relation',
  757. 'label' => 'Relation to Family Accidents',
  758. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  759. ),
  760. array(
  761. 'field' => 'what',
  762. 'label' => 'what',
  763. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  764. ),
  765. array(
  766. 'field' => 'when',
  767. 'label' => 'when',
  768. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  769. ),
  770. array(
  771. 'field' => 'hhmembers1',
  772. 'label' => 'House Member',
  773. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  774. ),
  775. array(
  776. 'field' => 'hhmembers2',
  777. 'label' => 'House Member',
  778. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  779. ),
  780. array(
  781. 'field' => 'hhmembers3',
  782. 'label' => 'House Member',
  783. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  784. ),
  785. array(
  786. 'field' => 'hhmembers4',
  787. 'label' => 'House Member',
  788. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  789. ),
  790. array(
  791. 'field' => 'hhmembers5',
  792. 'label' => 'House Member',
  793. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  794. ),
  795. array(
  796. 'field' => 'hhmembers6',
  797. 'label' => 'House Member',
  798. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  799. ),
  800. array(
  801. 'field' => 'hhmembersage1',
  802. 'label' => 'House Members Age',
  803. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  804. ),
  805. array(
  806. 'field' => 'hhmembersage2',
  807. 'label' => 'House Members Age',
  808. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  809. ),
  810. array(
  811. 'field' => 'hhmembersage3',
  812. 'label' => 'House Members Age',
  813. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  814. ),
  815. array(
  816. 'field' => 'hhmembersage4',
  817. 'label' => 'House Members Age',
  818. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  819. ),
  820. array(
  821. 'field' => 'hhmembersage5',
  822. 'label' => 'House Members Age',
  823. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  824. ),
  825. array(
  826. 'field' => 'hhmembersage6',
  827. 'label' => 'House Members Age',
  828. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  829. ),
  830. array(
  831. 'field' => 'language_at_home',
  832. 'label' => 'Languages Spoken at Home',
  833. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  834. ),
  835. array(
  836. 'field' => 'family_activities',
  837. 'label' => 'Family Activities',
  838. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  839. ),
  840. array(
  841. 'field' => 'family_activities_frequent',
  842. 'label' => 'Family Activities',
  843. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  844. ),
  845. array(
  846. 'field' => 'tv_time',
  847. 'label' => 'TV Time Spent',
  848. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  849. ),
  850. array(
  851. 'field' => 'tv_whom',
  852. 'label' => 'TV Spen with Whom',
  853. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  854. ),
  855. array(
  856. 'field' => 'radio_time',
  857. 'label' => 'Radio Time Spent',
  858. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  859. ),
  860. array(
  861. 'field' => 'radio_whom',
  862. 'label' => 'Radio Time Spent With Whom',
  863. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  864. ),
  865. array(
  866. 'field' => 'computergames_time',
  867. 'label' => 'Computer Games Time Spent',
  868. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  869. ),
  870. array(
  871. 'field' => 'computergames_whom',
  872. 'label' => 'Computer Games Time Spent with Whom',
  873. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  874. ),
  875. array(
  876. 'field' => 'child_responsibilities',
  877. 'label' => 'Child Responsibilites',
  878. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  879. ),
  880. array(
  881. 'field' => 'child_responsibilities_what',
  882. 'label' => 'What are you\'re Child Responsibilites',
  883. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  884. ),
  885. array(
  886. 'field' => 'child_play_group',
  887. 'label' => 'Child Play Group',
  888. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  889. ),
  890. array(
  891. 'field' => 'child_play_group_frequent',
  892. 'label' => 'Child Frequent Playgroup Frequent',
  893. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  894. ),
  895. array(
  896. 'field' => 'other_interest',
  897. 'label' => 'Other Interest',
  898. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  899. ),
  900. array(
  901. 'field' => 'sec_study_time',
  902. 'label' => 'Study time',
  903. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  904. ),
  905. array(
  906. 'field' => 'sec_study_whom',
  907. 'label' => 'With whom',
  908. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  909. ),
  910. array(
  911. 'field' => 'sec_child_pastime',
  912. 'label' => 'Child Pastime',
  913. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  914. ),
  915. array(
  916. 'field' => 'sec_child_htd',
  917. 'label' => 'Child Hate to Do',
  918. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  919. ),
  920. array(
  921. 'field' => 'sec_child_music',
  922. 'label' => 'Child Music',
  923. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  924. ),
  925. array(
  926. 'field' => 'sec_child_hfrus',
  927. 'label' => 'Handle frustration',
  928. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  929. ),
  930. array(
  931. 'field' => 'sec_child_curfew',
  932. 'label' => 'Child Curfew',
  933. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  934. ),
  935. array(
  936. 'field' => 'sec_misbehave_others',
  937. 'label' => 'Misbehave Others',
  938. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  939. ),
  940. array(
  941. 'field' => 'sec_rhle',
  942. 'label' => 'House Rule to reinforce',
  943. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  944. ),
  945. array(
  946. 'field' => 'al_tghome',
  947. 'label' => 'Allow to go home independently',
  948. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  949. )
  950. ),
  951. /*+-------------------------------------------------+
  952. * | Enrollment form validation for intermediate |
  953. * +-------------------------------------------------+
  954. */
  955. 'enrollment_profile_highschool' => array(
  956. array(
  957. 'field' => 'child_fname',
  958. 'label' => 'Child First name',
  959. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  960. ),
  961. array(
  962. 'field' => 'child_lname',
  963. 'label' => 'Child Last Name',
  964. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  965. ),
  966. array(
  967. 'field' => 'child_mname',
  968. 'label' => 'Childs Middle Name',
  969. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  970. ),
  971. array(
  972. 'field' => 'child_nickname',
  973. 'label' => 'Childs Nickname',
  974. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  975. ),
  976. array(
  977. 'field' => 'b_month',
  978. 'label' => 'Birth month',
  979. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  980. ),
  981. array(
  982. 'field' => 'b_day',
  983. 'label' => 'Day Of Birth',
  984. 'rules' => 'required|datechecker_2|trim|htmlspecialchars|strip_tags'
  985. ),
  986. array(
  987. 'field' => 'b_year',
  988. 'label' => 'Year of Birth',
  989. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  990. ),
  991. array(
  992. 'field' => 'gender',
  993. 'label' => 'Childs Gender',
  994. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  995. ),
  996. array(
  997. 'field' => 'child_placeofbirth',
  998. 'label' => 'Child\'s Place of Birth',
  999. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1000. ),
  1001. array(
  1002. 'field' => 'child_nationality',
  1003. 'label' => 'Child\'s Nationality',
  1004. 'rules' => 'text_all|required|trim|htmlspecialchars|strip_tags'
  1005. ),
  1006. array(
  1007. 'field' => 'child_religous',
  1008. 'label' => 'Religous Affilation',
  1009. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1010. ),
  1011. array(
  1012. 'field' => 'child_city_address',
  1013. 'label' => 'Childs City Address',
  1014. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1015. ),
  1016. array(
  1017. 'field' => 'child_telno',
  1018. 'label' => 'Contact Number',
  1019. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1020. ),
  1021. array(
  1022. 'field' => 'email',
  1023. 'label' => 'Email Address',
  1024. 'rules' => 'required|valid_email|trim|htmlspecialchars|strip_tags'
  1025. ),
  1026. array(
  1027. 'field' => 'child_adresshowlong',
  1028. 'label' => 'How Long Has Child Been Living',
  1029. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1030. ),
  1031. array(
  1032. 'field' => 'school_last_attended',
  1033. 'label' => 'School Last Attended',
  1034. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1035. ),
  1036. array(
  1037. 'field' => 'school_level_completed',
  1038. 'label' => 'School Level Completed',
  1039. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1040. ),
  1041. array(
  1042. 'field' => 'school_address',
  1043. 'label' => 'School Address',
  1044. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1045. ),
  1046. array(
  1047. 'field' => 'father_name',
  1048. 'label' => 'Father\'s Name',
  1049. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1050. ),
  1051. array(
  1052. 'field' => 'father_age',
  1053. 'label' => 'Father\'s Age',
  1054. 'rules' => 'required|numeric|trim|htmlspecialchars|strip_tags'
  1055. ),
  1056. array(
  1057. 'field' => 'father_relaffil',
  1058. 'label' => 'Father\'s Religous Affilation',
  1059. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1060. ),
  1061. array(
  1062. 'field' => 'father_citizenship',
  1063. 'label' => 'Father\'s Citizenship',
  1064. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1065. ),
  1066. array(
  1067. 'field' => 'father_educ',
  1068. 'label' => 'Father\'s Educational Attainment',
  1069. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1070. ),
  1071. array(
  1072. 'field' => 'father_talent',
  1073. 'label' => 'Father\'s Hobies and Talent',
  1074. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1075. ),
  1076. array(
  1077. 'field' => 'father_occup',
  1078. 'label' => 'Father\'s Occupation',
  1079. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1080. ),
  1081. array(
  1082. 'field' => 'father_office_address',
  1083. 'label' => 'Father\'s Office Address',
  1084. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1085. ),
  1086. array(
  1087. 'field' => 'father_office_tel',
  1088. 'label' => 'Father\'s Office Tel',
  1089. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1090. ),
  1091. array(
  1092. 'field' => 'mother_name',
  1093. 'label' => 'Mother\'s Name',
  1094. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1095. ),
  1096. array(
  1097. 'field' => 'mother_age',
  1098. 'label' => 'Mother\'s Age',
  1099. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1100. ),
  1101. array(
  1102. 'field' => 'mother_relaffil',
  1103. 'label' => 'Mother\'s Religous Affilation',
  1104. 'rules' => 'text_all|required|trim|htmlspecialchars|strip_tags'
  1105. ),
  1106. array(
  1107. 'field' => 'mother_citizenship',
  1108. 'label' => 'Mother\'s Citizenship',
  1109. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1110. ),
  1111. array(
  1112. 'field' => 'mother_educ',
  1113. 'label' => 'Mother\'s Educational Attainment',
  1114. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1115. ),
  1116. array(
  1117. 'field' => 'mother_talent',
  1118. 'label' => 'Mother\'s Hobbies and Talent',
  1119. 'rules' => 'trim|htmlspecialchars|strip_tags'
  1120. ),
  1121. array(
  1122. 'field' => 'mother_occup',
  1123. 'label' => 'Mother\'s Occupation',
  1124. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1125. ),
  1126. array(
  1127. 'field' => 'mother_office_address',
  1128. 'label' => 'Mother\'s Office Address',
  1129. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1130. ),
  1131. array(
  1132. 'field' => 'mother_office_tel',
  1133. 'label' => 'Mother\'s Office Tel',
  1134. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1135. ),
  1136. array(
  1137. 'field' => 'guardian_name',
  1138. 'label' => 'Guardians Name',
  1139. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1140. ),
  1141. array(
  1142. 'field' => 'guardian_relation',
  1143. 'label' => 'Guardian Relation',
  1144. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1145. ),
  1146. array(
  1147. 'field' => 'guardian_address',
  1148. 'label' => 'Guardian\'s Address',
  1149. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1150. ),
  1151. array(
  1152. 'field' => 'guardian_contact_num',
  1153. 'label' => 'Guardian\'s Contact Number',
  1154. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1155. ),
  1156. array(
  1157. 'field' => 'guardian_reason',
  1158. 'label' => 'Reason For Having Guardian',
  1159. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1160. ),
  1161. array(
  1162. 'field' => 'parent_status',
  1163. 'label' => 'Parent\'s Marriage Status',
  1164. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1165. ),
  1166. array(
  1167. 'field' => 'status_how_long',
  1168. 'label' => 'For how long',
  1169. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1170. ),
  1171. array(
  1172. 'field' => 'right_over_child',
  1173. 'label' => 'Right over Child',
  1174. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1175. ),
  1176. array(
  1177. 'field' => 'position_of_child',
  1178. 'label' => 'Child\'s Position',
  1179. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1180. ),
  1181. array(
  1182. 'field' => 'is_child_adopted',
  1183. 'label' => 'Is Child Adopted',
  1184. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1185. ),
  1186. array(
  1187. 'field' => 'age_of_adoption',
  1188. 'label' => 'Age Of Adpoption',
  1189. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  1190. ),
  1191. array(
  1192. 'field' => 'child_aware_adopted',
  1193. 'label' => 'Child Aware Adopted',
  1194. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1195. ),
  1196. array(
  1197. 'field' => 'mother_presently_pregnant',
  1198. 'label' => 'Is Mother Presently Pregnant',
  1199. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1200. ),
  1201. array(
  1202. 'field' => 'mother_pregnancy_due_date',
  1203. 'label' => 'Mother\'s Pregnance Due Date',
  1204. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1205. ),
  1206. array(
  1207. 'field' => 'family_deaths',
  1208. 'label' => 'Family Deaths',
  1209. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1210. ),
  1211. array(
  1212. 'field' => 'family_deaths_relation',
  1213. 'label' => 'Relation',
  1214. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1215. ),
  1216. array(
  1217. 'field' => 'family_accidents',
  1218. 'label' => 'Family Related Accidents',
  1219. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1220. ),
  1221. array(
  1222. 'field' => 'family_accidents_relation',
  1223. 'label' => 'Relation to Family Accidents',
  1224. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1225. ),
  1226. array(
  1227. 'field' => 'what',
  1228. 'label' => 'what',
  1229. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1230. ),
  1231. array(
  1232. 'field' => 'when',
  1233. 'label' => 'when',
  1234. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1235. ),
  1236. array(
  1237. 'field' => 'hhmembers1',
  1238. 'label' => 'House Member',
  1239. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1240. ),
  1241. array(
  1242. 'field' => 'hhmembers2',
  1243. 'label' => 'House Member',
  1244. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1245. ),
  1246. array(
  1247. 'field' => 'hhmembers3',
  1248. 'label' => 'House Member',
  1249. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1250. ),
  1251. array(
  1252. 'field' => 'hhmembers4',
  1253. 'label' => 'House Member',
  1254. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1255. ),
  1256. array(
  1257. 'field' => 'hhmembers5',
  1258. 'label' => 'House Member',
  1259. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1260. ),
  1261. array(
  1262. 'field' => 'hhmembers6',
  1263. 'label' => 'House Member',
  1264. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1265. ),
  1266. array(
  1267. 'field' => 'hhmembersage1',
  1268. 'label' => 'House Members Age',
  1269. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  1270. ),
  1271. array(
  1272. 'field' => 'hhmembersage2',
  1273. 'label' => 'House Members Age',
  1274. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  1275. ),
  1276. array(
  1277. 'field' => 'hhmembersage3',
  1278. 'label' => 'House Members Age',
  1279. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  1280. ),
  1281. array(
  1282. 'field' => 'hhmembersage4',
  1283. 'label' => 'House Members Age',
  1284. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  1285. ),
  1286. array(
  1287. 'field' => 'hhmembersage5',
  1288. 'label' => 'House Members Age',
  1289. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  1290. ),
  1291. array(
  1292. 'field' => 'hhmembersage6',
  1293. 'label' => 'House Members Age',
  1294. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  1295. ),
  1296. array(
  1297. 'field' => 'language_at_home',
  1298. 'label' => 'Languages Spoken at Home',
  1299. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1300. ),
  1301. array(
  1302. 'field' => 'family_activities',
  1303. 'label' => 'Family Activities',
  1304. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1305. ),
  1306. array(
  1307. 'field' => 'family_activities_frequent',
  1308. 'label' => 'Family Activities',
  1309. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1310. ),
  1311. array(
  1312. 'field' => 'tv_time',
  1313. 'label' => 'TV Time Spent',
  1314. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1315. ),
  1316. array(
  1317. 'field' => 'tv_whom',
  1318. 'label' => 'TV Spen with Whom',
  1319. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1320. ),
  1321. array(
  1322. 'field' => 'radio_time',
  1323. 'label' => 'Radio Time Spent',
  1324. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1325. ),
  1326. array(
  1327. 'field' => 'radio_whom',
  1328. 'label' => 'Radio Time Spent With Whom',
  1329. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1330. ),
  1331. array(
  1332. 'field' => 'computergames_time',
  1333. 'label' => 'Computer Games Time Spent',
  1334. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1335. ),
  1336. array(
  1337. 'field' => 'computergames_whom',
  1338. 'label' => 'Computer Games Time Spent with Whom',
  1339. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1340. ),
  1341. array(
  1342. 'field' => 'child_responsibilities',
  1343. 'label' => 'Child Responsibilites',
  1344. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1345. ),
  1346. array(
  1347. 'field' => 'child_responsibilities_what',
  1348. 'label' => 'What are you\'re Child Responsibilites',
  1349. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1350. ),
  1351. array(
  1352. 'field' => 'child_play_group',
  1353. 'label' => 'Child Play Group',
  1354. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1355. ),
  1356. array(
  1357. 'field' => 'child_play_group_frequent',
  1358. 'label' => 'Child Frequent Playgroup Frequent',
  1359. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1360. ),
  1361. array(
  1362. 'field' => 'other_interest',
  1363. 'label' => 'Other Interest',
  1364. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1365. ),
  1366. array(
  1367. 'field' => 'hs_watch',
  1368. 'label' => '',
  1369. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1370. ),
  1371. array(
  1372. 'field' => 'hs_boardgames',
  1373. 'label' => '',
  1374. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1375. ),
  1376. array(
  1377. 'field' => 'hs_comp',
  1378. 'label' => '',
  1379. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1380. ),
  1381. array(
  1382. 'field' => 'hs_reading',
  1383. 'label' => '',
  1384. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1385. ),
  1386. array(
  1387. 'field' => 'hs_other_pt',
  1388. 'label' => '',
  1389. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1390. ),
  1391. array(
  1392. 'field' => 'hs_spend_study',
  1393. 'label' => '',
  1394. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1395. ),
  1396. array(
  1397. 'field' => 'hs_first_mens',
  1398. 'label' => '',
  1399. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1400. ),
  1401. array(
  1402. 'field' => 'hs_signal_mens',
  1403. 'label' => '',
  1404. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1405. ),
  1406. array(
  1407. 'field' => 'al_tghome',
  1408. 'label' => 'Allow to go home independently',
  1409. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1410. )
  1411. ),
  1412. /*+-------------------------------------------------+
  1413. * | Validation rules for Registration default |
  1414. * +-------------------------------------------------+
  1415. */
  1416. 'enrollment_profile' => array(
  1417. array(
  1418. 'field' => 'child_fname',
  1419. 'label' => 'Child First name',
  1420. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1421. ),
  1422. array(
  1423. 'field' => 'child_lname',
  1424. 'label' => 'Child Last Name',
  1425. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1426. ),
  1427. array(
  1428. 'field' => 'child_mname',
  1429. 'label' => 'Childs Middle Name',
  1430. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1431. ),
  1432. array(
  1433. 'field' => 'child_nickname',
  1434. 'label' => 'Childs Nickname',
  1435. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1436. ),
  1437. array(
  1438. 'field' => 'b_month',
  1439. 'label' => 'Birth month',
  1440. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1441. ),
  1442. array(
  1443. 'field' => 'b_day',
  1444. 'label' => 'Day Of Birth',
  1445. 'rules' => 'required|datechecker_2|trim|htmlspecialchars|strip_tags'
  1446. ),
  1447. array(
  1448. 'field' => 'b_year',
  1449. 'label' => 'Year of Birth',
  1450. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1451. ),
  1452. array(
  1453. 'field' => 'gender',
  1454. 'label' => 'Childs Gender',
  1455. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1456. ),
  1457. array(
  1458. 'field' => 'child_placeofbirth',
  1459. 'label' => 'Child\'s Place of Birth',
  1460. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1461. ),
  1462. array(
  1463. 'field' => 'child_nationality',
  1464. 'label' => 'Child\'s Nationality',
  1465. 'rules' => 'text_all|required|trim|htmlspecialchars|strip_tags'
  1466. ),
  1467. array(
  1468. 'field' => 'child_religous',
  1469. 'label' => 'Religous Affilation',
  1470. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1471. ),
  1472. array(
  1473. 'field' => 'child_city_address',
  1474. 'label' => 'Childs City Address',
  1475. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1476. ),
  1477. array(
  1478. 'field' => 'child_telno',
  1479. 'label' => 'Contact Number',
  1480. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1481. ),
  1482. array(
  1483. 'field' => 'email',
  1484. 'label' => 'Email Address',
  1485. 'rules' => 'required|valid_email|trim|htmlspecialchars|strip_tags'
  1486. ),
  1487. array(
  1488. 'field' => 'child_adresshowlong',
  1489. 'label' => 'How Long Has Child Been Living',
  1490. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1491. ),
  1492. array(
  1493. 'field' => 'school_last_attended',
  1494. 'label' => 'School Last Attended',
  1495. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1496. ),
  1497. array(
  1498. 'field' => 'school_level_completed',
  1499. 'label' => 'School Level Completed',
  1500. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1501. ),
  1502. array(
  1503. 'field' => 'school_address',
  1504. 'label' => 'School Address',
  1505. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1506. ),
  1507. array(
  1508. 'field' => 'father_name',
  1509. 'label' => 'Father\'s Name',
  1510. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1511. ),
  1512. array(
  1513. 'field' => 'father_age',
  1514. 'label' => 'Father\'s Age',
  1515. 'rules' => 'required|numeric|trim|htmlspecialchars|strip_tags'
  1516. ),
  1517. array(
  1518. 'field' => 'father_relaffil',
  1519. 'label' => 'Father\'s Religous Affilation',
  1520. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1521. ),
  1522. array(
  1523. 'field' => 'father_citizenship',
  1524. 'label' => 'Father\'s Citizenship',
  1525. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1526. ),
  1527. array(
  1528. 'field' => 'father_educ',
  1529. 'label' => 'Father\'s Educational Attainment',
  1530. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1531. ),
  1532. array(
  1533. 'field' => 'father_talent',
  1534. 'label' => 'Father\'s Hobies and Talent',
  1535. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1536. ),
  1537. array(
  1538. 'field' => 'father_occup',
  1539. 'label' => 'Father\'s Occupation',
  1540. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1541. ),
  1542. array(
  1543. 'field' => 'father_office_address',
  1544. 'label' => 'Father\'s Office Address',
  1545. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1546. ),
  1547. array(
  1548. 'field' => 'father_office_tel',
  1549. 'label' => 'Father\'s Office Tel',
  1550. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1551. ),
  1552. array(
  1553. 'field' => 'mother_name',
  1554. 'label' => 'Mother\'s Name',
  1555. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1556. ),
  1557. array(
  1558. 'field' => 'mother_age',
  1559. 'label' => 'Mother\'s Age',
  1560. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1561. ),
  1562. array(
  1563. 'field' => 'mother_relaffil',
  1564. 'label' => 'Mother\'s Religous Affilation',
  1565. 'rules' => 'text_all|required|trim|htmlspecialchars|strip_tags'
  1566. ),
  1567. array(
  1568. 'field' => 'mother_citizenship',
  1569. 'label' => 'Mother\'s Citizenship',
  1570. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1571. ),
  1572. array(
  1573. 'field' => 'mother_educ',
  1574. 'label' => 'Mother\'s Educational Attainment',
  1575. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1576. ),
  1577. array(
  1578. 'field' => 'mother_talent',
  1579. 'label' => 'Mother\'s Hobbies and Talent',
  1580. 'rules' => 'trim|htmlspecialchars|strip_tags'
  1581. ),
  1582. array(
  1583. 'field' => 'mother_occup',
  1584. 'label' => 'Mother\'s Occupation',
  1585. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1586. ),
  1587. array(
  1588. 'field' => 'mother_office_address',
  1589. 'label' => 'Mother\'s Office Address',
  1590. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1591. ),
  1592. array(
  1593. 'field' => 'mother_office_tel',
  1594. 'label' => 'Mother\'s Office Tel',
  1595. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1596. ),
  1597. array(
  1598. 'field' => 'guardian_name',
  1599. 'label' => 'Guardians Name',
  1600. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1601. ),
  1602. array(
  1603. 'field' => 'guardian_relation',
  1604. 'label' => 'Guardian Relation',
  1605. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1606. ),
  1607. array(
  1608. 'field' => 'guardian_address',
  1609. 'label' => 'Guardian\'s Address',
  1610. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1611. ),
  1612. array(
  1613. 'field' => 'guardian_contact_num',
  1614. 'label' => 'Guardian\'s Contact Number',
  1615. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1616. ),
  1617. array(
  1618. 'field' => 'guardian_reason',
  1619. 'label' => 'Reason For Having Guardian',
  1620. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1621. ),
  1622. array(
  1623. 'field' => 'parent_status',
  1624. 'label' => 'Parent\'s Marriage Status',
  1625. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1626. ),
  1627. array(
  1628. 'field' => 'status_how_long',
  1629. 'label' => 'For how long',
  1630. 'rules' => 'required|trim|htmlspecialchars|strip_tags'
  1631. ),
  1632. array(
  1633. 'field' => 'right_over_child',
  1634. 'label' => 'Right over Child',
  1635. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1636. ),
  1637. array(
  1638. 'field' => 'position_of_child',
  1639. 'label' => 'Child\'s Position',
  1640. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1641. ),
  1642. array(
  1643. 'field' => 'is_child_adopted',
  1644. 'label' => 'Is Child Adopted',
  1645. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1646. ),
  1647. array(
  1648. 'field' => 'age_of_adoption',
  1649. 'label' => 'Age Of Adpoption',
  1650. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  1651. ),
  1652. array(
  1653. 'field' => 'child_aware_adopted',
  1654. 'label' => 'Child Aware Adopted',
  1655. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1656. ),
  1657. array(
  1658. 'field' => 'mother_presently_pregnant',
  1659. 'label' => 'Is Mother Presently Pregnant',
  1660. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  1661. ),
  1662. array(
  1663. 'field' => 'mother_pregnancy_due_date',
  1664. 'label' => 'Mother\'s Pregnance Due Date',
  1665. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1666. ),
  1667. array(
  1668. 'field' => 'family_deaths',
  1669. 'label' => 'Family Deaths',
  1670. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1671. ),
  1672. array(
  1673. 'field' => 'family_deaths_relation',
  1674. 'label' => 'Relation',
  1675. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1676. ),
  1677. array(
  1678. 'field' => 'family_accidents',
  1679. 'label' => 'Family Related Accidents',
  1680. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1681. ),
  1682. array(
  1683. 'field' => 'family_accidents_relation',
  1684. 'label' => 'Relation to Family Accidents',
  1685. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1686. ),
  1687. array(
  1688. 'field' => 'what',
  1689. 'label' => 'what',
  1690. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1691. ),
  1692. array(
  1693. 'field' => 'when',
  1694. 'label' => 'when',
  1695. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1696. ),
  1697. array(
  1698. 'field' => 'hhmembers1',
  1699. 'label' => 'House Member',
  1700. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1701. ),
  1702. array(
  1703. 'field' => 'hhmembers2',
  1704. 'label' => 'House Member',
  1705. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1706. ),
  1707. array(
  1708. 'field' => 'hhmembers3',
  1709. 'label' => 'House Member',
  1710. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1711. ),
  1712. array(
  1713. 'field' => 'hhmembers4',
  1714. 'label' => 'House Member',
  1715. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1716. ),
  1717. array(
  1718. 'field' => 'hhmembers5',
  1719. 'label' => 'House Member',
  1720. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1721. ),
  1722. array(
  1723. 'field' => 'hhmembers6',
  1724. 'label' => 'House Member',
  1725. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1726. ),
  1727. array(
  1728. 'field' => 'hhmembersage1',
  1729. 'label' => 'House Members Age',
  1730. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  1731. ),
  1732. array(
  1733. 'field' => 'hhmembersage2',
  1734. 'label' => 'House Members Age',
  1735. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  1736. ),
  1737. array(
  1738. 'field' => 'hhmembersage3',
  1739. 'label' => 'House Members Age',
  1740. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  1741. ),
  1742. array(
  1743. 'field' => 'hhmembersage4',
  1744. 'label' => 'House Members Age',
  1745. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  1746. ),
  1747. array(
  1748. 'field' => 'hhmembersage5',
  1749. 'label' => 'House Members Age',
  1750. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  1751. ),
  1752. array(
  1753. 'field' => 'hhmembersage6',
  1754. 'label' => 'House Members Age',
  1755. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  1756. ),
  1757. array(
  1758. 'field' => 'language_at_home',
  1759. 'label' => 'Languages Spoken at Home',
  1760. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1761. ),
  1762. array(
  1763. 'field' => 'family_activities',
  1764. 'label' => 'Family Activities',
  1765. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1766. ),
  1767. array(
  1768. 'field' => 'family_activities_frequent',
  1769. 'label' => 'Family Activities',
  1770. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1771. ),
  1772. array(
  1773. 'field' => 'tv_time',
  1774. 'label' => 'TV Time Spent',
  1775. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1776. ),
  1777. array(
  1778. 'field' => 'tv_whom',
  1779. 'label' => 'TV Spen with Whom',
  1780. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1781. ),
  1782. array(
  1783. 'field' => 'radio_time',
  1784. 'label' => 'Radio Time Spent',
  1785. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  1786. ),
  1787. array(
  1788. 'field' => 'radio_w