<?php require_once 'sql/mysql.php'; session_start(); $username = $_POST['username']; $password = $_POST['password']; if (!empty($username) && !empty($password)) { $db = new \sql\MysqlPDO(0); $list = $db->get_select(USER, "username='******'"); if ($list['password'] != $password) { echo "<script>\n alert('密码错误!');\n window.location='index.html';\n </script>"; } elseif ($list['level'] == 3) { $_SESSION[$username] = $list['level']; $_SESSION['user'] = $list['username']; header("Location:main.html"); } elseif ($username == 'admin') { $_SESSION[$username] = $list['level']; $_SESSION['user'] = $list['username']; echo "<script>window.location='admin/manage_panel.php'</script>"; } else { $_SESSION[$username] = $list['level']; $_SESSION['user'] = $list['username']; header("Location:main.html"); } } else { echo "<script>\n alert('用户名或密码不为空!');\n window.location='index.html';\n </script>"; }
<head> <meta charset="UTF-8"> <title></title> <<<<<<< HEAD <link href="res/css/style.css" rel="stylesheet" type="text/css"> ======= <link type="text/css" rel="stylesheet" href="../res/css/custom/panel.css"> <link type="text/css" rel="stylesheet" href="../res/libs/jquery-ui-themes/themes/base/jquery-ui.min.css"> >>>>>>> dev </head> <body> <?php include "edit_menu.php"; $id = $_GET['id']; $product = $_GET['product']; $list = $db->get_select(METALLURGY, "id='{$id}'"); ?> <<<<<<< HEAD <form action="data/action_metallurgy.php?action=edit" method="post" id="metallurgy"> <input type="hidden" name="id" value="<?php echo $list['id']; ?> "> <input type="hidden" name="product_id" value="<?php echo $product; ?> "> <table align="center"> <tr> <th>序号:</th>
if (tempValue == value) { op[i].selected = true; } } } </script> </head> <<<<<<< HEAD <body style="text-align: center"> ======= <body> >>>>>>> dev <?php $id = $_GET['id']; $list = $db->get_select(PRODUCT, "id={$id}"); ?> <<<<<<< HEAD <h1>修改产品信息</h1> <form action="../data/action_product.php?action=edit" method="post" id="product"> <input type="hidden" name="id" value=""> <table class="show_list"> <tr> <th>物料编码</th> <td> <input type="text" name="material_num" value="<?php echo $list['material_num']; ?> " readonly="readonly"> </td>
<title>装配工艺编辑</title> <link rel="stylesheet" type="text/css" href="../res/css/custom/editList.css"> ======= <html lang="en"> <head> <meta charset="UTF-8"> <title>装配工艺编辑</title> <link type="text/css" rel="stylesheet" href="../res/css/custom/panel.css"/> <link type="text/css" rel="stylesheet" href="../res/libs/jquery-ui-themes/themes/base/jquery-ui.min.css"> >>>>>>> dev </head> <body> <?php $id = $_GET['id']; $data = $db->get_select(MACHINE, "id='{$id}'"); $list = $data[0]; ?> <<<<<<< HEAD <h2>修改工艺</h2> <form action="../data/action_assembly.php?action=edit" method="post" id="assembly"> <input type="hidden" name="id" value=""> <table align="center"> <tr> <th>工序</th> <td><input type="text" name="" value=""></td> </tr> <tr> <th>工序名称</th> <td><input type="text" name="" value=""></td>