1 / 5

實做進度報告 1

實做進度報告 1. 管理員訊息 通知 (1). 在 field/f_communicate_admin.asp 加入 try{ var CDOConfig = Server.CreateObject (" CDO.Configuration "); CDOConfig.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2;

hilde
Download Presentation

實做進度報告 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 實做進度報告1

  2. 管理員訊息通知(1) • 在field/f_communicate_admin.asp 加入 • try{ • varCDOConfig = Server.CreateObject("CDO.Configuration"); CDOConfig.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2; • CDOConfig.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = MailServer; • CDOConfig.Fields.update(); • varCDOObj = Server.CreateObject("CDO.Message"); • CDOObj.Configuration = CDOConfig; • CDOObj.From = String(Request.Form('email')); • CDOObj.To = MailAccount; • CDOObj.Subject = String(Request.Form('標題')); • CDOObj.TextBody = String(Request.Form('內容')); • CDOObj.Send(); • } • catch(e){ • Response.Redirect('error.asp?msg=' + Server.URLEncode('傳送失敗 ('+MailServer+')') ); • }

  3. 管理員訊息通知(2) • MailAccount在 system/webconfig.asp • varMailAccount = "975205005@cc.ncu.edu.tw"; • varMailServer = "smtp.cc.ncu.edu.tw"; 圖1 尋找方法

  4. 新增學程(1) • 分別修改 f_courseGive_edit_teacher.asp(修改課程頁面) 和 f_courseGive_teacher.asp(新增課程頁面)

  5. <select name="學期" > • <% • for ( i = -1; i <= 1; i++ ) '-1~1的意思是當前年份的前一年和後一年 • { var year = year(now())-1911-i; ‘公元轉民國 • var year1 = String(year)+'1'; • var year2 = String(year)+'2'; • %> <option value="<% = String(year)+'1' %>" <% if Session('學期')=year1 then response.write "selected" %>><% = String(year)+'上' %></option> • <option value="<% = String(year)+'2' %>" <% if Session('學期')=year2 then response.write "selected" %> ><% = String(year)+'下' %></option> • <%} %> • </select>

More Related