Exemplo n.º 1
0
function testmysqlconnect($host, $user, $pass)
{
    global $app, $testcount;
    echoln("<hr>(testmysqlconnect) Test {$testcount} : Testing mysql connection with host: {$host}, user: {$user}, pass: "******" <br>");
    $conn = mysql_connect($host, $user, $pass);
    $ret = $conn;
    mysql_close($conn);
    return $ret;
}
        ?>
" width="100" height="70" style="float:left;"></a>
                                <div class="order_name"><a href="http://www.hpq.com/try/detail/<?php 
        echo $tl["tryid"];
        ?>
.html" target="_blank"><?php 
        echo str_cut($tl["tryitem"]["title"], 20);
        ?>
</a></div>
                            </td>
                            <td bgcolor="#FFFFFF"><?php 
        echo date('Y-m-d H:i', $tl["create_time"]);
        ?>
</td>
                            <td bgcolor="#FFFFFF"><?php 
        echo showpass($tl["status"]);
        ?>
</td>
                            <td bgcolor="#FFFFFF" align="center">
                                <?php 
        if ($tl["status"] == 0) {
            ?>
<a href="http://www.hpq.com/user/index/deltry/" class="J_ajax_link" data-datas="infoid,<?php 
            echo $tl["id"];
            ?>
"><font color="#a80000">删除申请</font> </a>
                                    <?php 
        } elseif ($tl["status"] == 2) {
            ?>
                                    --
                                    <?php