<?php echo $this->fetch('member.header.html'); ?>
<div class="content">
    <?php echo $this->fetch('member.menu.html'); ?>
    <div id="right">
        <?php echo $this->fetch('member.submenu.html'); ?>
        <script type="text/javascript" src="<?php echo $this->lib_base . "/" . 'jquery.plugins/jquery.validate.js'; ?>" charset="<?php echo $this->_var['charset']; ?>"></script>
        <div class="wrap">
            <div class="eject_btn"><b class="ico5" ectype="dialog" uri="index.php?app=my_shipping&amp;act=add" ectype="dialog" dialog_id="my_shipping_add" dialog_width="600" dialog_title="新增配送方式">新增配送方式</b></div>
            <div class="public table">
            <table class="table_head_line">
                <?php if ($this->_var['shippings']): ?>
                <tr class="line_bold">
                    <th class="" colspan="6">
                    </th>
                </tr>
                
                <tr class="gray">
                    <th class="width13">名称</th>
                    <th>简介</th>
                    <th class="width4">首件邮费</th>
                    <th class="width4">附加邮费</th>
                    <th class="width4">启用</th>
                    <th class="width13">操作</th>
                </tr>
                <?php endif; ?>
                <?php $_from = $this->_var['shippings']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'shipping');$this->_foreach['v'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['v']['total'] > 0):
    foreach ($_from AS $this->_var['shipping']):
        $this->_foreach['v']['iteration']++;
?>
                <tr <?php if (($this->_foreach['v']['iteration'] == $this->_foreach['v']['total'])): ?>class="line_bold"<?php else: ?>class="line"<?php endif; ?>>
                    <td><span class="padding1"><?php echo htmlspecialchars($this->_var['shipping']['shipping_name']); ?></span></td>
                    <td><?php echo htmlspecialchars($this->_var['shipping']['shipping_desc']); ?></td>
                    <td class="align2"><?php echo $this->_var['shipping']['first_price']; ?></td>
                    <td class="align2"><?php echo $this->_var['shipping']['step_price']; ?></td>
                    <td class="align2"><?php if ($this->_var['shipping']['enabled']): ?>是<?php else: ?>否<?php endif; ?></td>
                    <td>
                        <div class="padding1">
                            <a href="javascript:void(0);" uri="index.php?app=my_shipping&amp;act=edit&shipping_id=<?php echo $this->_var['shipping']['shipping_id']; ?>" ectype="dialog" dialog_id="my_shipping_edit" dialog_width="600" dialog_title="编辑" class="edit1">编辑</a><a href="javascript:drop_confirm('您确定要删除它吗？', 'index.php?app=my_shipping&amp;act=drop&shipping_id=<?php echo $this->_var['shipping']['shipping_id']; ?>');" class="delete">删除</a>
                        </div>
                    </td>
                </tr>
                <?php endforeach; else: ?>
                <tr>
                    <td colspan="6" class="member_no_records padding6">您没有添加配送方式</td>
                </tr>
                <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
                <iframe name="my_shipping" style="display:none" ></iframe>
            </table>
        </div>
    </div>
</div>
<div class="clear"></div>
<?php echo $this->fetch('footer.html'); ?>
