<? require_once('./local.inc'); $smarty = new JSmartyTemplate($templateName); $news = new JTNews(); $smarty->assign('news_count', $news->count()); $team = new JTTeam(); $smarty->assign('team_count', $team->count()); $advisory = new JTAdvisory(); $smarty->assign('advisory_count', $advisory->count()); $report = new JTReport(); $smarty->assign('report_count', $report->count()); $document = new JTDocument(); $smarty->assign('document_count', $document->count()); $saleschannel = new JTSaleschannel(); $smarty->assign('saleschannel_count', $saleschannel->count()); $faq = new JTFAQ(); $smarty->assign('faq_count', $faq->count()); $user = new JTUser(); $smarty->assign('user_count', $user->count()); $smarty->display(dirname(__FILE__).'/index.tpl.htm'); ?>
<main class=""> <section class="row1"> <div class="wrapper small"> <h2 class="title"> <img src="<?php path_au('img'); ?> title-saleschannel.png" alt="" class="temporary"> </h2> </div> </section> <section class="fullbg row2 serviceCnt-wrap sales-wrap"> <div class="bg"></div> <div class="wrapper"> <?php $sc = new JTSaleschannel(); ?> <div class="sales-container serviceCnt-container cf"> <div class="row1 left"> <h3 class="txtImg_title-title-sales1 hide_txt">銀行</h3> <?php $rs = $sc->all('銀行'); ?> <ul class="sales-list cf"> <?php foreach ($rs as $d) { ?> <li class="sales-item"> <a href="<?php echo $d->link; ?>
public function _enable() { $ret=new stdClass(); $ret->success=true; $r= new JTSaleschannel($_SESSION['login_user_id']); $r->select( $_GET['id'] ); $r->data['enable'] = $_GET['enable']; $r->update(); die( json_encode($ret) ); }