$user = $_SESSION['user']; $level = $_SESSION[$user]; $db = new \sql\MysqlPDO($level); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>装配报表</title> </head> <link rel="stylesheet" type="text/css" href="../res/css/custom/list.css"> <body> <h2>江苏神通阀门股份有限公司</h2> <h3>装配加工路线单</h3> <table width="100%" align="center"> <?php $head = array('产品型号', '生产批号', '工艺编号', '产品名称', '产品编号', '页码'); $table = key_value($head); key_value_table($table, 3); ?> </table> <table width="100%"> <?php $head = array('工序', '工序名称', '工序要求', '自检记录', '装配人员', '检验记录', '检验结论', '检验员', '见证', '工艺设备'); simple_table($head); ?> </table> </body> </html>
$val = '<a href="' . $row[$name] . '">Description & Photos</a>'; } else { if ($name == 'layout_dispatched_by1') { if (strlen($row['layout_dispatched_by2']) > 0) { $val = errorOnEmpty(htmlspecialchars($row["layout_dispatched_by1"] . "/" . $row["layout_dispatched_by2"]), "dispatch"); } } else { if ($name == 'layout_dispatched_by2') { return; } } } } } echo " <td>\n"; echo " <span class=\"et-" . $name . "\">\n"; echo " <a name=\"" . $row[$name] . "\"></a>\n"; echo " " . $val; echo " </span> \n"; echo " </td>\n"; } simple_table('layouts', array('layout_owner_lastname', 'layout_owner_firstname', 'layout_photo_url', 'layout_name', 'layout_scale', 'layout_distance', 'layout_num_ops', 'layout_control', 'layout_dispatched_by1', 'layout_dispatched_by2'), "`layout_status_code` >= 50 "); ?> </table> <hr> </body> </html>