:::

9-3-4-1 blocks\action_list.php 套用語系

您沒有觀看影片的權限

您沒有觀看影片的權限

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

<?php
use XoopsModules\Tadtools\Utility;
use XoopsModules\Tad_signup\Tad_signup_actions;

// 可報名活動一覽
function action_list($options)
{
    $block = Tad_signup_actions::get_all(true, false, $options[0], $options[1]);
    return $block;
}

// 可報名活動一覽的編輯函式
function action_list_edit($options)
{
    $form = "
    <ol class='my-form'>
        <li class='my-row'>
            <lable class='my-label'>" . _MB_TAD_SIGNUP_SHOW_ACTIONS_NUMBER . "</lable>
            <div class='my-content'>
                <input type='text' class='my-input' name='options[0]' value='{$options[0]}' size=6>
            </div>
        </li>
        <li class='my-row'>
            <lable class='my-label'>" . _MB_TAD_SIGNUP_ORDER_BY . "</lable>
            <div class='my-content'>
                <select name='options[1]' class='my-input'>
                    <option value=', `action_date` desc' " . Utility::chk($options[1], ', `action_date` desc', '1', "selected") . ">" . _MB_TAD_SIGNUP_ORDER_BY_ACTION_DATE . "</option>
                    <option value=', `action_date`' " . Utility::chk($options[1], ', `action_date`', '', "selected") . ">" . _MB_TAD_SIGNUP_ORDER_BY_ACTION_DATE_DESC . "</option>
                    <option value=', `end_date` desc' " . Utility::chk($options[1], ', `end_date` desc', '', "selected") . ">" . _MB_TAD_SIGNUP_ORDER_BY_END_DATE . "</option>
                    <option value=', `end_date`' " . Utility::chk($options[1], ', `end_date`', '', "selected") . ">" . _MB_TAD_SIGNUP_ORDER_BY_END_DATE_DESC . "</option>
                </select>
            </div>
        </li>
    </ol>
    ";
    return $form;
}

 

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


:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.cp22.secserverpros.com%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1801%26tbsn%3D48

書籍目錄

展開 | 闔起

線上使用者

331人線上 (125人在瀏覽線上書籍)

會員: 0

訪客: 331

更多…