diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index ceec510b4..5b29f2581 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1283,7 +1283,12 @@ background-image: linear-gradient(to bottom, #882222, #111111);; */ function getModalBoxLink($config) { /* {{{ */ $content = ''; - $content .= "".$config['title']."…\n"; + $content .= "$attrval) + $content .= ' '.$attrname.'="'.$attrval.'"'; + } + $content .= ">".$config['title']."…\n"; return $content; } /* }}} */ @@ -1303,14 +1308,19 @@ background-image: linear-gradient(to bottom, #882222, #111111);;

'.$config['title'].'

- \n"; if(!$skiptree) - $content .= ' - -'; + $content .= $this->getModalBox( + array( + 'id' => 'docChooser'.$formid, + 'title' => getMLText('choose_target_document'), + 'buttons' => array( + array('title'=>getMLText('close')) + ) + )); return $content; } /* }}} */ @@ -1527,24 +1536,23 @@ function folderSelected(id, name) { $content .= "getName()) : "") ."\" placeholder=\"".getMLText('type_to_search')."\" autocomplete=\"off\" target=\"".$formid."\"/>"; $content .= ""; if(!$skiptree) { - $content .= "".getMLText("folder")."…\n"; + $content .= $this->getModalBoxLink( + array( + 'target' => 'folderChooser'.$formid, + 'remote' => "../out/out.FolderChooser.php?form=".$formid."&mode=".$accessMode."&exclude=".$exclude, + 'title' => getMLText('folder') + )); } $content .= "\n"; if(!$skiptree) { - $content .= ' - -'; + $content .= $this->getModalBox( + array( + 'id' => 'folderChooser'.$formid, + 'title' => getMLText('choose_target_folder'), + 'buttons' => array( + array('title'=>getMLText('close')) + ) + )); } return $content; } /* }}} */ @@ -1590,61 +1598,6 @@ $(document).ready(function() { - -getId(); - $names[] = htmlspecialchars($cat->getName()); - } - } - print ""; - print "
\n"; - print ""; - print ""; - print "".getMLText("category")."…\n"; - print "
\n"; -?> - - - - '.getMLText("keywords").'… - -'; + '; + $content .= $this->getModalBoxLink( + array( + 'target' => 'keywordChooser', + 'remote' => "../out/out.KeywordChooser.php?target=".$formName, + 'title' => getMLText('keywords') + )); + $content .= ' + +'; + $content .= $this->getModalBox( + array( + 'id' => 'keywordChooser', + 'title' => getMLText('use_default_keywords'), + 'buttons' => array( + array('id'=>'acceptkeywords', 'title'=>getMLText('save')), + array('title'=>getMLText('close')), + ) + )); return $content; } /* }}} */ @@ -1894,22 +1850,21 @@ $(document).ready(function() { $content = "
\n"; $content .= ""; $content .= ""; - $content .= "".($showfolders ? getMLText("choose_target_folder"): getMLText("choose_target_file"))."…\n"; + $content .= $this->getModalBoxLink( + array( + 'target' => 'dropfolderChooser', + 'remote' => "../out/out.DropFolderChooser.php?form=".$formName."&dropfolderfile=".urlencode($dropfolderfile)."&showfolders=".$showfolders, + 'title' => ($showfolders ? getMLText("choose_target_folder"): getMLText("choose_target_file")) + )); $content .= "
\n"; - $content .= ' - -'; + $content .= $this->getModalBox( + array( + 'id' => 'dropfolderChooser', + 'title' => ($showfolders ? getMLText("choose_target_folder"): getMLText("choose_target_file")), + 'buttons' => array( + array('title'=>getMLText('close')), + ) + )); return $content; } /* }}} */