39 lines
1.7 KiB
HTML
39 lines
1.7 KiB
HTML
<div class="scroller_{$name}_files">
|
|
<div class="scroller" data-inited="0" data-initialized="1" data-always-visible="1" data-rail-visible="1">
|
|
<table class="table table-striped table-bordered fc-sku-table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th width="90" style="border-left-width: 1px!important;">ID </th>
|
|
{loop $field['setting']['option']['field'] $tt}
|
|
{if $tt['field']}
|
|
<th width="{$tt['width']}">{$tt['name']}</th>
|
|
{/if}
|
|
{/loop}
|
|
{if !$is_show}
|
|
<th width="70" style="text-align: center"><button type="button" class="btn blue btn-xs" onClick="dr_add_join_{$name}(this)"> <i class="fa fa-plus"></i><buttton> </th>
|
|
{/if}
|
|
</tr>
|
|
</thead>
|
|
<tbody id="join_{$name}-sort-items" class="scroller_body">
|
|
<!--list-->
|
|
{loop $mylist $t}
|
|
<tr id="dr_items_{$name}_{$t.id}">
|
|
<td>{$t.id}
|
|
<input type="hidden" name="data[{$name}][]" value="{$t.id}"></td>
|
|
{loop $field['setting']['option']['field'] $tt}
|
|
{if $tt['field']}
|
|
<td>{dr_list_function($tt.func, $t[$tt['field']], $param, $t, NULL, NULL)}</td>
|
|
{/if}
|
|
{/loop}
|
|
|
|
|
|
{if !$is_show}
|
|
<td width="45" style="text-align: center"><a class="btn btn-xs red" href="javascript:;" onclick="$('#dr_items_{$name}_{$t.id}').remove()"><i class="fa fa-trash"></i></a></td>
|
|
{/if}
|
|
</tr>
|
|
{/loop}
|
|
<!--list-->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div> |