File "student_form.php"
Full Path: /home/ichhrkpd/public_html/idcm_old/application/views/student_form.php
File size: 41.31 KB
MIME-type: text/html
Charset: utf-8
<?php
$sl =1;
$msg = isset($msg)?$msg:'';
$msg_type = isset($msg_type)?$msg_type:'';
$this->session->UnsetFlashData();
$subToCodeArr = SubToCodeArr();
$SubToCodeArr_short = SubToCodeArr_short();
$opt_ids = $stdObj->opt_ids;
$opt_codes = array_search ($opt_ids, $subToCodeArr);
$isEdit = 'N';
if(!empty($stdObj->std_reg)){
$isEdit = 'Y';
}
$sub_ids_arr = array();
$sub_ids = '';
if(!empty($stdObj->sub_ids)){
$sub_ids = $stdObj->sub_ids;
}
$sub_ids_arr = explode (",", $sub_ids);
$selected_codesArr = array();
foreach($sub_ids_arr as $sa){
$selected_codes = array_search ($sa, $SubToCodeArr_short);
if(!empty($selected_codes)){
$selected_codesArr[] = $selected_codes;
}
}
?>
<div class="content-wrapper">
<section class="content-header">
<h1>
<?php
echo $title;
//GPrint($sub_ids_arr);
//GPrint($subToCodeArr);
//GPrint($SubToCodeArr_short);
//GPrint($selected_codesArr);
?>
</h1>
</section>
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<a href="<?php echo base_url().'admin/std_list/batch_id/'.$batch_id;?>" class="btn-sm btn-info pull-right"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back</a>
</div>
<div class="box-body">
<div class="row">
<form id="contactForm" action="<?php echo base_url()."admin/add_edit_std"?>" class="contact-form" method="post" role="form" >
<input type="hidden" name="batch_id" id="batch_id" value="<?php echo $batch_id; ?>">
<input type="hidden" name="batch_group" id="batch_group" value="<?php echo $batch_group; ?>">
<input type="hidden" name="isEdit" id="isEdit" value="<?php echo $isEdit; ?>">
<div class="col-md-6">
<div class="controls">
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label class="control-label" for="std_reg"><?php _e("Registration No."); ?></label>
<input <?php echo $isEdit == 'Y' ? 'readonly' : ''; ?> value="<?php echo $stdObj->std_reg; ?>" tabindex="1" pattern="[0-9]{10}" maxlength="10" autocomplete="off" id="std_reg" name="std_reg" class="form-control" placeholder="Registration No. *" required="required" data-error="Please enter valid Registration No..">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="std_session"><?php _e("Session"); ?></label>
<select name="std_session" id="std_session" class="form-control">
<option <?php echo $stdObj->std_session == '2017-2018' ? 'selected' : ''; ?> value="2017-2018">2017-2018</option>
<option <?php echo $stdObj->std_session == '2018-2019' ? 'selected' : ''; ?> value="2018-2019">2018-2019</option>
<option <?php echo $stdObj->std_session == '2019-2020' ? 'selected' : ''; ?> value="2019-2020">2019-2020</option>
<option <?php echo $stdObj->std_session == '2020-2021' ? 'selected' : ''; ?> value="2020-2021">2020-2021</option>
<option <?php echo $stdObj->std_session == '2021-2022' ? 'selected' : ''; ?> value="2021-2022">2021-2022</option>
<option <?php echo $stdObj->std_session == '2022-2023' ? 'selected' : ''; ?> value="2022-2023">2022-2023</option>
<option <?php echo $stdObj->std_session == '2023-2024' ? 'selected' : ''; ?> value="2023-2024">2023-2024</option>
<option <?php echo $stdObj->std_session == '2024-2025' ? 'selected' : ''; ?> value="2024-2025">2024-2025</option>
<option <?php echo $stdObj->std_session == '2025-2026' ? 'selected' : ''; ?> value="2025-2026">2025-2026</option>
<option <?php echo $stdObj->std_session == '2026-2027' ? 'selected' : ''; ?> value="2026-2027">2026-2027</option>
<option <?php echo $stdObj->std_session == '2027-2028' ? 'selected' : ''; ?> value="2027-2028">2027-2028</option>
</select>
</div>
<div class="form-group">
<label class="control-label" for="std_roll"><?php _e("Roll No."); ?></label>
<input value="<?php echo $stdObj->std_roll; ?>" tabindex="2" id="std_roll" type="text" maxlength="80" name="std_roll" class="form-control" placeholder="Roll *" required="required" data-error="Roll is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="name"><?php _e("Name"); ?></label>
<input value="<?php echo $stdObj->name; ?>" tabindex="2" id="name" type="text" maxlength="80" name="name" class="form-control" placeholder="Name *" required="required" data-error="Name is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="role"><?php _e("Gender"); ?></label>
<select tabindex="8" name="gender" id="gender" class="form-control">
<option <?php echo $stdObj->gender == 'M' ? 'selected' : ''; ?> value="M">Male</option>
<option <?php echo $stdObj->gender == 'F' ? 'selected' : ''; ?> value="F">Female</option>
</select>
</div>
<div class="form-group">
<label class="control-label" for="employer_address"><?php _e("Student Mobile"); ?></label>
<input value="<?php echo $stdObj->std_mobile; ?>" tabindex="6" id="std_mobile" type="text" maxlength="15" name="std_mobile" class="form-control" placeholder="Mobile *" required="required" data-error="Mobile is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="email"><?php _e("Email"); ?></label>
<input value="<?php echo $stdObj->email; ?>" tabindex="7" id="email" type="email" maxlength="100" autocomplete="off" name="email" class="form-control" placeholder="Email" data-error="Valid email is required.">
<div class="help-block with-errors"></div><div id="check_race_email" style="color: #a94442;"></div>
</div>
<div class="form-group">
<label class="control-label" for="fname"><?php _e("Father Name"); ?></label>
<input value="<?php echo $stdObj->fname; ?>" tabindex="5" autocomplete="off" style="margin-bottom: 0px !important;" id="fname" maxlength="80" name="fname" class="form-control" placeholder="Father Name *" required="required" data-error="Father Name is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="fname"><?php _e("Mother Name"); ?></label>
<input value="<?php echo $stdObj->mname; ?>" tabindex="5" autocomplete="off" style="margin-bottom: 0px !important;" id="mname" maxlength="80" name="mname" class="form-control" placeholder="Mother Name *" required="required" data-error="Father Name is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="guardian_name"><?php _e("Guardian Name"); ?></label>
<input value="<?php echo $stdObj->guardian_name; ?>" tabindex="7" id="guardian_name" type="text" maxlength="80" autocomplete="off" name="guardian_name" class="form-control" placeholder="Guardian Name *" required="required" data-error="Guardian Name is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="guardian_mobile"><?php _e("Guardian Mobile"); ?></label>
<input value="<?php echo $stdObj->guardian_mobile; ?>" tabindex="6" id="guardian_mobile" type="text" maxlength="15" name="guardian_mobile" class="form-control" placeholder="Guardian Mobile *" required="required" data-error="Guardian Mobile is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="permanent_address"><?php _e("Permanent Address"); ?></label>
<input value="<?php echo $stdObj->permanent_address; ?>" tabindex="7" id="permanent_address" type="text" maxlength="200" autocomplete="off" name="permanent_address" class="form-control" placeholder="Permanent Address *" required="required" data-error="Permanent Address is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="present_address"><?php _e("Present Address"); ?></label>
<input value="<?php echo $stdObj->present_address; ?>" tabindex="7" id="present_address" type="text" maxlength="200" autocomplete="off" name="present_address" class="form-control" placeholder="Present Address *" required="required" data-error="Present Address is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="dob"><?php _e("DoB"); ?></label>
<input value="<?php echo $stdObj->dob; ?>" tabindex="7" id="dob" type="text" maxlength="200" autocomplete="off" name="dob" class="form-control" placeholder="DoB *" required="required" data-error="DoB is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="ssc_equi"><?php _e("SSC/Equivalent"); ?></label>
<select name="ssc_equi" id="ssc_equi" class="form-control">
<option <?php echo $stdObj->ssc_equi == 'S' ? 'selected' : ''; ?> value="S">SSC</option>
<option <?php echo $stdObj->ssc_equi == 'D' ? 'selected' : ''; ?> value="D">Dakhil</option>
<option <?php echo $stdObj->ssc_equi == 'V' ? 'selected' : ''; ?> value="V">Vocational</option>
<option <?php echo $stdObj->ssc_equi == 'O' ? 'selected' : ''; ?> value="O">Others</option>
</select>
</div>
<div class="form-group">
<label class="control-label" for="ssc_equi"><?php _e("SSC Board"); ?></label>
<select name="ssc_board" id="ssc_board" class="form-control">
<option <?php echo $stdObj->ssc_board == 'dj' ? 'selected' : ''; ?> value="dj">Dinajpur</option>
<option <?php echo $stdObj->ssc_board == 'dh' ? 'selected' : ''; ?> value="dh">Dhaka</option>
<option <?php echo $stdObj->ssc_board == 'S' ? 'selected' : ''; ?> value="S">Sylhet</option>
<option <?php echo $stdObj->ssc_board == 'O' ? 'selected' : ''; ?> value="O">Others</option>
</select>
</div>
<div class="form-group">
<label class="control-label" for="passing_year"><?php _e("Passing Year"); ?></label>
<select name="passing_year" id="passing_year" class="form-control">
<option <?php echo $stdObj->passing_year == '2017' ? 'selected' : ''; ?> value="2017">2017</option>
<option <?php echo $stdObj->passing_year == '2018' ? 'selected' : ''; ?> value="2018">2018</option>
<option <?php echo $stdObj->passing_year == '2019' ? 'selected' : ''; ?> value="2019">2019</option>
<option <?php echo $stdObj->passing_year == '2020' ? 'selected' : ''; ?> value="2020">2020</option>
<option <?php echo $stdObj->passing_year == '2021' ? 'selected' : ''; ?> value="2021">2021</option>
<option <?php echo $stdObj->passing_year == '2022' ? 'selected' : ''; ?> value="2022">2022</option>
<option <?php echo $stdObj->passing_year == '2023' ? 'selected' : ''; ?> value="2023">2023</option>
<option <?php echo $stdObj->passing_year == '2024' ? 'selected' : ''; ?> value="2024">2024</option>
<option <?php echo $stdObj->passing_year == '2025' ? 'selected' : ''; ?> value="2025">2025</option>
<option <?php echo $stdObj->passing_year == '2026' ? 'selected' : ''; ?> value="2026">2026</option>
<option <?php echo $stdObj->passing_year == '2027' ? 'selected' : ''; ?> value="2027">2027</option>
<option <?php echo $stdObj->passing_year == '2028' ? 'selected' : ''; ?> value="2028">2028</option>
</select>
</div>
<div class="form-group">
<label class="control-label" for="cgpa"><?php _e("GPA"); ?></label>
<input value="<?php echo $stdObj->cgpa; ?>" tabindex="7" id="cgpa" type="text" maxlength="200" autocomplete="off" name="cgpa" class="form-control" placeholder="GPA *" required="required" data-error="GPA is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="cgpa"><?php _e("Comments"); ?></label>
<input value="<?php echo $stdObj->comments; ?>" tabindex="7" id="comments" type="text" maxlength="200" autocomplete="off" name="comments" class="form-control" placeholder="Comments" >
<div class="help-block with-errors"></div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<label class="control-label"><?php _e("Subject Selection"); ?></label>
<?php if($batch_group == 'A') {?>
<table id="example" class="table table-bordered table-hover">
<thead>
<tr>
<th class="text-center">Select</th>
<th class="text-center">Optional</th>
<th>Code</th>
<th>Title</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2" class="text-center"><input checked type="checkbox" disabled=""></td>
<td></td>
<td>101</td>
<td>Bangla 1st</td>
</tr>
<tr>
<td></td>
<td>102</td>
<td>Bangla 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input checked type="checkbox" disabled=""></td>
<td></td>
<td>107</td>
<td>English 1st</td>
</tr>
<tr>
<td></td>
<td>108</td>
<td>English 2nd</td>
</tr>
<tr>
<td class="text-center"><input checked type="checkbox" disabled=""></td>
<td></td>
<td>275</td>
<td>Information & Communication Technology</td>
</tr>
<tr>
<td colspan="4">Selective Subjects (Choose any 4)</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input checked type="checkbox" value="PHY" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
</td>
<td>174</td>
<td>Physics 1st</td>
</tr>
<tr>
<td>175</td>
<td>Physics 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input checked type="checkbox" value="CHE" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
</td>
<td>176</td>
<td>Chemistry 1st</td>
</tr>
<tr>
<td>177</td>
<td>Chemistry 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input <?php echo in_array('BIO', $selected_codesArr) ? 'checked' : ''; ?> type="checkbox" value="BIO" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
<input <?php echo $opt_codes == 'BIO' ? 'checked' : ''; ?> type="radio" name="opt_ids" id="opt_ids" value="BIO">
</td>
<td>178</td>
<td>Biology 1st</td>
</tr>
<tr>
<td>179</td>
<td>Biology 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input <?php echo in_array('HM', $selected_codesArr) ? 'checked' : ''; ?> type="checkbox" value="HM" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
<input <?php echo $opt_codes == 'HM' ? 'checked' : ''; ?> type="radio" name="opt_ids" id="opt_ids" value="HM">
</td>
<td>265</td>
<td>Higher Math 1st</td>
</tr>
<tr>
<td>266</td>
<td>Higher Math 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input <?php echo in_array('PSY', $selected_codesArr) ? 'checked' : ''; ?> type="checkbox" value="PSY" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
<input <?php echo $opt_codes == 'PSY' ? 'checked' : ''; ?> type="radio" name="opt_ids" id="opt_ids" value="PSY">
</td>
<td>123</td>
<td>Psychology 1st</td>
</tr>
<tr>
<td>124</td>
<td>Psychology 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input <?php echo in_array('GEO', $selected_codesArr) ? 'checked' : ''; ?> type="checkbox" value="GEO" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
<input <?php echo $opt_codes == 'GEO' ? 'checked' : ''; ?> type="radio" name="opt_ids" id="opt_ids" value="GEO">
</td>
<td>125</td>
<td>Geography 1st</td>
</tr>
<tr>
<td>126</td>
<td>Geography 2nd</td>
</tr>
</tbody>
</table>
<?php }?>
<?php if($batch_group == 'B') {?>
<table id="example" class="table table-bordered table-hover">
<thead>
<tr>
<th class="text-center">Select</th>
<th class="text-center">Optional</th>
<th>Code</th>
<th>Title</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2" class="text-center"><input checked type="checkbox" disabled=""></td>
<td></td>
<td>101</td>
<td>Bangla 1st</td>
</tr>
<tr>
<td></td>
<td>102</td>
<td>Bangla 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input checked type="checkbox" disabled=""></td>
<td></td>
<td>107</td>
<td>English 1st</td>
</tr>
<tr>
<td></td>
<td>108</td>
<td>English 2nd</td>
</tr>
<tr>
<td class="text-center"><input checked type="checkbox" disabled=""></td>
<td></td>
<td>275</td>
<td>Information & Communication Technology</td>
</tr>
<tr>
<td colspan="4">Selective Subjects (Choose any 4)</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input <?php echo in_array('CGG', $selected_codesArr) ? 'checked' : ''; ?> type="checkbox" value="CGG" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
<input <?php echo $opt_codes == 'CGG' ? 'checked' : ''; ?> type="radio" name="opt_ids" id="opt_ids" value="CGG">
</td>
<td>269</td>
<td>Civics & Good Governance 1st</td>
</tr>
<tr>
<td>270</td>
<td>Civics & Good Governance 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input <?php echo in_array('PSY', $selected_codesArr) ? 'checked' : ''; ?> type="checkbox" value="PSY" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
<input <?php echo $opt_codes == 'PSY' ? 'checked' : ''; ?> type="radio" name="opt_ids" id="opt_ids" value="PSY">
</td>
<td>123</td>
<td>Psychology 1st</td>
</tr>
<tr>
<td>124</td>
<td>Psychology 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input <?php echo in_array('IHC', $selected_codesArr) ? 'checked' : ''; ?> type="checkbox" value="IHC" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
<input <?php echo $opt_codes == 'IHC' ? 'checked' : ''; ?> type="radio" name="opt_ids" id="opt_ids" value="IHC">
</td>
<td>267</td>
<td>Islamic History & Culture 1st</td>
</tr>
<tr>
<td>268</td>
<td>Islamic History & Culture 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input <?php echo in_array('ECN', $selected_codesArr) ? 'checked' : ''; ?> type="checkbox" value="ECN" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
<input <?php echo $opt_codes == 'ECN' ? 'checked' : ''; ?> type="radio" name="opt_ids" id="opt_ids" value="ECN">
</td>
<td>109</td>
<td>Economics 1st</td>
</tr>
<tr>
<td>110</td>
<td>Economics 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input <?php echo in_array('GEO', $selected_codesArr) ? 'checked' : ''; ?> type="checkbox" value="GEO" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
<input <?php echo $opt_codes == 'GEO' ? 'checked' : ''; ?> type="radio" name="opt_ids" id="opt_ids" value="GEO">
</td>
<td>125</td>
<td>Geography 1st</td>
</tr>
<tr>
<td>126</td>
<td>Geography 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input <?php echo in_array('SSL', $selected_codesArr) ? 'checked' : ''; ?> type="checkbox" value="SSL" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
<input <?php echo $opt_codes == 'SSL' ? 'checked' : ''; ?> type="radio" name="opt_ids" id="opt_ids" value="SSL">
</td>
<td>117</td>
<td>Sociology 1st</td>
</tr>
<tr>
<td>118</td>
<td>Sociology 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input <?php echo in_array('LGC', $selected_codesArr) ? 'checked' : ''; ?> type="checkbox" value="LGC" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
<input <?php echo $opt_codes == 'LGC' ? 'checked' : ''; ?> type="radio" name="opt_ids" id="opt_ids" value="LGC">
</td>
<td>121</td>
<td>Logic 1st</td>
</tr>
<tr>
<td>122</td>
<td>Logic 2nd</td>
</tr>
</tbody>
</table>
<?php }?>
<?php if($batch_group == 'C') {?>
<table id="example" class="table table-bordered table-hover">
<thead>
<tr>
<th class="text-center">Select</th>
<th class="text-center">Optional</th>
<th>Code</th>
<th>Title</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2" class="text-center"><input checked type="checkbox" disabled=""></td>
<td></td>
<td>101</td>
<td>Bangla 1st</td>
</tr>
<tr>
<td></td>
<td>102</td>
<td>Bangla 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input checked type="checkbox" disabled=""></td>
<td></td>
<td>107</td>
<td>English 1st</td>
</tr>
<tr>
<td></td>
<td>108</td>
<td>English 2nd</td>
</tr>
<tr>
<td class="text-center"><input checked type="checkbox" disabled=""></td>
<td></td>
<td>275</td>
<td>Information & Communication Technology</td>
</tr>
<tr>
<td colspan="4">Selective Subjects </td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input checked type="checkbox" value="BOM" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
</td>
<td>277</td>
<td>Business Organisation & Management 1st</td>
</tr>
<tr>
<td>278</td>
<td>Business Organisation & Management 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input checked type="checkbox" value="ACT" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
</td>
<td>253</td>
<td>Accounting 1st</td>
</tr>
<tr>
<td>254</td>
<td>Accounting 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"><input checked type="checkbox" value="PMM" name="subArr[]" ></td>
<td rowspan="2" class="text-center">
</td>
<td>286</td>
<td>Production Management & Marketing 1st</td>
</tr>
<tr>
<td>287</td>
<td>Production Management & Marketing 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"></td>
<td rowspan="2" class="text-center">
<input <?php echo $opt_codes == 'ECN' ? 'checked' : ''; ?> type="radio" name="opt_ids" id="opt_ids" value="ECN">
</td>
<td>109</td>
<td>Economics 1st</td>
</tr>
<tr>
<td>110</td>
<td>Economics 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"></td>
<td rowspan="2" class="text-center">
<input <?php echo $opt_codes == 'PSY' ? 'checked' : ''; ?> type="radio" name="opt_ids" id="opt_ids" value="PSY">
</td>
<td>123</td>
<td>Psychology 1st</td>
</tr>
<tr>
<td>124</td>
<td>Psychology 2nd</td>
</tr>
<tr>
<td rowspan="2" class="text-center"></td>
<td rowspan="2" class="text-center">
<input <?php echo $opt_codes == 'GEO' ? 'checked' : ''; ?> type="radio" name="opt_ids" id="opt_ids" value="GEO">
</td>
<td>125</td>
<td>Geography 1st</td>
</tr>
<tr>
<td>126</td>
<td>Geography 2nd</td>
</tr>
</tbody>
</table>
<?php }?>
<?php
if($readonly == 'N'){
?>
<div class="text-center"> <button type="submit" name="submit" id="submit" class="btn btn-success" id="confirm">Submit</button></div>
<?php } ?>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<link rel="stylesheet" href="<?php echo base_url();?>/lib/datepicker/datepicker3.css">
<script src="<?php echo base_url();?>/lib/datepicker/bootstrap-datepicker.js"></script>
<script>
$("#dob").datepicker({'format':'yyyy-mm-dd'}).on("changeDate",function(ev){ $("#org_date").datepicker("hide"); });
$(document).ready(function() {
$('#contactForm').validator();
var toast_msg = '<?php echo $msg;?>';
var msg_type = '<?php echo $msg_type;?>';
if(toast_msg !== null && toast_msg !== '') {
var shortCutFunction = msg_type;
toastr.options = {
positionClass: 'toast-bottom-right'
};
var $toast = toastr[shortCutFunction](toast_msg);
}
} );
</script>