s4

changeset 319:a868f03970b5

Profimg hiding rule revised
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 17 Oct 2016 09:11:05 +0859
parents ff1b00ca07e8
children 9735dd6c7bff
files examples/common/default/default.css s4-funcs.sh
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/examples/common/default/default.css	Mon Oct 17 08:10:55 2016 +0859
     1.2 +++ b/examples/common/default/default.css	Mon Oct 17 09:11:05 2016 +0859
     1.3 @@ -100,9 +100,10 @@
     1.4  table.mini td, table.mini th {padding: 1px 1ex; min-width: 1em;}
     1.5  table.mini {margin-left: 1em; border-left: 2px solid #686;}
     1.6  
     1.7 -body.grouphome tr.profimg, body.home tr.profimg {visibility: collapse;}
     1.8 -tr:hover + tr.profimg, tr:active + tr.profimg, tr.profimg:hover,
     1.9 -tr.profimg:active {visibility: visible;}
    1.10 +div.noprofimg tr.profimg {visibility: collapse;}
    1.11 +div.noprofimg tr:hover + tr.profimg, div.noprofimg tr:active + tr.profimg,
    1.12 +div.noprofimg tr.profimg:hover, div.noprofimg tr.profimg:active {
    1.13 +    visibility: visible;}
    1.14  
    1.15  p.profimg {float: left; max-width: 50%; max-height: 400px;
    1.16  	   overflow: hidden; margin: 0 1em 1ex;
     2.1 --- a/s4-funcs.sh	Mon Oct 17 08:10:55 2016 +0859
     2.2 +++ b/s4-funcs.sh	Mon Oct 17 09:11:05 2016 +0859
     2.3 @@ -1542,7 +1542,10 @@
     2.4    tf=$tmpd/title.$$ pf=$tmpd/profile.$$ bf=$tmpd/blogs.$$ sf=$tmpd/search.$$
     2.5    search_form		> $sf
     2.6    echo "$gecos さん"	> $tf
     2.7 -  viewtable $formdir/user.def user $1	> $pf
     2.8 +  { echo "<div class=\"noprofimg\">"
     2.9 +    viewtable $formdir/user.def user $1
    2.10 +    echo "</div>"
    2.11 +  } > $pf
    2.12  
    2.13    sqcond="WHERE name='$uname' AND key='profimg' AND type LIKE 'file:image%'"
    2.14    img=`query "SELECT type FROM user_m $sqcond LIMIT 1;"`
    2.15 @@ -1938,7 +1941,9 @@
    2.16  	`imgsrc_cache $td/main grp_m "$enticond"`</p>
    2.17  	EOF
    2.18    fi
    2.19 +  echo "<div class=\"noprofimg\">"
    2.20    viewtable $1 grp $rowid
    2.21 +  echo "</div>"
    2.22    if isgrpowner "$user" "$grp"; then
    2.23      echo "<p><a href=\"?groupconf+$rowid\">グループ情報の編集</a>"
    2.24      iamowner=$rowid