public function __construct($module, $page, $type, $data, $layout, $mod_layout = '', $user = false, $func = 'main') { if ($type == 'admin') { $abspath = _ADMIN_ABSPATH_; } else { $abspath = _ABSPATH_; } $sep = DIRECTORY_SEPARATOR; //Thong tin ve module //Thong tin ve data $this->layout = $layout; $this->data = $data; $this->user = $user; //Khoi tao smarty $this->template = new Smarty(); //$this->template->debugging = true; $this->template->template_dir = $abspath . $sep . 'templates'; $this->template->compile_dir = $abspath . $sep . 'cache' . $sep . 'templates' . $sep . 'templates_c'; $this->template->cache_dir = $abspath . $sep . 'cache' . $sep . 'templates' . $sep . 'cache'; $this->template->config_dir = $abspath . $sep . 'cache' . $sep . 'templates' . $sep . 'config'; $this->template->assign('_MODULE_PATH', _MODULE_PATH_ . '/' . $module); $this->template->assign('_MODULE_ABSPATH', _MODULE_ABSPATH_ . $sep . $module); if ($mod_layout == '') { $this->template->assign('_MODULE_TPL', $type . '.' . $page . '.tpl'); } else { $this->template->assign('_MODULE_TPL', $mod_layout); } $modHeadPath = _MODULE_ABSPATH_ . $sep . $module . $sep . 'tpl' . $sep . TYPE . '.' . $page . '.head.tpl'; $headPath = $abspath . $sep . 'templates' . $sep . 'head.tpl'; if (file_exists($modHeadPath)) { $this->template->assign('_HEAD', $modHeadPath); } else { if (file_exists($headPath)) { $this->template->assign('_HEAD', $headPath); } } $modFootPath = _MODULE_ABSPATH_ . $sep . $module . $sep . 'tpl' . $sep . TYPE . '.' . $page . '.foot.tpl'; $footPath = $abspath . $sep . 'templates' . $sep . 'foot.tpl'; if (file_exists($modFootPath)) { $this->template->assign('_FOOT', $modFootPath); } else { if (file_exists($footPath)) { $this->template->assign('_FOOT', $footPath); } } $this->template->assign('DIR_SEP', $sep); $this->template->assign('_DATE_FORMAT', _date_format()); if (count($this->user)) { $this->template->assign('user', $this->user); } $this->template->assign('message', Message::singleton()); $this->template->assign('data', $this->data); $this->template->assign('_mod', $module); $this->template->assign('_page', $page); $this->template->assign('_type', TYPE); $this->template->assign('_func', $func); $this->template->assign('get', $_GET); $this->template->plugins_dir[] = _PLUGIN_ABSPATH; }
<?php } else { ?> 暫無資料 <?php } ?> </div> </div> </div> <div class="container-desc"> <h2 class="section-title">計畫簡介 DESCRIPTION</h2> <div class="content"> <div class="date"> <?php echo _date_format($story->createDate); ?> </div> <div class="text"> <txt> <?php echo $story->content; ?> </txt> </div> <div class="share"> </div> </div> </div> <div class="container-information">
} ?> </a> </div> <div class="item-content article-content"> <a href="<?php echo site_url("project/view/" . $story->storyID); ?> "> <div class="title"> <?php echo h($story->title); ?> </div> <div class="date"> <?php echo h(_date_format($story->createDate)); ?> </div> <div class="caption"> </div> <div class="desc"><?php echo _truncate(strip_tags($story->content), 80); ?> </div> </a> </div> </div> <?php } ?> <?php for ($ind = 0; $ind < 0; ++$ind) {
?> <tr> <td><?php echo h($article->storyID); ?> </td> <td><?php echo h($article->title); ?> </td> <td><?php echo _date_format($article->createDate); ?> </td> <td><?php echo _date_format($article->modifyDate); ?> </td> <td> <a href="<?php echo site_url("/member/project_edit/" . $article->storyID); ?> ">編輯</a> <a href="<?php echo site_url("/project/view/" . $article->storyID); ?> ">檢視</a> <a style="color:red;" href="<?php echo site_url("/member/project_del/" . $article->storyID); ?>
?> " /> </a> </div> <div class="activity-content article-content"> <a href="<?php echo site_url("project/view/" . $act->storyID); ?> "> <div class="title"> <?php echo h($act->title); ?> </div> <div class="date"> <?php echo _date_format($act->createDate); ?> </div> <div class="desc"><?php echo _truncate(strip_tags($act->intro), 60); ?> </div> </a> </div> </div> <?php } ?> <?php for ($ind = 0; $ind < 0; ++$ind) { ?>
暫無資料 <?php } ?> <?php } ?> </div> </div> </div> <div class="container-desc"> <h2 class="section-title">計畫簡介 DESCRIPTION</h2> <div class="content"> <div class="date"> <?php echo _date_format("2015/" . $event->start, "Y-m-d"); ?> </div> <div class="text"> <txt> <h3>緣起</h3> <p class="sec">由於新科技的不斷推陳出新,急遽的改變了我們的生活內容,同時也改變了我們參與世 界的方法, 過去僅是2D平面的思考模式,在3D時代來臨時使我們面對更多的挑戰。 為了結 合台灣過去科技製造發展的優勢基礎,來面對新一波科技潮流衝擊, 我們思考從學校出發, 結合Maker(創客)實作精神, 與最新的3D列印技術,規劃能與學校程銜接的普及化推廣計 畫。</p> </ul> </txt> </div> <div class="share"> </div>
?> </td> </tr> <tr> <td class="member-info-field "><div class="">Email:</div></td> <td class="member-info-content" colspan="2" > <div class="link"><a href="#"><?php echo h($mem->email); ?> </a></div></td> </tr> <tr> <td class="member-info-field ">生日:</td> <td colspan="2" class="member-info-content "> <?php echo _date_format($mem->birthday, "Y/m/d"); ?> </td> </tr> </tbody> </table> </form> </div> <div style="clear:both;"></div> <div class="button" style="padding-left:430px; padding-top:50px;"> <a class="btn btn-primary" href="<?php echo site_url("member/info_edit"); ?> ">編 輯</a></div></div> </div>