tag is part of the and contains the name of the web page. The contents of this tag are shown in the browser title bar - at the very top of the window.
In the picture above additional text is added to the user info bar (the text PSW). You may hard code this text, in this case it is retrieved using the generateAdditionalInfo function. The returned value depends on the selected language and can be changed by editing the cAddiontalInfo string in the Edit Language page (Settings). Menu This function generates the main menu bar.
Sub menus Sub menus are uses throughout the PSW web site. A good example is the Settings sub menu and sub menus inside the Publication Types and Companies sections. These sub menus typically show a list of items that can be used to navigate to a sub item of that section. Using the Style files you will be able to alter the look of these list items, for example changing the color of the list item when you place the mouse over the item (hover).
Style.php The style files hold the styling parameters for your skin. It defines the fonts,colors, borders, backgrounds, width and height specifications of the user interface elements.
CSS Syntax The CSS syntax is made up of the following parts: a selector, a property and a value: selector {property: value} Normally the selector is the HTML element/tag you wish to style, the property is the attribute you wish to change, and each property can take a value. A colon is used to separate the property and its value. They are surrounded by curly braces, see the snippet below: h1 {color: lime} You can specify more than one property, the properties should be separated by a semicolon.
You can insert comments in CSS to explain your settings. Like HTML comments, CSS comments will be ignored by the browser. A CSS comment begins with "/*", and ends with "*/". /* Submenu and Search items start here */ #search, #submenu, #submenu1, #submenu2, #preview, #summary { width: 100%; } /* multi-line comment here */ Global styles The Style.php file holds the style definitions that apply to all pages in the system. At the beginning of the file the skin_customization.
Browser exceptions To solve browser specific rendering issues you can create style exceptions for a specific browser or browser version. Below a snippet from the style-moz.php exception file (FireFox). /* ** Mozilla specific style sheet entries */ * { -moz-box-sizing: border-box; } .formLabel, .downloadLineLabel, .formStatic, .fieldComment, .formStaticUnits, .formStaticPrice, .formLink, .formStaticFlex, .formSelect, .formField, .formFieldNoWidth, .progressLabel, .progressBarWrapper, .progressBarItemDone, .
Operating systems The operations system names use the following abbreviations: • • • • nt = Windows XP nt = Windows 2003 Server nt = Windows NT mac = Mac OS X Note: Exceptions made for FireFox are stored in a moz exception file. When making an exception for a specific version of FireFox the version number should refer to the Mozilla engine, this number differs from the FireFox version number.
Header The information stated in the header div is used to display the main page header or title. This is the place to show a system wide logo or the logo of your customer. The default skin showing the PSW logo as the header image Replacing content The HTML snippet below shows the header div containing a < h1> tag. Using the Style.php you can replace its contents by a logo uploaded in the Edit Web Design page. This allows the system to show a company specific image or logo.
User information The User Info block displays the name of the logged on user, an option that lets the user edit his or her personal information and the Log off option. The Edit User Info is optional and depends on the users role. In the default the user User Info block is dark blue and placed just above the Menu bar In the default skin the User Info bar is placed just above the Menu bar. Using styling parameters the two seem to be surrounded by border.
Adding additional information The User Info bar has additional information. The code in the template file uses generateUserInfo to retrieve the cAdditionalInfo text from the language strings. The value for this string can be changed using the Edit language page in the Settings section. This variable is used for a global language dependent message. In the default setup the value for this string is PSW. Hard coded text and other elements can be added to the HTML code.
Menu bar The Menu bar provides access to the main sections of PSW. Like the User Info bar the items of the Menu bar are created using HTML lists, which means that you can change its orientation by altering the CSS file. In the default skin the Menu bar is placed directly beneath the User Info bar Styling the menu items The Menu bar is generated using HTML lists, within the list items hyperlinks ( tags) are used to define the target when the user clicks the item.
#menu div { background-color: generateSkinContrastColor(); ?>; padding: 1px; color: #000000; } #menu ul { list-style: none; margin: 0; display: inline; } #menu li { display: inline; line-height: 2em; margin: 0; } #menu .selected a { background-color: generateSkinContrastColorHighLight(1.1); ?>; } #menu li a { text-decoration: none; padding: 5px 5px; } #menu li a:hover { background-color: generateSkinContrastColorHighLight(0.
Creating a Tabbed menu Below is a sample of the Menu bar where the menu items have a tabbed style. To achieve this a repeating background image is added to the
tag. Space is added between the items by adding a right margin. To complete the design border attributes are set for top, left and right sides of the tag.
Background The
tag has two attributes to specify backgrounds. The background can be a color and/or an image. These attributes can be added directly in the Template.php file (bgcolor and background) or to the Style.php file. Adding a background image Background-images can be used in most HTML elements - not just for the whole page (body) and can be used for simple but effective results, such as rounded corners. Example: body { background-image: url("images/main-bg.
Overview tables Overview pages show tabular data (for example the Companies, Users and Publication Types pages). An overview table is build using the table tag and follows the regular HTML