PageRenderTime 25ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/application/config/includes/form_validation/base.php

https://gitlab.com/sylver.gocloud/demo-sw-k12-enrollment
PHP | 302 lines | 300 code | 2 blank | 0 comment | 0 complexity | 4ddb3ae99b2b426337e139b8979ef5fc MD5 | raw file
  1. <?php
  2. $developmentalhistory =[
  3. array(
  4. 'field' => 'length_of_preg',
  5. 'label' => 'Length Of Pregnancy',
  6. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  7. ),
  8. array(
  9. 'field' => 'form_of_del',
  10. 'label' => 'Form Of Delivery',
  11. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  12. ),
  13. array(
  14. 'field' => 'complications',
  15. 'label' => 'Complications On Pregnancy',
  16. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  17. ),
  18. array(
  19. 'field' => 'go_to_bed',
  20. 'label' => 'Child go to Bed',
  21. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  22. ),
  23. array(
  24. 'field' => 'get_up_bed',
  25. 'label' => 'Child wake up',
  26. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  27. ),
  28. array(
  29. 'field' => 'sleeping_dist',
  30. 'label' => 'Sleeping Disturbances',
  31. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  32. ),
  33. array(
  34. 'field' => 'own_room',
  35. 'label' => 'Own Room',
  36. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  37. ),
  38. array(
  39. 'field' => 'room_shares',
  40. 'label' => 'Shares Room with',
  41. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  42. ),
  43. array(
  44. 'field' => 'wet_bed',
  45. 'label' => 'Child wets Bed',
  46. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  47. ),
  48. array(
  49. 'field' => 'observable_difficulties',
  50. 'label' => 'Observable Difficulties',
  51. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  52. ),
  53. array(
  54. 'field' => 'observable_difficulties_since_when',
  55. 'label' => 'Observable Difficulties Since When',
  56. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  57. ),
  58. array(
  59. 'field' => 'observable_difficulties_action_taken',
  60. 'label' => 'Observable Difficulties Actions Taken',
  61. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  62. ),
  63. array(
  64. 'field' => 'speech_problems',
  65. 'label' => 'Speech Problems',
  66. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  67. ),
  68. array(
  69. 'field' => 'speech_problems_since_when',
  70. 'label' => 'Speech Problems Since When',
  71. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  72. ),
  73. array(
  74. 'field' => 'speech_problems_actions_taken',
  75. 'label' => 'Speech Problems actions Taken',
  76. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  77. ),
  78. array(
  79. 'field' => 'hearing_last_checked',
  80. 'label' => 'Hearing Last Checked',
  81. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  82. ),
  83. array(
  84. 'field' => 'hearing_problems',
  85. 'label' => 'Hearing Problems',
  86. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  87. ),
  88. array(
  89. 'field' => 'hearing_problems_since_when',
  90. 'label' => 'Hearing Problems Since when',
  91. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  92. ),
  93. array(
  94. 'field' => 'hearing_problems_actions_taken',
  95. 'label' => 'Hearing problems actions taken',
  96. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  97. ),
  98. array(
  99. 'field' => 'vision_last_checked',
  100. 'label' => 'Vision last Checked',
  101. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  102. ),
  103. array(
  104. 'field' => 'vision_specify',
  105. 'label' => 'Specify Child Vision Problems',
  106. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  107. ),
  108. array(
  109. 'field' => 'hinder_childs_learning',
  110. 'label' => 'Learning Process or general Development',
  111. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  112. ),
  113. array(
  114. 'field' => 'traumatic_experiences',
  115. 'label' => 'Any Traumatic Experiences',
  116. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  117. ),
  118. array(
  119. 'field' => 'age_trauma',
  120. 'label' => 'Age Experienced Trauma',
  121. 'rules' => 'numeric|trim|htmlspecialchars|strip_tags'
  122. ),
  123. array(
  124. 'field' => 'trauma_reaction',
  125. 'label' => 'Childs Reaction to Trauma',
  126. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  127. ),
  128. array(
  129. 'field' => 'how_trauma_affected_child',
  130. 'label' => 'How Trauma Affected Child',
  131. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  132. ),
  133. array(
  134. 'field' => 'special_fears',
  135. 'label' => 'Special Fears',
  136. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  137. ),
  138. array(
  139. 'field' => 'when_what_triggered_fear',
  140. 'label' => 'Triggered Fear',
  141. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  142. ),
  143. array(
  144. 'field' => 'how_do_you_handle',
  145. 'label' => 'How Did You Handle Childs Fears',
  146. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  147. )
  148. ];
  149. $healthhistory = [
  150. array(
  151. 'field' => 'past_illness',
  152. 'label' => 'Any Past Illness',
  153. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  154. ),
  155. array(
  156. 'field' => 'frequent_colds',
  157. 'label' => 'Frequent Colds',
  158. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  159. ),
  160. array(
  161. 'field' => 'frequent_headaches',
  162. 'label' => 'Frequet Headaches',
  163. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  164. ),
  165. array(
  166. 'field' => 'frequent_stomachaches',
  167. 'label' => 'Frequent Stomach Aches',
  168. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  169. ),
  170. array(
  171. 'field' => 'frequent_dizziness',
  172. 'label' => 'Frequent Dizziness',
  173. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  174. ),
  175. array(
  176. 'field' => 'frequent_vommiting',
  177. 'label' => 'Frequent Vommiting',
  178. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  179. ),
  180. array(
  181. 'field' => 'major_injury',
  182. 'label' => 'Major Injury',
  183. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  184. ),
  185. array(
  186. 'field' => 'major_operations',
  187. 'label' => 'Major Operations',
  188. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  189. ),
  190. array(
  191. 'field' => 'major_ailment',
  192. 'label' => 'Majot Ailment',
  193. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  194. ),
  195. array(
  196. 'field' => 'medication_child_taking',
  197. 'label' => 'Medication Child is taking',
  198. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  199. ),
  200. array(
  201. 'field' => 'medication_allergy',
  202. 'label' => 'Alergies to medication',
  203. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  204. ),
  205. array(
  206. 'field' => 'child_eating_habbit',
  207. 'label' => 'Child\'s Eating Habbit',
  208. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  209. ),
  210. array(
  211. 'field' => 'dietary_restrictions',
  212. 'label' => 'Dietary Restrictions',
  213. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  214. ),
  215. array(
  216. 'field' => 'school_help_eating_habbit',
  217. 'label' => 'School Help eating Habbit',
  218. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  219. ),
  220. array(
  221. 'field' => 'methods_of_discp',
  222. 'label' => 'Methods Of Discipline',
  223. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  224. ),
  225. array(
  226. 'field' => 'who_handles_discp_home',
  227. 'label' => 'Handles Discipline at Home',
  228. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  229. ),
  230. array(
  231. 'field' => 'how_effective_discp',
  232. 'label' => 'How Effective is the discipline',
  233. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  234. ),
  235. array(
  236. 'field' => 'rod_discp',
  237. 'label' => 'Discipline Using Rod',
  238. 'rules' => 'text_all|trim|htmlspecialchars|strip_tags'
  239. ),
  240. array(
  241. 'field' => 'allow_teacher_use_rod',
  242. 'label' => 'Do you allow the teacher to use Rod',
  243. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  244. ),
  245. array(
  246. 'field' => 'what_form_of_discp_use',
  247. 'label' => 'What form of discipline to use',
  248. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  249. ),
  250. array(
  251. 'field' => 'school_supp_discp',
  252. 'label' => 'How can school support mode of discipline',
  253. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  254. ),
  255. array(
  256. 'field' => 'other_info_about_child',
  257. 'label' => 'Other Information about Child',
  258. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  259. ),
  260. array(
  261. 'field' => 'medication_prec',
  262. 'label' => 'Ailment Precaution',
  263. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  264. ),
  265. array(
  266. 'field' => 'past_illness',
  267. 'label' => 'Any Past Illness',
  268. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  269. ),
  270. array(
  271. 'field' => 'past_illness',
  272. 'label' => 'Any Past Illness',
  273. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  274. ),
  275. array(
  276. 'field' => 'past_illness',
  277. 'label' => 'Any Past Illness',
  278. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  279. ),//added
  280. array(
  281. 'field' => 'medication_physc_nme',
  282. 'label' => 'Physicians Name',
  283. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  284. ),
  285. array(
  286. 'field' => 'medication_physc_con',
  287. 'label' => 'Physicians Contact No.',
  288. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  289. ),
  290. array(
  291. 'field' => 'medication_bt',
  292. 'label' => 'Blood Type',
  293. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  294. ),
  295. array(
  296. 'field' => 'auth_pickup_bt',
  297. 'label' => 'Poeple Authorized to pickup.',
  298. 'rules' => 'required|text_all|trim|htmlspecialchars|strip_tags'
  299. )
  300. ];