<?php

/* Smarty version 2.6.2, created on 2004-06-07 08:35:51
   compiled from /home/joshua/WWW/themes/Perihelion/pager.tpl */
require_once SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'pager', '/home/joshua/WWW/themes/Perihelion/pager.tpl', 3, false))), $this);
?>
<!-- pager -->

<?php 
echo smarty_function_pager(array('rowcount' => $this->_tpl_vars['rowcount'], 'limit' => 25, 'shift' => 0, 'show' => 'page', 'pos' => 'pager_pos', 'forwardvars' => "", 'no_first' => true, 'separator' => "|", 'txt_pos' => 'side', 'pre_tag' => "[ ", 'post_tag' => " ]", 'class_num' => 'pager_num', 'class_numon' => 'pager_numon', 'class_text' => 'pager_text'), $this);
?>


<!-- end pager -->
            echo $this->_tpl_vars['_send_message'];
            ?>
</span></a>
					<?php 
        }
        ?>
				 </td>
				</tr>
				<?php 
    }
}
unset($_from);
?>
            </table>
			<div class="pagination2"><?php 
echo smarty_function_pager(array('rowcount' => $this->_tpl_vars['paging']['total']), $this);
?>
</div>
			</form>
		</div>
	</div>
	<div class="qiugoucontentright">
		<div class="recommendcompany">
			<div class="recommendcompanytop"><img src="<?php 
echo $this->_tpl_vars['theme_img_path'];
?>
images/lhighs.gif" />&nbsp;<?php 
echo $this->_tpl_vars['_commend'];
?>
 <?php 
echo $this->_tpl_vars['_offer'];
    ?>
</div>
  <?php 
}
unset($_from);
?>
  </ol></div>
  
<!-- adv2 -->
<div style="width: 90%;" id="tadsb" class="c">
<ol style="padding: 0px;" id="ad_b">
</ol></div><!-- adv2 -->
<!-- PAGE -->
<br>  
<div class="p"><div class="jogger"><?php 
echo smarty_function_pager(array('rowcount' => $this->_tpl_vars['paging']['total'], 'limit' => 10, 'txt_prev' => $this->_tpl_vars['_prev_page'], 'txt_next' => $this->_tpl_vars['_next_page']), $this);
?>
</div></div><br>
<!-- PAGE END -->

