82 lines
3.1 KiB
PHP
82 lines
3.1 KiB
PHP
|
|
||
|
<?php if ($this->_var['full_page']): ?>
|
||
|
<?php echo $this->fetch('pageheader.htm'); ?>
|
||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>
|
||
|
|
||
|
<!-- 商品搜索 -->
|
||
|
<!-- 商品列表 -->
|
||
|
<form method="post" action="" name="listForm" onsubmit="return confirmSubmit(this)">
|
||
|
<!-- start games list -->
|
||
|
<div class="list-div" id="listDiv">
|
||
|
<?php endif; ?>
|
||
|
<table cellpadding="3" cellspacing="1">
|
||
|
<tr>
|
||
|
<th>
|
||
|
<a href="javascript:listTable.sort('id'); ">編號</a><?php echo $this->_var['sort_id']; ?>
|
||
|
</th>
|
||
|
<th>入口名稱</th>
|
||
|
<th>網域</th>
|
||
|
<th>類型</th>
|
||
|
<th><?php echo $this->_var['lang']['handler']; ?></th>
|
||
|
<tr>
|
||
|
<?php $_from = $this->_var['portal_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'portal');if (count($_from)):
|
||
|
foreach ($_from AS $this->_var['portal']):
|
||
|
?>
|
||
|
<tr>
|
||
|
<td><?php echo $this->_var['portal']['id']; ?></td>
|
||
|
<td class="first-cell"><?php echo htmlspecialchars($this->_var['portal']['name']); ?></td>
|
||
|
<td align="center"><?php echo $this->_var['portal']['domain']; ?></td>
|
||
|
<td align="center"><?php if ($this->_var['portal']['type'] == 2): ?>地區<?php elseif ($this->_var['portal']['type'] == 3): ?>景點<?php else: ?>一般<?php endif; ?></td>
|
||
|
<td align="center">
|
||
|
<a href="portal.php?act=edit&id=<?php echo $this->_var['portal']['id']; ?><?php if ($this->_var['code'] != 'real_gamess'): ?>&extension_code=<?php echo $this->_var['code']; ?><?php endif; ?>" title="<?php echo $this->_var['lang']['edit']; ?>"><img src="images/icon_edit.gif" width="16" height="16" border="0" /></a>
|
||
|
<?php if ($this->_var['portal']['id'] != 1): ?>
|
||
|
<a href="javascript:;" onclick="listTable.remove(<?php echo $this->_var['portal']['id']; ?>, '確認刪除?')" title="刪除"><img src="images/icon_trash.gif" width="16" height="16" border="0" /></a>
|
||
|
<?php endif; ?>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<?php endforeach; else: ?>
|
||
|
<tr><td class="no-records" colspan="5">沒有資料</td></tr>
|
||
|
<?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
|
||
|
</table>
|
||
|
<!-- end games list -->
|
||
|
|
||
|
<!-- 分页 -->
|
||
|
<table id="page-table" cellspacing="0">
|
||
|
<tr>
|
||
|
<td align="right" nowrap="true">
|
||
|
<?php echo $this->fetch('page.htm'); ?>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<?php if ($this->_var['full_page']): ?>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
listTable.recordCount = <?php echo $this->_var['record_count']; ?>;
|
||
|
listTable.pageCount = <?php echo $this->_var['page_count']; ?>;
|
||
|
|
||
|
<?php $_from = $this->_var['filter']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
|
||
|
foreach ($_from AS $this->_var['key'] => $this->_var['item']):
|
||
|
?>
|
||
|
listTable.filter.<?php echo $this->_var['key']; ?> = '<?php echo $this->_var['item']; ?>';
|
||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
|
||
|
|
||
|
|
||
|
onload = function()
|
||
|
{
|
||
|
document.forms['listForm'].reset();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param: bool ext 其他条件:用于转移分类
|
||
|
*/
|
||
|
function confirmSubmit(frm, ext)
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
<?php echo $this->fetch('pagefooter.htm'); ?>
|
||
|
<?php endif; ?>
|