:::

9-4-2-8 html.php 套用語系

您沒有觀看影片的權限

您沒有觀看影片的權限

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

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

require_once __DIR__ . '/header.php';

$id = Request::getInt('id');

$action = Tad_signup_actions::get($id);

header("Content-type: text/html");
// header("Content-Disposition: attachment; filename= {$action['title']}.html");

$content = "
<h2 class='my'>
    {$action['title']}
</h2>
<div class='alert alert-info'>
    {$action['detail']}
</div>
{$action['files']}
<h4 class='my'>
    <small>
        <div><i class='fa fa-calendar' aria-hidden='true'></i> " . _MD_TAD_SIGNUP_ACTION_DATE . _TAD_FOR . "{$action['action_date']}</div>
        <div><i class='fa fa-calendar-check-o' aria-hidden='true'></i> " . _MD_TAD_SIGNUP_END_DATE . _TAD_FOR . "{$action['end_date']}</div>
        <div>
            <i class='fa fa-users' aria-hidden='true'></i> " . _MD_TAD_SIGNUP_STATUS . _TAD_FOR . "" . $action['signup_count'] . "/{$action['number']}
            <span data-toggle='tooltip' title='" . _MD_TAD_SIGNUP_CANDIDATES_QUOTA . "'>({$action['candidate']})</span>
        </div>
    </small>
</h4>

<div class='text-center my-3'>
    <a href='" . XOOPS_URL . "/modules/tad_signup/index.php?op=tad_signup_data_create&action_id={$action['id']}' class='btn btn-lg btn-info'><i class='fa fa-plus' aria-hidden='true'></i> " . _MD_TAD_SIGNUP_APPLY_NOW . "</a>
</div>
";

$content = Utility::html5($content, false, true, 4, true, 'container', $action['title'], '<link rel="stylesheet" href="' . XOOPS_URL . '/modules/tad_signup/css/module.css" type="text/css" >');
// echo $content;

if (file_put_contents(XOOPS_ROOT_PATH . "/uploads/tad_signup/{$action['id']}.html", $content)) {
    header("location: " . XOOPS_URL . "/uploads/tad_signup/{$action['id']}.html");
}
exit;

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


:::

搜尋

QR Code 區塊

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

書籍目錄

展開 | 闔起

線上使用者

55人線上 (10人在瀏覽線上書籍)

會員: 0

訪客: 55

更多…