Spaces:
Sleeping
Sleeping
File size: 3,839 Bytes
07c3cdd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | <?php
global $rootFolder;
require_once ( "classes/model/AppFolder.php" );
$oPMFolder = new AppFolder();
if(($rootFolder=='0')||($rootFolder==0)){
$folderPath['PATH']="/";
}else{
$folderPath=$oPMFolder->getFolderStructure($rootFolder);
}
$html = '
<div>
<div class="boxTopBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
<div class="boxContentBlue">
<table style="margin:0px;" cellspacing="0" cellpadding="0">
<tr>
<td class="userGroupTitle"><div class="userGroupLink">'.G::LoadTranslation("ID_PM_FOLDER").': <a href="javascript:openPMFolder(\''.$rootFolder.'\',\''.$rootFolder.'\')">'.$folderPath['PATH'].'</a></div></td>
</tr>
</table>
</div>
<div class="boxBottomBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
';
$html.='<div class="treeBase" style="width:360px;height: expression( this.scrollHeight > 319 ? \'320px\' : \'auto\' ); /* sets max-height for IE */ max-height: 320px; /* sets max-height value for all standards-compliant browsers */ overflow:hidden;">
<div class="boxTop">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
</div>
<!-- <div class="content" style="width:360px;height: expression( this.scrollHeight > 319 ? \'320px\' : \'auto\' ); /* sets max-height for IE */ max-height: 320px; /* sets max-height value for all standards-compliant browsers */ overflow:hidden;"> -->';
//add alvaro
function looking_for_browser($user_agent) {
$browsers = array(
'Opera' => 'Opera',
'Mozilla Firefox'=> '(Firebird)|(Firefox)',
'Galeon' => 'Galeon',
'Mozilla'=>'Gecko',
'MyIE'=>'MyIE',
'Lynx' => 'Lynx',
'Netscape' => '(Mozilla/4\.75)|(Netscape6)|(Mozilla/4\.08)|(Mozilla/4\.5)|(Mozilla/4\.6)|(Mozilla/4\.79)',
'Konqueror'=>'Konqueror',
'Internet Explorer 8' => '(MSIE 8\.[0-9]+)',
'Internet Explorer 7' => '(MSIE 7\.[0-9]+)',
'Internet Explorer 6' => '(MSIE 6\.[0-9]+)',
'Internet Explorer 5' => '(MSIE 5\.[0-9]+)',
'Internet Explorer 4' => '(MSIE 4\.[0-9]+)',
);
foreach($browsers as $browser=>$pattern){
if (preg_match($pattern, $user_agent))
return $browser;
}
return 'Unknown';
}
$filter = new InputFilter();
$_SERVER['HTTP_USER_AGENT'] = $filter->xssFilterHard($_SERVER['HTTP_USER_AGENT']);
if((looking_for_browser($_SERVER['HTTP_USER_AGENT'])=='Internet Explorer 8')||(looking_for_browser($_SERVER['HTTP_USER_AGENT'])=='Internet Explorer 7')||(looking_for_browser($_SERVER['HTTP_USER_AGENT'])=='Internet Explorer 6')){
$html.="
<div class='content' style='width:360px;height: expression( this.scrollHeight > 319 ? \'320px\' : \'auto\' ); /* sets max-height for IE */ max-height: 320px; /* sets max-height value for all standards-compliant browsers */ overflow:hidden;'>
<div id='child_$rootFolder'></div>
</div></div>
";
$html.='
<div class="boxBottom" style="width:360px;overflow:hidden;">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
</div>
</div>';
}else{
$html.="
<div class='content'>
<div id='child_$rootFolder'></div>
</div></div>
";
$html.='
<div class="boxBottom">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
</div>
</div>';
}
//end add
$html.='<div class="treeBase" style="width:360px;height:200px; border : 0px solid #006699; overflow : hidden;">
<div class="boxTop">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
</div>
<div class="content" > ';
$html.="<div id='tags_cloud' ></div>
</div>
";
$html.='
<div class="boxBottom">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
</div>
</div>';
echo $html;
?> |