/[drupal]/contributions/modules/disknode/disknode.tpl.inc
ViewVC logotype

Diff of /contributions/modules/disknode/disknode.tpl.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Thu May 14 01:06:51 2009 UTC revision 1.1.2.1, Thu May 14 01:06:51 2009 UTC
# Line 0  Line 1 
1    <?php
2    global $title;
3    global $subdir;
4    global $disknode_breadcrumb;
5    global $disknode_content;
6    ?>
7    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
8    <html>
9    <head>
10        <title>Disknode - <?php print $title ?></title>
11        <link href="<?php print base_path() . drupal_get_path('module', 'disknode') . '/disknode.style.css'; ?>" rel="stylesheet" type="text/css" />
12        <script type="text/javascript">
13        function selectPath(selection, myid) {
14            if (window.opener.disknodeFiles) {
15                if (window.opener.disknodeFiles.add(selection)) {
16                    // Request the <span> that called this function
17                    var elem = document.getElementById(myid);
18                    elem.style.color = "red";
19                    elem.style.fontWeight = 700; // make it bold
20                }
21                return;
22            }
23            alert('Unable to set selection. Could not find a disknode editor page.');
24        }
25        function setCookie(name, value) {
26            document.cookie = name + '=' + escape(value);
27        }
28            // Read a page's GET URL variables and returns the ''uploaded'' param
29            function getUploadParam() {
30          var vars = [], hash;
31          var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
32          for(var i = 0; i < hashes.length; i++) {
33              hash = hashes[i].split('=');
34              if (hash[0] == 'uploaded') {
35                    return hash[1].replace("%20"," ");
36              }
37          }
38          return;
39            }
40            window.opener.disknodeFiles.add(getUploadParam());
41        </script>
42        <base href="<?php print base_path() ?>" />
43    </head>
44    
45    <body>
46    <div>
47    <h1><?php print $title ?></h1>
48    <h2><?php print $disknode_breadcrumb ?></h2>
49    </div>
50    <div id="controls">
51    <?php
52      print '<ul class="controls">';
53      print '<li class="control-browse">' . l('Browse', "disknode/browse", array('attributes' => array('class' => 'controltext'), 'absolute' => true, 'query' => "subdir=".$subdir)) . '</li>';
54      print '<li class="control-upload">' . l("Upload", "disknode/upload", array('attributes' => array('class' => 'controltext'), 'absolute' => true, 'query' => "subdir=".$subdir)) . '</li>';
55      print '<li class="control-mkfolder">' . l("Create dir", "disknode/mkdir", array('attributes' => array('class' => 'controltext'), 'absolute' => true, 'query' => "subdir=".$subdir)) . '</li>';
56      print '<li class="control-rmfolder">' . l("Remove dir", "disknode/rmdir", array('attributes' => array('class' => 'controltext'), 'absolute' => true, 'query' => "subdir=".$subdir)) . '</li>';
57      print '<li class="control-okay"><a href="Javascript:window.close()" class= "controltext">Done</a></li>';
58      print '</ul>';
59    ?>
60    </div>
61    <div>
62    <?php
63    echo theme_status_messages();
64    echo $disknode_content;
65    ?>
66    </div>
67    </body>
68    </html>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.2