<% main() Sub main() If Not(InternetCheck()) Then Exit Sub End If If Not(VisitorCheck()) Then Exit Sub End If If Not(SysAdminCheck()) Then Exit Sub End If %> <% Dim Query Dim Content Dim Content2 '画像フォルダ作成 Dim fso Set fso = Server.CreateObject("Scripting.FileSystemObject") Dim ImageFolder ImageFolder = "" & HomeAliasSL & SchoolTopicFolderSL If Not(fso.FolderExists(Server.MapPath(ImageFolder))) Then fso.CreateFolder(Server.MapPath(ImageFolder)) End If ImageFolder = ImageFolder & "hsnsadmin" & "/" If Not(fso.FolderExists(Server.MapPath(ImageFolder))) Then fso.CreateFolder(Server.MapPath(ImageFolder)) End If Dim Topic Topic = Request("Topic") Dim ItemViewCnt ItemViewCnt = 100 '1ページの表示件数 Dim Page Page = Request("Page") If Page = "" Or Not(IsNumeric(Page)) Then Page = "0" End If Page = CInt(Page) Dim TopicHeight Dim TopicDate Dim TopicTitle Dim Honbun1 Dim Honbun2 Dim Honbun3 Dim ImageFile1 Dim ImageFile2 Dim LinkLabel Dim LinkURL Dim PublishItem Dim Kubun If Topic <> "" Then If IsNumeric(Topic) Then 'トピック存在チェック Query = "" Query = Query & " SELECT * " Query = Query & " FROM TFトピック " Query = Query & " WHERE 学校CD = '" & "hsnsadmin" & "' " Query = Query & " AND トピック番号 = " & Topic & " " Set Content = SQLQuery(Query, SQLServer, DatabaseName, DatabaseUser, DatabasePass) If Not(Content.BOF Or Content.EOF) Then TopicHeight = "" & Content.Fields("表示高") TopicDate = "" & Content.Fields("日時") TopicTitle = "" & Content.Fields("タイトル") Honbun1 = "" & Content.Fields("本文1") Honbun2 = "" & Content.Fields("本文2") Honbun3 = "" & Content.Fields("本文3") ImageFile1 = "" & Content.Fields("画像1") ImageFile2 = "" & Content.Fields("画像2") LinkLabel = "" & Content.Fields("リンク先名称") LinkURL = "" & Content.Fields("リンク先") PublishItem = "" & Content.Fields("公開") Kubun = "" & Content.Fields("管理者区分") Else '取得できなければ強制的に一覧に戻す Response.Redirect(Request.ServerVariables("SCRIPT_NAME") & "") End If End If End If If TopicDate = "" Then TopicDate = Now End If %>
管理者通知管理 <% = Spacer(7, 1) %> <% = ActionButton3Image("MenuBtn", "images/btn01bl.png", "images/btn01bl_o.png", 4, "images/btn01bc.png", "images/btn01bc_o.png", 112, "images/btn01br.png", "images/btn01br_o.png", 4, 24, "管理メニューに戻る", "tx1214w", "center", "location.href='" & HomeAliasSL & "sysadminmenu.asp';") %> <% = Spacer(7, 1) %> <% = ActionButton3Image("LogoutBtn", "images/btn01bl.png", "images/btn01bl_o.png", 4, "images/btn01bc.png", "images/btn01bc_o.png", 64, "images/btn01br.png", "images/btn01br_o.png", 4, 24, "ログアウト", "tx1214w", "center", "location.href='" & HomeAliasSL & "?Logout=1';") %> <% = Spacer(7, 1) %> <% = ActionButton3Image("ReturnBtn", "images/btn01bl.png", "images/btn01bl_o.png", 4, "images/btn01bc.png", "images/btn01bc_o.png", 76, "images/btn01br.png", "images/btn01br_o.png", 4, 24, "モールに戻る", "tx1214w", "center", "location.href='" & HomeAliasSL & "';") %>
<% If Topic = "" Then '一覧 %> <% Else '詳細 %> <% If Topic <> "New" Then %> <% End If %> <% If ImageFile1 <> "" Then %> <% End If %> <% If ImageFile2 <> "" Then %> <% End If %> <% End If %>
<% = ActionButton3Image("ItemNewBtn", "images/btn01bl.png", "images/btn01bl_o.png", 4, "images/btn01bc.png", "images/btn01bc_o.png", 90, "images/btn01br.png", "images/btn01br_o.png", 4, 24, "新規通知登録", "tx1416w", "center", "location.href='" & Request.ServerVariables("SCRIPT_NAME") & "?Topic=New';") %>
<% = Spacer(1, 13) %>
<% Query = "" Query = Query & " SELECT * " Query = Query & " FROM TFトピック " Query = Query & " WHERE 学校CD = '" & "hsnsadmin" & "' " Query = Query & " ORDER BY 日時 DESC " Set Content = SQLQuery(Query, SQLServer, DatabaseName, DatabaseUser, DatabasePass) Do While Not(Content.BOF Or Content.EOF) %> <% Content.MoveNext Loop %>
<% If "" & Content.Fields("管理者区分") <> "1" Then %>学校モール<% Else %>全ての<% End If %>管理者 <% = Content.Fields("日時") %> ?Topic=<% = Content.Fields("トピック番号") %>"><% = Content.Fields("タイトル") %>
<% = ActionButton3Image("ItemEditBtn" & Content.Fields("トピック番号"), "images/btn01bl.png", "images/btn01bl_o.png", 4, "images/btn01bc.png", "images/btn01bc_o.png", 37, "images/btn01br.png", "images/btn01br_o.png", 4, 24, "編 集", "tx1416w", "center", "location.href='" & Request.ServerVariables("SCRIPT_NAME") & "?Topic=" & Content.Fields("トピック番号") & "';") %> <% = ActionButton3Image("ItemDelBtn" & Content.Fields("トピック番号"), "images/btn01bl.png", "images/btn01bl_o.png", 4, "images/btn01bc.png", "images/btn01bc_o.png", 28, "images/btn01br.png", "images/btn01br_o.png", 4, 24, "削除", "tx1214w", "center", "DeleteItem(" & Content.Fields("トピック番号") & ");") %>
<% = ActionButton3Image("ItemListBtn", "images/btn01bl.png", "images/btn01bl_o.png", 4, "images/btn01bc.png", "images/btn01bc_o.png", 102, "images/btn01br.png", "images/btn01br_o.png", 4, 24, "通知一覧に戻る", "tx1416w", "center", "location.href='" & Request.ServerVariables("SCRIPT_NAME") & "';") %>
<% = Spacer(1, 7) %>
checked<% End If %>> この通知を公開する
<% = Spacer(1, 7) %>
通知対象 "1" Then %> checked<% End If %>>学校モール管理者 checked<% End If %>>全ての管理者
<% = Spacer(1, 7) %>
公開日
<% = Spacer(1, 7) %>
タイトル
<% = Spacer(1, 7) %>
本文1
<% = Spacer(1, 7) %>
画像1
設定されている画像1を削除する
<% = Spacer(1, 7) %>
本文2
<% = Spacer(1, 7) %>
画像2
設定されている画像2を削除する
<% = Spacer(1, 7) %>
本文3
<% = Spacer(1, 7) %>
リンク先URL
<% = Spacer(1, 7) %>
リンク先表示名
<% = Spacer(1, 10) %>
<% Dim Label Label = "更 新" If Topic = "New" Then Label = "登 録" End If %> <% = ActionButton3Image("SubmitBtn", "images/btn01bl.png", "images/btn01bl_o.png", 4, "images/btn01bc.png", "images/btn01bc_o.png", 72, "images/btn01br.png", "images/btn01br_o.png", 4, 24, Label, "tx1416w", "center", "SendItem();") %>
<% End Sub %>