Mercurial > hgrepos > hgweb.cgi > s4
comparison s4-blog.sh @ 1003:5bd1b5125049 draft
Direct link to lshandoutall in group home for grp-admin
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sun, 11 Dec 2022 17:19:32 +0859 |
parents | 47b3e770372d |
children | 7976c8e5e628 |
comparison
equal
deleted
inserted
replaced
1002:47b3e770372d | 1003:5bd1b5125049 |
---|---|
793 fi | 793 fi |
794 sql=${SQL:-"SELECT * FROM $tbls;"} | 794 sql=${SQL:-"SELECT * FROM $tbls;"} |
795 if [ -z "$CATCSV" ]; then | 795 if [ -z "$CATCSV" ]; then |
796 echo "<hr><h2>総合</h2>" | 796 echo "<hr><h2>総合</h2>" |
797 echo "$sql" | lshandout_ulink_table | 797 echo "$sql" | lshandout_ulink_table |
798 echo "<h2>総合(<a href=\"?gethandoutcsv+$rowid\">CSV</a>)</h2>" | 798 echo "<h2>総合(<a id=\"gethandoutcsv\" href=\"?gethandoutcsv+$rowid\">CSV</a>)</h2>" |
799 echo '<p id="bommsg"></p>' | |
799 printf ".mode csv\n.header ON\n" | query | 800 printf ".mode csv\n.header ON\n" | query |
800 echo '<pre class="list">' | 801 echo '<pre id="totalcsv" class="list">' |
801 echo "$sql" | query | sed 's/^"[0-9]* /"/' | 802 echo "$sql" | query | sed 's/^"[0-9]* /"/' |
802 echo "</pre>" | 803 echo "</pre>" |
803 echo "<pre><a href=\"?gethandoutcsv2+$rowid\">縦持ちCSV</a></pre>" | 804 echo "<pre><a href=\"?gethandoutcsv2+$rowid\">縦持ちCSV</a></pre>" |
804 else | 805 else |
805 contenttype "Application/CSV" | 806 contenttype "Application/CSV" |