Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Poduptime
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
noplanman
Poduptime
Commits
ad2932cc
Commit
ad2932cc
authored
Dec 03, 2020
by
dmorley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter to only subdomain on table
parent
5459c5d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
js/podup.js
js/podup.js
+5
-5
tabledata.php
tabledata.php
+13
-1
No files found.
js/podup.js
View file @
ad2932cc
...
...
@@ -53,14 +53,14 @@ $table
});
var
software
=
$
(
'
input:input[name="software"]
'
).
val
();
var
columns
=
[];
$
.
get
(
'
tabledata.php
'
,
function
(
html
)
{
$
.
get
(
'
tabledata.php
?software=
'
+
software
,
function
(
html
)
{
$
(
'
table tbody
'
).
append
(
html
);
$
(
'
table
'
).
trigger
(
'
update
'
,
[
true
]);
$
(
'
.loadingtable
'
).
slideToggle
(
'
fast
'
);
if
(
software
)
{
columns
[
3
]
=
software
;
$
(
'
table
'
).
trigger
(
'
search
'
,
[
columns
]);
}
//
if (software) {
//
columns[3] = software;
//
$('table').trigger('search', [columns]);
//
}
})
$
(
'
[data-toggle="tooltip"]
'
).
tooltip
();
});
tabledata.php
View file @
ad2932cc
...
...
@@ -17,7 +17,18 @@ $iso = new Matriphe\ISO639\ISO639;
$hiddensoftwares
=
c
(
'hidden-softwares'
);
try
{
$pods
=
R
::
getAll
(
'
if
(
$_GET
[
'software'
])
{
$pods
=
R
::
getAll
(
'
SELECT domain, dnssec, podmin_statement, masterversion, shortversion, softwarename, daysmonitored, monthsmonitored, score, signup, protocols, name, country, countryname, city, state, detectedlanguage, uptime_alltime, active_users_halfyear, active_users_monthly, services, service_xmpp, latency, date_updated, ipv6, total_users, local_posts, comment_counts, userrating, status, date_laststats
FROM pods
WHERE status < ?
AND score > 0
AND softwarename NOT SIMILAR TO ?
AND softwarename = ?
ORDER BY weightedscore DESC
'
,
[
PodStatus
::
RECHECK
,
$hiddensoftwares
,
$_GET
[
'software'
]]);
}
else
{
$pods
=
R
::
getAll
(
'
SELECT domain, dnssec, podmin_statement, masterversion, shortversion, softwarename, daysmonitored, monthsmonitored, score, signup, protocols, name, country, countryname, city, state, detectedlanguage, uptime_alltime, active_users_halfyear, active_users_monthly, services, service_xmpp, latency, date_updated, ipv6, total_users, local_posts, comment_counts, userrating, status, date_laststats
FROM pods
WHERE status < ?
...
...
@@ -25,6 +36,7 @@ try {
AND softwarename NOT SIMILAR TO ?
ORDER BY weightedscore DESC
'
,
[
PodStatus
::
RECHECK
,
$hiddensoftwares
]);
}
}
catch
(
\RedBeanPHP\RedException
$e
)
{
die
(
'Error in SQL query: '
.
$e
->
getMessage
());
}
...
...
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