Skip to content

Commit

Permalink
调整
Browse files Browse the repository at this point in the history
  • Loading branch information
emnabs committed Nov 8, 2017
1 parent c827c45 commit f485af5
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions views/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
$html .= Html::activeHiddenInput($model, $attribute . '[' . $key . ']', [
'class' => 'plupload_file_input',
]);
$html .= '<div class="plupload_file_thumb">
<img src="' . $attachUrl . $item . '">
</div>
$html .= '<div class="plupload_file_thumb"><img src="' . $attachUrl . $item . '"></div>
<div class="plupload_file_name"><span>' . basename($item) . '</span></div>
<div class="plupload_file_size">123kb</div>
<div class="plupload_file_size"></div>
<div class="plupload_file_action">
<span class="plupload_action_icon">移除</span>
</div>
Expand All @@ -28,16 +26,14 @@
}
} else {
if ($multiSelection) {
$attribute .= '[]';
$attribute .= '[0]';
}
echo Html::activeHiddenInput($model, $attribute);
if ($data) {
$html .= '<li class="plupload_file" id="ppi_0">';
$html .= '<div class="plupload_file_thumb">
<img src="' . $attachUrl . $data . '">
</div>
$html .= '<div class="plupload_file_thumb"><img src="' . $attachUrl . $data . '"></div>
<div class="plupload_file_name"><span>' . basename($data) . '</span></div>
<div class="plupload_file_size">2.3mb</div>
<div class="plupload_file_size"></div>
<div class="plupload_file_action">
<span class="plupload_action_icon">移除</span>
</div>
Expand Down

0 comments on commit f485af5

Please sign in to comment.