Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IPok_Web
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IPok
IPok_Web
Commits
5431242f
Commit
5431242f
authored
Jul 31, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Date of birth
parent
a506adfe
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
register_doctor.php
application/views/register_doctor.php
+1
-1
custom.js
assets/js/custom.js
+19
-3
220_canoe_water_nature_221611.jpg
...oads/profilepic/patient/220_canoe_water_nature_221611.jpg
+0
-0
No files found.
application/views/register_doctor.php
View file @
5431242f
...
...
@@ -137,7 +137,7 @@ if($this->session->userdata('language') == 'en'){
<?php
$now
=
date
(
'Y'
);
$max_year
=
$now
-
18
;
$min_year
=
$max_year
-
1
0
0
;
$min_year
=
$max_year
-
1
2
0
;
for
(
$i
=
$min_year
;
$i
<=
$max_year
;
$i
++
){
?>
<option
value=
"
<?php
echo
$i
;
?>
"
>
<?php
echo
$i
;
?>
</option>
<?php
}
...
...
assets/js/custom.js
View file @
5431242f
...
...
@@ -2725,12 +2725,22 @@ $('#reg_choose_pat').click(function(){
/* REGISTRATION DATEPICKER JS */
/*----------------------------*/
var
date
=
(
new
Date
()).
getFullYear
();
console
.
log
(
date
);
var
cur_date
=
date
-
18
;
console
.
log
(
cur_date
);
var
max_date
=
cur_date
-
120
;
console
.
log
(
max_date
);
$
(
'#registration-container input'
).
datepicker
({
autoclose
:
true
,
onSelect
:
function
(
dateText
)
{
//console.log("Selected date: " + dateText + "; input's current value: " + this.value);
},
endDate
:
"0d"
,
/*endDate:"0d",
startDate:"-120y"*/
/*minDate: '-120Y',
maxDate: '-18Y',*/
endDate
:
"-18y"
,
startDate
:
"-120y"
})
...
...
@@ -2739,7 +2749,11 @@ $('#doc-registration-container input').datepicker({
onSelect
:
function
(
dateText
)
{
//console.log("Selected date: " + dateText + "; input's current value: " + this.value);
},
endDate
:
"0d"
,
/*endDate:"0d",
startDate:"-120y"*/
/*minDate: '-120Y',
maxDate: '-18Y',*/
endDate
:
"-18y"
,
startDate
:
"-120y"
})
/* PATIENT EDIT DATEPICKER JS */
...
...
@@ -2749,7 +2763,9 @@ $('#edit-patient input').datepicker({
onSelect
:
function
(
dateText
)
{
//console.log("Selected date: " + dateText + "; input's current value: " + this.value);
},
endDate
:
"0d"
,
/* endDate:"0d",
startDate:"-120y"*/
endDate
:
"-18y"
,
startDate
:
"-120y"
})
/*----------------------------*/
...
...
assets/uploads/profilepic/patient/220_canoe_water_nature_221611.jpg
0 → 100644
View file @
5431242f
124 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment