Esempio n. 1
0
path_au('img');
?>
banner-news.jpg')">
	
</section>

<main class="">
<?php 
// echo '$start:'.$start."<br>";
// echo '$total:'.$total."<br>";
// echo '$maxPage:'.$maxPage."<br>";
?>
	<section class="row1">
		<div class="wrapper">
			<?php 
$last = new JTNews();
$last->last('圖文');
?>
			<h2 class="page_title txtImg_title-title-lu hide_txt <?php 
isPhone('mobile_title');
?>
 title-1">Lastest Update</h2>
			<div class="metro-block-style1 cf ib">
				<div class="news-pic pic left">
				<?php 
if ($last->data['icon'] == '') {
    echo "<img src=\"dist/images/news-cover.jpg\" alt=\"\">";
} else {
    echo "<img src=\"{$last->data['icon']}\" alt=\"\">";
}
?>
Esempio n. 2
0
		public function _enable() {
			$ret=new stdClass();
			$ret->success=true;
			$r= new JTNews($_SESSION['login_user_id']);
			$r->select( $_GET['id'] );
			$r->data['enable'] = $_GET['enable'];
			$r->update();
			die( json_encode($ret) );
		}
Esempio n. 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');
?>
Esempio n. 4
0
			<hgroup class="txtImg_title-title-news <?php 
isPhone('mobile_title-group');
?>
">
				<h1 class="hidden <?php 
isPhone('mobile_title');
?>
 title-1" data-lang="en">News & Updates</h1>
				<h2 class="hidden <?php 
isPhone('mobile_title');
?>
 title-2" data-lang="tw">市場消息</h2>
			</hgroup>
			<div class="metro-wrap">
				<?php 
$news = new JTNews();
$rsTextNews = $news->latest(3, '圖文');
$rsVideoNews = $news->latest(1, '影音');
function textNewsStyle1($d = null)
{
    if ($d != null) {
        ?>
								<a href="news_cnt.php?id=<?php 
        echo $d->id;
        ?>
"></a>
								<div class="news-pic pic left">
									<img src="<?php 
        echo $d->icon;
        ?>
" />
Esempio n. 5
0
<?php

include_once 'config.php';
include_once INC_PATH . 'headleader.php';
require_once INC_PATH . 'aunav.php';
$news = new JTNews();
$news->select($_GET['id']);
?>
<title>市場消息 / 康和快訊 | <?php 
echo $webTitle;
?>
</title>

<?php 
// -------------------------------
// SEO
// CSS
// Script in the HEAD
// -------------------------------
include_once INC_PATH . 'head.php';
?>


<?php 
//app
include_once INC_PATH . 'social.php';
?>

<!--[if lt IE 9]>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>