:::

9-5-1-3 templates\op_tad_signup_actions_show.tpl 套用語系

您沒有觀看影片的權限

您沒有觀看影片的權限

請先登入,登入後,確認您的權限後,即可觀看影片。

  影片中匯出HTML按鈕的連結有誤,請將 ?id=<{$action.id}> 改為 ?id=<{$id}>

<h2 class="my">
    <{if $enable && ($number + $candidate) > $signup_count && $end_date|strtotime >= $smarty.now}>
        <i class="fa fa-check text-success" aria-hidden="true"></i>
    <{else}>
        <i class="fa fa-times text-danger" aria-hidden="true"></i>
    <{/if}>
    <{$title}>
    <small><i class="fa fa-calendar" aria-hidden="true"></i> <{$smarty.const._MD_TAD_SIGNUP_ACTION_DATE}><{$smarty.const._TAD_FOR}><{$action_date}></small>
</h2>

<div class="alert alert-info">
    <{$detail}>
</div>

<!-- AddToAny BEGIN -->
<div class="a2a_kit a2a_kit_size_32 a2a_default_style">
    <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
    <a class="a2a_button_facebook"></a>
    <a class="a2a_button_printfriendly"></a>
</div>
<script async src="https://static.addtoany.com/menu/page.js"></script>
<!-- AddToAny END -->

<{$files}>

<h3 class="my">
    <{$smarty.const._MD_TAD_SIGNUP_APPLIED_DATA}>
    <small>
        <i class="fa fa-calendar-check-o" aria-hidden="true"></i> <{$smarty.const._MD_TAD_SIGNUP_END_DATE_COL}><{$smarty.const._TAD_FOR}><{$end_date}>
        <i class="fa fa-users" aria-hidden="true"></i> <{$smarty.const._MD_TAD_SIGNUP_APPLY_MAX}><{$smarty.const._TAD_FOR}><{$number}>
        <{if $candidate}><span data-toggle="tooltip" title="<{$smarty.const._MD_TAD_SIGNUP_CANDIDATES_QUOTA}>">(<{$candidate}>)</span><{/if}>
    </small>
</h3>

<table class="table" data-toggle="table" data-pagination="true" data-search="true" data-mobile-responsive="true">
    <thead>
        <tr>
            <{foreach from=$signup.0.tdc key=col_name item=user name=tdc}>
                <th data-sortable="true" nowrap class="c"><{$col_name}></th>
            <{/foreach}>
            <th data-sortable="true" nowrap class="c"><{$smarty.const._MD_TAD_SIGNUP_ACCEPT}></th>
            <th data-sortable="true" nowrap class="c"><{$smarty.const._MD_TAD_SIGNUP_APPLY_DATE}></th>
        </tr>
    </thead>
    <tbody>
        <{foreach from=$signup item=signup_data}>
            <tr>
                <{foreach from=$signup_data.tdc key=col_name item=user_data}>
                    <td>
                        <{foreach from=$user_data item=data}>
                            <{if ($smarty.session.can_add && $uid == $now_uid) || $signup_data.uid == $now_uid}>
                                <div><a href="<{$xoops_url}>/modules/tad_signup/index.php?op=tad_signup_data_show&id=<{$signup_data.id}>"><{$data}></a></div>
                            <{else}>
                                <{if strpos($col_name, $smarty.const._MD_TAD_SIGNUP_NAME)!==false}>
                                    <div><{$data|substr_replace:'O':3:3}></div>
                                <{else}>
                                    <div>****</div>
                                <{/if}>
                            <{/if}>
                        <{/foreach}>
                    </td>
                <{/foreach}>
                <td>
                    <{if $signup_data.accept==='1'}>
                        <div class="text-primary"><{$smarty.const._MD_TAD_SIGNUP_ACCEPT}></div>
                        <{if $smarty.session.can_add && $uid == $now_uid}>
                            <a href="<{$xoops_url}>/modules/tad_signup/index.php?op=tad_signup_data_accept&id=<{$signup_data.id}>&action_id=<{$id}>&accept=0" class="btn btn-sm btn-warning"><{$smarty.const._MD_TAD_SIGNUP_CHANGE_TO}><{$smarty.const._MD_TAD_SIGNUP_NOT_ACCEPT}></a>
                        <{/if}>
                    <{elseif $signup_data.accept==='0'}>
                        <div class="text-danger"><{$smarty.const._MD_TAD_SIGNUP_NOT_ACCEPT}></div>
                        <{if $smarty.session.can_add && $uid == $now_uid}>
                            <a href="<{$xoops_url}>/modules/tad_signup/index.php?op=tad_signup_data_accept&id=<{$signup_data.id}>&action_id=<{$id}>&accept=1" class="btn btn-sm btn-success"><{$smarty.const._MD_TAD_SIGNUP_CHANGE_TO}><{$smarty.const._MD_TAD_SIGNUP_ACCEPT}></a>
                        <{/if}>
                    <{else}>
                        <div class="text-muted"><{$smarty.const._MD_TAD_SIGNUP_ACCEPT_NOT_YET}></div>
                        <{if $smarty.session.can_add && $uid == $now_uid}>
                            <a href="<{$xoops_url}>/modules/tad_signup/index.php?op=tad_signup_data_accept&id=<{$signup_data.id}>&action_id=<{$id}>&accept=0" class="btn btn-sm btn-warning"><{$smarty.const._MD_TAD_SIGNUP_NOT_ACCEPT}></a>
                            <a href="<{$xoops_url}>/modules/tad_signup/index.php?op=tad_signup_data_accept&id=<{$signup_data.id}>&action_id=<{$id}>&accept=1" class="btn btn-sm btn-success"><{$smarty.const._MD_TAD_SIGNUP_ACCEPT}></a>
                        <{/if}>
                    <{/if}>
                </td>
                <td>
                    <{$signup_data.signup_date}>
                    <{if $signup_data.tag}>
                        <div><span class="badge badge-primary"><{$signup_data.tag}></span></div>
                    <{/if}>
                </td>
            </tr>
        <{/foreach}>
    </tbody>
