⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin.js

📁 题库管理及试卷生成系统
💻 JS
字号:
function chengTestType(type)
{
  document.form1.Test_Type.value=type;
  if(type==1)
  {
    document.getElementById('One').style.display='inline';
  }else
  {
    document.getElementById('One').style.display='none';
  }
}
function submitAddTest()
{
  var type=document.form1.Test_Type.value;
  var theme =document.form1.Test_Theme.value;
  var result=document.form1.Test_Result.value;
  var score=document.form1.Test_Score.value;
  if(score="")
  {
    alert("请填写分数");
    return false;
  }
  if(theme=="")
  {
    alert("请填写题目");
    return false;
  }
    if(result=="")
  {
    alert("请填写结果");
    return false;
  }
  if(type==1)
  {
    var a=document.form1.A.value;
    var b=document.form1.B.value;
    var c=document.form1.C.value;
    var d=document.form1.D.value;
    if(a==""||b==""||c==""||d=="")
    {
      alert("请将ABCD选项添满");
    }
  }
  document.form1.submit();
}
function printTime(time)
{
document.write(time.substring(0,4)+"-"+time.substring(4,6)+"-"+time.substring(6,8));
}
function deleteTests(id,date)
{
  if(confirm("你确定要删除么?"))
  {
    window.navigate('DeleteTests?Tests_ID='+id+'&date='+date);
  }
}
function deleteUsers(id)
{
  if(confirm("你确定要删除么?"))
  {
    window.navigate('DeleteUser?Users_ID='+id);
  }
}
function deleteTest(id)
{
  if(confirm("你确定要删除么?"))
  {
    window.navigate('DeleteTest?Test_ID='+id);
  }
}
function editTest(id)
{
  window.open('GetTestBean?Test_ID='+id);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -