source\lib\gtpublisher\styles\r-lib\default.g
1 /******************************************************************************
2 *
3 * Copyright (C) 2006, The Gentee Group. All rights reserved.
4 * This file is part of the Gentee open source project - http://www.gentee.com.
5 *
6 * THIS FILE IS PROVIDED UNDER THE TERMS OF THE GENTEE LICENSE ("AGREEMENT").
7 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS
8 * ACCEPTANCE OF THE AGREEMENT.
9 *
10 * ID: default 17.11.06 0.0.A.
11 *
12 * Author: Alexey Krivonogov ( gentee )
13 *
14 ******************************************************************************/
15
16 global
17 {
18 uint libgti
19 }
20
21 text R_default( gtitem gti )
22 \{
23 str desc title lang prjname url keys edit
24
25 _gtp.prj.get("project/lang", lang )
26 _gtp.prj.get("project/name", prjname )
27
28 if !libgti : libgti = >i
29
30 gti.getsubitem( "desc", desc )
31 if !*desc : desc = "#/title#"
32
33 gti.getsubitem( "keywords", keys )
34 if !*keys : keys = "#/title#"
35
36 title = "\( prjname ): #/title#"
37 _gtp.geturl( gti, url )
38
39 if !_gtp.prj.find( "project/options", "noedit" )
40 {
41 edit = "<a href=\"/admin/edit.phtml?url=\(url)\">#lng/edit#</a>"
42 }
43
44 }<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"><html>
45 <head>
46 <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
47 <!--meta http-equiv="Content-Language" content="\( lang )"-->
48 <meta NAME="KEYWORDS" CONTENT="\( keys )">
49 <meta NAME="DESCRIPTION" CONTENT="\( desc )">
50 <link rel="icon" href="/favicon.ico" type="image/x-icon">
51 <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
52 <link rel="stylesheet" type="text/css" href="/css/default/styles.css">
53 <script language="JavaScript1.2" src="/css/ddnmenu.js" type="text/javascript"></script>
54 <title>\( title )</title></head>
55 <body>
56 \@header( libgti->gtitem, url )
57
58 <div id="center" >
59 <div class="left-column">
60 \{
61 str info
62 gti.getsubitem( "info", info )
63 if *info : @info
64
65 @navmenu( gti )
66 }
67 <!--#include virtual="/adv.php" -->
68 </div>
69 <div class="content">
70 \{
71 @grainmenu( gti )
72 }
73 <div class="box"><!--EDIT-->\@content( gti )<!--EDIT-->
74 \@related( gti.name )
75 </div>
76 \(edit)
77 </div>
78 <br style="clear:left">
79 </div>
80
81 <!--#include virtual="/footer.html" -->
82 </body></html>
83 \!
84
85