Compare commits

...

3 Commits

Author SHA1 Message Date
Peter Howell d23d529f34 remove btn breakfast and lunch 2025-08-07 16:56:16 -07:00
Peter Howell 59c4739ee3 with outside link to breakfast/lunch 2025-08-07 12:28:34 -07:00
Peter Howell 6f3a91bfe1 links displaying 2025-08-05 12:17:05 -07:00
2 changed files with 24 additions and 7 deletions

View File

@ -1135,6 +1135,12 @@ const ActivityList = Vue.component('activitylist', {
this.fetch_myevents()
},
methods: {
special_signup: function(activity_id) {
if (activity_id==1462 || activity_id==1455) {
return true;
}
return false;
},
get_day_index: function(dateStr) {
const date = new Date(dateStr);
const yyyy = date.getFullYear();
@ -1286,7 +1292,7 @@ const ActivityList = Vue.component('activitylist', {
<div class="flex flex-wrap gap-2 md:flex-col md:min-w-[100px]">
<a v-if="my_host_ids.includes(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)"
:href="'report.php?s=' + a.id"
@ -1300,7 +1306,7 @@ const ActivityList = Vue.component('activitylist', {
{{ $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
<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 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>
@ -1354,11 +1360,20 @@ const ActivityList = Vue.component('activitylist', {
href="#"
class="px-3 py-1 text-sm font-medium rounded text-sm text-white bg-red-600 hover:underline">Cancel</a>
<a v-if="!my_ses_ids.includes(a.id) && !my_host_ids.includes(a.id)"
<a v-if="!special_signup(a.id) && !my_ses_ids.includes(a.id) && !my_host_ids.includes(a.id)"
@click.prevent="joinme(a.id)"
href="#"
class="px-3 py-1 text-sm font-medium text-white bg-purple-600 rounded hover:bg-purple-700">Sign Up</a>
<!--<a v-if="special_signup(a.id)"
target="_blank"
href="https://forms.office.com/r/GGz56DdSEG"
class="px-3 py-1 text-sm font-medium text-white bg-amber-500 rounded hover:bg-amber-700">Sign Up</a>
-->
<span v-if="special_signup(a.id)"
class="px-3 py-1 text-sm font-medium text-white">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>
<a v-if="my_host_ids.includes(a.id)"
:href="'ed_act.php?w=' + a.id"
class="px-3 py-1 text-sm font-medium text-white bg-purple-600 rounded hover:bg-purple-700">Edit</a>

View File

@ -1,12 +1,13 @@
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;
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;
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 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;
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 > 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 > 1439 GROUP BY n.title, n.type, n.starttime, n.mode ORDER BY signup_count desc;
Meta data|select * from conf_uinforecord;
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 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;
@ -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 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);
Update user|update conf_users set name=xxx where id=xxx;