fck_docprops.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <!--
  3. * FCKeditor - The text editor for Internet - http://www.fckeditor.net
  4. * Copyright (C) 2003-2010 Frederico Caldeira Knabben
  5. *
  6. * == BEGIN LICENSE ==
  7. *
  8. * Licensed under the terms of any of the following licenses at your
  9. * choice:
  10. *
  11. * - GNU General Public License Version 2 or later (the "GPL")
  12. * http://www.gnu.org/licenses/gpl.html
  13. *
  14. * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
  15. * http://www.gnu.org/licenses/lgpl.html
  16. *
  17. * - Mozilla Public License Version 1.1 or later (the "MPL")
  18. * http://www.mozilla.org/MPL/MPL-1.1.html
  19. *
  20. * == END LICENSE ==
  21. *
  22. * Link dialog window.
  23. -->
  24. <html>
  25. <head>
  26. <title></title>
  27. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
  28. <meta content="noindex, nofollow" name="robots" >
  29. <script src="common/fck_dialog_common.js" type="text/javascript"></script>
  30. <script type="text/javascript">
  31. var oEditor = window.parent.InnerDialogLoaded() ;
  32. var FCK = oEditor.FCK ;
  33. var FCKLang = oEditor.FCKLang ;
  34. var FCKConfig = oEditor.FCKConfig ;
  35. //#### Dialog Tabs
  36. // Set the dialog tabs.
  37. window.parent.AddTab( 'General' , FCKLang.DlgDocGeneralTab ) ;
  38. window.parent.AddTab( 'Background' , FCKLang.DlgDocBackTab ) ;
  39. window.parent.AddTab( 'Colors' , FCKLang.DlgDocColorsTab ) ;
  40. window.parent.AddTab( 'Meta' , FCKLang.DlgDocMetaTab ) ;
  41. // Function called when a dialog tag is selected.
  42. function OnDialogTabChange( tabCode )
  43. {
  44. ShowE( 'divGeneral' , ( tabCode == 'General' ) ) ;
  45. ShowE( 'divBackground' , ( tabCode == 'Background' ) ) ;
  46. ShowE( 'divColors' , ( tabCode == 'Colors' ) ) ;
  47. ShowE( 'divMeta' , ( tabCode == 'Meta' ) ) ;
  48. ShowE( 'ePreview' , ( tabCode == 'Background' || tabCode == 'Colors' ) ) ;
  49. }
  50. //#### Get Base elements from the document: BEGIN
  51. // The HTML element of the document.
  52. var oHTML = FCK.EditorDocument.getElementsByTagName('html')[0] ;
  53. // The HEAD element of the document.
  54. var oHead = oHTML.getElementsByTagName('head')[0] ;
  55. var oBody = FCK.EditorDocument.body ;
  56. // This object contains all META tags defined in the document.
  57. var oMetaTags = new Object() ;
  58. // Get all META tags defined in the document.
  59. AppendMetaCollection( oMetaTags, oHead.getElementsByTagName('meta') ) ;
  60. AppendMetaCollection( oMetaTags, oHead.getElementsByTagName('fck:meta') ) ;
  61. function AppendMetaCollection( targetObject, metaCollection )
  62. {
  63. // Loop throw all METAs and put it in the HashTable.
  64. for ( var i = 0 ; i < metaCollection.length ; i++ )
  65. {
  66. // Try to get the "name" attribute.
  67. var sName = GetAttribute( metaCollection[i], 'name', GetAttribute( metaCollection[i], '___fcktoreplace:name', '' ) ) ;
  68. // If no "name", try with the "http-equiv" attribute.
  69. if ( sName.length == 0 )
  70. {
  71. if ( oEditor.FCKBrowserInfo.IsIE )
  72. {
  73. // Get the http-equiv value from the outerHTML.
  74. var oHttpEquivMatch = metaCollection[i].outerHTML.match( oEditor.FCKRegexLib.MetaHttpEquiv ) ;
  75. if ( oHttpEquivMatch )
  76. sName = oHttpEquivMatch[1] ;
  77. }
  78. else
  79. sName = GetAttribute( metaCollection[i], 'http-equiv', '' ) ;
  80. }
  81. if ( sName.length > 0 )
  82. targetObject[ sName.toLowerCase() ] = metaCollection[i] ;
  83. }
  84. }
  85. //#### END
  86. // Set a META tag in the document.
  87. function SetMetadata( name, content, isHttp )
  88. {
  89. if ( content.length == 0 )
  90. {
  91. RemoveMetadata( name ) ;
  92. return ;
  93. }
  94. var oMeta = oMetaTags[ name.toLowerCase() ] ;
  95. if ( !oMeta )
  96. {
  97. oMeta = oHead.appendChild( FCK.EditorDocument.createElement('META') ) ;
  98. if ( isHttp )
  99. SetAttribute( oMeta, 'http-equiv', name ) ;
  100. else
  101. {
  102. // On IE, it is not possible to set the "name" attribute of the META tag.
  103. // So a temporary attribute is used and it is replaced when getting the
  104. // editor's HTML/XHTML value. This is sad, I know :(
  105. if ( oEditor.FCKBrowserInfo.IsIE )
  106. SetAttribute( oMeta, '___fcktoreplace:name', name ) ;
  107. else
  108. SetAttribute( oMeta, 'name', name ) ;
  109. }
  110. oMetaTags[ name.toLowerCase() ] = oMeta ;
  111. }
  112. SetAttribute( oMeta, 'content', content ) ;
  113. // oMeta.content = content ;
  114. }
  115. function RemoveMetadata( name )
  116. {
  117. var oMeta = oMetaTags[ name.toLowerCase() ] ;
  118. if ( oMeta && oMeta != null )
  119. {
  120. oMeta.parentNode.removeChild( oMeta ) ;
  121. oMetaTags[ name.toLowerCase() ] = null ;
  122. }
  123. }
  124. function GetMetadata( name )
  125. {
  126. var oMeta = oMetaTags[ name.toLowerCase() ] ;
  127. if ( oMeta && oMeta != null )
  128. return oMeta.getAttribute( 'content', 2 ) ;
  129. else
  130. return '' ;
  131. }
  132. window.onload = function ()
  133. {
  134. // Show/Hide the "Browse Server" button.
  135. GetE('tdBrowse').style.display = oEditor.FCKConfig.ImageBrowser ? "" : "none";
  136. // First of all, translate the dialog box texts
  137. oEditor.FCKLanguageManager.TranslatePage( document ) ;
  138. FillFields() ;
  139. UpdatePreview() ;
  140. // Show the "Ok" button.
  141. window.parent.SetOkButton( true ) ;
  142. window.parent.SetAutoSize( true ) ;
  143. }
  144. function FillFields()
  145. {
  146. // ### General Info
  147. GetE('txtPageTitle').value = FCK.EditorDocument.title ;
  148. GetE('selDirection').value = GetAttribute( oHTML, 'dir', '' ) ;
  149. GetE('txtLang').value = GetAttribute( oHTML, 'xml:lang', GetAttribute( oHTML, 'lang', '' ) ) ; // "xml:lang" takes precedence to "lang".
  150. // Character Set Encoding.
  151. // if ( oEditor.FCKBrowserInfo.IsIE )
  152. // var sCharSet = FCK.EditorDocument.charset ;
  153. // else
  154. var sCharSet = GetMetadata( 'Content-Type' ) ;
  155. if ( sCharSet != null && sCharSet.length > 0 )
  156. {
  157. // if ( !oEditor.FCKBrowserInfo.IsIE )
  158. sCharSet = sCharSet.match( /[^=]*$/ ) ;
  159. GetE('selCharSet').value = sCharSet ;
  160. if ( GetE('selCharSet').selectedIndex == -1 )
  161. {
  162. GetE('selCharSet').value = '...' ;
  163. GetE('txtCustomCharSet').value = sCharSet ;
  164. CheckOther( GetE('selCharSet'), 'txtCustomCharSet' ) ;
  165. }
  166. }
  167. // Document Type.
  168. if ( FCK.DocTypeDeclaration && FCK.DocTypeDeclaration.length > 0 )
  169. {
  170. GetE('selDocType').value = FCK.DocTypeDeclaration ;
  171. if ( GetE('selDocType').selectedIndex == -1 )
  172. {
  173. GetE('selDocType').value = '...' ;
  174. GetE('txtDocType').value = FCK.DocTypeDeclaration ;
  175. CheckOther( GetE('selDocType'), 'txtDocType' ) ;
  176. }
  177. }
  178. // Document Type.
  179. GetE('chkIncXHTMLDecl').checked = ( FCK.XmlDeclaration && FCK.XmlDeclaration.length > 0 ) ;
  180. // ### Background
  181. GetE('txtBackColor').value = GetAttribute( oBody, 'bgColor' , '' ) ;
  182. GetE('txtBackImage').value = GetAttribute( oBody, 'background' , '' ) ;
  183. GetE('chkBackNoScroll').checked = ( GetAttribute( oBody, 'bgProperties', '' ).toLowerCase() == 'fixed' ) ;
  184. // ### Colors
  185. GetE('txtColorText').value = GetAttribute( oBody, 'text' , '' ) ;
  186. GetE('txtColorLink').value = GetAttribute( oBody, 'link' , '' ) ;
  187. GetE('txtColorVisited').value = GetAttribute( oBody, 'vLink' , '' ) ;
  188. GetE('txtColorActive').value = GetAttribute( oBody, 'aLink' , '' ) ;
  189. // ### Margins
  190. GetE('txtMarginTop').value = GetAttribute( oBody, 'topMargin' , '' ) ;
  191. GetE('txtMarginLeft').value = GetAttribute( oBody, 'leftMargin' , '' ) ;
  192. GetE('txtMarginRight').value = GetAttribute( oBody, 'rightMargin' , '' ) ;
  193. GetE('txtMarginBottom').value = GetAttribute( oBody, 'bottomMargin' , '' ) ;
  194. // ### Meta Data
  195. GetE('txtMetaKeywords').value = GetMetadata( 'keywords' ) ;
  196. GetE('txtMetaDescription').value = GetMetadata( 'description' ) ;
  197. GetE('txtMetaAuthor').value = GetMetadata( 'author' ) ;
  198. GetE('txtMetaCopyright').value = GetMetadata( 'copyright' ) ;
  199. }
  200. // Called when the "Ok" button is clicked.
  201. function Ok()
  202. {
  203. // ### General Info
  204. FCK.EditorDocument.title = GetE('txtPageTitle').value ;
  205. var oHTML = FCK.EditorDocument.getElementsByTagName('html')[0] ;
  206. SetAttribute( oHTML, 'dir' , GetE('selDirection').value ) ;
  207. SetAttribute( oHTML, 'lang' , GetE('txtLang').value ) ;
  208. SetAttribute( oHTML, 'xml:lang' , GetE('txtLang').value ) ;
  209. // Character Set Enconding.
  210. var sCharSet = GetE('selCharSet').value ;
  211. if ( sCharSet == '...' )
  212. sCharSet = GetE('txtCustomCharSet').value ;
  213. if ( sCharSet.length > 0 )
  214. sCharSet = 'text/html; charset=' + sCharSet ;
  215. // if ( oEditor.FCKBrowserInfo.IsIE )
  216. // FCK.EditorDocument.charset = sCharSet ;
  217. // else
  218. SetMetadata( 'Content-Type', sCharSet, true ) ;
  219. // Document Type
  220. var sDocType = GetE('selDocType').value ;
  221. if ( sDocType == '...' )
  222. sDocType = GetE('txtDocType').value ;
  223. FCK.DocTypeDeclaration = sDocType ;
  224. // XHTML Declarations.
  225. if ( GetE('chkIncXHTMLDecl').checked )
  226. {
  227. if ( sCharSet.length == 0 )
  228. sCharSet = 'utf-8' ;
  229. FCK.XmlDeclaration = '<' + '?xml version="1.0" encoding="' + sCharSet + '"?>' ;
  230. SetAttribute( oHTML, 'xmlns', 'http://www.w3.org/1999/xhtml' ) ;
  231. }
  232. else
  233. {
  234. FCK.XmlDeclaration = null ;
  235. oHTML.removeAttribute( 'xmlns', 0 ) ;
  236. }
  237. // ### Background
  238. SetAttribute( oBody, 'bgcolor' , GetE('txtBackColor').value ) ;
  239. SetAttribute( oBody, 'background' , GetE('txtBackImage').value ) ;
  240. SetAttribute( oBody, 'bgproperties' , GetE('chkBackNoScroll').checked ? 'fixed' : '' ) ;
  241. // ### Colors
  242. SetAttribute( oBody, 'text' , GetE('txtColorText').value ) ;
  243. SetAttribute( oBody, 'link' , GetE('txtColorLink').value ) ;
  244. SetAttribute( oBody, 'vlink', GetE('txtColorVisited').value ) ;
  245. SetAttribute( oBody, 'alink', GetE('txtColorActive').value ) ;
  246. // ### Margins
  247. SetAttribute( oBody, 'topmargin' , GetE('txtMarginTop').value ) ;
  248. SetAttribute( oBody, 'leftmargin' , GetE('txtMarginLeft').value ) ;
  249. SetAttribute( oBody, 'rightmargin' , GetE('txtMarginRight').value ) ;
  250. SetAttribute( oBody, 'bottommargin' , GetE('txtMarginBottom').value ) ;
  251. // ### Meta data
  252. SetMetadata( 'keywords' , GetE('txtMetaKeywords').value ) ;
  253. SetMetadata( 'description' , GetE('txtMetaDescription').value ) ;
  254. SetMetadata( 'author' , GetE('txtMetaAuthor').value ) ;
  255. SetMetadata( 'copyright' , GetE('txtMetaCopyright').value ) ;
  256. return true ;
  257. }
  258. var bPreviewIsLoaded = false ;
  259. var oPreviewWindow ;
  260. var oPreviewBody ;
  261. // Called by the Preview page when loaded.
  262. function OnPreviewLoad( previewWindow, previewBody )
  263. {
  264. oPreviewWindow = previewWindow ;
  265. oPreviewBody = previewBody ;
  266. bPreviewIsLoaded = true ;
  267. UpdatePreview() ;
  268. }
  269. function UpdatePreview()
  270. {
  271. if ( !bPreviewIsLoaded )
  272. return ;
  273. // ### Background
  274. SetAttribute( oPreviewBody, 'bgcolor' , GetE('txtBackColor').value ) ;
  275. SetAttribute( oPreviewBody, 'background' , GetE('txtBackImage').value ) ;
  276. SetAttribute( oPreviewBody, 'bgproperties' , GetE('chkBackNoScroll').checked ? 'fixed' : '' ) ;
  277. // ### Colors
  278. SetAttribute( oPreviewBody, 'text', GetE('txtColorText').value ) ;
  279. oPreviewWindow.SetLinkColor( GetE('txtColorLink').value ) ;
  280. oPreviewWindow.SetVisitedColor( GetE('txtColorVisited').value ) ;
  281. oPreviewWindow.SetActiveColor( GetE('txtColorActive').value ) ;
  282. }
  283. function CheckOther( combo, txtField )
  284. {
  285. var bNotOther = ( combo.value != '...' ) ;
  286. GetE(txtField).style.backgroundColor = ( bNotOther ? '#cccccc' : '' ) ;
  287. GetE(txtField).disabled = bNotOther ;
  288. }
  289. function SetColor( inputId, color )
  290. {
  291. GetE( inputId ).value = color + '' ;
  292. UpdatePreview() ;
  293. }
  294. function SelectBackColor( color ) { SetColor('txtBackColor', color ) ; }
  295. function SelectColorText( color ) { SetColor('txtColorText', color ) ; }
  296. function SelectColorLink( color ) { SetColor('txtColorLink', color ) ; }
  297. function SelectColorVisited( color ) { SetColor('txtColorVisited', color ) ; }
  298. function SelectColorActive( color ) { SetColor('txtColorActive', color ) ; }
  299. function SelectColor( wich )
  300. {
  301. switch ( wich )
  302. {
  303. case 'Back' : oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320, SelectBackColor ) ; return ;
  304. case 'ColorText' : oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320, SelectColorText ) ; return ;
  305. case 'ColorLink' : oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320, SelectColorLink ) ; return ;
  306. case 'ColorVisited' : oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320, SelectColorVisited ) ; return ;
  307. case 'ColorActive' : oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320, SelectColorActive ) ; return ;
  308. }
  309. }
  310. function BrowseServerBack()
  311. {
  312. OpenFileBrowser( FCKConfig.ImageBrowserURL, FCKConfig.ImageBrowserWindowWidth, FCKConfig.ImageBrowserWindowHeight ) ;
  313. }
  314. function SetUrl( url )
  315. {
  316. GetE('txtBackImage').value = url ;
  317. UpdatePreview() ;
  318. }
  319. </script>
  320. <style type="text/css">
  321. body, td, input, textarea, select, label { font-family: Arial, Verdana, Geneva, helvetica, sans-serif; font-size: 11px; }
  322. </style>
  323. </head>
  324. <body style="overflow: hidden">
  325. <table cellspacing="0" cellpadding="0" width="100%" border="0" style="height: 100%">
  326. <tr>
  327. <td valign="top" style="height: 100%">
  328. <div id="divGeneral">
  329. <span fcklang="DlgDocPageTitle">Page Title</span><br />
  330. <input id="txtPageTitle" style="width: 100%" type="text" />
  331. <br />
  332. <table cellspacing="0" cellpadding="0" border="0">
  333. <tr>
  334. <td>
  335. <span fcklang="DlgDocLangDir">Language Direction</span><br />
  336. <select id="selDirection">
  337. <option value="" selected="selected"></option>
  338. <option value="ltr" fcklang="DlgDocLangDirLTR">Left to Right (LTR)</option>
  339. <option value="rtl" fcklang="DlgDocLangDirRTL">Right to Left (RTL)</option>
  340. </select>
  341. </td>
  342. <td>
  343. &nbsp;&nbsp;&nbsp;</td>
  344. <td>
  345. <span fcklang="DlgDocLangCode">Language Code</span><br />
  346. <input id="txtLang" type="text" />
  347. </td>
  348. </tr>
  349. </table>
  350. <br />
  351. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  352. <tr>
  353. <td style="white-space: nowrap">
  354. <span fcklang="DlgDocCharSet">Character Set Encoding</span><br />
  355. <select id="selCharSet" onchange="CheckOther( this, 'txtCustomCharSet' );">
  356. <option value="" selected="selected"></option>
  357. <option value="us-ascii">ASCII</option>
  358. <option fcklang="DlgDocCharSetCE" value="iso-8859-2">Central European</option>
  359. <option fcklang="DlgDocCharSetCT" value="big5">Chinese Traditional (Big5)</option>
  360. <option fcklang="DlgDocCharSetCR" value="iso-8859-5">Cyrillic</option>
  361. <option fcklang="DlgDocCharSetGR" value="iso-8859-7">Greek</option>
  362. <option fcklang="DlgDocCharSetJP" value="iso-2022-jp">Japanese</option>
  363. <option fcklang="DlgDocCharSetKR" value="iso-2022-kr">Korean</option>
  364. <option fcklang="DlgDocCharSetTR" value="iso-8859-9">Turkish</option>
  365. <option fcklang="DlgDocCharSetUN" value="utf-8">Unicode (UTF-8)</option>
  366. <option fcklang="DlgDocCharSetWE" value="iso-8859-1">Western European</option>
  367. <option fcklang="DlgOpOther" value="...">&lt;Other&gt;</option>
  368. </select>
  369. </td>
  370. <td>
  371. &nbsp;&nbsp;&nbsp;</td>
  372. <td width="100%">
  373. <span fcklang="DlgDocCharSetOther">Other Character Set Encoding</span><br />
  374. <input id="txtCustomCharSet" style="width: 100%; background-color: #cccccc" disabled="disabled"
  375. type="text" />
  376. </td>
  377. </tr>
  378. <tr>
  379. <td colspan="3">
  380. &nbsp;</td>
  381. </tr>
  382. <tr>
  383. <td nowrap="nowrap">
  384. <span fcklang="DlgDocDocType">Document Type Heading</span><br />
  385. <select id="selDocType" onchange="CheckOther( this, 'txtDocType' );">
  386. <option value="" selected="selected"></option>
  387. <option value='&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;'>HTML
  388. 4.01 Transitional</option>
  389. <option value='&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;'>
  390. HTML 4.01 Strict</option>
  391. <option value='&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"&gt;'>
  392. HTML 4.01 Frameset</option>
  393. <option value='&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;'>
  394. XHTML 1.0 Transitional</option>
  395. <option value='&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;'>
  396. XHTML 1.0 Strict</option>
  397. <option value='&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"&gt;'>
  398. XHTML 1.0 Frameset</option>
  399. <option value='&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;'>
  400. XHTML 1.1</option>
  401. <option value='&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"&gt;'>HTML 3.2</option>
  402. <option value='&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"&gt;'>HTML 2.0</option>
  403. <option value="..." fcklang="DlgOpOther">&lt;Other&gt;</option>
  404. </select>
  405. </td>
  406. <td>
  407. </td>
  408. <td width="100%">
  409. <span fcklang="DlgDocDocTypeOther">Other Document Type Heading</span><br />
  410. <input id="txtDocType" style="width: 100%; background-color: #cccccc" disabled="disabled"
  411. type="text" />
  412. </td>
  413. </tr>
  414. </table>
  415. <br />
  416. <input id="chkIncXHTMLDecl" type="checkbox" />
  417. <label for="chkIncXHTMLDecl" fcklang="DlgDocIncXHTML">
  418. Include XHTML Declarations</label>
  419. </div>
  420. <div id="divBackground" style="display: none">
  421. <span fcklang="DlgDocBgColor">Background Color</span><br />
  422. <input id="txtBackColor" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" />&nbsp;<input
  423. id="btnSelBackColor" onclick="SelectColor( 'Back' )" type="button" value="Select..."
  424. fcklang="DlgCellBtnSelect" /><br />
  425. <br />
  426. <span fcklang="DlgDocBgImage">Background Image URL</span><br />
  427. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  428. <tr>
  429. <td width="100%">
  430. <input id="txtBackImage" style="width: 100%" type="text" onchange="UpdatePreview();"
  431. onkeyup="UpdatePreview();" /></td>
  432. <td id="tdBrowse" nowrap="nowrap">
  433. &nbsp;<input id="btnBrowse" onclick="BrowseServerBack();" type="button" fcklang="DlgBtnBrowseServer"
  434. value="Browse Server" /></td>
  435. </tr>
  436. </table>
  437. <input id="chkBackNoScroll" type="checkbox" onclick="UpdatePreview();" />
  438. <label for="chkBackNoScroll" fcklang="DlgDocBgNoScroll">
  439. Nonscrolling Background</label>
  440. </div>
  441. <div id="divColors" style="display: none">
  442. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  443. <tr>
  444. <td>
  445. <span fcklang="DlgDocCText">Text</span><br />
  446. <input id="txtColorText" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
  447. onclick="SelectColor( 'ColorText' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
  448. <br />
  449. <span fcklang="DlgDocCLink">Link</span><br />
  450. <input id="txtColorLink" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
  451. onclick="SelectColor( 'ColorLink' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
  452. <br />
  453. <span fcklang="DlgDocCVisited">Visited Link</span><br />
  454. <input id="txtColorVisited" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
  455. onclick="SelectColor( 'ColorVisited' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
  456. <br />
  457. <span fcklang="DlgDocCActive">Active Link</span><br />
  458. <input id="txtColorActive" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
  459. onclick="SelectColor( 'ColorActive' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
  460. </td>
  461. <td valign="middle" align="center">
  462. <table cellspacing="2" cellpadding="0" border="0">
  463. <tr>
  464. <td>
  465. <span fcklang="DlgDocMargins">Page Margins</span></td>
  466. </tr>
  467. <tr>
  468. <td style="border: #000000 1px solid; padding: 5px">
  469. <table cellpadding="0" cellspacing="0" border="0" dir="ltr">
  470. <tr>
  471. <td align="center" colspan="3">
  472. <span fcklang="DlgDocMaTop">Top</span><br />
  473. <input id="txtMarginTop" type="text" size="3" />
  474. </td>
  475. </tr>
  476. <tr>
  477. <td align="left">
  478. <span fcklang="DlgDocMaLeft">Left</span><br />
  479. <input id="txtMarginLeft" type="text" size="3" />
  480. </td>
  481. <td>
  482. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
  483. <td align="right">
  484. <span fcklang="DlgDocMaRight">Right</span><br />
  485. <input id="txtMarginRight" type="text" size="3" />
  486. </td>
  487. </tr>
  488. <tr>
  489. <td align="center" colspan="3">
  490. <span fcklang="DlgDocMaBottom">Bottom</span><br />
  491. <input id="txtMarginBottom" type="text" size="3" />
  492. </td>
  493. </tr>
  494. </table>
  495. </td>
  496. </tr>
  497. </table>
  498. </td>
  499. </tr>
  500. </table>
  501. </div>
  502. <div id="divMeta" style="display: none">
  503. <span fcklang="DlgDocMeIndex">Document Indexing Keywords (comma separated)</span><br />
  504. <textarea id="txtMetaKeywords" style="width: 100%" rows="2" cols="20"></textarea>
  505. <br />
  506. <span fcklang="DlgDocMeDescr">Document Description</span><br />
  507. <textarea id="txtMetaDescription" style="width: 100%" rows="4" cols="20"></textarea>
  508. <br />
  509. <span fcklang="DlgDocMeAuthor">Author</span><br />
  510. <input id="txtMetaAuthor" style="width: 100%" type="text" /><br />
  511. <br />
  512. <span fcklang="DlgDocMeCopy">Copyright</span><br />
  513. <input id="txtMetaCopyright" type="text" style="width: 100%" />
  514. </div>
  515. </td>
  516. </tr>
  517. <tr id="ePreview" style="display: none">
  518. <td>
  519. <span fcklang="DlgDocPreview">Preview</span><br />
  520. <iframe id="frmPreview" src="fck_docprops/fck_document_preview.html" width="100%"
  521. height="100"></iframe>
  522. </td>
  523. </tr>
  524. </table>
  525. </body>
  526. </html>