/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui

« back to all changes in this revision

Viewing changes to modules/virtual.php

  • Committer: Suren A. Chilingaryan
  • Date: 2008-10-30 01:27:40 UTC
  • mto: This revision was merged to the branch mainline in revision 116.
  • Revision ID: csa@dside.dyndns.org-20081030012740-svt0yigxj5uzwxyj
Few steps on source tree integration in javascript frontend

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
 
3
 
$sourcetree_title = _("Source Tree");
4
 
 
5
 
function sourcetreeJS() {
 
2
$virtual_title = _("Source Tree");
 
3
 
 
4
function virtualJS() {
6
5
    global $DHTMLX_ICONSET;
7
6
    if (file_exists("includes/dhtmlx/imgs/$DHTMLX_ICONSET"))
8
7
        $iconset = "includes/dhtmlx/imgs/$DHTMLX_ICONSET/";
9
8
    else
10
9
        $iconset = "includes/dhtmlx/imgs/";
11
10
?>
12
 
 
13
 
    srctree=new dhtmlXTreeObject("srctree_div","100%","100%",0);
14
 
    srctree.setImagePath("<?=$iconset?>");
15
 
    srctree.setXMLAutoLoading(adei.GetServiceURL("srctree")); 
16
 
    srctree.setDataMode("xml");
17
 
    srctree.enableCheckBoxes(1);
18
 
    srctree.enableThreeStateCheckboxes(true);
19
 
    srctree.loadXML(adei.GetServiceURL("srctree"));
 
11
    adei.SetProperty('dhtmlx_iconset', '<?=$iconset?>');
 
12
    adei.RegisterVirtualControl("virtual_div", "virtual");
20
13
<?
21
14
}
22
15
 
23
 
function sourcetreePage() {
 
16
function virtualPage() {
24
17
?>
25
 
    <div id="srctree_div"/>
 
18
    <div id="virtual_div"/>
26
19
<?}?>
 
 
b'\\ No newline at end of file'