maj version dans config.xml
[mtweb] / mw / libs / tiny_mce / plugins / tinybrowser / tb_standalone.js.php
1 <?php
2 require_once("config_tinybrowser.php");
3
4 $tbpath = pathinfo($_SERVER['SCRIPT_NAME']);
5 $tbmain = $tbpath['dirname'].'/tinybrowser.php';
6 ?>
7
8 function tinyBrowserPopUp(type,formelementid,folder) {
9    tburl = "<?php echo $tbmain; ?>" + "?type=" + type + "&feid=" + formelementid;
10    if (folder !== undefined) tburl += "&folder="+folder+"%2F";
11    newwindow=window.open(tburl,'tinybrowser','height=<?php echo $tinybrowser['window']['height']+15; ?>,width=<?php echo $tinybrowser['window']['width']+15; ?>,scrollbars=yes,resizable=yes');
12    if (window.focus) {newwindow.focus()}
13    return false;
14 }