From 2cb50db5e7f3003d687150181ed2b8bd4af3b469 Mon Sep 17 00:00:00 2001 From: sebastian Date: Wed, 16 Feb 2005 22:47:55 +0000 Subject: [PATCH] *** empty log message *** --- .../htmlUI/var/SmartyExtensions.inc.php | 2 +- livesupport/modules/htmlUI/var/conf.php | 5 +- .../libs/plugins/outputfilter.localizer.php | 29 + .../htmlUI/var/html/templates/ScratchPad.tpl | 72 ++ .../{metadataform.tpl => editMetaData.tpl} | 42 +- .../htmlUI/var/html/templates/filedata.tpl | 4 +- .../htmlUI/var/html/templates/masterpanel.tpl | 17 +- .../htmlUI/var/html/templates/menu_top.tpl | 5 +- .../htmlUI/var/html/templates/newfileform.tpl | 7 - .../htmlUI/var/html/templates/objects.tpl | 6 +- .../htmlUI/var/html/templates/popup/login.tpl | 16 +- .../var/html/templates/script/basics.js.tpl | 4 +- .../htmlUI/var/html/templates/statusbar.tpl | 6 +- .../htmlUI/var/html/templates/styles.css | 6 +- .../htmlUI/var/html/templates/subjects.tpl | 20 +- .../htmlUI/var/html/templates/uploadform.tpl | 9 +- .../modules/htmlUI/var/html/ui_browser.php | 58 +- .../modules/htmlUI/var/html/ui_handler.php | 52 +- .../modules/htmlUI/var/ui_base.inc.php | 765 ++++++++---------- .../modules/htmlUI/var/ui_browser.class.php | 103 +-- .../modules/htmlUI/var/ui_browser_init.php | 15 +- .../modules/htmlUI/var/ui_fmask.inc.php | 75 +- .../modules/htmlUI/var/ui_handler.class.php | 224 +++-- .../modules/htmlUI/var/ui_handler_init.php | 8 +- .../htmlUI/var/ui_scratchPad.class.php | 123 +++ 25 files changed, 994 insertions(+), 679 deletions(-) create mode 100755 livesupport/modules/htmlUI/var/html/Smarty/libs/plugins/outputfilter.localizer.php create mode 100755 livesupport/modules/htmlUI/var/html/templates/ScratchPad.tpl rename livesupport/modules/htmlUI/var/html/templates/{metadataform.tpl => editMetaData.tpl} (73%) mode change 100644 => 100755 delete mode 100644 livesupport/modules/htmlUI/var/html/templates/newfileform.tpl create mode 100755 livesupport/modules/htmlUI/var/ui_scratchPad.class.php diff --git a/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php b/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php index a13c32b90..ee7dd23ca 100644 --- a/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php +++ b/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php @@ -81,6 +81,6 @@ function S_tra($param) { global $uiBrowser; - echo $uiBrowser->tra($param[0], $param[1], $param[2], $param[3], $param[4], $param[5], $param[6], $param[7], $param[8], $param[9]); + echo tra($param[0], $param[1], $param[2], $param[3], $param[4], $param[5], $param[6], $param[7], $param[8], $param[9]); } ?> \ No newline at end of file diff --git a/livesupport/modules/htmlUI/var/conf.php b/livesupport/modules/htmlUI/var/conf.php index a9c18d3cc..7bdaac493 100644 --- a/livesupport/modules/htmlUI/var/conf.php +++ b/livesupport/modules/htmlUI/var/conf.php @@ -23,7 +23,7 @@ Author : $Author: sebastian $ - Version : $Revision: 1.9 $ + Version : $Revision: 1.10 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/htmlUI/var/Attic/conf.php,v $ ------------------------------------------------------------------------------*/ @@ -124,5 +124,8 @@ define('UI_SEARCH_MAX_ROWS', 8); define('UI_SEARCH_MIN_ROWS', 2); define('UI_REGEX_URL', '/^(ht|f)tps?:\/\/[^ ]+$/'); define('UI_SCRATCHPAD_KEY', 'djBagContents'); +define('UI_SCRATCHPAD_MAXLENGTH_KEY', 'djBagMaxlength'); #define('UI_SCRATCHPAD_REGEX', '/^[0-9a-f]{16}:[0-9]{4}-[0-9]{2}-[0-9]{2}$/'); +define('UI_SCRATCHPAD_SESSNAME', 'SP'); +define('UI_STATIONINFO_SESSNAME', 'SInfo'); ?> \ No newline at end of file diff --git a/livesupport/modules/htmlUI/var/html/Smarty/libs/plugins/outputfilter.localizer.php b/livesupport/modules/htmlUI/var/html/Smarty/libs/plugins/outputfilter.localizer.php new file mode 100755 index 000000000..97f1ec610 --- /dev/null +++ b/livesupport/modules/htmlUI/var/html/Smarty/libs/plugins/outputfilter.localizer.php @@ -0,0 +1,29 @@ +load_filter('post','localizer'); + * from application. + * Author: Media Development Loan Fund + * ------------------------------------------------------------- + */ + function smarty_outputfiler_localizer_tra($matches) + { + foreach ($matches as $match) { + $key = substr($match, 2, strpos(substr($match, 2), '#')); + } + } + + function smarty_outputfilter_localizer($compiled, &$smarty) + { + $pattern = '/##.*##/U'; + return preg_replace_callback($pattern, 'smarty_outputfiler_localizer_tra', $compiled); + } +?> diff --git a/livesupport/modules/htmlUI/var/html/templates/ScratchPad.tpl b/livesupport/modules/htmlUI/var/html/templates/ScratchPad.tpl new file mode 100755 index 000000000..44569601f --- /dev/null +++ b/livesupport/modules/htmlUI/var/html/templates/ScratchPad.tpl @@ -0,0 +1,72 @@ +{*Smarty template*} + +
+
ScratchPad
+ +{if is_array($ScratchPad)} +
+ + + + + + + + + + + {foreach from=$ScratchPad item=i} + + + + + + + + {/foreach} + + + + + +
{tra 0=Title}{tra 0=Duration}{tra 0=Type}Remove
{$i.title}{$i.duration}{$i.type} X
[Remove Selected][Clear]
+
+{/if} +
+ +{literal} + +{/literal} diff --git a/livesupport/modules/htmlUI/var/html/templates/metadataform.tpl b/livesupport/modules/htmlUI/var/html/templates/editMetaData.tpl old mode 100644 new mode 100755 similarity index 73% rename from livesupport/modules/htmlUI/var/html/templates/metadataform.tpl rename to livesupport/modules/htmlUI/var/html/templates/editMetaData.tpl index e5978494e..30ad68196 --- a/livesupport/modules/htmlUI/var/html/templates/metadataform.tpl +++ b/livesupport/modules/htmlUI/var/html/templates/editMetaData.tpl @@ -7,11 +7,11 @@ {/literal} -
+
- {$mDataForm.tabs} - {$mDataForm.langswitch} - {foreach from=$mDataForm.pages key=key item=dynform} + {$editMetaData.tabs} + {$editMetaData.langswitch} + {foreach from=$editMetaData.pages key=key item=dynform} {include file="form_parts/dynForm_plain.tpl"} {/foreach}
@@ -19,35 +19,29 @@