%@LANGUAGE="VBSCRIPT"%>
<%
' ================================
' AIS Debug variables
' ================================
Dim AISdebugSet
AISdebugSet = "N"
' =====================================
' Make sure to catch any database error
' =====================================
On Error Resume Next
' ================================
' AISNews Recordset and variables
' ================================
Dim AISNews
Dim AISNewsError
Dim AISNewsIndex
Set AISNews = Server.CreateObject("ADODB.Recordset")
AISNews.ActiveConnection = MM_Foundation_STRING
AISNews.Source = "select M.msg_id,M.title,M.abstract,M.author,M.details,M.urgency,M.msg_date,M.expiry_date,M.app_name,A.name from navigator.app_messages M, navigator.sys_applications A where M.app_name = A.code and trunc(sysdate) between M.msg_date and M.expiry_date-1 order by msg_date desc"
AISNews.CursorType = 0
AISNews.CursorLocation = 2
AISNews.LockType = 1
AISNews.Open()
' Check that DB connection and SQL run went fine
If Err.Number <> 0 Then
AISNewsError= Err.Description
Else
AISNewsError= "None"
End If
AISNewsIndex = 0
' ================================
' AISFocus Recordset and variables
' ================================
Dim AISFocus
Dim AISFocusError
Dim AISFocusIndex
Dim AISFocusShownAlways
Dim AISFocusToBeShown
Dim AISFocusRequestedId
Dim AISFocusContent
Dim AISUpperLeftImage
Dim AISUpperRightImage
Dim AISNextFocusId
Dim AISPreviousFocusId
Set AISFocus = Server.CreateObject("ADODB.Recordset")
AISFocus.ActiveConnection = MM_AISweb_STRING
AISFocus.Source = "SELECT id, title, text, upper_right_image, upper_left_image, date_from, date_to, always_shown FROM articles WHERE (articles.date_from<=Date() Or IsNull(articles.date_from)) And (articles.date_to>=Date() Or IsNull(articles.date_to)) ORDER BY articles.always_shown,articles.id;"
AISFocus.CursorType = 0
AISFocus.CursorLocation = 2
AISFocus.LockType = 1
AISFocus.Open()
' Check that DB connection and SQL run went fine
If Err.Number <> 0 Then
AISFocusError= Err.Description
Response.Write(""&AISFocusError&"")
Else
AISFocusError= "None"
End If
AISFocusRequestedId = Request.QueryString("focusid")
' ================================
' AIS Procedures used in page
' ================================
sub getFocus()
' ===========================================
' GET FOCUS
' This procedure build the focus and store it
' in the AISFocusContent variable
' ===========================================
If (AISFocus.EOF OR AISFocusError<> "None") Then
Call AISdebug("Focus query returned NO records - maybe database connection error or no focus active")
' No focus found, maybe an error connecting the database or none is active...
' Display a default hardcoded focus item
AISFocusContent= ""
AISFocusContent = AISFocusContent & "
CERN home > IT Department > AIS Home | Internal | | ![]() |
![]() |
AIS Administrative Information Services |
|
|
AIS website authoring resourcesGo back to AIS website
resource page The AIS website (which you are currently browsing) has been developed using Macromedia Dreamweaver with an extensive usage of Templates, Library Items and Cascading Style Sheets (CSS). Here are some explanations and links related to those items. Feel free to let us know about other links or resources you may know or need. DreamweaverDreamweaver is a user friendly web authoring tool made by Macromedia. We are currently using version 3 at CERN. Here are some of the features of Dreamweaver: Editing functionalities
Site management functionalities
Here are some links to useful sites and resources concerning Dreamweaver: Official Macromedia sites:
User's site
TemplatesA template is a document that you can use as the foundation for other documents. When you create a template, you can indicate which elements of a page should remain constant (noneditable) and which elements can be changed (editable areas). This allows you to get common items automatically predefined when creating a new page. For example, if you want the banner to be the same on all your pages, you should define it as a noneditable item on a template and base all your pages on this template. Later on if you modify the template, all pages associated to it will be changed automatically by Dreamweaver. In our example, you can change your banner look and feel on all your pages in a minute by just modifying the template! Good examples of templates are: template for writing minutes of a meeting, template for writing specifications of a project, template for describing a person's activity in the group... Bad example of templates is a template to write the welcome page of a specific project... as it would be used by one page only... The current page is based on a template called "APPS.DWT" which predefines
The 3 only editable areas on this page are:
Here are some links to interesting resources about Dreamweaver templates:
Library ItemsLibrary Items are "pieces of HTML" which can be reused on many pages but maintained at one place only. This is very convenient if you have some tables, menus etc... to be reused on many pages and if you do not want to use frames. Dreamweaver takes care of copying the Library Item code on every page which uses it and to update pages if you change the Library Item. The big difference with templates is that the Library Item is NOT an HTML page but a piece of HTML code (a part of an HTML page in fact, like a table, or some paragraphs...). On this page...
... are all Library Items. Cascading Style Sheets (CSS)Cascading Style Sheets is a World Wide Web Consortium standard allowing web authors to separate web pages content and look and feel. In a word, it works a bit like the "styles" on a word processor, allowing you to define some styles to be applies on specific part of your pages. The styles definition is made either on every pages or on a separate file which eases the update of styles (you do not have to change or republish pages to completely change the look and feel of all your site). Here are some links to interesting resources about Cascading Style Sheets:
|
||||||||||||||||
Last update:
Thursday, 20-Mar-2008 10:37
|