コード例 #1
1
ファイル: index.php プロジェクト: sargisshahinyan/someProject
               {
                   $questionarray[$index][1] = $row_answer1;
               }
        */
        $questionarray[$index][1] = $answers;
        $index++;
    }
    echo json_encode($questionarray);
    include '../close.php';
}
if ($_GET['view'] == 'topInfo') {
    topinfo();
} else {
    if ($_GET['view'] == 'newInfo') {
        newinfo();
    } else {
        if ($_GET['view'] == 'cardInfo') {
            cardinfo();
        } else {
            if ($_GET['view'] == 'carousel') {
                carousel();
            } else {
                if ($_GET['view'] == 'questions') {
                    questions();
                } else {
                    echo "nothing";
                }
            }
        }
    }
}
コード例 #2
0
ファイル: card.php プロジェクト: haseok86/millkencode
    case 'add':
        $xxxx_array = array('USE' => $USE, 'FEE' => $FEE, 'OUT' => $OUT);
        $xxxx = serialize($xxxx_array);
        $sql = "INSERT INTO `{$tablepre}product` (name,bankid,rankid,publishid,classid,funcid,mnfyh,jbgn,tsgn,sqtj,xxxx,hkfs) VALUES ('{$name}','{$bank}','{$rank}','{$publish}','{$class}','{$func}','{$mnfyh}','{$jbgn}','{$tsgn}','{$sqtj}','{$xxxx}','{$hkfs}')";
        $db->query($sql);
        refer("添加成功");
    case 'edit':
        $xxxx_array = array('USE' => $USE, 'FEE' => $FEE, 'OUT' => $OUT);
        $xxxx = serialize($xxxx_array);
        $sql = "UPDATE `{$tablepre}product` SET name='{$name}',bankid='{$bank}',rankid='{$rank}',publishid='{$publish}',classid='{$class}',funcid='{$func}',mnfyh='{$mnfyh}',jbgn='{$jbgn}',tsgn='{$tsgn}',sqtj='{$sqtj}',hkfs='{$hkfs}',xxxx='{$xxxx}' WHERE id='{$id}'";
        $db->query($sql);
        refer('更新成功', 'card_manager.php');
        break;
}
if ($act == 'edit' && !empty($id)) {
    $card = cardinfo($id);
} else {
    $card = array();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="admin.css" rel="stylesheet" type="text/css">
<script type="text/javascript" language="javascript">
 <!--
 function $(id) {
	 return document.getElementById(id);
 }
 function checkform() {