Line # Revision Author
1 8 ahitrov@rambler.ru <html>
2 <head>
3 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <style>
5 body {
6 background-color: #FFFFFF;
7 margin: 0px;
8 117 ahitrov font-family: Tahoma, Arial, sans-serif;
9 8 ahitrov@rambler.ru }
10 form {
11 margin: 0px;
12 padding: 0px;
13 }
14 input, select, textarea {
15 font-family: Tahoma, Arial, sans-serif;
16 font-size:9pt;
17 }
18 a {
19 color:#0000ee;
20 }
21 a:visited.v {
22 color:#0000ee;
23 }
24
25 fieldset {padding:6px;margin-bottom:10px;border:2px solid #8093B0;}
26 fieldset legend {font-size:8pt;font-weight:bold;font-family:Tahoma;padding:3px 6px 3px 6px;margin-bottom:6px;color:#ffffff;background-color:#8093B0;}
27 117 ahitrov
28 table { font-size:13px; }
29 input { font-size:12px; }
30 8 ahitrov@rambler.ru
31 117 ahitrov .tatop {font-size:11px;font-family:Tahoma;color:#ffffff;}
32 8 ahitrov@rambler.ru .tatop a {color:#ffffff;}
33 117 ahitrov .npath {font-size:11px;font-family:Tahoma;padding:8px;}
34 8 ahitrov@rambler.ru
35 117 ahitrov .textnorm { font-size:12px; font-family:Tahoma; }
36 8 ahitrov@rambler.ru .input_btn {background-color:#930300;color:#FFFFFF;height:2.4em;}
37
38 table.tlistdocs { margin-top:10px; margin-bottom:10px; border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9; }
39 table.tlistdocs td, table.tlistdocs th { border:1px solid #d9d9d9; border-right:0px; border-bottom:0px; }
40 117 ahitrov table.tlistdocs td {font-size:12px;font-family:Arial;}
41 8 ahitrov@rambler.ru table.tlistdocs table td {border:0px;}
42
43 table.tform th, table.tform td {
44 117 ahitrov font-size: 11px;
45 8 ahitrov@rambler.ru font-family: Tahoma;
46 text-align: left;
47 }
48
49 117 ahitrov th {font-size:11px;font-family:Tahoma;text-align:left;}
50 8 ahitrov@rambler.ru
51 117 ahitrov h5, .hdr5 {font-size:11px;font-family:Tahoma;font-weight:bold;padding-top:10px;padding-bottom:5px;}
52 8 ahitrov@rambler.ru
53
54 .hiddensect { color:#909090; }
55 .hiddensect a { color:#909090; }
56
57 .btn {font-size:9pt;}
58
59 .bb {
60 border: solid 1px #000000;
61 }
62 .gb {
63 background-color: #D8D8D8;
64 }
65 .undo {
66 font-family: Tahoma;
67 font-size: 9pt;
68 background-color: #FFD8D8;
69 }
70 .link_string { font: 12px Tahoma; padding:5px 10px; border-bottom:1px solid gray; }
71 .link_string p { margin:0; padding:0; }
72 117 ahitrov
73 .mm_act { background:#d0d0d0; border-top:1px solid gray; border-right:1px solid gray; text-decoration:none; }
74 8 ahitrov@rambler.ru
75 </style>
76 <title>Редакторский интерфейс<% (length($title) > 0) ? " | $title" : "" %></title>
77 386 ahitrov <script language="javascript" type="text/javascript" src="/contenido/i/js/jquery-1.9.1.js"></script>
78 <script language="javascript" type="text/javascript" src="/contenido/i/js/jquery-ui-1.10.3.custom/jquery-ui-1.10.3.custom.min.js"></script>
79 8 ahitrov@rambler.ru <% $m->comp_exists('/contenido/components/custom_head.msn') ? $m->comp('/contenido/components/custom_head.msn') : '' %>
80 386 ahitrov <link rel="stylesheet" type="text/css" href="/contenido/i/js/jquery-ui-1.10.3.custom/css/flick/jquery-ui-1.10.3.custom.css" media="all" />
81 8 ahitrov@rambler.ru <script language="javascript" type="text/javascript" src="/contenido/i/js/links.js"></script>
82 22 ahitrov@rambler.ru <script language="javascript" type="text/javascript" src="/contenido/i/js/tiny_mce/jquery.tinymce.js"></script>
83 8 ahitrov@rambler.ru <script language="javascript" type="text/javascript">
84 var WYSIWYGControls = new Array();
85 var sDocumentClass;
86 var nDocumentID;
87 22 ahitrov@rambler.ru $().ready(function() {
88 8 ahitrov@rambler.ru var sControls;
89 22 ahitrov@rambler.ru $('textarea.tinymce').tinymce({
90 // Location of TinyMCE script
91 script_url : '/contenido/i/js/tiny_mce/tiny_mce.js',
92
93 // General options
94 theme : "advanced",
95 plugins : "style,layer,table,advhr,advimage,advlink,inlinepopups,preview,media,contextmenu,paste,noneditable,visualchars,nonbreaking,template,advlist",
96
97 // Theme options
98 theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect,|,forecolor,backcolor,|,undo,redo,|,preview,help,code",
99 theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,outdent,indent,blockquote,|,link,unlink,anchor,image,|,tablecontrols",
100 theme_advanced_buttons3 : "cleanup,removeformat,visualaid,|,sub,sup,|,charmap,media,hr,advhr,|,insertlayer,moveforward,movebackward,absolute,|,styleprops,|,visualchars,nonbreaking",
101 theme_advanced_toolbar_location : "top",
102 theme_advanced_toolbar_align : "left",
103 theme_advanced_statusbar_location : "bottom",
104 theme_advanced_resizing : true,
105
106 convert_urls : false,
107
108 269 ahitrov extended_valid_elements : "iframe[src|width|height|name|align|noresize|scrolling|frameBorder|marginWidth|marginHeight],form[action|method|target|enctype|name|id|onSubmit]",
109 23 ahitrov@rambler.ru
110 22 ahitrov@rambler.ru paste_create_paragraphs : false,
111 paste_create_linebreaks : false,
112 paste_auto_cleanup_on_paste : true,
113 paste_convert_middot_lists : false,
114
115 // Example content CSS (should be your site CSS)
116 //content_css : "css/content.css",
117
118 // Drop lists for link/image/media/template dialogs
119 //template_external_list_url : "lists/template_list.js",
120 //external_link_list_url : "lists/link_list.js",
121 //external_image_list_url : "lists/image_list.js",
122 //media_external_list_url : "lists/media_list.js"
123 external_image_list_url : "/contenido/image_list.js?class=" + sDocumentClass + "&id=" + nDocumentID
124
125 });
126 <%doc>
127 8 ahitrov@rambler.ru if ( WYSIWYGControls.length ) {
128 sControls = WYSIWYGControls.join(',');
129 22 ahitrov@rambler.ru $('textarea.tinymce').tinymce({
130 // Location of TinyMCE script
131 script_url : '/contenido/i/js/tiny_mce/tiny_mce.js',
132
133 8 ahitrov@rambler.ru theme : "advanced",
134 plugins : "safari,paste,advimage,table",
135 paste_create_paragraphs : false,
136 paste_create_linebreaks : false,
137 paste_use_dialog : true,
138 paste_auto_cleanup_on_paste : true,
139 paste_convert_middot_lists : false,
140 paste_unindented_list_class : "unindentedList",
141 paste_convert_headers_to_strong : true,
142 paste_insert_word_content_callback : "convertWord",
143 theme_advanced_buttons3_add : "pastetext,pasteword,selectall,|,forecolor,backcolor,|,tablecontrols",
144 convert_urls : false,
145
146 external_image_list_url : "/contenido/image_list.js?class=" + sDocumentClass + "&id=" + nDocumentID
147 });
148 }
149 22 ahitrov@rambler.ru </%doc>
150 });
151 <%doc>
152 8 ahitrov@rambler.ru function convertWord(type, content) {
153 switch (type) {
154 // Gets executed before the built in logic performes it's cleanups
155 case "before":
156 //content = content.toLowerCase(); // Some dummy logic
157 break;
158
159 // Gets executed after the built in logic performes it's cleanups
160 case "after":
161 //content = content.toLowerCase(); // Some dummy logic
162 break;
163 }
164
165 return content;
166 }
167 22 ahitrov@rambler.ru </%doc>
168 8 ahitrov@rambler.ru
169 </script>
170 </head>
171 <body>
172
173 <%args>
174
175 $style => undef
176 $title => undef
177
178 </%args>
179 <%init>
180 my $pn = $state->project_name();
181 my ($pn_name, $pn_domen) = split(/\./, $pn);
182 </%init>