Project

General

Profile

« Previous | Next » 

Revision 1206

Added by Dietmar over 14 years ago

next step to validate backend themes

View differences:

media.htt
1 1
<!-- BEGIN main_block -->
2
<script language="javascript" type="text/javascript">
3
function toggle() {
4
	var check = document.getElementById("file2");
5
	if (check.style.visibility == "visible") {
6
		for (i=2; i<=10; i++) {
7
			document.getElementById("file" + i).style.visibility = "hidden";
8
		}
9
		document.getElementById("delzip").style.display = "inline";
10
	} else {
11
		for (i=2; i<=10; i++) {
12
			document.getElementById("file" + i).style.visibility = "visible";
13
		}
14
		document.getElementById("delzip").style.display = "none";
15
	}
16
}
17
</script>
2
<script src="{THEME_URL}/templates/toggle_zip.js" type="text/javascript"></script>
3

  
18 4
<table cellpadding="0" cellspacing="0" border="0">
19 5
  <tr>
20 6
    <td width="300" valign="top" align="left">
......
24 10
          <tr>
25 11
            <td>{TEXT_TARGET_FOLDER}:<br />
26 12
              <select name="target" style="width:100%;" 
27
		   onChange="browse.location.href='browse.php?dir=' +
13
		   onchange="browse.location.href='browse.php?dir=' +
28 14
		   	document.upload.target.value.substr(6,100);
29 15
		   document.create.target.value = document.upload.target.value;">
30 16
                <option value="{MEDIA_DIRECTORY}{HOME_DIRECTORY}" selected="selected">{MEDIA_DIRECTORY}{HOME_DIRECTORY}</option>
......
38 24
        <table cellpadding="3" cellspacing="0" border="0" width="100%">
39 25
          <tr>
40 26
		  	<td valign="top">
41
				<input type="checkbox" name="unzip" id="unzip"  onClick="toggle();" />
27
				<input type="checkbox" name="unzip" id="unzip"  onclick="toggle();" />
42 28
				<label for="unzip">{TEXT_UNZIP_FILE}</label>
43 29
				<span id="delzip" style="display: none;"><br />
44 30
				<input type="checkbox" name="delzip" id="deletezip" />
......
86 72
          </tr>
87 73
        </table>
88 74
      </form>
89
      <!-- 
75
<!--
90 76
If you want to HIDE the option of creating folders in the Media-folder (for your clients, for example),
91 77
please set the class below to "hide", else to "show".
92
<--->
78
--> 
93 79
      <div class="show">
94 80
	  <br /><br />
95 81
        <form name="create" action="create.php" method="post" class="{DISPLAY_CREATE}">

Also available in: Unified diff