mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 05:01:43 +00:00
use new file upload chooser
This commit is contained in:
parent
a65ff953f5
commit
04c5476f2b
|
@ -81,15 +81,12 @@ function checkForm()
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function addFiles()
|
$(document).ready(function() {
|
||||||
{
|
$('#new-file').click(function(event) {
|
||||||
var li = document.createElement('li');
|
$("#upload-file").clone().appendTo("#upload-files").removeAttr("id").children('div').children('input').val('');
|
||||||
li.innerHTML = '<input type="File" name="userfile[]" size="60">';
|
});
|
||||||
document.getElementById('files').appendChild(li);
|
});
|
||||||
// document.getElementById("files").innerHTML += '<br><input type="File" name="userfile[]" size="60">';
|
|
||||||
document.form1.name.disabled=true;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -179,10 +176,16 @@ function addFiles()
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php printMLText("local_file");?>:</td>
|
<td><?php printMLText("local_file");?>:</td>
|
||||||
<td>
|
<td>
|
||||||
|
<!--
|
||||||
<a href="javascript:addFiles()"><?php printMLtext("add_multiple_files") ?></a>
|
<a href="javascript:addFiles()"><?php printMLtext("add_multiple_files") ?></a>
|
||||||
<ol id="files">
|
<ol id="files">
|
||||||
<li><input type="file" name="userfile[]" size="60"></li>
|
<li><input type="file" name="userfile[]" size="60"></li>
|
||||||
</ol>
|
</ol>
|
||||||
|
-->
|
||||||
|
<?php
|
||||||
|
$this->printFileChooser('userfile[]', false);
|
||||||
|
?>
|
||||||
|
<a class="" id="new-file"><?php printMLtext("add_multiple_files") ?></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php if($dropfolderdir) { ?>
|
<?php if($dropfolderdir) { ?>
|
||||||
|
|
|
@ -94,7 +94,11 @@ function checkForm()
|
||||||
<table class="table-condensed">
|
<table class="table-condensed">
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php printMLText("local_file");?>:</td>
|
<td><?php printMLText("local_file");?>:</td>
|
||||||
<td><input type="File" name="userfile" size="60"></td>
|
<td><!-- <input type="File" name="userfile" size="60"> -->
|
||||||
|
<?php
|
||||||
|
$this->printFileChooser('userfile', false);
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php printMLText("name");?>:</td>
|
<td><?php printMLText("name");?>:</td>
|
||||||
|
|
|
@ -130,7 +130,11 @@ function checkForm()
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php printMLText("new_user_image");?>:</td>
|
<td><?php printMLText("new_user_image");?>:</td>
|
||||||
<td><input type="file" name="userfile" accept="image/jpeg" size="30"></td>
|
<td>
|
||||||
|
<?php
|
||||||
|
$this->printFileChooser('userfile', false, "image/jpeg");
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,7 +132,11 @@ function checkForm()
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php printMLText("local_file");?>:</td>
|
<td><?php printMLText("local_file");?>:</td>
|
||||||
<td><input type="File" name="userfile" size="60"></td>
|
<td><!-- input type="File" name="userfile" size="60" -->
|
||||||
|
<?php
|
||||||
|
$this->printFileChooser('userfile', false);
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php if($dropfolderdir) { ?>
|
<?php if($dropfolderdir) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -200,7 +200,11 @@ function showUser(selectObj) {
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php printMLText("user_image");?>:</td>
|
<td><?php printMLText("user_image");?>:</td>
|
||||||
<td><input type="File" name="userfile"></td>
|
<td>
|
||||||
|
<?php
|
||||||
|
$this->printFileChooser('userfile', false, 'image/jpeg');
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -417,7 +421,11 @@ function showUser(selectObj) {
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php printMLText("new_user_image");?>:</td>
|
<td><?php printMLText("new_user_image");?>:</td>
|
||||||
<td><input type="file" name="userfile" accept="image/jpeg"></td>
|
<td>
|
||||||
|
<?php
|
||||||
|
$this->printFileChooser('userfile', false, "image/jpeg");
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue
Block a user