Exemplo n.º 1
0
////原始
$id = $_GET['id'];
///id
$projectname = $_GET['projname'];
////所翻译的数据库
$chn = $_GET['CHN'];
///翻译
$flag = $_GET['flag'];
////标示是否选择
$type = $_GET['type'];
/////翻译的是evaluation还是property
//echo $type;
$db = new mysql_cls();
$db->connect();
$serverAddress = $serverUsername = $serverPassword = $selectDBname = NULL;
$db->changeDB($projectname);
$transarr = array('CHN' => $chn, 'Eng' => "null", 'De' => "null");
///暂时De都为空
require 'lib.php';
$result1 = 0;
$result2 = 0;
$result3 = 0;
$outstr1 = "";
$outstr2 = "";
if ($type == "property") {
    $dicflag = 0;
}
if ($type == "evaluation") {
    $dicflag = 1;
}
if ($type == "manufacturer") {
Exemplo n.º 2
0
<?php

/**
 * Created by PhpStorm.
 * User: master
 * Date: 2016/3/23
 * Time: 16:19
 */
require '../sql/mysql_cls.php';
require 'lib.php';
error_reporting(0);
$db = new mysql_cls();
$db->connect();
$database = $_GET['project'];
$option = $_GET['option'];
$db->changeDB($database);
$databases = $db->getAllDBnames();
$data = null;
if ($database == "") {
    $data = $db->getAllDBnames();
}
if ($option == "property") {
    $data = getProperty();
} else {
    if ($option == "evaluation") {
        set_time_limit(1800);
        ////临时设置超时
        $data = getEvaluations();
        //echo $data;
    } else {
        if ($option == "manufacturer") {
Exemplo n.º 3
0
<?php

/**
 * Created by PhpStorm.
 * User: master
 * Date: 2016/3/23
 * Time: 20:01
 */
require '../sql/mysql_cls.php';
require 'lib.php';
//error_reporting(0);
$db = new mysql_cls();
$db->connect();
$db->changeDB('whheadphones');
$oriword = "Inventory";
$id = "5086";
$dicflag = 1;
//$result=getManufacturers();
//print_r(QueryInSelfDic($id,$dicflag));
$gtranslation = GetTransLation($oriword, 29, 3);
print_r($gtranslation);