|
From: Jon O. <jon...@us...> - 2007-09-09 20:51:43
|
Update of /cvsroot/mxbb/mx_simpledoc/templates/_core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5223/_core Added Files: _core.cfg index.htm simpledoc_import.tpl simpledoc_index.tpl simpledoc_publish.tpl simpledoc_settings.tpl simpledoc_view.tpl simpledoc_view_plain.tpl Log Message: for 2.9.x --- NEW FILE: simpledoc_index.tpl --- <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/common.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/XulMenu/XulMenu.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/XulMenu/ie5.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/DynamicTree/DynamicTree.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/XulTabs/XulTabs.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/SimpleTextEditor/SimpleTextEditor.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/management.js.php"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/request.js.php"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/debug.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}modules/mx_shared/ajax/AjaxRequest_comp.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}modules/mx_shared/ajax/dhtmlHistory.js"></script> <script type="text/javascript"> /* fix for IE not loading wysiwyg editor images */ var imgs = ["bold.gif", "center.gif", "help.gif", "image.gif", "indent.gif", "italic.gif", "left.gif", "link.gif", "ol.gif", "outdent.gif", "right.gif", "ul.gif", "underline.gif", "viewsource.gif"]; for (var k = 0; k < imgs.length; ++k) { var image = new Image(); image.src = "{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/SimpleTextEditor/images/"+imgs[k]; imgs[k] = image; } </script> <script type="text/javascript"> function _mxBlock(id, page) { this.block_id = id; this.page_id = page; } mxBlock = new _mxBlock('{BLOCK_ID}','{PAGE_ID}'); </script> <style type="text/css"> <!-- /* SimpleDoc [www.gosu.pl], administration interface */ #menu { position: relative z-index: 10; } #menu_top { height: 30px; padding: 15px 15px 0 15px; } td.simpledoc_title { font-size: 13px; font-weight: bold; margin: 0; padding: 10px; margin-bottom: 0.6em; border: {T_TH_COLOR1} 1px solid; border-style: none none solid none; } .nomargin { margin-bottom: 0; } .hr { font-size: 0px; border-width: 1px; border-color: {T_TH_COLOR1}; border-style: solid none none none; margin-top: 2px; margin-bottom: 2px; } #main { } #left { padding: 15px 15px 15px 15px; border-right: 1px solid {T_TH_COLOR1}; vertical-align: top; } #right { padding: 15px 15px 15px 15px; vertical-align: top; height: 100%; width: 100%;} #tabs-loading, #tabs-saving { position: absolute; z-index: 10; display: none; opacity: 0.8; -moz-opacity: 0.8; filter: alpha(opacity=80); } img { border: 0; } ul { margin: 1em 0 1em 3em; padding: 0; } #tabs-data, #tabs-data table { font-family: {T_FONTFACE1}; font-size: 11px; color: {T_BODY_TEXT}; background: {T_TR_COLOR1}; width: 100%; } .t0 { border: {T_TH_COLOR1} 1px solid; } .t1 { background: {T_TR_COLOR2}; padding: 3px 8px; } .t2 { background: {T_TR_COLOR2}: 3px 8px; } #saved { color: {T_BODY_TEXT}; } .error { color: red; } .message { color: green; } .note { font-weight: bold; } .message-box { padding: 1em; background: {T_TD_COLOR2}; border: {T_TH_COLOR3} 1px solid; } pre { background-color: {T_TR_COLOR2}; padding: 0.75em 1.5em; border: 1px solid {T_TH_COLOR1}; } .contents { float: right; background-color: {T_TR_COLOR2}; padding: 0.75em; margin: 0 0 0.75em 0.75em; border: 1px solid {T_TH_COLOR1}; } .contents ul { margin-left: 1.2em; margin-right: 0.75em; margin-bottom: 0; padding: 0; } /* SimpleDoc [www.gosu.pl], style for DynamicTree */ .DynamicTree { font-family: {T_FONTFACE1}; font-size: 11px; white-space: nowrap; cursor: default; } .DynamicTree .wrap1, .DynamicTree .actions { -moz-user-select: none; } .DynamicTree a, .DynamicTree a:hover { color: {T_BODY_VLINK}; text-decoration: none; cursor: default; } .DynamicTree .text { padding: 1px; cursor: pointer; } .DynamicTree .text-active { background: {T_TR_COLOR1}; padding: 1px; cursor: pointer; } .DynamicTree div.folder img, .DynamicTree div.doc img { border: 0; vertical-align: -30%; } * html .DynamicTree .folder img, * html .DynamicTree .doc img { vertical-align: -40%; } .DynamicTree .section { background: url({MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/DynamicTree/images/tree-branch.gif) repeat-y; display: none; } .DynamicTree .last { background: none; } .DynamicTree div.folder div.folder { margin-left: 18px; } .DynamicTree div.doc div.doc, .DynamicTree div.folder div.doc { margin-left: 18px; } .DynamicTree ul {} .DynamicTree li.folder {} .DynamicTree li.doc {} .DynamicTree .actions { margin-top: 7px; margin-left: 0px; height: 20px; float:left; } .DynamicTree .tooltip { margin-top: 28px; margin-left: 0px; height: 5px; } .DynamicTree .moveUp, .DynamicTree .moveDown, .DynamicTree .moveLeft, .DynamicTree .moveRight, .DynamicTree .insert, .DynamicTree .remove { margin-top: 4px; width: 20px; height: 20px; display: block; border: 1px solid {T_TH_COLOR1}; cursor: default; float:left; } .DynamicTree .moveUp:hover, .DynamicTree .moveDown:hover, .DynamicTree .moveLeft:hover, .DynamicTree .moveRight:hover, .DynamicTree .insert:hover, .DynamicTree .remove:hover { background-color: {T_TR_COLOR1}; border: 1px solid {T_TH_COLOR3}; } .DynamicTree .top { font-weight: bold; padding-left: 0px; line-height: 20px; color: {T_BODY_TEXT}; border-width: 2px; border-color: {T_TH_COLOR2}; border-style: none none border-width: 1px; border-color: {T_TH_COLOR2}; border-style: none none solid none; margin-bottom: 5px;} .DynamicTree .wrap1 { padding: 10px; border: 1px solid {T_TH_COLOR1}; width: 200px; } .DynamicTree .wrap2 { margin-left: 2px; } .DynamicTree #tree-insert-form { display: none; margin-top: 5em; } .DynamicTree #tree-insert-form .label { text-align: right; width: 50px; padding-right: 8px; } .DynamicTree #tree-insert-form .input { margin-bottom: 2px; padding-left: 3px; } .DynamicTree #tree-insert-form select { margin-bottom: 2px; } .DynamicTree #tree-insert-form .button { margin-top: 4px; } .XulMenu { font-family: georgia, tahoma, verdana; font-size: 11px; -moz-user-select: none; } .XulMenu .button, .XulMenu .button:hover, .XulMenu .button-active, .XulMenu .button-active:hover { line-height: normal; padding: 4px 8px 3px 8px; border: 1px solid {T_TR_COLOR2}; color: {T_BODY_TEXT}; text-decoration: none; cursor: default; white-space: nowrap; display: block; position: relative; } .XulMenu .button:hover { border-color: #ffffff #ACA899 #ACA899 #ffffff; } .XulMenu .button-active, .XulMenu .button-active:hover { border-color: #ACA899 #ffffff #ffffff #ACA899; } .XulMenu .item, .XulMenu .item:hover, .XulMenu .item-active, .XulMenu .item-active:hover { background: #ffffff; line-height: normal; padding: 3px 30px 3px 20px; color: #000000; text-decoration: none; cursor: default; white-space: nowrap; display: block; position: relative; } .XulMenu .item:hover, .XulMenu .item-active, .XulMenu .item-active:hover { background: #316AC5; color: #ffffff; } .XulMenu .section { background: #ffffff; border: 1px solid; border-color: #F1EFE2 #716F64 #716F64 #F1EFE2; padding: 2px 1px 1px 2px; position: absolute; visibility: hidden; z-index: -1; margin-top: 25px; } .XulMenu .arrow { position: absolute; top: 7px; right: 8px; border: 0; } .XulMenu .hr { font-size: 0px; border-width: 1px; border-color: #aca899; border-style: solid none none none; margin-top: 2px; margin-bottom: 2px; margin-left: 4px; margin-right: 4px; } * html .XulMenu td { position: relative; } /* ie 5.0 fix */ /* SimpleDoc [www.gosu.pl], style for tabs */ .XulTabs .wrap1 { height: 23px; } .XulTabs .wrap1 td { vertical-align: bottom; } .XulTabs .tab, .XulTabs .tab:hover, .XulTabs .tab-active, .XulTabs .tab-active:hover { text-decoration: none; padding: 3px 10px 3px 10px; border-top: 1px solid {T_TH_COLOR1}; border-left: 1px solid {T_TH_COLOR1}; color: {T_BODY_LINK}; cursor: default; white-space: nowrap; display: block; } .XulTabs .tab:hover { border-top: 2px solid {T_BODY_VLINK}; padding-top: 2px; } .XulTabs .tab-active, .XulTabs .tab-active:hover { border-top: 3px solid {T_BODY_VLINK}; padding-top: 2px; padding-bottom: 4px; font-weight: bold; } .XulTabs .view { border-right: 1px solid {T_TH_COLOR1}; } .XulTabs .content { border: 1px solid {T_TH_COLOR1}; background: {T_TR_COLOR1}; width: 100%; height: 100%; } .XulTabs .wrap2 { vertical-align: top; padding: 15px; } .XulTabs .data { display: none; } * html .XulTabs .tab, * html .XulTabs .tab:hover, * html .XulTabs .tab-active, * html .XulTabs .tab-active:hover { width: 100%; } /* SimpleDoc [www.gosu.pl], style for texteditor */ .ste { background-color: #ffffff; } .ste .bar { padding: 3px; border: {T_TH_COLOR1} 1px; border-style: solid solid none solid; } .ste .frame { background: #ffffff; border: 1px solid; border-color: {T_TH_COLOR1}; } .ste .frame iframe { background: #ffffff; width: 100%; height: 300px; } .ste img { background: #ffffff; border: 0; } .ste .button { background: #ffffff; padding: 1px; border: {T_TH_COLOR1} 1px solid; } .ste .button-hover { background: #ffffff; padding: 1px; border: 1px solid; border-color: {T_TH_COLOR3} } .ste .button-click { background: #ffffff; padding: 1px; border: 1px solid; border-color: {T_TH_COLOR3} } .ste .separator {background: #ffffff; width: 0px; height: 18px; border-left: {T_TH_COLOR1} 1px solid; border-right: {T_TH_COLOR3} 1px solid; margin: 0 5px; } .ste .source { color: {T_BODY_TEXT}; padding-top: 5px; } --> </style> <table cellspacing="1" cellpadding="0" width="100%" height="100%" class="forumline" style="border-top:none;"> <tr> <td class="row2"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td class="cat"> <div id="menu"> <table cellspacing="0" cellpadding="0" class="XulMenu"> <tr> <td> <a class="button" href="javascript:void(0)">{L_PROJECT}</a> <div class="section"> <a class="item" href="{MODE_MANAGE_URL}">{L_MANAGEMENT}</a> <a class="item" href="{MODE_PUBLISH_URL}">{L_PUBLISH}</a> <div class="hr"></div> <a class="item" href="{MODE_IMPORT_URL}">{L_IMPORT_CONTENT}</a> <a class="item" href="{MODE_EXPORT_URL}">{L_EXPORT_CONTENT}</a> <div class="hr"></div> <a class="item" href="{MODE_VIEW_URL}">{L_DOC_VIEW}</a> </div> </td> <!-- <td> <a class="button" href="javascript:void(0)">{L_OPTIONS}</a> <div class="section"> <a class="item" href="{MODE_SETTINGS_URL}">{L_SETTINGS}</a> </div> </td> --> <td> <a class="button" href="javascript:void(0)">{L_HELP}</a> <div class="section"> <a class="item" href="javascript:void(window.open('{MX_ROOT_PATH}{MODULE_ROOT_PATH}docs/help-contents.html', 'Contents', 'width=400,height=400,scrollbars=yes'))">{L_CONTENTS}</a> <a class="item" href="javascript:void(window.open('{MX_ROOT_PATH}{MODULE_ROOT_PATH}docs/help-about.html', 'Contents', 'width=400,height=400,scrollbars=yes'))">{L_ABOUT}</a> </div> </td> </tr> </table> </div> <script type="text/javascript">var menu = new XulMenu("menu"); menu.zIndex.visible = 10; menu.init();</script> </td> </tr> <tr> <td id="top" class="simpledoc_title"> <span class="nomargin">{L_PROJECT_NAME} - {L_MANAGEMENT} {VIEW_DOC}</span> </td> </tr> <tr> <td> <!-- MAIN --> <table cellspacing="0" cellpadding="0" width="100%" height="100%" id="main"> <tr> <td id="left" class="row1"> <div class="DynamicTree"> <table cellspacing="0" cellpadding="0"> <tr> <td class="row2"> <div class="wrap1"> <div class="top">{L_TOC}</div> <div class="row2"> <div id="tree"> {TREE_HTML} </div> </div> </div> <script type="text/javascript">var tree = new DynamicTree("tree"); tree.path = "{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/DynamicTree/images/"; tree.init();</script> </td> </tr> </table> <div class="actions"> <a id="tree-moveUp" class="moveUp" href="javascript:void(0)"><img src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/DynamicTree/images/moveUp.gif" width="20" height="20" alt=""></a> <a id="tree-moveDown" class="moveDown" href="javascript:void(0)"><img src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/DynamicTree/images/moveDown.gif" width="20" height="20" alt=""></a> <a id="tree-moveLeft" class="moveLeft" href="javascript:void(0)"><img src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/DynamicTree/images/moveLeft.gif" width="20" height="20" alt=""></a> <a id="tree-moveRight" class="moveRight" href="javascript:void(0)"><img src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/DynamicTree/images/moveRight.gif" width="20" height="20" alt=""></a> <a id="tree-insert" class="insert" href="javascript:void(0)"><img src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/DynamicTree/images/insert.gif" width="20" height="20" alt=""></a> <a id="tree-remove" class="remove" href="javascript:void(0)"><img src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/DynamicTree/images/delete.gif" width="20" height="20" alt=""></a> </div> <div class="tooltip" id="tree-tooltip"></div> <div id="tree-insert-form"> <form action="javascript:void(0)" method="get"> <table cellspacing="0" cellpadding="0"> <tr id="tree-insert-where-div"> <td class="label">{L_WHERE}</td> <td><select id="tree-insert-where" name="tree-insert-where" class="where"><option value="before">{L_BEFORE}</option><option value="after">{L_AFTER}</option></select></td> </tr> <tr> <td class="label">{L_TYPE}</td> <td><select id="tree-insert-type" name="tree-insert-type"><option value="doc">{L_DOCUMENT}</option><option value="folder">{L_FOLDER}</option></select></td> </tr> <tr> <td class="label">{L_NAME}</td> <td><input class="input" size="18" id="tree-insert-name" name="tree-insert-name" type="text" value="" /></td> </tr> <tr> <td colspan="2" align="center"> <input id="tree-insert-button" class="button" type="button" value="Insert" /> <input id="tree-insert-cancel" type="button" value="Cancel" /> </td> </tr> </table> </form> </div> </div> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/init_main.js"></script> </td> <td id="right" class="row1"> <table cellspacing="0" cellpadding="0" width="100%" height="100%" id="tabs" class="XulTabs"> <tr> <td class="wrap1"> <table cellspacing="0" cellpadding="0"> <tr> <td class="row2"><a id="tab1" class="tab" href="javascript:void(0)" onclick="documentInfo(); this.blur();">{L_DOC_INFO}</a></td> <td class="row2"><a id="tab2" class="tab right" href="javascript:void(0)" onclick="editContent(); this.blur();">{L_EDIT_CONTENT}</a></td> <td class="row2"><a id="tab3" class="tab view" href="javascript:void(0)" onclick="documentPreview(); this.blur();">{L_DOC_PREVIEW}</a></td> </tr> </table> </td> <td align="right"> <input id="openEditContent" type="checkbox" value="1" onclick="this.checked ? setCookie('openEditContent', 1, COOKIE_YEAR) : delCookie('openEditContent'); this.blur();"> {L_DEFAULT_EDIT} </td> </tr> <tr> <td colspan="2"> <table cellspacing="0" cellpadding="0" class="content"> <tr> <td class="wrap2"> <div id="tabs-loading">{L_LOADING}</div> <div id="tabs-saving">{L_SAVING}</div> <div id="tabs-data"></div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <script type="text/javascript"> if (getCookie("openEditContent")) el('openEditContent').checked = "checked"; </script> --- NEW FILE: _core.cfg --- <?php // // ** Configuration file for subSilver template ** // // ** copyright (C) 2001 The phpBB Group ** // ** Created by subBlue design ** // ** www.subBlue.com ** // // ** subSilver dev. forum: www.subSky.com/phpBB2/ ** // // $Id: _core.cfg,v 1.1 2007/09/09 20:51:28 jonohlsson Exp $ // // Please note that to enable support of different languages // the {LANG} place holder is available. This will be replaced // with xxx where xxx is the users selected language. If // that language isn't available it will default to english. // Therefore you MUST ensure you have at least a english // directory if you choose to localise your template // // // Do not alter this line! // define(MX_TEMPLATE_CONFIG, TRUE); $mx_template_config = true; // ------------------------------------------------------------------------- // Do some checks // ------------------------------------------------------------------------- $current_template_path = file_exists( $mx_root_path . $current_template_path . "/images" ) ? $current_template_path : ( file_exists( $mx_root_path . $cloned_template_path . "/images" ) ? $cloned_template_path : $default_template_path ); // ------------------------------------------------------------------------- // Prefix with PORTAL_URL // ------------------------------------------------------------------------- $current_template_images = PORTAL_URL . $current_template_path . "/images"; ?> --- NEW FILE: simpledoc_view.tpl --- <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/common.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/XulMenu/XulMenu.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/XulMenu/ie5.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/DynamicTree/DynamicTree.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/XulTabs/XulTabs.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/management.js.php"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/request.js.php"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/debug.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}modules/mx_shared/ajax/AjaxRequest_comp.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}modules/mx_shared/ajax/dhtmlHistory.js"></script> <script type="text/javascript"> function _mxBlock(id, page) { this.block_id = id; this.page_id = page; } mxBlock = new _mxBlock('{BLOCK_ID}','{PAGE_ID}'); </script> <style type="text/css"> <!-- /* SimpleDoc [www.gosu.pl], administration interface */ #menu { position: relative z-index: 10; } #menu_top { height: 30px; padding: 15px 15px 0 15px; } td.simpledoc_title { font-size: 13px; font-weight: bold; margin: 0; padding: 10px; margin-bottom: 0.6em; border: {T_TH_COLOR1} 1px solid; border-style: none none solid none; } .nomargin { margin-bottom: 0; } .hr { font-size: 0px; border-width: 1px; border-color: {T_TH_COLOR1}; border-style: solid none none none; margin-top: 2px; margin-bottom: 2px; } #main { } #left { width: 500px; padding: 15px 15px 15px 15px; border-right: 1px solid {T_TH_COLOR1}; vertical-align: top; } #right { padding: 15px 15px 15px 15px; vertical-align: top; height: 100%; width: 100%;} #tabs-loading, #tabs-saving { position: absolute; z-index: 10; display: none; opacity: 0.8; -moz-opacity: 0.8; filter: alpha(opacity=80); } img { border: 0; } ul { margin: 1em 0 1em 3em; padding: 0; } #tabs-data, #tabs-data table { font-family: {T_FONTFACE1}; font-size: 11px; color: {T_BODY_TEXT}; background: {T_TR_COLOR1}; width: 100%; } .t0 { border: {T_TH_COLOR1} 1px solid; } .t1 { background: {T_TR_COLOR2}; padding: 3px 8px; } .t2 { background: {T_TR_COLOR2}: 3px 8px; } #saved { color: {T_BODY_TEXT}; } .error { color: red; } .message { color: green; } .note { font-weight: bold; } .message-box { padding: 1em; background: {T_TD_COLOR2}; border: {T_TH_COLOR3} 1px solid; } pre { background-color: {T_TR_COLOR2}; padding: 0.75em 1.5em; border: 1px solid {T_TH_COLOR1}; } .contents { float: right; background-color: {T_TR_COLOR2}; padding: 0.75em; margin: 0 0 0.75em 0.75em; border: 1px solid {T_TH_COLOR1}; } .contents ul { list-style: none; margin-left: 0.5em; margin-right: 0.9em; margin-bottom: 2px; margin-top: 0px; padding: 5px; text-indent: -0.9em; } .sectioncontents { padding: 0em; margin: 0 0 0 0; } .sectioncontents ul { list-style: none; margin-left: 1.5em; margin-right: 0.5em; margin-bottom: 2px; margin-top: 0px; padding: 1px;} .sectioncontents a { color: {T_BODY_LINK}; text-decoration: none; } .sectioncontents a:hover { color: {T_BODY_VLINK}; text-decoration: underline; cursor: hand; } /* SimpleDoc [www.gosu.pl], style for DynamicTree */ .DynamicTree { font-family: {T_FONTFACE1}; font-size: 11px; white-space: nowrap; cursor: default; } .DynamicTree .wrap1, .DynamicTree .actions { -moz-user-select: none; } .DynamicTree a, .DynamicTree a:hover { color: {T_BODY_VLINK}; text-decoration: none; cursor: hand; } .DynamicTree .text { padding: 1px; cursor: pointer; } .DynamicTree .text-active { background: {T_TR_COLOR1}; padding: 1px; cursor: pointer; } .DynamicTree div.folder img, .DynamicTree div.doc img { border: 0; vertical-align: -30%; } * html .DynamicTree .folder img, * html .DynamicTree .doc img { vertical-align: -40%; } .DynamicTree .section { background: url({MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/DynamicTree/images/tree-branch.gif) repeat-y; display: none; } .DynamicTree .last { background: none; } .DynamicTree div.folder div.folder { margin-left: 18px; } .DynamicTree div.doc div.doc, .DynamicTree div.folder div.doc { margin-left: 18px; } .DynamicTree ul {} .DynamicTree li.folder {} .DynamicTree li.doc {} .DynamicTree .actions { margin-top: 7px; margin-left: 0px; height: 20px; float:left; } .DynamicTree .tooltip { margin-top: 28px; margin-left: 0px; height: 5px; } .DynamicTree .moveUp, .DynamicTree .moveDown, .DynamicTree .moveLeft, .DynamicTree .moveRight, .DynamicTree .insert, .DynamicTree .remove { margin-top: 4px; width: 20px; height: 20px; display: block; border: 1px solid {T_TH_COLOR1}; cursor: default; float:left; } .DynamicTree .moveUp:hover, .DynamicTree .moveDown:hover, .DynamicTree .moveLeft:hover, .DynamicTree .moveRight:hover, .DynamicTree .insert:hover, .DynamicTree .remove:hover { background-color: {T_TR_COLOR1}; border: 1px solid {T_TH_COLOR3}; } .DynamicTree .top { font-weight: bold; padding-left: 0px; line-height: 20px; color: {T_BODY_TEXT}; border-width: 2px; border-color: {T_TH_COLOR2}; border-style: none none border-width: 1px; border-color: {T_TH_COLOR2}; border-style: none none solid none; margin-bottom: 5px;} .DynamicTree .wrap1 { padding: 10px; border: 1px solid {T_TH_COLOR1}; width: 200px; } .DynamicTree .wrap2 { margin-left: 2px; } .DynamicTree #tree-insert-form { display: none; margin-top: 5em; } .DynamicTree #tree-insert-form .label { text-align: right; width: 50px; padding-right: 8px; } .DynamicTree #tree-insert-form .input { margin-bottom: 2px; padding-left: 3px; } .DynamicTree #tree-insert-form select { margin-bottom: 2px; } .DynamicTree #tree-insert-form .button { margin-top: 4px; } .XulMenu { font-family: georgia, tahoma, verdana; font-size: 11px; -moz-user-select: none; } .XulMenu .button, .XulMenu .button:hover, .XulMenu .button-active, .XulMenu .button-active:hover { line-height: normal; padding: 4px 8px 3px 8px; border: 1px solid {T_TR_COLOR2}; color: {T_BODY_TEXT}; text-decoration: none; cursor: default; white-space: nowrap; display: block; position: relative; } .XulMenu .button:hover { border-color: #ffffff #ACA899 #ACA899 #ffffff; } .XulMenu .button-active, .XulMenu .button-active:hover { border-color: #ACA899 #ffffff #ffffff #ACA899; } .XulMenu .item, .XulMenu .item:hover, .XulMenu .item-active, .XulMenu .item-active:hover { background: #ffffff; line-height: normal; padding: 3px 30px 3px 20px; color: #000000; text-decoration: none; cursor: default; white-space: nowrap; display: block; position: relative; } .XulMenu .item:hover, .XulMenu .item-active, .XulMenu .item-active:hover { background: #316AC5; color: #ffffff; } .XulMenu .section { background: #ffffff; border: 1px solid; border-color: #F1EFE2 #716F64 #716F64 #F1EFE2; padding: 2px 1px 1px 2px; position: absolute; visibility: hidden; z-index: -1; margin-top: 25px; } .XulMenu .arrow { position: absolute; top: 7px; right: 8px; border: 0; } .XulMenu .hr { font-size: 0px; border-width: 1px; border-color: #aca899; border-style: solid none none none; margin-top: 2px; margin-bottom: 2px; margin-left: 4px; margin-right: 4px; } * html .XulMenu td { position: relative; } /* ie 5.0 fix */ /* SimpleDoc [www.gosu.pl], style for tabs */ .XulTabs .wrap1 { height: 23px; } .XulTabs .wrap1 td { vertical-align: bottom; } .XulTabs .tab, .XulTabs .tab:hover, .XulTabs .tab-active, .XulTabs .tab-active:hover { text-decoration: none; padding: 3px 10px 3px 10px; border-top: 1px solid {T_TH_COLOR1}; border-left: 1px solid {T_TH_COLOR1}; color: {T_BODY_LINK}; cursor: default; white-space: nowrap; display: block; } .XulTabs .tab:hover { border-top: 2px solid {T_BODY_VLINK}; padding-top: 2px; } .XulTabs .tab-active, .XulTabs .tab-active:hover { border-top: 3px solid {T_BODY_VLINK}; padding-top: 2px; padding-bottom: 4px; font-weight: bold; } .XulTabs .view { border-right: 1px solid {T_TH_COLOR1}; } .XulTabs .content { border: 1px solid {T_TH_COLOR1}; background: {T_TR_COLOR1}; width: 100%; height: 100%; } .XulTabs .wrap2 { vertical-align: top; padding: 15px; } .XulTabs .data { display: none; } * html .XulTabs .tab, * html .XulTabs .tab:hover, * html .XulTabs .tab-active, * html .XulTabs .tab-active:hover { width: 100%; } --> </style> <table cellspacing="1" cellpadding="0" width="100%" height="100%" class="forumline" style="border-top:none;"> <tr> <td class="row2"> <table cellspacing="0" cellpadding="0" width="100%"><tr> <td class="row2"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <tr> <td id="top" class="simpledoc_title"> <span class="nomargin">{L_PROJECT_NAME} {MANAGE}</span> </td> </tr> <tr> <td> <!-- MAIN --> <table cellspacing="0" cellpadding="0" width="100%" height="100%" id="main"> <tr> <td id="left" class="row1"> <div class="DynamicTree"> <table cellspacing="0" cellpadding="0"> <tr> <td class="row2"> <div class="wrap1"> <div class="top">{L_TOC}</div> <div class="row2"> <div id="tree"> {TREE_HTML} </div> </div> </div> </td> </tr> </table> </div> <script type="text/javascript">var tree = new DynamicTree("tree"); tree.path = "{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/DynamicTree/images/"; tree.init();</script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/init_view.js"></script> </td> <td id="right" class="row1"> <table cellspacing="0" cellpadding="0" width="100%" height="100%" id="tabs" class="XulTabs"> <tr> <td colspan="2"> <table cellspacing="0" cellpadding="0" class="content"> <tr> <td class="wrap2"> <div id="tabs-loading">{L_LOADING}</div> <div id="tabs-saving">{L_SAVING}</div> <div id="tabs-data"></div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> --- NEW FILE: simpledoc_view_plain.tpl --- <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/common.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/XulTabs/XulTabs.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/debug.js"></script> <style type="text/css"> <!-- /* SimpleDoc [www.gosu.pl], administration interface */ #menu { position: relative z-index: 10; } #menu_top { height: 30px; padding: 15px 15px 0 15px; } td.simpledoc_title { font-size: 13px; font-weight: bold; margin: 0; padding: 10px; margin-bottom: 0.6em; border: {T_TH_COLOR1} 1px solid; border-style: none none solid none; } .nomargin { margin-bottom: 0; } .hr { font-size: 0px; border-width: 1px; border-color: {T_TH_COLOR1}; border-style: solid none none none; margin-top: 2px; margin-bottom: 2px; } #main { } #left { width: 500px; padding: 15px 15px 15px 15px; border-right: 1px solid {T_TH_COLOR1}; vertical-align: top; } #right { padding: 15px 15px 15px 15px; vertical-align: top; height: 100%; width: 100%;} #tabs-loading, #tabs-saving { position: absolute; z-index: 10; display: none; opacity: 0.8; -moz-opacity: 0.8; filter: alpha(opacity=80); } img { border: 0; } ul { margin: 1em 0 1em 3em; padding: 0; } #tabs-data, #tabs-data table { font-family: {T_FONTFACE1}; font-size: 11px; color: {T_BODY_TEXT}; background: {T_TR_COLOR1}; width: 100%; } .t0 { border: {T_TH_COLOR1} 1px solid; } .t1 { background: {T_TR_COLOR2}; padding: 3px 8px; } .t2 { background: {T_TR_COLOR2}: 3px 8px; } #saved { color: {T_BODY_TEXT}; } .error { color: red; } .message { color: green; } .note { font-weight: bold; } .message-box { padding: 1em; background: {T_TD_COLOR2}; border: {T_TH_COLOR3} 1px solid; } pre { background-color: {T_TR_COLOR2}; padding: 0.75em 1.5em; border: 1px solid {T_TH_COLOR1}; } .contents { float: right; background-color: {T_TR_COLOR2}; padding: 0.75em; margin: 0 0 0.75em 0.75em; border: 1px solid {T_TH_COLOR1}; } .contents ul { margin-left: 1.2em; margin-right: 0.75em; margin-bottom: 0; padding: 0; } /* SimpleDoc [www.gosu.pl], style for DynamicTree */ .DynamicTree { font-family: {T_FONTFACE1}; font-size: 11px; white-space: nowrap; cursor: default; } .DynamicTree .wrap1, .DynamicTree .actions { -moz-user-select: none; } .DynamicTree a, .DynamicTree a:hover { color: {T_BODY_VLINK}; text-decoration: none; cursor: default; } .DynamicTree .text { padding: 1px; cursor: pointer; } .DynamicTree .text-active { background: {T_TR_COLOR1}; padding: 1px; cursor: pointer; } .DynamicTree div.folder img, .DynamicTree div.doc img { border: 0; vertical-align: -30%; } * html .DynamicTree .folder img, * html .DynamicTree .doc img { vertical-align: -40%; } .DynamicTree .section { background: url(images/tree-branch.gif) repeat-y; display: none; } .DynamicTree .last { background: none; } .DynamicTree div.folder div.folder { margin-left: 18px; } .DynamicTree div.doc div.doc, .DynamicTree div.folder div.doc { margin-left: 18px; } .DynamicTree ul {} .DynamicTree li.folder {} .DynamicTree li.doc {} .DynamicTree .actions { margin-top: 7px; margin-left: 0px; height: 20px; float:left; } .DynamicTree .tooltip { margin-top: 28px; margin-left: 0px; height: 5px; } .DynamicTree .moveUp, .DynamicTree .moveDown, .DynamicTree .moveLeft, .DynamicTree .moveRight, .DynamicTree .insert, .DynamicTree .remove { margin-top: 4px; width: 20px; height: 20px; display: block; border: 1px solid {T_TH_COLOR1}; cursor: default; float:left; } .DynamicTree .moveUp:hover, .DynamicTree .moveDown:hover, .DynamicTree .moveLeft:hover, .DynamicTree .moveRight:hover, .DynamicTree .insert:hover, .DynamicTree .remove:hover { background-color: {T_TR_COLOR1}; border: 1px solid {T_TH_COLOR3}; } .DynamicTree .top { font-weight: bold; padding-left: 0px; line-height: 20px; color: {T_BODY_TEXT}; border-width: 2px; border-color: {T_TH_COLOR2}; border-style: none none border-width: 1px; border-color: {T_TH_COLOR2}; border-style: none none solid none; margin-bottom: 5px;} .DynamicTree .wrap1 { padding: 10px; border: 1px solid {T_TH_COLOR1}; width: 148px; } .DynamicTree .wrap2 { margin-left: 2px; } .DynamicTree #tree-insert-form { display: none; margin-top: 5em; } .DynamicTree #tree-insert-form .label { text-align: right; width: 50px; padding-right: 8px; } .DynamicTree #tree-insert-form .input { margin-bottom: 2px; padding-left: 3px; } .DynamicTree #tree-insert-form select { margin-bottom: 2px; } .DynamicTree #tree-insert-form .button { margin-top: 4px; } .XulMenu { font-family: georgia, tahoma, verdana; font-size: 11px; -moz-user-select: none; } .XulMenu .button, .XulMenu .button:hover, .XulMenu .button-active, .XulMenu .button-active:hover { line-height: normal; padding: 4px 8px 3px 8px; border: 1px solid {T_TR_COLOR2}; color: {T_BODY_TEXT}; text-decoration: none; cursor: default; white-space: nowrap; display: block; position: relative; } .XulMenu .button:hover { border-color: #ffffff #ACA899 #ACA899 #ffffff; } .XulMenu .button-active, .XulMenu .button-active:hover { border-color: #ACA899 #ffffff #ffffff #ACA899; } .XulMenu .item, .XulMenu .item:hover, .XulMenu .item-active, .XulMenu .item-active:hover { background: #ffffff; line-height: normal; padding: 3px 30px 3px 20px; color: #000000; text-decoration: none; cursor: default; white-space: nowrap; display: block; position: relative; } .XulMenu .item:hover, .XulMenu .item-active, .XulMenu .item-active:hover { background: #316AC5; color: #ffffff; } .XulMenu .section { background: #ffffff; border: 1px solid; border-color: #F1EFE2 #716F64 #716F64 #F1EFE2; padding: 2px 1px 1px 2px; position: absolute; visibility: hidden; z-index: -1; margin-top: 25px; } .XulMenu .arrow { position: absolute; top: 7px; right: 8px; border: 0; } .XulMenu .hr { font-size: 0px; border-width: 1px; border-color: #aca899; border-style: solid none none none; margin-top: 2px; margin-bottom: 2px; margin-left: 4px; margin-right: 4px; } * html .XulMenu td { position: relative; } /* ie 5.0 fix */ /* SimpleDoc [www.gosu.pl], style for tabs */ .XulTabs .wrap1 { height: 23px; } .XulTabs .wrap1 td { vertical-align: bottom; } .XulTabs .tab, .XulTabs .tab:hover, .XulTabs .tab-active, .XulTabs .tab-active:hover { text-decoration: none; padding: 3px 10px 3px 10px; border-top: 1px solid {T_TH_COLOR1}; border-left: 1px solid {T_TH_COLOR1}; color: {T_BODY_LINK}; cursor: default; white-space: nowrap; display: block; } .XulTabs .tab:hover { border-top: 2px solid {T_BODY_VLINK}; padding-top: 2px; } .XulTabs .tab-active, .XulTabs .tab-active:hover { border-top: 3px solid {T_BODY_VLINK}; padding-top: 2px; padding-bottom: 4px; font-weight: bold; } .XulTabs .view { border-right: 1px solid {T_TH_COLOR1}; } .XulTabs .content { border: 1px solid {T_TH_COLOR1}; background: {T_TR_COLOR1}; width: 100%; height: 100%; } .XulTabs .wrap2 { vertical-align: top; padding: 15px; } .XulTabs .data { display: none; } * html .XulTabs .tab, * html .XulTabs .tab:hover, * html .XulTabs .tab-active, * html .XulTabs .tab-active:hover { width: 100%; } --> </style> <table cellspacing="1" cellpadding="0" width="100%" height="100%" class="forumline" style="border-top:none;"> <tr> <td class="row2"> <table cellspacing="0" cellpadding="0" width="100%"><tr> <td class="row2"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td id="top" class="simpledoc_title"> <span class="nomargin">{L_PROJECT_NAME} {MANAGE}</span> </td> </tr> <tr> <td> <!-- MAIN --> <table cellspacing="0" cellpadding="0" width="100%" height="100%" id="main"> <tr> <td class="row1"> <iframe width="100%" height="500" src="{PUBLISH_DIR}" frameborder="0"> If you can see this, your browser doesn't understand IFRAME. However, we'll still <a href="{PUBLISH_DIR}">link</a> you to the file. </iframe> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> --- NEW FILE: simpledoc_settings.tpl --- <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/common.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/XulMenu/XulMenu.js"></script> <style type="text/css"> <!-- /* SimpleDoc [www.gosu.pl], administration interface */ #menu { position: relative z-index: 10; } #menu_top { height: 30px; padding: 15px 15px 0 15px; } td.simpledoc_title { font-size: 13px; font-weight: bold; margin: 0; padding: 10px; margin-bottom: 0.6em; border: {T_TH_COLOR1} 1px solid; border-style: none none solid none; } .nomargin { margin-bottom: 0; } .hr { font-size: 0px; border-width: 1px; border-color: {T_TH_COLOR1}; border-style: solid none none none; margin-top: 2px; margin-bottom: 2px; } #main { } #left { width: 500px; padding: 15px 15px 15px 15px; border-right: 1px solid {T_TH_COLOR1}; vertical-align: top; } #right { padding: 15px 15px 15px 15px; vertical-align: top; height: 100%; width: 100%;} #tabs-loading, #tabs-saving { position: absolute; z-index: 10; display: none; opacity: 0.8; -moz-opacity: 0.8; filter: alpha(opacity=80); } img { border: 0; } ul { margin: 1em 0 1em 3em; padding: 0; } #tabs-data, #tabs-data table { font-family: {T_FONTFACE1}; font-size: 11px; color: {T_BODY_TEXT}; background: {T_TR_COLOR1}; width: 100%; } .t0 { border: {T_TH_COLOR1} 1px solid; } .t1 { background: {T_TR_COLOR2}; padding: 3px 8px; } .t2 { background: {T_TR_COLOR2}: 3px 8px; } #saved { color: {T_BODY_TEXT}; } .error { color: red; } .message { color: green; } .note { font-weight: bold; } .message-box { padding: 1em; background: {T_TD_COLOR2}; border: {T_TH_COLOR3} 1px solid; } pre { background-color: {T_TR_COLOR2}; padding: 0.75em 1.5em; border: 1px solid {T_TH_COLOR1}; } .contents { float: right; background-color: {T_TR_COLOR2}; padding: 0.75em; margin: 0 0 0.75em 0.75em; border: 1px solid {T_TH_COLOR1}; } .contents ul { margin-left: 1.2em; margin-right: 0.75em; margin-bottom: 0; padding: 0; } .XulMenu { font-family: georgia, tahoma, verdana; font-size: 11px; -moz-user-select: none; } .XulMenu .button, .XulMenu .button:hover, .XulMenu .button-active, .XulMenu .button-active:hover { line-height: normal; padding: 4px 8px 3px 8px; border: 1px solid {T_TR_COLOR2}; color: {T_BODY_TEXT}; text-decoration: none; cursor: default; white-space: nowrap; display: block; position: relative; } .XulMenu .button:hover { border-color: #ffffff #ACA899 #ACA899 #ffffff; } .XulMenu .button-active, .XulMenu .button-active:hover { border-color: #ACA899 #ffffff #ffffff #ACA899; } .XulMenu .item, .XulMenu .item:hover, .XulMenu .item-active, .XulMenu .item-active:hover { background: #ffffff; line-height: normal; padding: 3px 30px 3px 20px; color: #000000; text-decoration: none; cursor: default; white-space: nowrap; display: block; position: relative; } .XulMenu .item:hover, .XulMenu .item-active, .XulMenu .item-active:hover { background: #316AC5; color: #ffffff; } .XulMenu .section { background: #ffffff; border: 1px solid; border-color: #F1EFE2 #716F64 #716F64 #F1EFE2; padding: 2px 1px 1px 2px; position: absolute; visibility: hidden; z-index: -1; margin-top: 25px; } .XulMenu .arrow { position: absolute; top: 7px; right: 8px; border: 0; } .XulMenu .hr { font-size: 0px; border-width: 1px; border-color: #aca899; border-style: solid none none none; margin-top: 2px; margin-bottom: 2px; margin-left: 4px; margin-right: 4px; } * html .XulMenu td { position: relative; } /* ie 5.0 fix */ /* SimpleDoc [www.gosu.pl], style for tabs */ .XulTabs .wrap1 { height: 23px; } .XulTabs .wrap1 td { vertical-align: bottom; } .XulTabs .tab, .XulTabs .tab:hover, .XulTabs .tab-active, .XulTabs .tab-active:hover { text-decoration: none; padding: 3px 10px 3px 10px; border-top: 1px solid {T_TH_COLOR1}; border-left: 1px solid {T_TH_COLOR1}; color: {T_BODY_LINK}; cursor: default; white-space: nowrap; display: block; } .XulTabs .tab:hover { border-top: 2px solid {T_BODY_VLINK}; padding-top: 2px; } .XulTabs .tab-active, .XulTabs .tab-active:hover { border-top: 3px solid {T_BODY_VLINK}; padding-top: 2px; padding-bottom: 4px; font-weight: bold; } .XulTabs .view { border-right: 1px solid {T_TH_COLOR1}; } .XulTabs .content { border: 1px solid {T_TH_COLOR1}; background: {T_TR_COLOR1}; width: 100%; height: 100%; } .XulTabs .wrap2 { vertical-align: top; padding: 15px; } .XulTabs .data { display: none; } * html .XulTabs .tab, * html .XulTabs .tab:hover, * html .XulTabs .tab-active, * html .XulTabs .tab-active:hover { width: 100%; } --> </style> <table cellspacing="1" cellpadding="0" width="100%" height="100%" class="forumline" style="border-top:none;"> <tr> <td class="row2"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td class="cat"> <div id="menu"> <table cellspacing="0" cellpadding="0" class="XulMenu"> <tr> <td> <a class="button" href="javascript:void(0)">{L_PROJECT}</a> <div class="section"> <a class="item" href="{MODE_MANAGE_URL}">{L_MANAGEMENT}</a> <a class="item" href="{MODE_PUBLISH_URL}">{L_PUBLISH}</a> <div class="hr"></div> <a class="item" href="{MODE_IMPORT_URL}">{L_IMPORT_CONTENT}</a> <a class="item" href="{MODE_EXPORT_URL}">{L_EXPORT_CONTENT}</a> <div class="hr"></div> <a class="item" href="{MODE_VIEW_URL}">{L_DOC_VIEW}</a> </div> </td> <!-- <td> <a class="button" href="javascript:void(0)">{L_OPTIONS}</a> <div class="section"> <a class="item" href="{MODE_SETTINGS_URL}">{L_SETTINGS}</a> </div> </td> --> <td> <a class="button" href="javascript:void(0)">{L_HELP}</a> <div class="section"> <a class="item" href="javascript:void(window.open('{MX_ROOT_PATH}{MODULE_ROOT_PATH}docs/help-contents.html', 'Contents', 'width=400,height=400,scrollbars=yes'))">{L_CONTENTS}</a> <a class="item" href="javascript:void(window.open('{MX_ROOT_PATH}{MODULE_ROOT_PATH}docs/help-about.html', 'Contents', 'width=400,height=400,scrollbars=yes'))">{L_ABOUT}</a> </div> </td> </tr> </table> </div> <script type="text/javascript">var menu = new XulMenu("menu"); menu.zIndex.visible = 10; menu.init();</script> </td> </tr> <tr> <td id="top" class="simpledoc_title"> <span class="nomargin">{L_PROJECT_NAME} - {L_SETTINGS}</span> </td> </tr> <tr> <td id="left" class="row1"> <p> <form action="{MODE_SETTINGS_URL}" method="post"> <table> <tr> <td>Encoding:</td> <td><input type="text" name="encoding" value="{ENCODING}" {DISABLED}></td> </tr> <tr> <td>Editor width:</td> <td><input type="text" name="editor-width" value="{EDITOR_WIDTH}" {DISABLED}></td> </tr> <tr> <td>Editor height:</td> <td><input type="text" name="editor-height" value="{EDITOR_HEIGHT}" {DISABLED}></td> </tr> <tr> <td>Publish Dir:</td> <td><input type="text" name="publish_dir" value="{PUBLISH_DIR}" {DISABLED}></td> </tr> <tr> <td colspan="2"> <input type="submit" name="submit" value="{L_CHANGE_SETTINGS}" onclick="return validateForm(this.form)" {DISABLED}> </td> </tr> </table> </form> </p> <!-- BEGIN message --> <p> <table> <tr> <td>{message.MESSAGE}</td> </tr> </table> </p> <!-- END message --> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/form.js"></script> <script type="text/javascript"> function validateForm(form) { var encoding = form.elements['encoding']; var editorWidth = form.elements['editor-width']; var editorHeight = form.elements['editor-height']; var publish_dir = form.elements['publish_dir']; encoding.value = encoding.value.trim(); editorWidth.value = editorWidth.value.trim(); editorHeight.value = editorHeight.value.trim(); publish_dir.value = publish_dir.value.trim(); if (!encoding.value.length) { alert("{L_ERROR_EMPTY}"); return false; } if (!isNumber(editorWidth.value)) { alert("{L_ERROR_WIDTH}"); return false; } if (!isNumber(editorHeight.value)) { alert("{L_ERROR_HEIGHT}"); return false; } if (!publish_dir.value.length) { alert("{L_ERROR_DIR}"); return false; } return true; } </script> </td> </tr> </table> </td> </tr> </table> --- NEW FILE: simpledoc_publish.tpl --- <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/includes/js/common.js"></script> <script type="text/javascript" src="{MX_ROOT_PATH}{MODULE_ROOT_PATH}simpledoc/shared/XulMenu/XulMenu.js"></script> <style type="text/css"> <!-- /* SimpleDoc [www.gosu.pl], administration interface */ #menu { position: relative z-index: 10; } #menu_top { height: 30px; padding: 15px 15px 0 15px; } td.simpledoc_title { font-size: 13px; font-weight: bold; margin: 0; padding: 10px; margin-bottom: 0.6em; border: {T_TH_COLOR1} 1px solid; border-style: none none solid none; } .nomargin { margin-bottom: 0; } .hr { font-size: 0px; border-width: 1px; border-color: {T_TH_COLOR1}; border-style: solid none none none; margin-top: 2px; margin-bottom: 2px; } #main { } #left { width: 500px; padding: 15px 15px 15px 15px; border-right: 1px solid {T_TH_COLOR1}; vertical-align: top; } #right { padding: 15px 15px 15px 15px; vertical-align: top; height: 100%; width: 100%;} #tabs-loading, #tabs-saving { position: absolute; z-index: 10; display: none; opacity: 0.8; -moz-opacity: 0.8; filter: alpha(opacity=80); } img { border: 0; } ul { margin: 1em 0 1em 3em; padding: 0; } #tabs-data, #tabs-data table { font-family: {T_FONTFACE1}; font-size: 11px; color: {T_BODY_TEXT}; background: {T_TR_COLOR1}; width: 100%; } .t0 { border: {T_TH_COLOR1} 1px solid; } .t1 { background: {T_TR_COLOR2}; padding: 3px 8px; } .t2 { background: {T_TR_COLOR2}: 3px 8px; } #saved { color: {T_BODY_TEXT}; } .error { color: red; } .message { color: green; } .note { font-weight: bold; } .message-box { padding: 1em; background: {T_TD_COLOR2}; border: {T_TH_COLOR3} 1px solid; } pre { background-color: {T_TR_COLOR2}; padding: 0.75em 1.5em; border: 1px solid {T_TH_COLOR1}; } .contents { float: right; background-color: {T_TR_COLOR2}; padding: 0.75em; margin: 0 0 0.75em 0.75em; border: 1px solid {T_TH_COLOR1}; } .contents ul { margin-left: 1.2em; margin-right: 0.75em; margin-bottom: 0; padding: 0; } .XulMenu { font-family: georgia, tahoma, verdana; font-size: 11px; -moz-user-select: none; } .XulMenu .button, .XulMenu .button:hover, .XulMenu .button-active, .XulMenu .button-active:hover { line-height: normal; padding: 4px 8px 3px 8px; border: 1px solid {T_TR_COLOR2}; color: {T_BODY_TEXT}; text-decoration: none; cursor: default; white-space: nowrap; display: block; position: relative; } .XulMenu .button:hover { border-color: #ffffff #ACA899 #ACA899 #ffffff; } .XulMenu .button-active, .XulMenu .button-active:hover { border-color: #ACA899 #ffffff #ffffff #ACA899; } .XulMenu .item, .XulMenu .item:hover, .XulMenu .item-active, .XulMenu .item-active:hover { background: #ffffff; line-height: normal; padding: 3px 30px 3px 20px; color: #000000; text-decoration: none; cursor: default; white-space: nowrap; display: block; position: relative; } .XulMenu .item:hover, .XulMenu .item-active, .XulMenu .item-active:hover { background: #316AC5; color: #ffffff; } .XulMenu .section { background: #ffffff; border: 1px solid; border-color: #F1EFE2 #716F64 #716F64 #F1EFE2; padding: 2px 1px 1px 2px; position: absolute; visibility: hidden; z-index: -1; margin-top: 25px; } .XulMenu .arrow { position: absolute; top: 7px; right: 8px; border: 0; } .XulMenu .hr { font-size: 0px; border-width: 1px; border-color: #aca899; border-style: solid none none none; margin-top: 2px; margin-bottom: 2px; margin-left: 4px; margin-right: 4px; } * html .XulMenu td { position: relative; } /* ie 5.0 fix */ /* SimpleDoc [www.gosu.pl], style for tabs */ .XulTabs .wrap1 { height: 23px; } .XulTabs .wrap1 td { vertical-align: bottom; } .XulTabs .tab, .XulTabs .tab:hover, .XulTabs .tab-active, .XulTabs .tab-active:hover { text-decoration: none; padding: 3px 10px 3px 10px; border-top: 1px solid {T_TH_COLOR1}; border-left: 1px solid {T_TH_COLOR1}; color: {T_BODY_LINK}; cursor: default; white-space: nowrap; display: block; } .XulTabs .tab:hover { border-top: 2px solid {T_BODY_VLINK}; padding-top: 2px; } .XulTabs .tab-active, .XulTabs .tab-active:hover { border-top: 3px solid {T_BODY_VLINK}; padding-top: 2px; padding-bottom: 4px; font-weight: bold; } .XulTabs .view { border-right: 1px solid {T_TH_COLOR1}; } .XulTabs .content { border: 1px solid {T_TH_COLOR1}; background: {T_TR_COLOR1}; width: 100%; height: 100%; } .XulTabs .wrap2 { vertical-align: top; padding: 15px; } .XulTabs .data { display: none; } * html .XulTabs .tab, * html .XulTabs .tab:hover, * html .XulTabs .tab-active, * html .XulTabs .tab-active:hover { width: 100%; } --> </style> <table cellspacing="1" cellpadding="0" width="100%" height="100%" class="forumline" style="border-top:none;"> <tr> <td class="row2"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td class="cat"> <div id="menu"> <table cellspacing="0" cellpadding="0" class="XulMenu"> <tr> <td> <a class="button" href="javascript:void(0)">{L_PROJECT}</a> <div class="section"> <a class="item" href="{MODE_MANAGE_URL}">{L_MANAGEMENT}</a> <a class="item" href="{MODE_PUBLISH_URL}">{L_PUBLISH}</a> <div class="hr"></div> <a class="item" href="{MODE_IMPORT_URL}">{L_IMPORT_CONTENT}</a> <a class="item" href="{MODE_EXPORT_URL}">{L_EXPORT_CONTENT}</a> <div class="hr"></div> <a class="item" href="{MODE_VIEW_URL}">{L_DOC_VIEW}</a> </div> </td> <!-- <td> <a class="button" href="javascript:void(0)">{L_OPTIONS}</a> <div class="section"> <a class="item" href="{MODE_SETTINGS_URL}">{L_SETTINGS}</a> </div> </td> --> <td> <a class="button" href="javascript:void(0)">{L_HELP}</a> <div class="section"> <a class="item" href="javascript:void(window.open('{MX_ROOT_PATH}{MODULE_ROOT_PATH}docs/help-contents.html', 'Contents', 'width=400,height=400,scrollbars=yes'))">{L_CONTENTS}</a> <a class="item" href="javascript:void(window.open('{MX_ROOT_PATH}{MODULE_ROOT_PATH}docs/help-about.html', 'Contents', 'width=400,height=400,scrollbars=yes'))">{L_ABOUT}</a> </div> </td> </tr> </table> </div> <script type="text/javascript">var menu = new XulMenu("menu"); menu.zIndex.visible = 10; menu.init();</script> </td> </tr> <tr> <td id="top" class="simpledoc_title"> <span class="nomargin">{L_PROJECT_NAME} - {L_PUBLISH}</span> </td> </tr> <tr> <td id="left" class="row1"> <p> <table> <tr> <td>{L_DOCUMENTS}</td> <td> <b>{DOCUMENT}</b></td> </tr> <tr> <td>{L_FOLDERS}</td> <td> <b>{FOLDERS}</b></td> </tr> <tr> <td>{L_SIZE}</td> <td> <b>{SIZE}</b></td> </tr> </table> </p> <p> <form name="zip" action="{MODE_PUBLISH_EXPORT_URL}" method="get"> <input type="hidden" name="page" value="{PAGE_ID}"> <input type="hidden" name="mode" value="publish_export"> <table> <tr> <td>{L_SENDTEMPLATES}</td> <td> <select name="template"> <option value="tree">{L_OPTIONMENU}</option> <!--<option value="drop">Drop Down Menu</option>--> <option value="raw">{L_OPTIONRAW}</option> </select> </td> </tr> <tr> <td colspan="2"> <input type="submit" name="submit" value="{L_SENDZIP}" onclick="this.blur(); setCookie('publish-zip-template', this.form.template.selectedIndex, COOKIE_YEAR);"> </td> </tr> </form> <tr><td colspan="2"> </td></tr> <form name="dir" action="{MODE_PUBLISH_EXPORT_URL}" method="get" onsubmit="this.submit.disabled=true;"> <input type="hidden" name="publish_dir" value="1"> <input type="hidden" name="page" value="{PAGE_ID}"> <input type="hidden" name="mode" value="publish_export"> <tr> <td>{L_PUBLISHTEMPLATES}</td> <td> <select name="template"> <option value="tree">{L_OPTIONMENU}</option> <!--<option value="drop">Drop Down Menu</option>--> <option value="raw">{L_OPTIONRAW}</option> </select> </td> </tr> <tr> <td>{L_OPTIONSECTION}</td> <td> <select name="section"><option value="">(optional)</option>{TEMPLATE_OPTIONS}</select> </td> </tr> <tr> <td>{L_PUBLISHDIR}</td> <td>{PUBLISH_DIR}</td> <tr> <td colspan="2"> <input type="submit" name="submit" value="{L_PUBLISH}" onclick="this.blur(); setCookie('publish-dir-template', this.form.template.selectedIndex, COOKIE_YEAR);" <?php if (!$CONFIG['publish_dir'] || !$publish_dir_ok) echo 'disabled="disabled"'; ?> {PUBLISH_DIR_ERROR} </td> </tr> </table> </form> </p> <script type="text/javascript"> if (getCookie("publish-zip-template")) document.forms["zip"].template.selectedIndex = getCookie("publish-zip-template"); if (getCookie("publish-dir-template")) document.forms["dir"].template.selectedIndex = getCookie("publish-dir-template"); </script> </td> </tr> </table> </td> </tr> </table> --- NEW FILE: simpledoc_import.tpl --- <script type="text/javascript" src="{MX_ROOT_PATH}{M... [truncated message content] |