Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // define all fields in the deg form
- function tmi_application_get_meta_box( $meta_boxes ) {
- global $prefix, $pattern_name_with_space, $pattern_name_no_space, $pattern_general, $pattern_school_name, $pattern_contact_nos_list, $pattern_name_number, $currentyear, $birth_year_range_start, $birth_year_range_stop, $birth_date_range_start_from, $parents_birth_year_range_start, $parents_birth_year_range_stop, $strclassx_yearofpassing, $strclassx_yearofpassing, $manage_expenses_list, $state_list, $board_list,$btech_diploma_options, $country_list,$degree_year,$blood_group_list,$course_list,$test_centres;
- $xii_fields = array();
- $group_rule = "true";
- $admin_fields = array(
- array(
- 'type' => 'divider',
- ),
- array(
- 'id' => 'application_dossier_id',
- 'type' => 'text',
- 'name' => __( 'Dossier ID: ', 'tmi' ),
- 'attributes' => array(
- 'readonly' => true,
- 'pattern' => $pattern_name_number,
- ),
- 'required' => false,
- 'columns' => 4,
- ),
- array(
- 'id' => 'application_enrollment_number',
- 'type' => 'text',
- 'name' => __( 'Enrollment Number: ', 'tmi' ),
- 'attributes' => array(
- 'pattern' => $pattern_general,
- ),
- 'required' => false,
- 'columns' => 4,
- ),
- array(
- 'type' => 'divider',
- ),
- array(
- 'id' => 'application_payment_information',
- 'name' => __( 'PAYMENT INFORMATION: ', 'tmi' ),
- 'label_description' => '(Office use only)',
- // Group field
- 'type' => 'group',
- // Clone whole group?
- 'clone' => false,
- 'columns' => 12,
- 'collapsible' => false,
- // Sub-fields
- 'fields' => array(
- array(
- 'id' => 'payment_status',
- 'type' => 'radio',
- 'name' => __( 'Payment Status: ', 'tmi' ),
- 'options' => array(
- 'Paid' => 'Paid',
- 'Pending' => 'Pending',
- ),
- 'std' => 'Pending',
- 'collapse' => false,
- 'required' => false,
- 'columns' => 4,
- ),
- array(
- 'id' => 'payment_mode',
- 'type' => 'radio',
- 'name' => __( 'Payment Mode: ', 'tmi' ),
- 'options' => array(
- 'Online' => 'Online',
- 'Offline' => 'Offline',
- ),
- 'std' => 'Offline',
- 'collapse' => false,
- 'required' => false,
- 'columns' => 4,
- ),
- array(
- 'id' => 'amount',
- 'type' => 'number',
- 'name' => __( 'Amount: ', 'tmi' ),
- 'required' => false,
- 'columns' => 6,
- ),
- array(
- 'id' => 'transaction_id',
- 'type' => 'text',
- 'name' => __( 'Transaction ID: ', 'tmi' ),
- 'desc' => '(exists only in online payments)',
- 'attributes' => array(
- 'readonly' => true,
- 'pattern' => $pattern_general,
- ),
- 'columns' => 6,
- ),
- array(
- 'id' => 'notes',
- 'type' => 'textarea',
- 'name' => __( 'Notes: ', 'tmi' ),
- 'attributes' => array(
- 'pattern' => $pattern_general,
- ),
- 'required' => false,
- 'size' => 100,
- 'columns' => 12,
- ),
- )
- )
- );
- if (is_admin()) {
- $display_admin_fields = $admin_fields;
- }
- //$meta_boxes = array();
- $meta_boxes[] = array(
- 'id' => 'deg-entry',
- 'title' => __( 'APPLICATION Course Application Form (Fields marked * are mandatory)', 'tmi' ),
- 'post_types' => array( 'tmideg' ),
- 'context' => 'advanced',
- 'priority' => 'default',
- 'autosave' => true,
- 'validation' => array(
- 'rules' => array(
- 'examination_test_centres' =>array(
- 'required' => true
- ),
- 'application_enrolled_course' =>array(
- 'required' => true
- ),
- 'application_personal_full_name'=>array(
- 'required' => true
- ),
- 'application_personal[first_name]' => array('required' => true),
- 'application_personal[last_name]' => array('required' => true),
- 'application_personal[mothers_name]' => array('required' => true),
- 'application_personal[xii_marksheet_full_name]' => array('required' => true),
- 'application_personal[gender]' => array('required' => true),
- 'application_personal[marital_status]' => array('required' => true),
- 'application_personal[date_of_birth]'=>array('required' => true),
- 'application_personal[place_of_birth]'=>array('required' => true),
- 'application_personal[nationality]'=>array(
- 'required' => true
- ),
- 'application_personal[personal_identification_mark]' => array('required' => true,),
- 'application_communication[address]'=>array('required' => true),
- 'application_communication[country]'=>array('required' => true),
- 'application_communication[city]'=>array('required' => true),
- 'application_communication[state]'=>array('required' => true),
- 'application_communication[pin]'=>array('required' => true),
- 'application_communication_email'=>array('required' => true),
- 'application_communication[mobile]'=>array(
- 'required' => true,
- 'checkmobileno' => true,
- ),
- 'application_communication_email'=>array('required' => true),
- 'application_user_secret'=>array('required' => true),
- 'application_guardias_particulars[name_of_father]'=>array('required' => true),
- 'application_guardias_particulars[parents_occupation]'=>array('required' => true),
- 'application_guardias_particulars[address]'=>array('required' => true),
- 'application_guardias_particulars[country]'=>array('required' => true),
- 'application_guardias_particulars[city]'=>array('required' => true),
- 'application_guardias_particulars[state]'=>array('required' => true),
- 'application_guardias_particulars[pin]'=>array('required' => true),
- 'application_guardias_particulars[mobile]'=>array('required' => true),
- 'application_guardias_particulars[parents_email]'=>array('required' => true),
- 'application_academic_record[class_x][year_of_passing]'=>array('required' => true),
- 'application_academic_record[class_x][board]'=>array('required' => true),
- 'application_academic_record[class_x][school]'=>array('required' => true),
- 'application_academic_record[class_x][city]'=>array('required' => true),
- 'application_academic_record[class_x][english]'=>array('required' => true),
- 'application_academic_record[class_x][aggregate_percentage]'=>array('required' => true),
- 'application_academic_record[class_xii][year_of_passing]'=>array('required' => true),
- 'application_academic_record[class_xii][board]'=>array('required' => true),
- 'application_academic_record[class_xii][school]'=>array('required' => true),
- 'application_academic_record[class_xii][city]'=>array('required' => true),
- 'application_academic_record[class_xii][english]'=>array('required' => true),
- 'application_academic_record[class_xii][aggregate_percentage]'=>array('required' => false),
- 'application_academic_record[class_xii][institution_code]'=>array('required' => true),
- 'application_academic_record[class_xii][address_of_school_college]'=>array('required' => true),
- 'application_academic_record[class_xii][pin]'=>array('required' => true),
- 'application_academic_record[class_xii][school_email]'=>array('required' => true),
- 'application_academic_record[class_xii][institution_code]'=>array('required' => true),
- 'application_academic_record[class_xii][address_of_school_college]'=>array('required' => true),
- 'application_academic_record[class_xii][pin]'=>array('required' => true),
- 'application_academic_record[class_xii][school_email]'=>array('required' => true),
- 'academic_record_class_xii_year_of_passing'=>array(
- 'checkXIIAllfieldsEmpty' => true
- ),
- 'academic_record_class_xii_board'=>array(
- 'checkXIIAllfieldsEmpty' => true
- ),
- 'academic_record_class_xii_english'=>array(
- 'checkXIIAllfieldsEmpty' => true
- ),
- 'academic_record_class_xii_aggregate_percentage'=>array(
- 'checkXIIAllfieldsEmpty' => true
- ),
- 'application_your_wish_before_joining'=>array(
- 'required' => true
- ),
- 'application_degree_is_good_option'=>array(
- 'required' => true
- ),
- 'your_wish'=>array(
- 'required' => true
- ),
- 'what_are_your_hobbies'=>array(
- 'required' => true
- ),
- 'what_are_your_strengths'=>array(
- 'required' => true
- ),
- 'what_are_your_weaknesses'=>array(
- 'required' => true
- ),
- 'meet_the_expenses[]'=>array(
- 'required' => true
- ),
- 'academic_record_class_x_year_of_passing' =>array(
- 'yeardifference' => true
- ),
- 'application_declaration'=>array( 'required' => true ),
- ),
- 'messages' => array(
- 'academic_record_class_xii_year_of_passing' => array(
- 'yeardifference' => 'The difference passing year between Class X year & Class XII should be at least 2 years'
- ),
- ),
- ),
- 'fields' => array(
- array(
- 'id' => 'application_current_year',
- 'type' => 'hidden',
- // Hidden field must have predefined value
- 'std' => $currentyear,
- ),
- array(
- 'id' => 'application_verification_id',
- 'type' => 'hidden',
- // Hidden field must have predefined value
- 'std' => $currentyear,
- ),
- array(
- 'id' => 'application_enrolled_course',
- 'type' => 'select',
- 'name' => __( 'SELECT COURSE: ', 'tmi'),
- 'required' => true,
- 'columns' => 6,
- 'size' => 75,
- 'options' => $course_list,
- ),
- array(
- 'id' => 'examination_test_centre',
- 'type' => 'select',
- 'name' => __( 'Select Test Centre: ', 'tmi'),
- 'required' => true,
- 'columns' => 6,
- 'size' => 75,
- 'options' => $test_centres,
- ),
- array(
- 'type' => 'divider',
- ),
- array(
- 'id' => 'application_personal',
- 'name' => __( 'PERSONAL PARTICULARS: ', 'tmi' ),
- // Group field
- 'type' => 'group',
- // Clone whole group?
- 'clone' => false,
- 'columns' => 12,
- 'collapsible' => false,
- // Sub-fields
- 'fields' => array(
- array(
- 'id' => 'first_name',
- 'type' => 'text',
- 'name' => __( 'First Name: ', 'tmi' ),
- 'attributes' => array(
- 'pattern' => $pattern_name_no_space,
- ),
- 'required' => true,
- 'columns' => 4,
- ),
- array(
- 'id' => 'last_name',
- 'type' => 'text',
- 'name' => __( 'Surname: ', 'tmi' ),
- 'attributes' => array(
- 'pattern' => $pattern_name_no_space,
- ),
- 'required' => true,
- 'columns' => 4,
- ),
- array(
- 'id' => 'middle_name',
- 'type' => 'text',
- 'name' => __( 'Middle Name: ', 'tmi' ),
- 'attributes' => array(
- 'pattern' => $pattern_name_no_space,
- ),
- 'required' => false,
- 'columns' => 4,
- ),
- array(
- 'id' => 'mothers_name',
- 'type' => 'text',
- 'name' => __( 'Mother Name: ', 'tmi' ),
- 'attributes' => array(
- 'pattern' => $pattern_name_with_space,
- ),
- 'required' => true,
- 'size' => 100,
- 'columns' => 12,
- ),
- array(
- 'id' => 'xii_marksheet_full_name',
- 'type' => 'text',
- 'name' => __( 'Full Name as on Class XII Marksheet/Pass Certificate: ', 'tmi' ),
- 'attributes' => array(
- 'pattern' => $pattern_name_with_space,
- ),
- 'required' => true,
- 'size' => 100,
- 'columns' => 12,
- ),
- array(
- 'id' => 'gender',
- 'name' => __( 'Gender: ', 'tmi' ),
- 'type' => 'radio',
- 'placeholder' => '',
- 'options' => array(
- '1' => 'Male',
- '2' => 'Female',
- ),
- 'std' => '1',
- 'collapse' => false,
- 'required' => true,
- 'columns' => 6,
- ),
- array(
- 'id' => 'marital_status',
- 'name' => __( 'Marital Status: ', 'tmi' ),
- 'type' => 'radio',
- 'attributes' => array(
- 'class' => 'application_marital_status',
- 'data-rule-checkmarital' => "true",
- ),
- 'placeholder' => '',
- 'options' => array(
- '1' => 'Single',
- '2' => 'Married',
- ),
- 'inline' => true,
- 'std' => '1',
- 'collapse' => false,
- 'columns' => 6,
- ),
- array(
- 'id' => 'date_of_birth',
- 'type' => 'date',
- 'name' => __( 'Date of Birth: ', 'tmi' ),
- 'js_options' => array(
- 'dateFormat' => 'mm/dd/yy',
- 'minDate' => $birth_date_range_start_from, // 24 years less
- 'maxDate' => "-18Y", // 6 years less
- 'yearRange' => "$birth_year_range_start:$birth_year_range_stop",
- 'changeMonth' => true,
- 'changeYear' => true,
- ),
- 'attributes' => array(
- 'required' => true,
- 'readonly' => true,
- ),
- 'columns' => 6,
- ),
- array(
- 'id' => 'nationality',
- 'type' => 'text',
- 'name' => __( 'Nationality: ', 'tmi' ),
- 'attributes' => array(
- 'pattern' => $pattern_name_no_space,
- 'maxlength' => 11,
- ),
- 'required' => true,
- 'columns' => 6,
- ),
- array(
- 'id' => 'place_of_birth',
- 'type' => 'text',
- 'name' => __( 'Place of Birth: ', 'tmi' ),
- 'attributes' => array(
- 'pattern' => $pattern_school_name,
- 'maxlength' => 11,
- ),
- 'required' => true,
- 'columns' => 6,
- ),
- array(
- 'id' => 'personal_identification_mark',
- 'type' => 'text',
- 'name' => __( 'Personal Identification mark: ', 'tmi' ),
- 'attributes' => array(
- 'pattern' => $pattern_name_with_space,
- ),
- 'required' => true,
- 'columns' => 6,
- ),
- array(
- 'id' => 'blood_group',
- 'type' => 'radio',
- 'inline' => true,
- 'name' => __( 'Blood Group: ', 'tmi'),
- 'options' => $blood_group_list,
- 'std' => '1',
- 'collapse' => false,
- 'required' => true,
- 'columns' => 12,
- ),
- array(
- 'id' => 'your_photograph',
- 'type' => 'image',
- 'name' => __( 'Upload your photograph: ', 'tmi' ),
- 'max_file_uploads' => '1',
- 'columns' => 4,
- ),
- array(
- 'id' => 'your_birth_certificate',
- 'type' => 'file',
- 'name' => __( 'Upload your Birth certificate: ', 'tmi' ),
- 'max_file_uploads' => '1',
- 'columns' => 4,
- ),
- array(
- 'id' => 'your_medical_report',
- 'type' => 'file',
- 'name' => __( 'Upload your Medical Document: ', 'tmi' ),
- 'max_file_uploads' => '1',
- 'columns' => 4,
- ),
- ),
- ),
- array(
- 'type' => 'divider',
- ),
- array(
- 'id' => 'application_communication',
- 'name' => __( 'Addresses For Communication', 'tmi' ),
- // Group field
- 'type' => 'group',
- // Clone whole group?
- 'clone' => false,
- 'collapsible' => false,
- // Sub-fields
- 'fields' => array(
- array(
- 'id' => 'address',
- 'type' => 'textarea',
- 'name' => __( 'Address: ', 'tmi'),
- 'attributes' => array(
- 'pattern' => $pattern_general,
- ),
- 'required' => true,
- 'size'=>100,
- 'columns' => 12,
- ),
- array(
- 'id' => 'country',
- 'type' => 'select',
- 'name' => __( 'Country: ', 'tmi'),
- 'required' => true,
- 'columns' => 4,
- 'std' => 'India',
- 'options' => $country_list,
- ),
- array(
- 'id' => 'state',
- 'type' => 'select',
- 'name' => __( 'State: ', 'tmi'),
- 'required' => true,
- 'columns' => 4,
- 'options' => $state_list,
- ),
- array(
- 'id' => 'city',
- 'type' => 'text',
- 'name' => __( 'City / District: ', 'tmi'),
- 'attributes' => array(
- 'pattern' => $pattern_name_with_space,
- ),
- 'required' => true,
- 'columns' => 4,
- ),
- array(
- 'type' => 'custom_html',
- 'columns' => 12,
- 'std' => '',
- ),
- array(
- 'id' => 'pin',
- 'type' => 'text',
- 'name' => __( 'PIN: ', 'tmi'),
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- 'maxlength' => '6',
- ),
- 'required' => true,
- 'columns' => 4,
- ),
- array(
- 'id' => 'tel_no_with_std_code',
- 'type' => 'text',
- 'desc' => '(Start STD code with zero)',
- 'name' => 'Telephone No. with STD code: ',
- 'attributes' => array(
- 'maxlength' => '15',
- ),
- 'columns' => 4,
- ),
- array(
- 'id' => 'mobile',
- 'type' => 'number',
- 'name' => __( 'Mobile: ', 'tmi'),
- 'required' => true,
- 'columns' => 4,
- 'attributes' => array(
- 'class' => 'input-no-spinner',
- 'pattern' => '.{10}',
- ),
- 'desc' => '(Do not start with zero. For foreign numbers write the ISD code as part of the number.)',
- ),
- array(
- 'id' => 'aadhar_card_number',
- 'type' => 'text',
- 'name' => __( 'Aadhar Card No.: ', 'tmi'),
- 'required' => false,
- 'columns' => 4,
- 'attributes' => array(
- 'pattern' => '.{12}',
- ),
- ),
- ),
- ),
- array(
- 'id' => 'application_communication_email',
- 'type' => 'email',
- 'name' => __( 'E-mail: ', 'tmi'),
- 'required' => true,
- 'columns' => 12,
- 'desc' => 'Enter a valid Email, The Email ID that you choose will enable you to Login / communicate with TMI about your application.',
- 'attributes' => array(
- 'data-rule-checkemailexists' => (!is_admin() ? "true" : "false"),
- ),
- ),
- array(
- 'type' => 'divider',
- ),
- array(
- 'id' => 'application_guardias_particulars',
- 'name' => __( 'Guardian\'s Particulars: ', 'tmi' ),
- // Group field
- 'type' => 'group',
- 'clone' => false,
- 'collapsible' => false,
- 'columns' => 12,
- 'fields' => array(
- array(
- 'id' => 'name_of_father',
- 'type' => 'text',
- 'name' => __( 'Name of Father/Guardian: ', 'tmi' ),
- 'attributes' => array(
- 'pattern' => $pattern_name_with_space,
- 'maxlength' => 35,
- ),
- 'required' => true,
- 'columns' => 6,
- ),
- array(
- 'id' => 'parent_date_of_birth',
- 'type' => 'date',
- 'name' => __( 'Parents Date of Birth: ', 'tmi' ),
- 'js_options' => array(
- 'dateFormat' => 'mm/dd/yy',
- 'minDate' => "-72Y", // 24 years less
- 'maxDate' => "-25Y", // 6 years less
- 'yearRange' => "$parents_birth_year_range_start:$parents_birth_year_range_stop",
- 'changeMonth' => true,
- 'changeYear' => true,
- ),
- 'attributes' => array(
- 'required' => true,
- 'readonly' => true,
- ),
- 'columns' => 6,
- ),
- array(
- 'id' => 'parents_occupation',
- 'type' => 'text',
- 'name' => __( 'Father\'s/Guardian\'s Occupation/Designation: ', 'tmi' ),
- 'attributes' => array(
- 'pattern' => $pattern_general,
- 'maxlength' => 35,
- ),
- 'required' => true,
- 'columns' => 6,
- ),
- array(
- 'type' => 'custom_html',
- 'columns' => 12,
- 'std' => '<strong>Father\'s/Guardian\'s Office</strong>:',
- ),
- array(
- 'id' => 'address',
- 'type' => 'textarea',
- 'name' => __( 'Address: ', 'tmi'),
- 'attributes' => array(
- 'pattern' => $pattern_general,
- ),
- 'required' => true,
- 'columns' => 12,
- ),
- array(
- 'type' => 'custom_html',
- 'columns' => 12,
- 'std' => '',
- ),
- array(
- 'id' => 'country',
- 'type' => 'select',
- 'name' => __( 'Country: ', 'tmi'),
- 'required' => true,
- 'columns' => 6,
- 'std' => 'India',
- 'options' => $country_list,
- ),
- array(
- 'id' => 'state',
- 'type' => 'select',
- 'name' => __( 'State: ', 'tmi'),
- 'required' => true,
- 'columns' => 6,
- 'options' => $state_list,
- ),
- array(
- 'id' => 'city',
- 'type' => 'text',
- 'name' => __( 'City / District: ', 'tmi'),
- 'attributes' => array(
- 'pattern' => $pattern_name_with_space,
- ),
- 'required' => true,
- 'columns' => 6,
- ),
- array(
- 'id' => 'pin',
- 'type' => 'text',
- 'name' => __( 'PIN: ', 'tmi'),
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- 'maxlength' => '6',
- ),
- 'required' => true,
- 'columns' => 6,
- ),
- array(
- 'id' => 'tel_no_with_std_code',
- 'type' => 'number',
- 'desc' => '(Start STD code with zero.)',
- 'name' => 'Telephone No. with STD code: ',
- 'attributes' => array(
- 'class' => 'input-no-spinner',
- 'maxlength' => '15',
- ),
- 'columns' => 6,
- ),
- array(
- 'id' => 'mobile',
- 'type' => 'number',
- 'name' => __( 'Mobile: ', 'tmi'),
- 'required' => true,
- 'columns' => 6,
- 'attributes' => array(
- 'class' => 'input-no-spinner',
- 'pattern' => '.{10}',
- ),
- 'desc' => '(Do not start with zero. For foreign numbers write the ISD code as part of the number.)',
- ),
- array(
- 'id' => 'fax',
- 'type' => 'number',
- 'desc' => '(Start STD code with zero.)',
- 'name' => 'Fax: ',
- 'attributes' => array(
- 'class' => 'input-no-spinner',
- 'maxlength' => '15',
- ),
- 'columns' => 6,
- ),
- array(
- 'id' => 'parents_email',
- 'type' => 'email',
- 'name' => __( 'E-mail: ', 'tmi'),
- 'required' => true,
- 'columns' => 6,
- 'desc' => '(Enter a valid Email address.)',
- ),
- ),
- ),
- array(
- 'type' => 'divider',
- ),
- array(
- 'id' => 'application_academic_record',
- 'name' => __( 'ACADEMIC RECORD: ', 'tmi' ),
- // Group field
- 'type' => 'group',
- 'clone' => false,
- 'collapsible' => false,
- 'columns' => 12,
- 'fields' => array(
- array(
- 'id' => 'class_x',
- 'name' => __( 'Class X:-', 'tmi' ),
- // Group field
- 'type' => 'group',
- 'clone' => false,
- 'collapsible' => false,
- 'columns' => 6,
- 'fields' => array(
- array(
- 'id' => 'year_of_passing',
- 'type' => 'select',
- 'name' => __( 'Year of Passing: ', 'tmi'),
- 'class' => 'x_passing',
- 'required' => true,
- 'columns' => 12,
- 'options' => $strclassx_yearofpassing,
- ),
- array(
- 'id' => 'board',
- 'type' => 'select',
- 'name' => __( 'Board: ', 'tmi'),
- 'required' => true,
- 'columns' => 12,
- 'options' => $board_list,
- ),
- array(
- 'id' =>'school',
- 'type' => 'text',
- 'name' => __( 'School: ', 'tmi'),
- 'columns' => 12,
- 'size' => 50,
- 'attributes' => array(
- 'pattern' => $pattern_school_name,
- ),
- 'required' => true,
- ),
- array(
- 'id' => 'city',
- 'type' => 'text',
- 'name' => __( 'City: ', 'tmi'),
- 'attributes' => array(
- 'pattern' => $pattern_name_with_space,
- ),
- 'required' => true,
- 'columns' => 12,
- ),
- array(
- 'id' => 'english',
- 'type' => 'number',
- 'min' => 0,
- 'max' => 100,
- 'name' => __( 'English:% ', 'tmi'),
- 'attributes' => array(
- 'maxlength' => 3,
- 'size' => 30,
- ),
- 'required' => true,
- 'columns' => 12,
- ),
- array(
- 'id' => 'aggregate_percentage',
- 'type' => 'number',
- 'min' => 0,
- 'max' => 100,
- 'desc' => 'for all subjects',
- 'attributes' => array(
- 'maxlength' => 3,
- ),
- 'name' => __( 'Percentage of Marks Secured (Aggregate): ', 'tmi'),
- 'required' => true,
- 'columns' => 12,
- ),
- array(
- 'id' => 'class_x_marksheet',
- 'type' => 'file',
- 'name' => __( 'Upload your 10th marksheet: ', 'tmi' ),
- 'desc' => ' ',
- 'max_file_uploads' => '1',
- 'columns' => 12,
- ),
- array(
- 'id' => 'school_leaving_certificate',
- 'type' => 'file',
- 'name' => __( 'Upload your school leaving certificate: ', 'tmi' ),
- 'max_file_uploads' => '1',
- 'columns' => 12,
- ),
- ),
- ),
- array(
- 'id' => 'class_xii',
- 'name' => __( 'Class XII:-', 'tmi' ),
- // Group field
- 'type' => 'group',
- 'clone' => false,
- 'collapsible' => false,
- 'class' => 'xii-class-details',
- 'columns' => 6,
- 'fields' => array(
- array(
- 'id' => 'year_of_passing',
- 'type' => 'select',
- 'name' => __( 'Year of Passing: ', 'tmi'),
- 'class' => 'ClassXII xii_passing',
- 'attributes' => array(
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'data-rule-yeardifference' => array('#academic_record_class_x_year_of_passing', '2', 'greater than'),
- 'concession' => '0',
- ),
- 'columns' => 12,
- 'options' => $strclassx_yearofpassing,
- ),
- array(
- 'id' => 'board',
- 'type' => 'select',
- 'name' => __( 'Board: ', 'tmi'),
- 'columns' => 12,
- 'class' => 'ClassXII',
- 'attributes' => array(
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- ),
- 'options' => $board_list,
- ),
- array(
- 'id' =>'school',
- 'type' => 'text',
- 'name' => __( 'School/College Name: ', 'tmi'),
- 'class' => 'ClassXII',
- 'size' => 50,
- 'columns' => 12,
- 'attributes' => array(
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'pattern' => $pattern_school_name,
- ),
- 'required' => true,
- ),
- array(
- 'id' => 'city',
- 'type' => 'text',
- 'name' => __( 'City: ', 'tmi'),
- 'class' => 'ClassXII',
- 'attributes' => array(
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'pattern' => $pattern_name_with_space,
- ),
- 'required' => true,
- 'columns' => 12,
- ),
- array(
- 'id' =>'roll_number',
- 'type' => 'text',
- 'name' => __( 'Board Roll No./Seat No.: ', 'tmi'),
- 'size' => 25,
- 'columns' => 12,
- 'attributes' => array(
- 'pattern' => $pattern_general,
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- ),
- 'required' => false,
- ),
- array(
- 'id' => 'aggregate_percentage',
- 'type' => 'number',
- 'min' => 0,
- 'max' => 100,
- 'desc' => 'for all subjects.Note: If you do not know you class XII marks at this time, please leave the section blank and submit the 10+2 marksheet (which contains PCM marks) to TMI immediately after declaration of results by post/fax/courier/email. You can also fill up the marks online by logging in and updating this form later.',
- 'class' => 'ClassXII',
- 'attributes' => array(
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'maxlength' => 3,
- ),
- 'name' => __( 'Percentage of Marks Secured (Aggregate): ', 'tmi'),
- 'columns' => 12,
- ),
- array(
- 'id' => 'institution_code',
- 'type' => 'text',
- 'name' => __( 'School/College Code: ', 'tmi'),
- 'class' => 'ClassXII',
- 'attributes' => array(
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'pattern' => $pattern_name_number,
- ),
- 'required' => true,
- 'columns' => 12,
- ),
- array(
- 'id' => 'address_of_school_college',
- 'type' => 'textarea',
- 'class' => 'ClassXII',
- 'name' => __( 'Address of School/College: ', 'tmi'),
- 'attributes' => array(
- 'pattern' => $pattern_general,
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- ),
- 'required' => true,
- 'columns' => 12,
- ),
- array(
- 'id' => 'pin',
- 'type' => 'text',
- 'name' => __( 'PIN: ', 'tmi'),
- 'class' => 'ClassXII',
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'maxlength' => '6',
- ),
- 'required' => true,
- 'columns' => 12,
- ),
- array(
- 'id' => 'contact_numbers',
- 'type' => 'text',
- 'label_description' => '',
- 'name' => 'Contact Nos: ',
- 'attributes' => array(
- 'pattern' => $pattern_contact_nos_list,
- 'class' => 'input-no-spinner',
- 'maxlength' => '65',
- ),
- 'size' => 50,
- 'columns' => 12,
- ),
- array(
- 'id' => 'school_email',
- 'type' => 'email',
- 'class' => 'ClassXII',
- 'name' => __( 'E-mail: ', 'tmi'),
- 'required' => true,
- 'columns' => 12,
- 'size' => 50,
- 'attributes' => array(
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- ),
- ),
- ),
- ),
- array(
- 'type' => 'divider',
- ),
- array(
- 'id' => 'marks_10_2',
- 'name' => __( 'Details of Marks Secured in (10+2) Examination: ', 'tmi' ),
- // Group field
- 'type' => 'group',
- 'class' => 'xii-marks-table-group',
- 'clone' => false,
- 'label_description' => 'Note: If you do not know you class XII marks at this time, please leave the section blank and submit the 10+2 marksheet (which contains PCM marks) to TMI immediately after declaration of results by post/fax/courier/email. You can also fill up the marks online by logging in and updating this form later.',
- 'collapsible' => false,
- 'columns' => 12,
- 'fields' => array(
- array(
- 'type' => 'heading',
- 'name' => '<strong>Subjects</strong>',
- 'columns' => 3,
- ),
- array(
- 'type' => 'heading',
- 'name' => '<strong>Maximum Marks</strong>',
- 'columns' => 3,
- ),
- array(
- 'type' => 'heading',
- 'name' => '<strong>Marks Secured</strong>',
- 'columns' => 3,
- ),
- array(
- 'type' => 'heading',
- 'name' => '<strong>Percentage (%)</strong>',
- 'columns' => 3,
- ),
- array(
- 'type' => 'custom_html',
- 'name' => 'Physics',
- 'columns' => 3,
- ),
- array(
- 'id' => 'max_marks_physics_10_2',
- 'type' => 'number',
- 'class' => 'ClassXII',
- 'attributes' => array(
- 'maxlength' => 3,
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'readonly' => true,
- ),
- 'min' => 0,
- 'columns' => 3,
- ),
- array(
- 'id' => 'marks_physics_10_2',
- 'type' => 'number',
- 'class' => 'ClassXII inputXiiMarks',
- 'attributes' => array (
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'MaxMarks' => "100",
- 'maxlength' => 3,
- ),
- 'min' => 0,
- 'columns' => 3,
- ),
- array(
- 'id' => 'marks_physics_percentage_10_2',
- 'type' => 'text',
- 'class' => 'ClassXII',
- 'attributes' => array (
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'maxlength' => 5,
- 'readonly' => true,
- ),
- 'columns' => 3,
- ),
- array(
- 'type' => 'custom_html',
- 'name' => 'Chemistry',
- 'columns' => 3,
- ),
- array(
- 'id' => 'max_marks_chemistry_10_2',
- 'type' => 'number',
- 'class' => 'ClassXII',
- 'attributes' => array (
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'maxlength' => 3,
- 'readonly' => true,
- ),
- 'min' => 0,
- 'columns' => 3,
- ),
- array(
- 'id' => 'marks_chemistry_10_2',
- 'type' => 'number',
- 'class' => 'ClassXII inputXiiMarks',
- 'attributes' => array (
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'MaxMarks' => "100",
- 'maxlength' => 3,
- ),
- 'min' => 0,
- 'columns' => 3,
- ),
- array(
- 'id' => 'marks_chemistry_percentage_10_2',
- 'type' => 'text',
- 'class' => 'ClassXII',
- 'attributes' => array (
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'maxlength' => 5,
- 'readonly' => true,
- ),
- 'columns' => 3,
- ),
- array(
- 'type' => 'custom_html',
- 'name' => 'Mathematics',
- 'columns' => 3,
- ),
- array(
- 'id' => 'max_marks_maths_10_2',
- 'type' => 'number',
- 'class' => 'ClassXII',
- 'attributes' => array (
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'maxlength' => 3,
- 'readonly' => true,
- ),
- 'min' => 0,
- 'columns' => 3,
- ),
- array(
- 'id' => 'marks_maths_10_2',
- 'type' => 'number',
- 'class' => 'ClassXII inputXiiMarks',
- 'attributes' => array (
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'MaxMarks' => "100",
- 'maxlength' => 3,
- ),
- 'min' => 0,
- 'columns' => 3,
- ),
- array(
- 'id' => 'marks_maths_percentage_10_2',
- 'type' => 'text',
- 'class' => 'ClassXII',
- 'attributes' => array (
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'maxlength' => 5,
- 'readonly' => true,
- ),
- 'columns' => 3,
- ),
- array(
- 'type' => 'divider',
- 'columns' => 12,
- ),
- array(
- 'type' => 'custom_html',
- 'name' => 'Physics, Chemistry & Mathematics combined Percentage: ',
- 'desc' => 'Please fill all fields of 12th, if done or do not fill any fields.',
- 'columns' => 9,
- ),
- array(
- 'id' => 'marks_total_10_2',
- 'type' => 'text',
- 'class' => 'ClassXII classXiiTotalPercentage',
- 'attributes' => array (
- 'data-rule-checkXIIAllfieldsEmpty' => "true",
- 'maxlength' => 5,
- 'readonly' => true,
- ),
- 'columns' => 3,
- ),
- array(
- 'type' => 'custom_html',
- 'name' => '',
- 'columns' => 12,
- ),
- array(
- 'id' => 'class_xii_marksheet',
- 'type' => 'file',
- 'name' => __( 'Upload your 12th marksheet: ', 'tmi' ),
- 'desc' => __( 'Your document can be in pdf format.', 'tmi' ),
- 'max_file_uploads' => '1',
- 'columns' => 12,
- ),
- ),
- ),
- ),
- ),
- array(
- 'id' => 'imu_cet_application_number',
- 'type' => 'text',
- 'name' => __( 'IMU CET Application Number: ', 'tmi'),
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- ),
- 'required' => false,
- 'columns' => 12,
- ),
- array(
- 'type' => 'divider',
- ),
- array(
- 'id' => 'sports_extra_curricular',
- 'name' => __( 'Sports & Extra Curricular Activities:', 'tmi' ),
- // Group field
- 'label_description' => 'Achievements in Sports and Extra Curricular Activities
- (Please indicate the activities you have participated in, at what level & the awards received):',
- 'type' => 'group',
- 'class' => 'sports-achivement',
- 'clone' => false,
- 'collapsible' => false,
- 'columns' => 12,
- 'fields' => array(
- array(
- 'type' => 'heading',
- 'name' => '<strong>Month / Year (MM/YYYY)</strong>',
- 'columns' => 3,
- ),
- array(
- 'type' => 'heading',
- 'name' => '<strong>Sport/Activity</strong>',
- 'columns' => 3,
- ),
- array(
- 'type' => 'heading',
- 'name' => '<strong>Level of participation</strong>',
- 'columns' => 3,
- ),
- array(
- 'type' => 'heading',
- 'name' => '<strong>Position</strong>',
- 'columns' => 3,
- ),
- array(
- 'id' => 'month_year_1',
- 'type' => 'date',
- 'js_options' => array(
- 'dateFormat' => 'mm/yy',
- 'changeYear' => true,
- 'minDate' => "-10Y", // 10 years less
- 'changeMonth' => true,
- ),
- 'attributes' => array(
- 'readonly' => true,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'sports_activity_1',
- 'type' => 'text',
- 'attributes' => array (
- 'pattern' => $pattern_name_number,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'participation_level_1',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'position_1',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'month_year_2',
- 'type' => 'date',
- 'js_options' => array(
- 'dateFormat' => 'mm/yy',
- 'changeYear' => true,
- 'minDate' => "-10Y", // 10 years less
- 'changeMonth' => true,
- ),
- 'attributes' => array(
- 'class' => 'grpsports',
- 'readonly' => true,
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'sports_activity_2',
- 'type' => 'text',
- 'attributes' => array (
- 'pattern' => $pattern_name_number,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'participation_level_2',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'position_2',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'month_year_3',
- 'type' => 'date',
- 'js_options' => array(
- 'dateFormat' => 'mm/yy',
- 'changeYear' => true,
- 'minDate' => "-10Y", // 10 years less
- 'changeMonth' => true,
- ),
- 'attributes' => array(
- 'readonly' => true,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'sports_activity_3',
- 'type' => 'text',
- 'attributes' => array (
- 'pattern' => $pattern_name_number,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'participation_level_3',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'position_3',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'month_year_4',
- 'type' => 'date',
- 'js_options' => array(
- 'dateFormat' => 'mm/yy',
- 'changeYear' => true,
- 'minDate' => "-10Y", // 10 years less
- 'changeMonth' => true,
- ),
- 'attributes' => array(
- 'readonly' => true,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'sports_activity_4',
- 'type' => 'text',
- 'attributes' => array (
- 'pattern' => $pattern_name_number,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'participation_level_4',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- array(
- 'id' => 'position_4',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- 'class' => 'grpsports',
- ),
- 'columns' => 3,
- ),
- ),
- ),
- array(
- 'type' => 'custom_html',
- 'name' => '',
- ),
- array(
- 'type' => 'divider',
- ),
- array(
- 'id' => 'vocational_and_training_courses',
- 'name' => __( 'Vocational and Training Courses undertaken, if any:', 'tmi' ),
- // Group field
- 'type' => 'group',
- 'class' => 'work-experience',
- 'clone' => false,
- 'collapsible' => false,
- 'columns' => 12,
- 'fields' => array(
- array(
- 'type' => 'heading',
- 'name' => '<strong>Month / Year (MM/YYYY)</strong>',
- 'columns' => 4,
- ),
- array(
- 'type' => 'heading',
- 'name' => '<strong>Course</strong>',
- 'columns' => 4,
- ),
- array(
- 'type' => 'heading',
- 'name' => '<strong>Course duration</strong>',
- 'columns' => 4,
- ),
- array(
- 'id' => 'month_year_1',
- 'type' => 'date',
- 'js_options' => array(
- 'dateFormat' => 'mm/yy',
- 'changeYear' => true,
- 'minDate' => "-10Y", // 10 years less
- 'changeMonth' => true,
- ),
- 'attributes' => array(
- 'readonly' => true,
- 'class' => 'workexperience',
- ),
- 'columns' => 4,
- ),
- array(
- 'id' => 'course_1',
- 'type' => 'text',
- 'attributes' => array (
- 'pattern' => $pattern_name_number,
- 'class' => 'workexperience',
- ),
- 'columns' => 4,
- ),
- array(
- 'id' => 'course_duration_1',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- 'class' => 'workexperience',
- ),
- 'columns' => 4,
- ),
- array(
- 'id' => 'month_year_2',
- 'type' => 'date',
- 'js_options' => array(
- 'dateFormat' => 'mm/yy',
- 'changeYear' => true,
- 'minDate' => "-10Y", // 10 years less
- 'changeMonth' => true,
- ),
- 'attributes' => array(
- 'readonly' => true,
- 'class' => 'workexperience',
- ),
- 'columns' => 4,
- ),
- array(
- 'id' => 'course_2',
- 'type' => 'text',
- 'attributes' => array (
- 'pattern' => $pattern_name_number,
- 'class' => 'workexperience',
- ),
- 'columns' => 4,
- ),
- array(
- 'id' => 'course_duration_2',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- 'class' => 'workexperience',
- ),
- 'columns' => 4,
- ),
- array(
- 'id' => 'month_year_3',
- 'type' => 'date',
- 'js_options' => array(
- 'dateFormat' => 'mm/yy',
- 'changeYear' => true,
- 'minDate' => "-10Y", // 10 years less
- 'changeMonth' => true,
- ),
- 'attributes' => array(
- 'readonly' => true,
- 'class' => 'workexperience',
- ),
- 'columns' => 4,
- ),
- array(
- 'id' => 'course_3',
- 'type' => 'text',
- 'attributes' => array (
- 'pattern' => $pattern_name_number,
- 'class' => 'workexperience',
- ),
- 'columns' => 4,
- ),
- array(
- 'id' => 'course_duration_3',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_name_number,
- 'class' => 'workexperience',
- ),
- 'columns' => 4,
- ),
- array(
- 'id' => 'month_year_4',
- 'type' => 'date',
- 'js_options' => array(
- 'dateFormat' => 'mm/yy',
- 'changeYear' => true,
- 'minDate' => "-10Y", // 10 years less
- 'changeMonth' => true,
- ),
- 'attributes' => array(
- 'class' => 'workexperience',
- 'readonly' => true,
- ),
- 'columns' => 4,
- ),
- array(
- 'id' => 'course_4',
- 'type' => 'text',
- 'attributes' => array (
- 'pattern' => $pattern_name_number,
- 'class' => 'workexperience',
- ),
- 'columns' => 4,
- ),
- array(
- 'id' => 'course_duration_4',
- 'type' => 'text',
- 'attributes' => array(
- 'class' => 'workexperience',
- 'pattern' => $pattern_name_number,
- ),
- 'columns' => 4,
- ),
- ),
- ),
- array(
- 'type' => 'divider',
- ),
- array(
- 'id' => 'application_your_wish_before_joining',
- 'type' => 'textarea',
- 'attributes' => array(
- 'pattern' => $pattern_general,
- ),
- 'name' => 'How do you intend spending your time after completing class XII Final exams and before joining college ?: ',
- 'required' => true,
- 'cols' => 100,
- 'columns' => 12,
- ),
- array(
- 'id' => 'application_degree_is_good_option',
- 'type' => 'textarea',
- 'attributes' => array(
- 'pattern' => $pattern_general,
- ),
- 'name' => 'Why do you think your degree in Marine Engeneering/Nautical Science is good option for you?: ',
- 'required' => true,
- 'cols' => 100,
- 'columns' => 12,
- ),
- array(
- 'id' => 'your_wish',
- 'type' => 'textarea',
- 'attributes' => array(
- 'pattern' => $pattern_general,
- ),
- 'name' => 'Why do you wish to join TMI?: ',
- 'required' => true,
- 'cols' => 50,
- 'columns' => 6,
- ),
- array(
- 'id' => 'what_are_your_hobbies',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_general,
- ),
- 'name' => 'What are your hobbies?: ',
- 'required' => true,
- 'size' => 50,
- 'columns' => 6,
- ),
- array(
- 'id' => 'what_are_your_strengths',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_general,
- ),
- 'name' => 'What are your strengths?: ',
- 'required' => true,
- 'size' => 50,
- 'columns' => 6,
- ),
- array(
- 'id' => 'what_are_your_weaknesses',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_general,
- ),
- 'name' => 'What are your weaknesses?: ',
- 'required' => true,
- 'size' => 50,
- 'columns' => 6,
- ),
- array(
- 'type' => 'divider',
- ),
- array(
- 'id' => 'meet_the_expenses',
- 'type' => 'checkbox_list',
- 'inline' => true,
- 'options' => array(
- "Own Resources"=>"Own Resources",
- "Bank Loan"=>"Bank Loan",
- "Other"=>"Other",
- ),
- 'name' => 'How do you intend to meet the expenses of this program?: ',
- 'desc' => '<strong>Note: Please see website for details of bank loan facilities.</strong>',
- 'required' => true,
- 'columns' => 6,
- ),
- array(
- 'id' => 'meet_the_expenses_other',
- 'type' => 'text',
- 'attributes' => array(
- 'pattern' => $pattern_general,
- ),
- 'hidden' => array( 'meet_the_expenses', '!contains', 'Other' ),
- 'name' => 'Other (specify): ',
- 'required' => false,
- 'size' => 50,
- 'columns' => 6,
- ),
- array(
- 'type' => 'custom_html',
- 'name' => 'You are required to submit the letter as per <a href="http://www.tmi.tolani.edu/wp-content/uploads/2018/05/Format-for-Letter-reg-course-approval.pdf" target="_blank">attached format (Annex 1)</a>. It is to be printed on college/institute letterhead and to be submitted along with your application form<strong>Declaration</strong>',
- ),
- array(
- 'id' => 'application_declaration',
- 'type' => 'radio',
- 'required' => true,
- 'options' => array(
- '1' => __(" We hereby declare that all the statements made above are true and correct.")),
- 'attributes' => array(
- 'required' => true,
- 'class' => 'inline',
- ),
- 'collapse' => false,
- ),
- ),
- );
- if (is_admin()) {
- $meta_boxes[0]['fields'] = array_merge($meta_boxes[0]['fields'],$admin_fields);
- }
- return $meta_boxes;
- }
- add_filter( 'rwmb_meta_boxes', 'tmi_application_get_meta_box' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement