Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박주현
/
2017_02_OSS_project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박주현
2017-12-04 00:10:49 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8c796cbc4d97ac420abd11701eb31ff6d0f7b647
8c796cbc
1 parent
98eefb26
1203
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
21 deletions
search.php
search.php
View file @
8c796cb
...
...
@@ -25,6 +25,8 @@
var m = date.getMonth();
var y = date.getFullYear();
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
...
...
@@ -34,8 +36,7 @@
editable: true,
events: [
<?php
<?php
//python
$command
=
escapeshellcmd
(
'test.py'
);
$output
=
shell_exec
(
$command
);
...
...
@@ -52,31 +53,32 @@
$result2
=
mysqli_query
(
$conn
,
$sql2
);
$data2
=
array
();
$row2
=
mysqli_fetch_array
(
$result2
);
echo
$row2
[
0
];
$rowcnt
=
$row2
[
0
];
$sql
=
"select * from gametime"
;
$sql
=
"select * from gametime
order by day asc
"
;
$result
=
mysqli_query
(
$conn
,
$sql
);
$data
=
array
();
$cnt
=
0
;
if
(
$result
){
while
(
$row
=
mysqli_fetch_array
(
$result
)){
array_push
(
$data
,
array
(
'day'
=>
$row
[
0
],
'time'
=>
$row
[
1
]
));
$row_arr
=
explode
(
'-'
,
$row
[
0
]);
?>
{
title: 'Long Event',
start: new Date(y,
<?php
echo
$row_arr
[
1
];
?>
,
<?php
echo
$row_arr
[
2
];
?>
),
allDay: false
}
<?php
$cnt
++
;
if
(
$cnt
!=
$row
[
0
]
)
{
echo
","
;
}
?>
<?php
}
//while
}
//if ?>
?>
<?php
if
(
$result
){
while
(
$row
=
mysqli_fetch_array
(
$result
)
)
{
array_push
(
$data
,
array
(
'day'
=>
$row
[
0
],
'time'
=>
$row
[
1
]
));
$row_arr
=
explode
(
'-'
,
$row
[
0
]);
$cnt
++
;
?>
{
title: '1h',
start: new Date(
<?php
$row
[
0
]
?>
),
allDay: false
}
<?php
if
(
$cnt
!=
$rowcnt
)
{
echo
","
;
}
?>
<?php
}
}
?>
...
...
Please
register
or
login
to post a comment