diff --git a/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php b/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php index 1839fa4e1..b05f0a8fa 100644 --- a/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php +++ b/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php @@ -72,9 +72,10 @@ function S_htmlspecialchars($param) * * @param void array, array of strings to be outputted translated */ -function S_tra($param) -{ +function S_tra($in) +{ global $uiBrowser; + foreach($in as $val) $param[] = $val; echo tra($param[0], $param[1], $param[2], $param[3], $param[4], $param[5], $param[6], $param[7], $param[8], $param[9]); } diff --git a/livesupport/modules/htmlUI/var/formmask/generic.inc.php b/livesupport/modules/htmlUI/var/formmask/generic.inc.php index 6088ab4e6..869949ac5 100755 --- a/livesupport/modules/htmlUI/var/formmask/generic.inc.php +++ b/livesupport/modules/htmlUI/var/formmask/generic.inc.php @@ -419,11 +419,11 @@ $ui_fmask = array( 'groupit' => TRUE, ), array( - 'element' => 'addrow', - 'type' => 'button', - 'label' => 'Add Criteria', - 'attributes' => array('class' => 'button_wide', 'onClick' => 'SearchForm_addRow()'), - 'groupit' => TRUE, + 'element' => 'spacer', + 'type' => 'static', + 'text' => ' + + ' ), array( 'element' => 'submit', @@ -432,7 +432,7 @@ $ui_fmask = array( 'groupit' => TRUE, 'attributes' => array('class' => 'button_wide') ), - array('group' => array('clear', 'addrow', 'submit') + array('group' => array('clear', 'spacer', 'submit') ), ), diff --git a/livesupport/modules/htmlUI/var/html/ui_browser.php b/livesupport/modules/htmlUI/var/html/ui_browser.php index 6a1191e45..f35d7cdf1 100644 --- a/livesupport/modules/htmlUI/var/html/ui_browser.php +++ b/livesupport/modules/htmlUI/var/html/ui_browser.php @@ -31,6 +31,11 @@ if (is_array($_REQUEST['popup'])){ $Smarty->display('popup/_redirector.tpl'); break; + case "_2SCHEDULER": + $Smarty->assign('target', 'SCHEDULER'); + $Smarty->display('popup/_redirector.tpl'); + break; + case "login": $Smarty->assign('dynform', $uiBrowser->login($ui_fmask)); $Smarty->display('popup/login.tpl'); diff --git a/livesupport/modules/htmlUI/var/templates/file/fileform.tpl b/livesupport/modules/htmlUI/var/templates/file/fileform.tpl index 97a383b75..75631cd5b 100755 --- a/livesupport/modules/htmlUI/var/templates/file/fileform.tpl +++ b/livesupport/modules/htmlUI/var/templates/file/fileform.tpl @@ -1,3 +1,3 @@ {UIBROWSER->fileForm id=$editItem.id folderId=$editItem.folderId assign="dynform"} {include file="sub/dynForm_plain.tpl} -{assign var="_uploadform" value=NULL} +{assign var="_uploadform" value=null} diff --git a/livesupport/modules/htmlUI/var/templates/file/webstreamform.tpl b/livesupport/modules/htmlUI/var/templates/file/webstreamform.tpl index 8f47dfd5e..f18e5c431 100755 --- a/livesupport/modules/htmlUI/var/templates/file/webstreamform.tpl +++ b/livesupport/modules/htmlUI/var/templates/file/webstreamform.tpl @@ -1,4 +1,4 @@ {UIBROWSER->webstreamForm id=$editItem.id folderId=$editItem.folderId assign="dynform"} {include file="sub/dynForm_plain.tpl} -{assign var="_uploadform" value=NULL} +{assign var="_uploadform" value=null} diff --git a/livesupport/modules/htmlUI/var/templates/library/searchForm.js.tpl b/livesupport/modules/htmlUI/var/templates/library/searchForm.js.tpl index dc48893cd..e1b586de2 100755 --- a/livesupport/modules/htmlUI/var/templates/library/searchForm.js.tpl +++ b/livesupport/modules/htmlUI/var/templates/library/searchForm.js.tpl @@ -4,6 +4,7 @@ function SearchForm_displayRow(row) { document.getElementById('searchRow_' + row).style.display = 'inline'; + document.forms['search'].elements['row_' + Number(row) + '[active]'].value = 1 } function SearchForm_addRow() @@ -25,6 +26,7 @@ function SearchForm_hideRow(row) document.forms['search'].elements['row_' + Number(row) + '[0]'].options[0].selected = true; document.forms['search'].elements['row_' + Number(row) + '[1]'].options[0].selected = true; document.forms['search'].elements['row_' + Number(row) + '[2]'].value = ''; + document.forms['search'].elements['row_' + Number(row) + '[active]'].value = 0 } function SearchForm_dropRow(row) diff --git a/livesupport/modules/htmlUI/var/templates/menu.tpl b/livesupport/modules/htmlUI/var/templates/menu.tpl index aedeae7aa..63d388b37 100755 --- a/livesupport/modules/htmlUI/var/templates/menu.tpl +++ b/livesupport/modules/htmlUI/var/templates/menu.tpl @@ -3,7 +3,7 @@