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