add multifile support

This commit is contained in:
/jedi/ 2019-03-02 02:16:37 +01:00
parent 34cf28a2b2
commit c11edf96c9
4 changed files with 70 additions and 44 deletions

View file

@ -43,9 +43,15 @@
<td><?php echo $item["wo"]; ?></td>
<td><?php echo $item["container"];?></td>
<td>
<button class="btn btn-link" data-toggle="modal" data-target="#exampleModal_picture" onclick="show_picture('<?php echo $item["hash"]; ?>')">
<img style="height: 48px;" src="/thumb/<?php echo $item["hash"]; ?>">
</button>
<?php
if(isset($item["files"])){
?>
<button class="btn btn-link" data-toggle="modal" data-target="#exampleModal_picture" onclick="show_picture('<?php echo $item["files"][0]["hash"]; ?>')">
<img style="height: 48px;" src="/thumb/<?php echo $item["files"][0]["hash"]; ?>">
</button>
<?php
}
?>
</td>
<!--<td><img style="height: 48px;" src="/upload/<?php echo $item["hash"]; ?>"></td>-->
<td>