</table>

<{if $smarty.session.can_add && $uid == $now_uid}>
    <div class="bar">
        <a href="javascript:del_action('<{$id}>')" class="btn btn-danger"><i class="fa fa-times" aria-hidden="true"></i> <{$smarty.const._MD_TAD_SIGNUP_DESTROY_ACTION}></a>
        <a href="<{$xoops_url}>/modules/tad_signup/index.php?op=tad_signup_actions_edit&id=<{$id}>" class="btn btn-warning"><i class="fa fa-pencil" aria-hidden="true"></i> <{$smarty.const._MD_TAD_SIGNUP_EDIT_ACTION}></a>
        <a href="<{$xoops_url}>/modules/tad_signup/html.php?id=<{$id}>" class="btn btn-primary"><i class="fa fa-html5" aria-hidden="true"></i> <{$smarty.const._MD_TAD_SIGNUP_EXPORT_HTML}></a>

        <a href="<{$xoops_url}>/modules/tad_signup/index.php?op=tad_signup_data_pdf_setup&id=<{$id}>" class="btn btn-info"><i class="fa fa-save" aria-hidden="true"></i> <{$smarty.const._MD_TAD_SIGNUP_EXPORT_SIGNIN_TABLE}></a>

        <div class="btn-group" role="group" aria-label="Basic example">
            <a href="#" class="btn btn-secondary"><i class="fa fa-file-text-o" aria-hidden="true"></i> <{$smarty.const._MD_TAD_SIGNUP_EXPORT_APPLY_LIST}><{$smarty.const._TAD_FOR}></a>
            <a href="<{$xoops_url}>/modules/tad_signup/csv.php?id=<{$id}>&type=signup" class="btn btn-info"><i class="fa fa-file-text-o" aria-hidden="true"></i> CSV</a>
            <a href="<{$xoops_url}>/modules/tad_signup/excel.php?id=<{$id}>&type=signup" class="btn btn-success"><i class="fa fa-file-excel-o" aria-hidden="true"></i> Excel</a>
            <a href="<{$xoops_url}>/modules/tad_signup/pdf.php?id=<{$id}>" class="btn btn-danger"><i class="fa fa-file-pdf-o" aria-hidden="true"></i> PDF</a>
            <a href="<{$xoops_url}>/modules/tad_signup/word.php?id=<{$id}>" class="btn btn-primary"><i class="fa fa-file-word-o" aria-hidden="true"></i> Word</a>
        </div>
    </div>

    <form action="index.php" method="post" class="my-4" enctype="multipart/form-data">
        <div class="input-group">
            <div class="input-group-prepend input-group-addon">
                <span class="input-group-text"><{$smarty.const._MD_TAD_SIGNUP_IMPORT_APPLY_LIST}> CSV</span>
            </div>
            <input type="file" name="csv" class="form-control" accept="text/csv">
            <div class="input-group-append input-group-btn">
                <input type="hidden" name="id" value="<{$id}>">
                <input type="hidden" name="op" value="tad_signup_data_preview_csv">
                <button type="submit" class="btn btn-primary"><{$smarty.const._MD_TAD_SIGNUP_IMPORT}> CSV</button>
                <a href="<{$xoops_url}>/modules/tad_signup/csv.php?id=<{$id}>" class="btn btn-secondary"><i class="fa fa-file-text-o" aria-hidden="true"></i> <{$smarty.const._MD_TAD_SIGNUP_DOWNLOAD}> CSV <{$smarty.const._MD_TAD_SIGNUP_IMPORT_FILE}></a>
            </div>
        </div>
    </form>

    <form action="index.php" method="post" class="my-4" enctype="multipart/form-data">
        <div class="input-group">
            <div class="input-group-prepend input-group-addon">
                <span class="input-group-text"><{$smarty.const._MD_TAD_SIGNUP_IMPORT_APPLY_LIST}> Excel</span>
            </div>
            <input type="file" name="excel" class="form-control" accept=".xlsx">
            <div class="input-group-append input-group-btn">
                <input type="hidden" name="id" value="<{$id}>">
                <input type="hidden" name="op" value="tad_signup_data_preview_excel">
                <button type="submit" class="btn btn-primary"><{$smarty.const._MD_TAD_SIGNUP_IMPORT}> Excel</button>
                <a href="<{$xoops_url}>/modules/tad_signup/excel.php?id=<{$id}>" class="btn btn-secondary"><i class="fa fa-file-excel-o" aria-hidden="true"></i> <{$smarty.const._MD_TAD_SIGNUP_DOWNLOAD}> Excel <{$smarty.const._MD_TAD_SIGNUP_IMPORT_FILE}></a>
            </div>
        </div>
    </form>
<{/if}>

link to https://github.com/tadlearn/tad_signup/commit/09406a5cf52cb762b87088ec1eeae54054b28203 \


:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1822%26tbsn%3D48

書籍目錄

展開 | 闔起

線上使用者

49人線上 (16人在瀏覽線上書籍)

會員: 0

訪客: 49

更多…