</tr>
                <tr>
                    <td class="label">商品品牌</td>
                    <td>
                        <!--调用自动生成select的函数-->
                        <?php 
echo arr2select('brand_id', $brand_lists, $brand_id);
?>
                    </td>
                </tr>
                <tr>
                    <td class="label">供货商</td>
                    <td>
                        <!--调用自动生成select的函数-->
                        <?php 
echo arr2select('supplier_id', $supplier_lists, $supplier_id);
?>
                    </td>
                </tr>
                <tr>
                    <td class="label">本店价格</td>
                    <td>
                        <input type='text' name='shop_price' maxlength='60' value='<?php 
echo $shop_price;
?>
'/>
                    </td>
                </tr>
                <tr>
                    <td class="label">市场价格</td>
                    <td>
                    <td class="label">商品品牌</td>
                    <td>
                        <!-- 生成下拉框的函数,传入名字和数据便生成一个下拉框-->
                     <?php 
echo arr2select('brand_id', $brands);
?>

                        <span class="require-field">*</span>
                    </td>
                </tr>
                <tr>
                    <td class="label">供货商</td>
                    <td>
                        <!-- 生成下拉框的函数,传入名字和数据便生成一个下拉框-->
                        <?php 
echo arr2select('supplier_id', $suppliers);
?>
                        <span class="require-field">*</span>
                    </td>
                </tr>
                <tr>
                    <td class="label">本店价格</td>
                    <td>
                        <input type='text' name='shop_price' maxlength='60' value='<?php 
echo $shop_price;
?>
'/> <span
                            class="require-field">*</span>
                    </td>
                </tr>
                <tr>
" enctype="multipart/form-data">
            <table cellspacing="1" cellpadding="3" width="100%">
                <tr>
                <td class='label'>标题</td>
                <td>
                    <input type='text' name='name' maxlength='60' value='<?php 
echo $name;
?>
'/>
                    <span class='require-field'>*</span>
                </td>
                </tr><tr>
                <td class='label'>文章分类</td>
                <td>
                   <?php 
echo arr2select('article_category_id', $articlecatelist, $article_category_id);
?>
                </td>
                </tr>
                <tr>
                    <td class='label'>摘要</td>
                    <td>
                        <textarea name='intro' cols='60' rows='4'><?php 
echo $intro;
?>
</textarea>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <textarea name='content' cols='60' rows='4' id="content"><?php 
?>
" enctype="multipart/form-data">
        <table cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <td class="label">文章名称</td>
                <td>
                    <input type='text' name='name' maxlength='60' value='<?php 
echo $name;
?>
'/></td>
            </tr>
            <tr>
                <td class="label">文章分类</td>
                <td>
                    <?php 
echo arr2select('article_category_id', $article_categorys);
?>
                </td>

            </tr>
            <tr>
                <td class="label">文章内容</td>
                <td>
                    <textarea name="article_content" id="article_content" cols="30" rows="10"></textarea>
                </td>
            </tr>
            <tr>
                <td class="label">是否显示</td>
                <td>
                    <input type='radio' class='status' name='status' value='1'/> 是
                    <input type='radio' class='status' name='status' value='0'/> 否
        <form action="<?php 
echo U();
?>
" name="searchForm">
            <img src="http://admin.shop.com/Public/Admin/images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH"/>
            <input type="text" name="keyword" size="15" placeholder="请输入关键字" value="<?php 
echo $_GET['keyword'];
?>
"/>
            <input type="text" size="15" placeholder="请选择分类" id="citySel" readonly/>
            <input type="hidden" id="goods_category_id" name="goods_category_id">
            <?php 
echo arr2select('brand_id', $brands, I('get.brand_id'));
?>
            <?php 
echo arr2select('supplier_id', $suppliers, I('get.supplier_id'));
?>
            <input type="submit" value=" 搜索 " class="button"/>
        </form>
    </div>


    <input type="button" value="删除" class="ajax_post" href="<?php 
echo U('changeStatus');
?>
" class="button">
    <input type="button" value="显示" class="ajax_post" href="<?php 
echo U('changeStatus', array('status' => 1));
?>
" class="button">
    <input type="button" value="隐藏" class="ajax_post" href="<?php 
                        <ul id="treeDemo" class="ztree"></ul>
                    </td>
                </tr>
                <tr>
                    <td class="label">品牌</td>
                    <td>
                        <?php 
echo arr2select('brand_id', $brands, $row['brand_id']);
?>
                    </td>
                </tr>
                <tr>
                    <td class="label">供货商</td>
                    <td>
                        <?php 
echo arr2select('supplier_id', $supplier, $row['supplier_id']);
?>
                    </td>
                </tr>
                <tr>
                    <td class="label">本店价格</td>
                    <td>
                        <input type="text" name="shop_price" value="<?php 
echo isset($row["shop_price"]) && $row["shop_price"] !== "" ? $row["shop_price"] : '';
?>
"> <span
                            class="require-field">*</span>
                    </td>
                </tr>
                <tr>
                    <td class="label">市场价格</td>
" method="post">
            <table width="90%" id="general-table" align="center">
                <tr>
                    <td class="label">文章名称</td>
                    <td>
                        <input type='text' name='name' value='<?php 
echo $name;
?>
' size='30'/>
                    </td>
                </tr>
                <tr>
                    <td class="label">文章分类</td>
                    <td>
                        <?php 
echo arr2select('article_category_id', $articleCategory, $article_category_id);
?>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <textarea id="content" name="content"><?php 
echo $content;
?>
</textarea>
                    </td>
                </tr>

                <tr>
                    <td class="label">是否显示</td>
                    <td>
                </tr>

                <tr>
                    <td class='label'>品牌</td>
                    <td>
                        <?php 
echo arr2select('brand_id', $brandlist, $brand_id);
?>
                    </td>
                </tr>

                <tr>
                    <td class='label'>供应商</td>
                    <td>
                        <?php 
echo arr2select('supplier_id', $Supplierlist, $supplier_id);
?>
                    </td>
                </tr>

                <tr>
                    <td class='label'>本店价格</td>
                    <td>
                        <input type='text' name='shop_price' maxlength='60' value='<?php 
echo $shop_price;
?>
'/>
                        <span class='require-field'>*</span>
                    </td>
                </tr>
        <form  action="<?php 
echo U();
?>
" method="get" name="searchForm">
            <img src="http://admin.shop.com/Public/Admin/images/icon_search.gif" width="26" height="22" border="0" alt="search" />
            <input type="text" name="keyword" size="15" value="<?php 
echo $_GET['keyword'];
?>
" placeholder="请输入关键字"/>
            <input type="text" id="citySel" size="15" value="" placeholder="分类查询" readonly="readonly"/>
            <input type="hidden" id="goods_category_id" name="goods_category_id"/>
            <?php 
echo arr2select('supplier_id', $suppliers, I('get.supplier_id'));
?>
            <?php 
echo arr2select('brand_id', $brands, I('get.brand_id'));
?>
            <input type="submit" value=" 搜索 " class="button" />
        </form>
    </div>

<!-- 商品列表 -->

    <div class="list-div" id="listDiv">
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>ID <input type="checkbox" class="selectAll"/></th>
                <!--使用注解中的名称生成了表头-->
                <th>商品名称</th>
                <th>简称</th>
                <th>货号</th>