Merge branch 'master' of https://github.com/easysoft/zentaopms
This commit is contained in:
@@ -21,7 +21,7 @@ class file extends control
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function buildForm()
|
||||
public function buildForm($fileCount = 1, $percent = 0.9, $filesName = "files", $labelsName = "labels")
|
||||
{
|
||||
if(!file_exists($this->file->savePath))
|
||||
{
|
||||
@@ -34,6 +34,8 @@ class file extends control
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->view->filesName = $filesName;
|
||||
$this->view->labelsName = $labelsName;
|
||||
$this->display();
|
||||
}
|
||||
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
|
||||
<div class="file-input-list" data-provide="fileInputList" data-each-file-max-size="<?php echo $maxUploadSize;?>" data-file-size-error="<?php echo sprintf($lang->file->errorFileSize, $maxUploadSize);?>">
|
||||
<div class="file-input">
|
||||
<div class="file-input-empty"><button type="button" class="btn btn-link file-input-btn"><i class="icon icon-plus"></i> <?php echo $lang->file->addFile;?></button> <small class="muted"><?php echo sprintf($lang->file->maxUploadSize, $maxUploadSize);?></small></div>
|
||||
<div class="file-input-empty">
|
||||
<button type="button" class="btn btn-link file-input-btn"><i class="icon icon-plus"></i> <?php echo $lang->file->addFile;?></button> <small class="muted"><?php echo sprintf($lang->file->maxUploadSize, $maxUploadSize);?></small>
|
||||
</div>
|
||||
<div class="file-input-edit input-group">
|
||||
<div class="input-group-cell"><i class="icon icon-paper-clip text-muted"></i></div>
|
||||
<input type="text" name="labels[]" class="form-control file-editbox" placeholder="<?php echo $lang->file->title;?>">
|
||||
<input type="text" name="<?php echo $labelsName;?>[]" class="form-control file-editbox" placeholder="<?php echo $lang->file->title;?>">
|
||||
<div class="input-group-btn">
|
||||
<button type="button" class="btn btn-success file-name-confirm"><i class="icon icon-check"></i></button>
|
||||
<button type="button" class="btn btn-gray file-name-cancel"><i class="icon icon-close"></i></button>
|
||||
@@ -22,6 +24,6 @@
|
||||
<button type="button" class="btn btn-link file-input-delete"><?php echo $lang->delete;?></button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="file" name="files[]">
|
||||
<input type="file" name="<?php echo $filesName;?>[]">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user