FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PHP-Code-Console/storage-code.php at master · adamchenwei/PHP-Code-Console · GitHub
adamchenwei
/
PHP-Code-Console
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
3
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
PHP-Code-Console
/
storage-code.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
67 lines (45 loc) · 1.46 KB
Breadcrumbs
PHP-Code-Console
/
storage-code.php
Copy path
File metadata and controls
67 lines (45 loc) · 1.46 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!--
Code Snippet Widget (Pending Dev)
-->
<
div
class
=
"
sbCodeSnippetTab
"
>
<
div
class
=
"
sbCodeSnippetTabHeader
"
><
h3
>Code Snippet</
h3
></
div
>
<
div
class
=
"
sbCodeSnippetContentTab
"
>
<
select
class
=
"
sbCodeSnippetUser form-control
"
>
<
option
>
{
{
codeSnippetTitle
}
}
</
option
>
<
option
>Run A Class</
option
>
</
select
>
</
div
>
</
div
>
<
script
type
=
"
text/javascript
"
>
/*
Infinity Scroll for Code History Tab
*/
$scope
.
infnityScrollLoader
=
function
(){
/*
$scope.items = [];
*/
/*
var counter = 0;
*/
$scope
.
loadMore
=
function
() {
/*
for (var i = 0; i < 5; i++) {
$scope.items.push({id: counter});
*/
/*
counter += 10;
*/
/*
}
*/
/*
$scope.codeHitory = [];
*/
$http
({
method
:
'
GET
'
,
url
:
'
codeHistoryLoader.php?myCodeOwner=
'
+
$scope
.
codeInfo
.
myCodeOwner
}).
success
(
function
(
data
,
status
,
headers
,
config
){
//
This is called when the response is
$scope
.
codeHitory
.
push
(data);
}).
error
(
function
(
data
,
status
,
headers
,
config
){
//
This is called when the response
alert
(status
+
"
"
+
config);
});
/*
$scope.getMyCodeHistory();
$scope.codeHitory.push( );
*/
};
$scope
.
loadMore
();
}
$scope
.
codeInfo
.
totalHistoryCount
=
data
.
length
;
$scope
.
codeInfo
.
loadedHistoryCount
=
5
;
SELECT
*
FROM
`
your_table
`
LIMIT
5
,
5
0
,
5
5
,
5
10
,
5
1
2
3
recordPerPage
=
5
;
totalRecords
=
20
totalPages
=
ceil
( total
/
recordPerPage)
currentPage
startRecord
=
(currentPage
-
1
)
*
recordPerPage;
</
script
>
Back
|
FazBrowse Home
|
New Git URL