Changeset 10


Ignore:
Timestamp:
Jun 2, 2014 6:05:32 PM (11 years ago)
Author:
dungnv
Message:
 
Location:
pro-bachkim-filespace/sourcecode
Files:
4 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • pro-bachkim-filespace/sourcecode/application/modules/ajax/controllers/privatecontent.php

    r3 r10  
    11<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
    22/**
    3  * Directory Class
     3 * PrivateContent Class
    44 *
    55 * @author dzungnv02
     
    77 */
    88
    9 class Directory extends MX_Controller
     9class PrivateContent extends MX_Controller
    1010{
    1111       
     
    1313                parent::__construct();
    1414        }
     15       
     16        public function getContent () {
     17                $aryDir = array(
     18                                0 => array ('id' => 1, 'name' => 'Dir 1', 'parentID' => 0),
     19                                1 => array ('id' => 2, 'name' => 'Dir 2', 'parentID' => 0),
     20                                2 => array ('id' => 3, 'name' => 'Dir 1.1', 'parentID' => 1),
     21                                3 => array ('id' => 4, 'name' => 'Dir 1.1.1', 'parentID' => 3),
     22                                4 => array ('id' => 5, 'name' => 'Dir 1.1.1.1', 'parentID' => 4),
     23                                5 => array ('id' => 6, 'name' => 'Dir 1.1.2', 'parentID' => 3),
     24                                6 => array ('id' => 7, 'name' => 'Dir 3', 'parentID' => 0),
     25                                7 => array ('id' => 8, 'name' => 'Dir 3.1', 'parentID' => 7)
     26                );
     27               
     28                $aryFile = array(
     29                                0 => array('id' => 1, 'name' => 'File 1', 'minetype' => 'text', 'size' => '1.5MB', 'parentID' => 1),
     30                                1 => array('id' => 2, 'name' => 'File 2', 'minetype' => 'text', 'size' => '1.6MB', 'parentID' => 1),
     31                                2 => array('id' => 3, 'name' => 'File 3', 'minetype' => 'text', 'size' => '1.7MB', 'parentID' => 2),
     32                                3 => array('id' => 4, 'name' => 'File 4', 'minetype' => 'text', 'size' => '1.8MB', 'parentID' => 2),
     33                                4 => array('id' => 5, 'name' => 'File 5', 'minetype' => 'text', 'size' => '1.8MB', 'parentID' => 0),
     34                                5 => array('id' => 6, 'name' => 'File 6', 'minetype' => 'text', 'size' => '1.8MB', 'parentID' => 3),
     35                                5 => array('id' => 7, 'name' => 'File 7', 'minetype' => 'text', 'size' => '1.8MB', 'parentID' => 5)
     36                );
     37               
     38                $aryData = array('DIRECTORIES' => $aryDir, 'FILES' => $aryFile);
     39               
     40                echo json_encode($aryData);
     41        }
    1542
     43        public function createDir () {
     44               
     45        }
     46       
     47        public function deleteDir () {
     48               
     49        }
    1650
    1751}
  • pro-bachkim-filespace/sourcecode/application/modules/filemanager/controllers/filemanager.php

    r1 r10  
    1717        public function index()
    1818        {
    19                 $this->load->view ( 'welcome');
     19                $this->load->view ( 'main');
    2020        }
    2121
  • pro-bachkim-filespace/sourcecode/assets/js/filemanager/filemanager.js

    r9 r10  
    5252
    5353                var privateTree =  $('#treeview-container').violetTree({
    54                         script:'getdata.php',
     54                        script:'http://localhost/ajax/privatecontent/getcontent',
    5555                        expandEasing: 'easeOutBounce',
    5656                        collapseEasing: 'easeOutBounce',
Note: See TracChangeset for help on using the changeset viewer.