51 lines
2.0 KiB
PHP
51 lines
2.0 KiB
PHP
|
<!-- $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><?php echo $this->_var['lang']['handler']; ?></th>
|
||
|
</tr>
|
||
|
<?php $_from = $this->_var['search_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'search');if (count($_from)):
|
||
|
foreach ($_from AS $this->_var['search']):
|
||
|
?>
|
||
|
<tr align="center">
|
||
|
<td align="left" class="first-cell" >
|
||
|
<span><?php echo $this->_var['search']['name']; ?></span>
|
||
|
</td>
|
||
|
<td width="10%"><img src="images/<?php if ($this->_var['search']['enable'] == '1'): ?>yes<?php else: ?>no<?php endif; ?>.gif" onclick="listTable.toggle(this, 'toggle_enable', <?php echo $this->_var['search']['id']; ?>)" /></td>
|
||
|
<td width="10%" align="right"><span onclick="listTable.edit(this, 'edit_sort_order', <?php echo $this->_var['search']['id']; ?>)"><?php echo $this->_var['search']['sort_order']; ?></span></td>
|
||
|
<td width="24%" align="center">
|
||
|
<a href="search.php?act=edit&id=<?php echo $this->_var['search']['id']; ?>">編輯</a> |
|
||
|
<a href="javascript:;" onclick="listTable.remove(<?php echo $this->_var['search']['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; ?>
|