Project

General

Profile

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

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

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