<form method="POST" action="./php/pages/results/codeSearchResultPage.php">
<table>
    <tr>
        <td colspan='2'><input type="text" id="search_box" name="search_str" size=60 placeholder="关键字" /></td>
        <td colspan='2'><input type="submit" id="search_btn" value="搜索" /></td>
    </tr>  
    <tr>
        <td>产品名:<select id="prod_name" name="prod_name"><?php 
html_listProducts();
?>
</select></td><td></td>
    </tr>
    <tr>
        <td>版本号:<select id="version_id" name="version_id"><?php 
$prodList = dbUtil(GetProdList);
html_listVersions($prodList[0], true);
?>
</select></td><td></td>
    </tr>
</table>
</form>
</center>

<script>
$(function(e) {
    $("input#search_box").focus();

    $("select#prod_name").change(function(e) {
        var prodName = $(this).val();
        $("select#version_id").html("").load("./php/tools/get_version_list.php", {"prodName": prodName, "showAll": 1});
    });
</head>

<center>
<form method="POST" action="./php/comment.php">
<table>
    <tr>
        <td>产品名:<select id="prod_name" name="prod"><?php 
html_listProducts();
?>
</select></td>
        <td><input type="submit" id="comment_btn" value="添加备注" /></td>
    </tr>  
    <tr>
        <td>版本号:<select id="version_name" name="ver"><?php 
$prodList = dbUtil(GetProdList);
html_listVersions($prodList[0], 0);
?>
</select></td>
    </tr>
    <tr>
        <td>备注人:<select id="commentor_name" name="commentor"><?php 
html_listCommentors($prodList[0]);
?>
</select> <a href='' id="add_commentor">+</a></td>
    </tr>
</table>
</form>
</center>

<div id="code_info"></div>
<?php

include dirname(__FILE__) . "/../util/htmlUtil.php";
html_listVersions($_POST["prodName"], $_POST["showAll"]);