Example #1
0
		public function _enable() {
			$ret=new stdClass();
			$ret->success=true;
			$r= new JTTeam($_SESSION['login_user_id']);
			$r->select( $_GET['id'] );
			$r->data['enable'] = $_GET['enable'];
			$r->update();
			die( json_encode($ret) );
		}
			</div>
			<!-- <img src="<?php 
//path_au('img');
?>
char_cnt1.jpg" alt="" class="temporary"> -->
		</div>
		<div class="" style="margin: 1em auto 5em;">
			<a href="javascript:history.go(-1);" class="txt_img-goback btn-getmore hide_txt link-2">回上一頁</a>
		</div>
	</section>

	<footer class="character-ft">
		<h2 class="txtImg_title-title-MemberProfile hide_txt"></h2>
		<div id="charMarquee" class="character-caroul">
			<?php 
$team = new JTTeam();
$rsTeam = $team->all();
?>
			<ul class="character-caroul-list cf">
				<?php 
foreach ($rsTeam as $d) {
    ?>
					<li class="character-item"><a href="character.php?character=<?php 
    echo $d->id;
    ?>
">
						<figure>
							<div class="character-pic pic about-character<?php 
    echo $d->id;
    ?>
">
Example #3
0
<?
	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');
?>