| Server IP : 133.18.244.157 / Your IP : 216.73.217.20 Web Server : Apache System : Linux o4022v-135.kagoya.net 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : main2 ( 81069) PHP Version : 5.6.34 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /install/page/ |
Upload File : |
' Sub InfomationBar $argApp $argAppObj $argInfoObj
' If $VID
' Exit
' EndIf
''
' var $localTsLast = $argInfoObj.TimeStamp
' var $localMTime = $argAppObj.MTime
' If $localTsLast < $localMTime
' $New = 1
' EndIf
' If $New
' $argInfoObj.Hidden = 0
' EndIf
''
' If $argInfoObj.Hidden
' $ShowInfo = ""
' $HideInfo = " style='display:none;'"
' Else
' $ShowInfo = " style='display:none;'"
' $HideInfo = ""
' EndIf
''
<div class="info-container">
<div class="info-summary clearfix" onClick="ToggleInfomation();">
<div class="info-icon">
<span id="infoSpinner" style="display: none;">\\
' Call cmImage spinner.gif
</span>\\
<span id="showInfo"$_ShowInfo></span><span id="hideInfo"$_HideInfo></span>\\
</div>
<div class="info-data">
<span class="info-title">お知らせ</span>\\
' If $localMTime
<span class="info-mdatetime">\\
<span class="info-mdate">\\
' If $Date.Year != $localMTime.Year
$localMTime.Year/\\
' EndIf
' If $Date != $localMTime.Date
$localMTime.Month/$localMTime.Day \\
' EndIf
</span>\\
<span class="info-mtime">$localMTime.Hour:$localMTime.Minute00</span>\\
' If $New
' Call cmImage "new.png" "" "" "" "" "" "newInfo" "lefticon righticon"
' Else
' Call cmImage "new.png" "" "" "" "" "display: none;" "newInfo" "lefticon righticon"
' EndIf
</span>\\
' var $UID = $argAppObj.MID
' var $UserName = $Users.$UID.Name
' Init $UserName = $argAppObj.Modifier
<span class="info-modifier">$UserName</span>\\
' EndIf
</div>
</div>
' If $argInfoObj.Hidden
<div id="info-detail" style="display: none;">
' Else
<div id="info-detail">
'' お知らせ閲覧タイムスタンプを更新
' $argInfoObj.TimeStamp = $System.TimeStamp
' EndIf
<table class="info-detailTable">
<tr>
<td>
<div class="info-text">
' View $argAppObj.Information 1
</div>
</td>
<td class="info-write" width="10%" nowrap>\\
' $localURL = ""
' If $argApp = "Mail"
' $System.SetParameter localURL "$Server?page=MailInformationSet&wid=$WID&bs=$BS&fid=$FID&view=$View"
' ElIf $argApp = "Form"
' $System.SetParameter localURL "$Server?page=FormInformationSet&wid=$WID&bs=$BS"
' ElIf $argApp = "Post"
' $System.SetParameter localURL "$Server?page=PostInformationSet&wid=$WID"
' EndIf
' Call cmLinkButton "編集する" "write20.png" "$localURL"
</td></tr>
</table>
</div>
</div>
<script language="JavaScript" type="text/javascript">
<!--
function ToggleInfomation()
{
var hideInfo = '#hideInfo';
var showInfo = '#showInfo';
var viewInfo = '#info-detail';
var newInfo = '#newInfo';
var infoSpinner = '#infoSpinner';
var IsShow = ( $(viewInfo).css('display') == 'none' ) ? '&show=1' : '';
$.ajax({
type: 'GET',
url: '$Server?page=AjaxInfomation&wid=$WID&bs=$BS&app=$argApp'+IsShow,
dataType: 'html',
beforeSend: function( xhr )
{
$(showInfo).hide();
$(hideInfo).hide();
$(infoSpinner).show();
},
success: function( responseText, textStatus, xhr )
{
if( mw.isErrorResponse( xhr ) ) return;
var showNewInfo = ( xhr > 0 ) ? true : false;
if( showNewInfo )
{
$(newInfo).show();
}
else
{
$(newInfo).hide();
}
if( IsShow )
{
$(hideInfo).show();
$(showInfo).hide();
$(viewInfo).show();
}
else
{
$(hideInfo).hide();
$(showInfo).show();
$(viewInfo).hide();
}
},
complete: function( xhr, textStatus )
{
$(infoSpinner).hide();
},
cache: false
});
}
//-->
</script>
' EndSub