Project

General

Profile

1
<!-- BEGIN main_block -->
2
<script src="{THEME_URL}/templates/toggle_zip.js" type="text/javascript"></script>
3

    
4
<table cellpadding="0" cellspacing="0" border="0">
5
  <tr>
6
    <td width="300" valign="top" align="left">
7
	<h2>{HEADING_UPLOAD_FILES}</h2>
8
      <form name="upload" action="upload.php" method="post" enctype="multipart/form-data" class="{DISPLAY_UPLOAD}">
9
        <table cellpadding="3" cellspacing="0" border="0" width="100%">
10
          <tr>
11
            <td>{TEXT_TARGET_FOLDER}:<br />
12
              <select name="target" style="width:100%;" 
13
		   onchange="browse.location.href='browse.php?dir=' +
14
		   	document.upload.target.value.substr(6,100);
15
		   document.create.target.value = document.upload.target.value;">
16
                <option value="{MEDIA_DIRECTORY}{HOME_DIRECTORY}" selected="selected">{MEDIA_DIRECTORY}{HOME_DIRECTORY}</option>
17
                <!-- BEGIN dir_list_block -->
18
                <option value="{NAME}">{NAME}</option>
19
                <!-- END dir_list_block -->
20
              </select>
21
            </td>
22
          </tr>
23
        </table>
24
        <table cellpadding="3" cellspacing="0" border="0" width="100%">
25
          <tr>
26
		  	<td valign="top">
27
				<input type="checkbox" name="unzip" id="unzip"  onclick="toggle();" />
28
				<label for="unzip">{TEXT_UNZIP_FILE}</label>
29
				<span id="delzip" style="display: none;"><br />
30
				<input type="checkbox" name="delzip" id="deletezip" />
31
				<label for="deletezip">{TEXT_DELETE_ZIP}</label></span>
32
			</td>
33
          </tr>
34
          <tr>
35
            <td width="50%" align="left"><input type="file" size="33" name="file1" /> </td>
36
          </tr>
37
          <tr>
38
            <td width="50%" align="left"><input type="file" size="33" name="file2" id="file2" style="visibility: visible;" /> </td>
39
          </tr>
40
          <tr>
41
            <td width="50%" align="left"><input type="file" size="33" name="file3" id="file3" style="visibility: visible;" /> </td>
42
          </tr>
43
          <tr>
44
            <td width="50%" align="left"><input type="file" size="33" name="file4" id="file4" style="visibility: visible;" /> </td>
45
          </tr>
46
          <tr>
47
            <td width="50%" align="left"><input type="file" size="33" name="file5" id="file5" style="visibility: visible;" /> </td>
48
          </tr>
49
		  <tr>
50
            <td width="50%" align="left"><input type="file" size="33" name="file6" id="file6" style="visibility: visible;" /> </td>
51
          </tr>
52
          <tr>
53
            <td width="50%" align="left"><input type="file" size="33" name="file7" id="file7" style="visibility: visible;" /> </td>
54
          </tr>
55
          <tr>
56
            <td width="50%" align="left"><input type="file" size="33" name="file8" id="file8" style="visibility: visible;" /> </td>
57
          </tr>
58
		  <tr>
59
            <td width="50%" align="left"><input type="file" size="33" name="file9" id="file9" style="visibility: visible;" /> </td>
60
          </tr>
61
          <tr>
62
            <td width="50%" align="left"><input type="file" size="33" name="file10" id="file10" style="visibility: visible;" /> </td>
63
          </tr>
64
        </table>
65

    
66
        <table cellpadding="3" cellspacing="0" border="0" width="100%">
67
          <tr>
68
            <td colspan="2"><input type="checkbox" name="overwrite" id="overwrite" value="yes" />
69
              <label for="overwrite">{TEXT_OVERWRITE_EXISTING} {TEXT_FILES}</label><br />
70
              <input type="submit" name="submit" value="{TEXT_UPLOAD_FILES}" style="width:160px;margin-top:5px;" />
71
            </td>
72
          </tr>
73
        </table>
74
      </form>
75
<!--
76
If you want to HIDE the option of creating folders in the Media-folder (for your clients, for example),
77
please set the class below to "hide", else to "show".
78
--> 
79
      <div class="show">
80
	  <br /><br />
81
        <form name="create" action="create.php" method="post" class="{DISPLAY_CREATE}">
82
          <h2>{HEADING_CREATE_FOLDER}</h2>
83
          <table cellpadding="3" cellspacing="0" border="0" width="100%">
84
            <tr>
85
              <td>{TEXT_NAME}:<br />
86
              <input type="text" name="name" style="width:98%;" /></td>
87
            </tr>
88
          </table>
89
          <table cellpadding="3" cellspacing="0" border="0" width="100%">
90
            <tr>
91
              <td>{TEXT_TARGET_FOLDER}:<br />
92
                <select name="target" style="width:100%;">
93
                  <option value="{MEDIA_DIRECTORY}{HOME_DIRECTORY}" selected="selected">{MEDIA_DIRECTORY}{HOME_DIRECTORY}</option>
94
                  <!-- BEGIN dir_list_block -->
95
                  <option value="{NAME}">{NAME} </option>
96
                  <!-- END dir_list_block -->
97
                </select>
98
              </td>
99
            </tr>
100
          </table>
101
          <table cellpadding="3" cellspacing="0" border="0" width="100%">
102
            <tr>
103
              <td><input type="submit" name="submit" value="{TEXT_CREATE_FOLDER}" style="width:160px;" />
104
              </td>
105
            </tr>
106
          </table>
107
        </form>
108
      </div>
109
      <!-- END main_block -->
110
    </td>
111
	<td width="10">&nbsp;</td>
112
    <td width="580" valign="top" align="right">
113
	<h2 style="padding-left:3px;">{HEADING_BROWSE_MEDIA}</h2>
114
	<span class="{DISPLAY_SETTINGS}" style="margin-bottom:2px;">{OPTIONS}:&nbsp;
115
	<a href="setparameter.php" target="browse">{CHANGE_SETTINGS}</a>&nbsp;&nbsp;|&nbsp;
116
	<a href="browse.php?dir={CURRENT_DIR}" target="browse">{TEXT_RELOAD}</a>
117
	</span>
118
	<iframe name="browse" width="99%" height="550" src="browse.php" scrolling="yes" frameborder="0" style="border:1px solid #333;"></iframe>
119
    </td>
120
  </tr>
121
</table>
(14-14/33)