예제 #1
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();
    }
예제 #2
0
protected function thisPageStyle() {
        MenuAndContentHelper1_Style();
        echo _FCORE::JavaScriptInclude(URL_JAVASCRIPT . "/jQuery.js");
        echo _FCORE::JavaScriptInclude(URL_JAVASCRIPT . "/usermanual.js");
    }
예제 #3
0
    public function absoluteStyle(){
        echo _FCORE::JavaScriptInclude(URL_JAVASCRIPT."/jQuery.js");
        echo _FCORE::JavaScriptInclude(URL_JAVASCRIPT."/admin_pagesmanage.js");

        ?>

<script type="text/javascript">
    $(document).ready(function(){
<?php
if (isset($this->crossInfo[_ADMINPAGE::USERS_LIST])){
    echo "var parent = getUserSelectParent();\n";
    echo "var child;\n";
    $count = sizeof($this->crossInfo[_ADMINPAGE::USERS_LIST]);
    for($i=0; $i<$count; $i++){
        $thisOpt = $this->crossInfo[_ADMINPAGE::USERS_LIST][$i];
        echo "buildUserOption('".
        $thisOpt[USERS_USERNAME]."', ".
        $thisOpt[PAGES_USERID].", ".
        ($thisOpt[PAGES_USERID]==$this->crossInfo[PAGES_USERID] ? "true" : "false").", parent);\n";
        //echo "parent.append(child);\n";
    }
}

?>
    });
</script>

<?php
    }