Beispiel #1
0
protected function thisPageStyle() {
        MenuAndContentHelper1_Style();
    }
Beispiel #2
0
    protected function thisPageStyle(){
        MenuAndContentHelper1_Style();

        echo _FCORE::JavaScriptInclude(URL_JAVASCRIPT."/jQuery.js");
        echo _FCORE::JavaScriptInclude(URL_JAVASCRIPT."/home.js");

        ?>

<script type="text/javascript">

<?php
if ($this->crossInfo[_HOMEPAGE::MAINVIEW_USERID]){
    echo "\$(function(){\n";
    echo "var folder = getUserFolder(".$this->crossInfo[_HOMEPAGE::MAINVIEW_USERID].");\n";
    echo "var currentNode;\n";
    $count = $this->crossInfo[_HOMEPAGE::MENULIST]->getNodeCount();
    for($i=0; $i<$count; $i++){
        $node = $this->crossInfo[_HOMEPAGE::MENULIST]->getNode($i);
        echo "currentNode = buildMenuButton(\"".
                $node->getPageID()."\", \"".
                $node->getTitle()."\", ".
                (($this->crossInfo[_HOMEPAGE::MENULIST]->getIndent($i)+1)*2).", ".
                ($node->getHasChildren() ? "true" : "null").");\n";
        echo "folder.append(currentNode);\n";
    }
    echo "});\n";
}

?>

</script>

<style type="text/css">
#_sn_usercontainer
{
    
}
#_sn_username
{
    
}
#_sn_foldercontainer
{
    
}
#_sn_folder
{

}
#_sn_expandbutton
{
    color: steelblue;
}
#_sn_pagetitle
{
    color: papayawhip;
}
</style>
<?php

        $this->absoluteStyle();
    }