filesite
7 months ago
7 changed files with 67 additions and 52 deletions
@ -0,0 +1,46 @@
@@ -0,0 +1,46 @@
|
||||
<?php |
||||
$linkPrefix = ''; |
||||
//多用户路径支持 |
||||
if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['user_id'])) { |
||||
$linkPrefix = '/' . FSC::$app['user_id']; |
||||
} |
||||
?><main class="g_main_lay"> |
||||
<form class="g_form_style mt65" id="tags_form" action="" method="POST"> |
||||
<?php if (!empty($viewData['tags'])) { |
||||
|
||||
$index = 0; |
||||
foreach($viewData['tags'] as $id => $tag) { |
||||
$index ++; |
||||
echo <<<eof |
||||
<div class="mb-3 tag-item"> |
||||
<button class="btn-danger" type="button">删除</button> |
||||
<label class="form-label">分类 {$index}</label> |
||||
<input name="tags[]" placeholder="请填写 2 - 5 个汉字" value="{$tag['name']}"> |
||||
</div> |
||||
eof; |
||||
} |
||||
?> |
||||
|
||||
<div class="avform_bt vercenter"> |
||||
<button class="jsbtn" aria-label="保存" type="button"> |
||||
<div class="loading_bt bt_class_JS elementNone verMiddle"> |
||||
<svg viewBox="25 25 50 50"> |
||||
<circle cx="50" cy="50" r="20"></circle> |
||||
</svg> |
||||
</div> |
||||
<span class="bt_text_JS">保存</span> |
||||
<div class="bt_loading_cover bt_class_JS elementNone"></div> |
||||
</button> |
||||
|
||||
<span class="ml20"> |
||||
<a href="<?=$linkPrefix?>/my/">返回</a> |
||||
</span> |
||||
</div> |
||||
<?php }else { ?> |
||||
<div class="mb-3"> |
||||
<h3>你还没添加任何分类哦</h3> |
||||
<p class="mt10"><a href="<?=$linkPrefix?>/my/addtag" class="btn-primary">添加分类</a></p> |
||||
</div> |
||||
<?php } ?> |
||||
</form> |
||||
</main> |
Loading…
Reference in new issue