links displaying
This commit is contained in:
parent
7a9ef13da1
commit
6f3a91bfe1
|
|
@ -1286,7 +1286,7 @@ const ActivityList = Vue.component('activitylist', {
|
||||||
<div class="flex flex-wrap gap-2 md:flex-col md:min-w-[100px]">
|
<div class="flex flex-wrap gap-2 md:flex-col md:min-w-[100px]">
|
||||||
<a v-if="my_host_ids.includes(a.id)"
|
<a v-if="my_host_ids.includes(a.id)"
|
||||||
:href="'ed_act.php?w=' + a.id"
|
:href="'ed_act.php?w=' + a.id"
|
||||||
class="text-sm text-blue-600 hover:underline">Edit</a>
|
class="text-sm text-blue-600 hover:underline">Edit</a>
|
||||||
|
|
||||||
<a v-if="my_host_ids.includes(a.id)"
|
<a v-if="my_host_ids.includes(a.id)"
|
||||||
:href="'report.php?s=' + a.id"
|
:href="'report.php?s=' + a.id"
|
||||||
|
|
@ -1300,7 +1300,7 @@ const ActivityList = Vue.component('activitylist', {
|
||||||
{{ $root.$dj(a.starttime).format('h:mma') }} - {{ addTime(a.starttime, a.length) }} <!--· {{ mode_string(a) }} -->
|
{{ $root.$dj(a.starttime).format('h:mma') }} - {{ addTime(a.starttime, a.length) }} <!--· {{ mode_string(a) }} -->
|
||||||
<span v-if="a.mode === 'hybrid'"> · In person at {{ a.location_irl }} or
|
<span v-if="a.mode === 'hybrid'"> · In person at {{ a.location_irl }} or
|
||||||
<a v-if="zoom_on && a.location" :href="a.location" class="underline text-blue-600">online</a>
|
<a v-if="zoom_on && a.location" :href="a.location" class="underline text-blue-600">online</a>
|
||||||
<span v-else>online (zoom link not found)</span>
|
<span v-else>online</span>
|
||||||
</span>
|
</span>
|
||||||
<span v-if="a.mode === 'inperson'"> · In person at {{ a.location_irl }}</span>
|
<span v-if="a.mode === 'inperson'"> · In person at {{ a.location_irl }}</span>
|
||||||
<span v-if="zoom_on && a.mode === 'online'"> · <a :href="a.location" class="underline text-blue-600">Online</a></span>
|
<span v-if="zoom_on && a.mode === 'online'"> · <a :href="a.location" class="underline text-blue-600">Online</a></span>
|
||||||
|
|
|
||||||
10
queries.txt
10
queries.txt
|
|
@ -1,12 +1,13 @@
|
||||||
Show tables|show tables;
|
Show tables|show tables;
|
||||||
|
Recent logs|select * from gavi_logs order by id desc limit 400;
|
||||||
All sessions, most recent first|select * from conf_sessions order by id desc;
|
All sessions, most recent first|select * from conf_sessions order by id desc;
|
||||||
Signups by user|select i.id, i.timestamp, u.name, u.goo, u.email, s.title, s.mode from conf_signups i join conf_users u on i.user=u.id join conf_sessions s on i.session=s.id order by i.id desc;
|
Signups by user|select i.id, i.timestamp, u.name, u.goo, u.email, s.title, s.mode from conf_signups i join conf_users u on i.user=u.id join conf_sessions s on i.session=s.id order by i.id desc;
|
||||||
Signups by session|select n.title,u.name, n.type,n.starttime,n.mode, u.goo, u.email from conf_sessions n join conf_signups s on s.session=n.id join conf_users u on s.user=u.id where n.id>1413 order by n.id desc;
|
Signups by session|select n.title,u.name, n.type,n.starttime,n.mode, u.goo, u.email from conf_sessions n join conf_signups s on s.session=n.id join conf_users u on s.user=u.id where n.id>1439 order by n.id desc;
|
||||||
Signup count per session|SELECT n.title, n.type, n.starttime, n.mode, COUNT(s.user) AS signup_count FROM conf_sessions n JOIN conf_signups s ON s.session = n.id WHERE n.id > 1413 GROUP BY n.title, n.type, n.starttime, n.mode ORDER BY n.starttime;
|
Signup count per session|SELECT n.title, n.type, n.starttime, n.mode, COUNT(s.user) AS signup_count FROM conf_sessions n JOIN conf_signups s ON s.session = n.id WHERE n.id > 1439 GROUP BY n.title, n.type, n.starttime, n.mode ORDER BY n.starttime;
|
||||||
Signup count per session by popularity|SELECT n.title, n.type, n.starttime, n.mode, COUNT(s.user) AS signup_count FROM conf_sessions n JOIN conf_signups s ON s.session = n.id WHERE n.id > 1413 GROUP BY n.title, n.type, n.starttime, n.mode ORDER BY signup_count desc;
|
Signup count per session by popularity|SELECT n.title, n.type, n.starttime, n.mode, COUNT(s.user) AS signup_count FROM conf_sessions n JOIN conf_signups s ON s.session = n.id WHERE n.id > 1439 GROUP BY n.title, n.type, n.starttime, n.mode ORDER BY signup_count desc;
|
||||||
Meta data|select * from conf_uinforecord;
|
Meta data|select * from conf_uinforecord;
|
||||||
All users, most recent first|select * from conf_users order by id desc;
|
All users, most recent first|select * from conf_users order by id desc;
|
||||||
Hosts with emails|SELECT u.email FROM conf_sessions n JOIN conf_hosts h ON h.session=n.id JOIN conf_users u ON h.host=u.id WHERE n.id > 1413 ORDER BY n.starttime;
|
Hosts with emails|SELECT u.email FROM conf_sessions n JOIN conf_hosts h ON h.session=n.id JOIN conf_users u ON h.host=u.id WHERE n.id > 1439 ORDER BY n.starttime;
|
||||||
Surveys with user|select a.answer, s.title, u.name, s.starttime, s.mode from conf_answers a join conf_users u on u.id=a.user join conf_sessions s on s.id=a.session where s.id>1412 order by a.session, a.question, u.name
|
Surveys with user|select a.answer, s.title, u.name, s.starttime, s.mode from conf_answers a join conf_users u on u.id=a.user join conf_sessions s on s.id=a.session where s.id>1412 order by a.session, a.question, u.name
|
||||||
Surveys without user|select a.answer, s.title, s.starttime, s.mode from conf_answers a join conf_sessions s on s.id=a.session where s.id>1412 order by a.session, a.question
|
Surveys without user|select a.answer, s.title, s.starttime, s.mode from conf_answers a join conf_sessions s on s.id=a.session where s.id>1412 order by a.session, a.question
|
||||||
Full surveys with users|SELECT s.id AS sessionid, s.title, s.starttime, s.mode, s.parent, GROUP_CONCAT(DISTINCT u1.name ORDER BY u1.name SEPARATOR ', ') AS hosts, GROUP_CONCAT(DISTINCT u2.name ORDER BY u2.name SEPARATOR ', ') AS signups, GROUP_CONCAT(DISTINCT CONCAT(u3.name, ': ', a.answer, ' (Q', a.question, ')') ORDER BY a.question SEPARATOR ' | ') AS ratings_comments FROM conf_sessions s LEFT JOIN conf_hosts h ON h.session = s.id LEFT JOIN conf_users u1 ON h.host = u1.id LEFT JOIN conf_signups i ON i.session = s.id LEFT JOIN conf_users u2 ON i.user = u2.id LEFT JOIN conf_answers a ON a.session = s.id LEFT JOIN conf_users u3 ON a.user = u3.id GROUP BY s.id ORDER BY s.id DESC;
|
Full surveys with users|SELECT s.id AS sessionid, s.title, s.starttime, s.mode, s.parent, GROUP_CONCAT(DISTINCT u1.name ORDER BY u1.name SEPARATOR ', ') AS hosts, GROUP_CONCAT(DISTINCT u2.name ORDER BY u2.name SEPARATOR ', ') AS signups, GROUP_CONCAT(DISTINCT CONCAT(u3.name, ': ', a.answer, ' (Q', a.question, ')') ORDER BY a.question SEPARATOR ' | ') AS ratings_comments FROM conf_sessions s LEFT JOIN conf_hosts h ON h.session = s.id LEFT JOIN conf_users u1 ON h.host = u1.id LEFT JOIN conf_signups i ON i.session = s.id LEFT JOIN conf_users u2 ON i.user = u2.id LEFT JOIN conf_answers a ON a.session = s.id LEFT JOIN conf_users u3 ON a.user = u3.id GROUP BY s.id ORDER BY s.id DESC;
|
||||||
|
|
@ -14,3 +15,4 @@ Full surveys without users|SELECT s.id AS sessionid, s.title, s.starttime, s.mod
|
||||||
Turn on zoom links and surveys|update conf_uinforecord set `value`=1 where id>1 and id<4;
|
Turn on zoom links and surveys|update conf_uinforecord set `value`=1 where id>1 and id<4;
|
||||||
Turn off zoom links and surveys|update conf_uinforecord set `value`=0 where id>1 and id<4;
|
Turn off zoom links and surveys|update conf_uinforecord set `value`=0 where id>1 and id<4;
|
||||||
New user|insert into conf_users (`name`,`goo`,`email`,`active`,p2id) values ('name','123456','yyy@gavilan.edu',0,0);
|
New user|insert into conf_users (`name`,`goo`,`email`,`active`,p2id) values ('name','123456','yyy@gavilan.edu',0,0);
|
||||||
|
Update user|update conf_users set name=xxx where id=xxx;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue