<?php require_once '../../../../../class/autoload.inc'; //error_reporting(E_ALL); $test_type = new test_type(); $test_type_panel = $test_type->getTestTypePanel(); if (isset($_POST["quetext"])) { $question = new question(); $result = $question->addMulJud($_POST["quetext"], $_POST["deg"]); } elseif (isset($_POST["sinque"])) { $question = new question(); $result = $question->addOneJud($_POST["sinque"], $_POST["chos"], $_POST["deg"]); } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script src="../../../../js/jquery-1.9.0.js" type='text/javascript'></script> <script src="../../../../jquery-ui/js/jquery-ui-1.10.1.custom.js" type='text/javascript'></script> <script src="../../../../js/common.js" type='text/javascript'></script> <script src="index.js" type='text/javascript'></script> <link rel="stylesheet" href="../../../../jquery-ui/development-bundle/themes/sunny/jquery-ui.css" /> <link rel="stylesheet" href="common.css" /> <script language="javascript"> <?php if (isset($result)) { echo "\n \$(function(){\n \$('#dialog').html('{$result}').dialog('open');\n });"; } ?> function alert(error){ $('#dialog').html(error).dialog('open');