<div class="kgd">
<div id="rs">
<table cellpadding="0">
<tbody>
<tr>
<th class="tt" rowspan="2"><?php 
echo $this->_tpl_vars['_similar_search'];
?>
</th>
<?php 
$_from = $this->_tpl_vars['similar_search'];
    function content_55b9c9bbdd4e36_77768365($_smarty_tpl)
    {
        if (!is_callable('smarty_function_pager')) {
            include '/var/www/vhosts/ecmd.com.tw/subdomains/case2/httpdocs/jasonwang826/php/smarty-plugins/sys/function.pager.php';
        }
        ?>
<!DOCTYPE html>
<html>
	<head>
		
		<title>康和期貨經理事業 後台管理</title>
		<!--[if gt IE 8]>
			<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<![endif]-->
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
		<meta name="robots" content="noindex, nofollow">
		<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
		<script type="text/javascript" src="<?php 
        echo $_SERVER['JASONWANG826_CONFIG']['JQUERY_INCLUDE'];
        ?>
"></script>
		<script type="text/javascript" src="<?php 
        echo $_SERVER['JASONWANG826_CONFIG']['JQUERY_UI_INCLUDE'];
        ?>
"></script>
		<script type="text/javascript" src="<?php 
        echo $_SERVER['JASONWANG826_CONFIG']['JQUERY_UI_I18N'];
        ?>
" id="jquery-ui-i18n" data-lang-id="zh-tw"></script>
		<link rel="stylesheet" href="<?php 
        echo $_SERVER['JASONWANG826_CONFIG']['JQUERY_UI_CSS'];
        ?>
" type="text/css" />
		<script type="text/javascript" src="<?php 
        echo $_SERVER['JASONWANG826_CONFIG']['JASONWANG826_URL'];
        ?>
/js/json2.js"></script>
		<script type="text/javascript" src="<?php 
        echo $_SERVER['JASONWANG826_CONFIG']['JASONWANG826_URL'];
        ?>
/js/jquery.cookie.js"></script>
		<script type="text/javascript" src="<?php 
        echo $_SERVER['JASONWANG826_CONFIG']['JASONWANG826_URL'];
        ?>
/js/jasonwang826.ui.js"></script>
		<script type="text/javascript" src="<?php 
        echo $_SERVER['JASONWANG826_CONFIG']['JASONWANG826_URL'];
        ?>
/js/timepicker.js"></script>
		<script type="text/javascript" src="<?php 
        echo $_SERVER['JASONWANG826_CONFIG']['JASONWANG826_URL'];
        ?>
/js/jquery.metisMenu.js"></script>
		<script type="text/javascript" src="<?php 
        echo $_SERVER['JASONWANG826_CONFIG']['JASONWANG826_URL'];
        ?>
/js/jquery.urldecoder.js"></script>
		<script type="text/javascript" src="<?php 
        echo $_SERVER['JASONWANG826_CONFIG']['JASONWANG826_URL'];
        ?>
/js/validationEngine/jquery.validationEngine.js"></script>
		<script type="text/javascript" src="<?php 
        echo $_SERVER['JASONWANG826_CONFIG']['JASONWANG826_URL'];
        ?>
/js/validationEngine/languages/jquery.validationEngine-zh_TW.js"></script>
		<script type="text/javascript" src="/admin/js/jquery.validationEngine-custom.js"></script>
		<link rel="stylesheet" href="<?php 
        echo $_SERVER['JASONWANG826_CONFIG']['JASONWANG826_URL'];
        ?>
/css/validationEngine/validationEngine.jquery.ciaoca.css" type="text/css" />
		<script type="text/javascript" src="<?php 
        echo $_SERVER['JASONWANG826_CONFIG']['JASONWANG826_URL'];
        ?>
/config.js"></script>
		<link rel="stylesheet" href="/admin/css/dfstyle.css" type="text/css" />
		<link rel="stylesheet" href="/admin/css/bootstrap.min.css" type="text/css" />
		<script src="/admin/js/bootstrap.min.js"></script>
		<link rel="stylesheet" href="/admin/css/sb-admin.css" type="text/css" />
		<script src="/admin/js/sb-admin.js"></script>
		<link rel="stylesheet" href="/admin/css/font-awesome.css" type="text/css" />
		
	<link rel="stylesheet" href="/admin/css/list.css" type="text/css" />
	<script src="/admin/js/list.js"></script>

		<script type="text/javascript">
		<!--
			function onJasonwang826UIReady(e)	{
				<?php 
        if (isset($_smarty_tpl->tpl_vars['notify']->value)) {
            ?>
					<?php 
            $_smarty_tpl->tpl_vars['n'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['n']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['notify']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['n']->key => $_smarty_tpl->tpl_vars['n']->value) {
                $_smarty_tpl->tpl_vars['n']->_loop = true;
                ?>
						$.jnotify(
							{
								message : '<?php 
                echo $_smarty_tpl->tpl_vars['n']->value->message;
                ?>
',
								type : '<?php 
                echo $_smarty_tpl->tpl_vars['n']->value->type;
                ?>
',
								time : '<?php 
                echo $_smarty_tpl->tpl_vars['n']->value->time;
                ?>
'
							}
						);
					<?php 
            }
            ?>
				<?php 
        }
        ?>
				<?php 
        if (isset($_smarty_tpl->tpl_vars['alert']->value)) {
            ?>
					$.alert(
						'<?php 
            echo $_smarty_tpl->tpl_vars['alert']->value->message;
            ?>
',
						'<?php 
            echo $_smarty_tpl->tpl_vars['alert']->value->title;
            ?>
',
						undefined,
						function(e)	{	<?php 
            if ($_smarty_tpl->tpl_vars['alert']->value->url != null) {
                ?>
	location='<?php 
                echo $_smarty_tpl->tpl_vars['alert']->value->url;
                ?>
';	<?php 
            }
            ?>
	}
					);
				<?php 
        }
        ?>
			}
		//-->
		</script>
	</head>
	<body>
		<div id="wrapper">

			<nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="margin-bottom: 0">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="/admin/">康和期貨經理事業 後台管理</a>
				</div>
				<!-- /.navbar-header -->

				<ul class="nav navbar-top-links navbar-right">
					
					<li class="dropdown">
						<a class="dropdown-toggle" data-toggle="dropdown" href="#">
							<i class="fa fa-list fa-fw"></i>  <i class="fa fa-caret-down"></i>
						</a>
						<ul class="dropdown-menu dropdown-user">
												</ul>
						<!-- /.dropdown-user -->
					</li>
					<!-- /.dropdown -->
					
					<li class="dropdown">
						<a class="dropdown-toggle" data-toggle="dropdown" href="#">
							<i class="fa fa-user fa-fw"></i>  <i class="fa fa-caret-down"></i>
						</a>
						<ul class="dropdown-menu dropdown-user">
							<li><a href="/admin/account/"><i class="fa fa-user fa-fw"></i> 我的帳號</a>
							</li>
							<li class="divider"></li>
							<li><a href="/admin/login.php?action=logout"><i class="fa fa-sign-out fa-fw"></i> 登出</a>
							</li>
						</ul>
						<!-- /.dropdown-user -->
					</li>
					<!-- /.dropdown -->
				</ul>
				<!-- /.navbar-top-links -->
				<div class="navbar-default navbar-static-side" role="navigation">
					<div class="sidebar-collapse">
						<ul class="nav" id="side-menu">
							<li>
								<a href="Javascript:void(0);">首頁管理</a>
								<ul>
									<li><a href="/admin/banner/">幻燈片</a></li>
									<li><a href="/admin/slogon/">標語</a></li>
								</ul>
							</li>
							<li><a href="/admin/fundprice/">每日淨值</a></li>
							<li><a href="/admin/web-content-about/">康和期經介紹</a></li>
							<li><a href="/admin/team/">康和菁英(人物)</a></li>
							<li>
								<a href="Javascript:void(0);">康和期經事業</a>
								<ul>
									<li><a href="/admin/web-content/?id=futures.managed">期貨經理事業</a></li>
									<li><a href="/admin/web-content/?id=futures.fund">期貨信託事業</a></li>
									<li><a href="/admin/web-content/?id=futures.advisory">期貨顧問事業</a></li>
								</ul>
							</li>
							<li>
								<a href="Javascript:void(0);">產品介紹</a>
								<ul>
									<li><a href="/admin/fund/">基金</a></li>
									<li><a href="/admin/trust/">全權委託</a></li>
									<li><a href="/admin/advisory/">顧問服務</a></li>
								</ul>
							</li>
							<li><a href="/admin/news/">市場消息</a></li>
							<li>
								<a href="Javascript:void(0);">客服中心</a>
								<ul>
									<li><a href="/admin/report/">投資月報</a></li>
									<li><a href="/admin/document/">文件下載</a></li>
									<li><a href="/admin/saleschannel/">銷售機構</a></li>
									<li><a href="/admin/faq/">常見問題</a></li>
								</ul>
							</li>
							<li>
								<a href="Javascript:void(0);">聯絡表單</a>
								<ul>
									<li><a href="/admin/contactus-service/">客服中心</a></li>
									<li><a href="/admin/contactus-divisions/">三事業</a></li>
								</ul>
							</li>
							<li><a href="/admin/setting/">網站基本設定</a></li>
							<li><a href="/admin/user/">管理員設定</a></li>
						</ul>
						<!-- /#side-menu -->
					</div>
					<!-- /.sidebar-collapse -->
				</div>
				<!-- /.navbar-static-side -->
			</nav>
			 <div id="page-wrapper">
				
	<div class="row">
		<div class="col-lg-12">
			<h3 class="page-header"><?php 
        echo $_smarty_tpl->tpl_vars['page_title']->value;
        ?>
</h3>
		</div>
	</div>
	
	<div class="row list">
		<div class="col-lg-12">
			<div class="pull-right" style="margin-bottom: 10px;">
				<button type="button" class="btn btn-primary btn-xs" onclick="location.href='./?action=new'"><i class="fa fa-plus"></i> 新增</button>
				<button type="button" class="btn btn-danger btn-xs" onclick="if(confirm('確認刪除?')) $('#ListForm').submit();"><i class="fa fa-trash-o"></i> 刪除</button>
			</div>
			
			<form name="ListForm" id="ListForm" method="post" action="./?action=delete" >
				<div class="table-responsive">
						
					<table class="table table-striped table-bordered table-hover dataTable no-footer" id="dataTables-example" aria-describedby="dataTables-example_info">
						<tr>
							<th width="60px"></th>
							<th>圖片</th>
							<th width="50px">排序</th>
							<th width="80px">是否顯示</th>
							<th width="60px">編輯</th>
						</tr>
						<?php 
        $_smarty_tpl->tpl_vars['r'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['r']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['pager']->value->rsData;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['r']->key => $_smarty_tpl->tpl_vars['r']->value) {
            $_smarty_tpl->tpl_vars['r']->_loop = true;
            ?>
							<tr>
								<td><input type="checkbox" name="ids[]" value="<?php 
            echo $_smarty_tpl->tpl_vars['r']->value->id;
            ?>
" /></td>
								<td><img src="<?php 
            echo $_smarty_tpl->tpl_vars['r']->value->thumb;
            ?>
"></td>
								<td class="ord" data-maxOrd="<?php 
            echo $_smarty_tpl->tpl_vars['maxOrd']->value;
            ?>
" data-id="<?php 
            echo $_smarty_tpl->tpl_vars['r']->value->id;
            ?>
" data-value="<?php 
            echo $_smarty_tpl->tpl_vars['r']->value->ord;
            ?>
"></td>
								<td class="enable" data-tovalue="<?php 
            if ($_smarty_tpl->tpl_vars['r']->value->enable == 'Y') {
                ?>
N<?php 
            } else {
                ?>
Y<?php 
            }
            ?>
" data-id="<?php 
            echo $_smarty_tpl->tpl_vars['r']->value->id;
            ?>
"><?php 
            if ($_smarty_tpl->tpl_vars['r']->value->enable == 'Y') {
                ?>
是<?php 
            } else {
                ?>
否<?php 
            }
            ?>
</td>
								<td>
									<a href="./?action=edit&id=<?php 
            echo $_smarty_tpl->tpl_vars['r']->value->id;
            ?>
" title="修改"><i class="fa fa-pencil"></i></a>
									<a href="javascript:void(0)" onclick="if(confirm('確認刪除?'))location.href='./?action=delete&ids=<?php 
            echo $_smarty_tpl->tpl_vars['r']->value->id;
            ?>
'" title="刪除"><i class="fa fa-trash-o"></i></a> 
								</td>
							</tr>
					   <?php 
        }
        ?>
					</table>
					
					<div class="pages"> 
						<?php 
        echo smarty_function_pager(array('info' => $_smarty_tpl->tpl_vars['pager']->value), $_smarty_tpl);
        ?>

					</div>
				</div>
				<!-- /.table-responsive -->
			</form>
		  
		</div>
		<!-- /.col-lg-12 -->
	</div>

			</div>
			<!-- /#page-wrapper -->
		</div>
	</body>
</html>
<?php 
    }
            }
        }
    }
    unset($_from);
    ?>

<?php 
    $this->assign('limit', $this->_tpl_vars['jobs']['limit']);
    $this->assign('rows', $this->_tpl_vars['jobs']['totalrows']);
    ?>
<!--
offset: <?php 
    echo $this->_tpl_vars['offset'];
    ?>
<br/>
rows: <?php 
    echo $this->_tpl_vars['rows'];
    ?>
<br/>
limit: <?php 
    echo $this->_tpl_vars['limit'];
    ?>
<br/>
-->
<?php 
    echo smarty_function_pager(array('rowcount' => $this->_tpl_vars['rows'], 'limit' => $this->_tpl_vars['limit'], 'posvar' => 'pages', 'pos' => $this->_tpl_vars['offset']), $this);
    ?>


<?php 
}