Esempio n. 1
0
    $array1[8] = "treatise_ptime_y";
    $array1[9] = "treatise_ptime_m";
    $array1[10] = "treatise_remark";
    $array1[11] = "treatise_book21";
    $array1[12] = "treatise_book115";
    $array1[13] = "treatise_book15";
    $array1[14] = "treatise_lock";
    $db = new mysql_db($hostname, $dbusername, $dbpassword, $dataname);
    $db->db_connect();
    $table = "sns_group_treatise";
    $field = "id";
    $value1 = $_POST['tid'];
    $basic_user = $_POST['basic_user'];
    $view = $_POST['view'];
    $nums = 15;
    $resu = $db->db_edit($table, $field, $value1, $array, $array1, $nums);
    if ($resu) {
        echo "<script language=javascript>\n";
        echo "alert('数据成功审核')\n";
        echo "location.assign('{$page}?basicuser={$basic_user}&view={$view}')\n";
        echo "</script>\n";
        exit;
    } else {
        echo "fail";
    }
}
if (isset($_POST['info_g1_2'])) {
    //解锁数据
    mysql_select_db("{$dbname}");
    $basic_user = $_POST['basic_user'];
    $view = $_POST['view'];