bnbweb/temp/compiled/admin/facility_list.htm.php
2022-11-15 01:31:15 +08:00

57 lines
2.1 KiB
PHP
Executable File

<!-- $Id: facility_list.htm 17019 2010-01-29 10:10:34Z liuhui $ -->
<?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">
<!-- start ad position list -->
<div class="list-div" id="listDiv">
<?php endif; ?>
<table width="100%" cellspacing="1" cellpadding="2" id="list-table">
<tr>
<th>設施名稱</th>
<th>設施圖檔</th>
<th>是否有效</th>
<th>排序</th>
<th><?php echo $this->_var['lang']['handler']; ?></th>
</tr>
<?php $_from = $this->_var['fac_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'fac');if (count($_from)):
foreach ($_from AS $this->_var['fac']):
?>
<tr align="center">
<td align="left" class="first-cell" >
<span><?php echo $this->_var['fac']['name']; ?></span>
</td>
<td width="10%">
<?php if ($this->_var['fac']['image']): ?>
<img src="../<?php echo $this->_var['fac']['image']; ?>" border="0" style="vertical-align:middle;" width="25px" height="25px">
<?php endif; ?>
</td>
<td width="10%"><img src="images/<?php if ($this->_var['fac']['is_show'] == '1'): ?>yes<?php else: ?>no<?php endif; ?>.gif" onclick="listTable.toggle(this, 'toggle_is_show', <?php echo $this->_var['fac']['id']; ?>)" /></td>
<td width="10%" align="right"><span onclick="listTable.edit(this, 'edit_sort_order', <?php echo $this->_var['fac']['id']; ?>)"><?php echo $this->_var['fac']['sort_order']; ?></span></td>
<td width="24%" align="center">
<a href="facility.php?act=edit&id=<?php echo $this->_var['fac']['id']; ?>">編輯</a> |
<a href="javascript:;" onclick="listTable.remove(<?php echo $this->_var['fac']['id']; ?>, '確認刪除')" title="刪除">移除</a>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
<?php if ($this->_var['full_page']): ?>
</div>
</form>
<script language="JavaScript">
<!--
onload = function()
{
}
//-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>