Changeset 10
- Timestamp:
- Jun 2, 2014 6:05:32 PM (11 years ago)
- 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 1 1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 2 /** 3 * DirectoryClass3 * PrivateContent Class 4 4 * 5 5 * @author dzungnv02 … … 7 7 */ 8 8 9 class Directoryextends MX_Controller9 class PrivateContent extends MX_Controller 10 10 { 11 11 … … 13 13 parent::__construct(); 14 14 } 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 } 15 42 43 public function createDir () { 44 45 } 46 47 public function deleteDir () { 48 49 } 16 50 17 51 } -
pro-bachkim-filespace/sourcecode/application/modules/filemanager/controllers/filemanager.php
r1 r10 17 17 public function index() 18 18 { 19 $this->load->view ( ' welcome');19 $this->load->view ( 'main'); 20 20 } 21 21 -
pro-bachkim-filespace/sourcecode/assets/js/filemanager/filemanager.js
r9 r10 52 52 53 53 var privateTree = $('#treeview-container').violetTree({ 54 script:' getdata.php',54 script:'http://localhost/ajax/privatecontent/getcontent', 55 55 expandEasing: 'easeOutBounce', 56 56 collapseEasing: 'easeOutBounce',
Note: See TracChangeset
for help on using the changeset viewer.