Forráskód Böngészése

上傳檔案到 'flask/list'

fatwolf 3 éve
szülő
commit
06e69e69a6

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 497 - 0
flask/list/app.py


+ 35 - 0
flask/list/base.html

@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <ul>
+    <li><a href="../" class="active">首頁</a></li>
+    <li><a href="{{ url_for('productinfo') }}">檢查產品清單</a></li>
+    <li><a href="{{ url_for('form') }}">新增產品清單</a></li>
+    <li><a href="{{ url_for('check') }}">查詢產品清單</a></li>
+    <li><a href="{{ url_for('system_sink') }}">檢查統槽清單</a></li>
+    <li><a href="{{ url_for('form_sink') }}">新增統槽清單</a></li>
+    <li><a href="{{ url_for('check_sink') }}">查詢統槽清單</a></li>
+    <li><a href="{{ url_for('bom') }}">建立BOM清單</a></li>
+    <li><a href="{{ url_for('Inquire_from') }}">查詢(新)</a></li>
+    <li><a href="{{ url_for('read_excel') }}">上傳excel檔案</a></li>
+    
+    
+    <li><a href="../register">註冊</a></li>
+    <li><a href="{{ url_for('login') }}">登入</a></li>
+    <li><a href="../logout">登出</a></li>
+    <br>
+
+  </ul>
+  <title>{% block title %}{% endblock %} My Webpage</title>
+<link rel="stylesheet" href="{{ url_for('static',filename='css/ul.css') }}">
+</head>
+
+    
+<body>
+  <div class="content">
+      {% block content %}{% endblock %}
+  </div>
+
+</body>
+</html>

+ 89 - 0
flask/list/bom.html

@@ -0,0 +1,89 @@
+<!DOCTYPE html>
+<html lang="en">
+<script type="text/javascript" src="https://code.jquery.com/jquery-3.6.0.min.js"></script> 
+<head>
+	<link rel="stylesheet" href="{{ url_for('static',filename='css/ul.css') }}">
+	<ul>
+		<li><a href="../" class="active">首頁</a></li>
+		<li><a href="{{ url_for('productinfo') }}">檢查產品清單</a></li>
+		<li><a href="{{ url_for('form') }}">新增產品清單</a></li>
+		<li><a href="{{ url_for('check') }}">查詢產品清單</a></li>
+		<li><a href="{{ url_for('bom') }}">建立BOM清單</a></li>
+		<li><a href="../register">註冊</a></li>
+		<li><a href="{{ url_for('login') }}">登入</a></li>
+		<li><a href="../logout">登出</a></li>
+		
+	</ul>
+	<br>
+</head>
+
+
+<body>
+	<br>
+
+		
+		<table id="mt" border="1" cellpadding="5" cellspacing="0">
+		  <thead>
+		    <th>產品編號</th>
+		    <th>產品名稱</th>
+		  </thead>
+		  <tbody></tbody>
+          <p><input type = "button" id="add" value = "新增"  /></p>
+          <p><input type = "button" id="del" value = "刪除"  /></p>
+
+		</table>
+	
+		<form action="{{ url_for('bom') }}" method="POST">
+			<fieldset>
+		    <legend>BOM組合清單</legend>
+		    <select name="test1" style="width:100px;">
+			    <tr>
+			    {% for i1 in labels %}
+			    <option>{{i1}}</option>
+			    {% endfor %}
+			    </tr>
+
+			</select>
+			<select name="test2" style="width:100px;">
+			    <tr>
+			    {% for i1 in labels %}
+			    <option>{{i1}}</option>
+			    {% endfor %}
+			    </tr>
+
+			</select>
+			<select name="test3" style="width:100px;">
+			    <tr>
+			    {% for i1 in labels %}
+			    <option>{{i1}}</option>
+			    {% endfor %}
+			    </tr>
+
+			</select>
+		    <p><input type = "submit" value = "建立" /></p>
+		    </fieldset>
+
+		</form>
+		
+		
+	<script type="text/javascript">
+        var tag = 1;
+        
+		$(function(){
+		  $("#add").click(function(){
+		      $('#mt tbody').append('<tr><td>A0000'+tag+'</td><td><input type = "text"/></td></tr>');
+		    tag++;
+		   });
+		  $("#del").click(function(){
+		      $("#mt tbody tr:last").remove();
+		  });
+		  
+		})
+
+    </script>
+
+
+
+</body>
+
+</html>

+ 68 - 0
flask/list/bom1.html

@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+<html>
+<style>
+table, th, td {
+  border:1px solid black;
+}
+</style>
+<link rel="stylesheet" href="{{ url_for('static',filename='css/ul.css') }}">
+
+
+<body>
+
+<ul>
+    <li><a href="../" class="active">首頁</a></li>
+    <li><a href="{{ url_for('productinfo') }}">檢查產品清單</a></li>
+    <li><a href="{{ url_for('form') }}">新增產品清單</a></li>
+    <li><a href="{{ url_for('check') }}">查詢產品清單</a></li>
+    
+    <li><a href="../register">註冊</a></li>
+    <li><a href="{{ url_for('login') }}">登入</a></li>
+    <li><a href="../logout">登出</a></li>
+
+</ul>
+<br>
+<br>
+<h1>BOM清單</h1>   
+<h2> <label>{{content1}}</label></h2>
+
+<form>
+<table class="table table-bordered">
+    <!--
+    <tr>
+      {% for i1 in labels %}
+        <th>{{i1}}</font></th>
+      {% endfor %}       
+    </tr>
+    -->
+    <tr>
+        <th>內部料號</th>
+        <th>品名</th>
+        <th>數量</th>
+        <th>庫存</th>
+    </tr>
+
+      {% for i in content2 %}
+      <tr>
+        <td>{{i[0]}}</td>
+        <td>{{ i[1] }}</td>
+        <td>{{ i[2] }}</td>
+        <td>{{ i[3] }}</td>
+
+      </tr>
+    {% endfor %}
+        </tr>
+
+    {% for i in content3 %}
+    <tr>
+        <td>{{i[0]}}</td>
+        <td>{{ i[1] }}</td>
+        <td>{{ i[2] }}</td>
+        <td>{{ i[3] }}</td>
+    </tr>
+    {% endfor %}
+
+    </table>
+</form>
+</body>
+</html>

+ 36 - 0
flask/list/change_pd.html

@@ -0,0 +1,36 @@
+<style type="text/css">
+
+ul {
+	list-style-type: none;
+	margin: 0;
+	padding: 0;
+	overflow: hidden;
+	background-color: thistle;
+	position: fixed;
+	width:100%;
+}
+
+ul li{float: left;}
+ul li a{
+	display: block;
+	color: black;
+	padding: 8px 16px;
+	text-align: center;
+	text-decoration: none;
+}
+
+ul li a.active{
+	color: lavender;
+	background-color: darkmagenta;
+}
+
+ul li a:hover:not(.active)
+{
+	background-color: darkviolet;
+	color: white;
+}
+body{
+	margin: 0;
+	font-family: Arial, Helvetica, sans-serif;
+}
+</style>

+ 37 - 0
flask/list/check.html

@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+</head>
+<link rel="stylesheet" href="{{ url_for('static',filename='css/ul.css') }}">
+
+<body>
+  <ul>
+    <li><a href="../" class="active">首頁</a></li>
+    <li><a href="{{ url_for('productinfo') }}">檢查產品清單</a></li>
+    <li><a href="{{ url_for('form') }}">新增產品清單</a></li>
+    <li><a href="{{ url_for('check') }}">查詢產品清單</a></li>
+      <li><a href="{{ url_for('system_sink') }}">檢查統槽清單</a></li>
+    <li><a href="{{ url_for('form_sink') }}">新增統槽清單</a></li>
+    <li><a href="{{ url_for('check_sink') }}">查詢統槽清單</a></li>
+    
+    <li><a href="../register">註冊</a></li>
+    <li><a href="{{ url_for('login') }}">登入</a></li>
+    <li><a href="../logout">登出</a></li>
+    
+  </ul>
+  <h1>查詢產品</h1>
+<br>
+<label>查詢產品</label>
+<form action="{{ url_for('check') }}" method="POST">
+  <select name="Test">
+    <tr>
+    {% for i1 in labels %}
+    <option>{{i1}}</option>
+    {% endfor %}
+    </tr>
+
+  </select>
+  <button type='submit'>Submit</button>
+</form>
+</body>
+</html>

+ 91 - 0
flask/list/check1.html

@@ -0,0 +1,91 @@
+<!DOCTYPE html>
+<html>
+<style>
+table, th, td {
+  border:1px solid black;
+}
+</style>
+<link rel="stylesheet" href="{{ url_for('static',filename='css/ul.css') }}">
+
+<body>
+
+<ul>
+    <li><a href="../" class="active">首頁</a></li>
+    <li><a href="{{ url_for('productinfo') }}">檢查產品清單</a></li>
+    <li><a href="{{ url_for('form') }}">新增產品清單</a></li>
+    <li><a href="{{ url_for('check') }}">查詢產品清單</a></li>
+    <li><a href="{{ url_for('system_sink') }}">檢查統槽清單</a></li>
+    <li><a href="{{ url_for('form_sink') }}">新增統槽清單</a></li>
+    <li><a href="{{ url_for('check_sink') }}">查詢統槽清單</a></li>
+    
+    <li><a href="../register">註冊</a></li>
+    <li><a href="{{ url_for('login') }}">登入</a></li>
+    <li><a href="../logout">登出</a></li>
+
+</ul>
+<br>
+<br>
+
+
+<form>
+<table class="table table-bordered">
+    <tr>
+        
+      {% for i1 in labels %}
+        <th>{{i1}}</font></th>
+      {% endfor %}       
+    </tr>
+
+      {% for i in content %}
+      <tr>
+        <td>{{i[0]}}</td>
+        <td>{{ i[1] }}</td>
+        <td>{{ i[2] }}</td>
+        <td>{{ i[3] }}</td>
+        <td>{{ i[4] }}</td>
+        <td>{{ i[5] }}</td>
+        <td>{{ i[6] }}</td>
+        <td>{{ i[7] }}</td>
+        <td>{{ i[8] }}</td>
+        <td>{{ i[9] }}</td>
+        <td>{{ i[10] }}</td>
+        <td>{{ i[11] }}</td>
+        <td>{{ i[12] }}</td>
+        <td>{{ i[13] }}</td>
+        <td>{{ i[14] }}</td>
+      </tr>
+    {% endfor %}
+    </table>
+</form>
+
+    <br>
+    <br>
+
+    <form action={{ url_for('updateaction') }} method="post"> 
+        <table>
+            內部料號(不可變動): <input type="text" name="userinfoId" value=""/> 
+            <br>
+            技術文件連結(可修改): <input type="text" name="技術文件連結" value=""/> 
+            NO(可修改): <input type="text" name="NO" value=""/> 
+            品名(可修改): <input type="text" name="品名" value=""/> 
+            規格型號(可修改): <input type="text" name="規格型號" value=""/> 
+            <br>
+            類型(可修改): <input type="text" name="類型" value=""/> 
+            原廠料號(可修改): <input type="text" name="原廠料號" value=""/> 
+            賣家料號(可修改): <input type="text" name="賣家料號" value=""/> 
+            圖示(可修改): <input type="text" name="圖示" value=""/> 
+            <br>
+            進單價(可修改): <input type="text" name="進單價" value=""/> 
+            數量(可修改): <input type="text" name="數量" value=""/> 
+            單位(可修改): <input type="text" name="單位" value=""/> 
+            取得方式(可修改): <input type="text" name="取得方式" value=""/> 
+            <br>
+            庫存(可修改): <input type="text" name="庫存" value=""/> 
+            廠商(可修改): <input type="text" name="廠商" value=""/> 
+        </table>
+    
+        <input type="submit" value="update"> 
+    </form> 
+
+</body>
+</html>

+ 161 - 0
flask/list/check1_sink.html

@@ -0,0 +1,161 @@
+<!DOCTYPE html>
+<html>
+<style>
+table, th, td {
+  border:1px solid black;
+}
+</style>
+<link rel="stylesheet" href="{{ url_for('static',filename='css/ul.css') }}">
+
+<body>
+
+<ul>
+    <li><a href="../" class="active">首頁</a></li>
+    <li><a href="{{ url_for('productinfo') }}">檢查產品清單</a></li>
+    <li><a href="{{ url_for('form') }}">新增產品清單</a></li>
+    <li><a href="{{ url_for('check') }}">查詢產品清單</a></li>
+    <li><a href="{{ url_for('system_sink') }}">檢查統槽清單</a></li>
+    <li><a href="{{ url_for('form_sink') }}">新增統槽清單</a></li>
+    <li><a href="{{ url_for('check_sink') }}">查詢統槽清單</a></li>
+    
+    <li><a href="../register">註冊</a></li>
+    <li><a href="{{ url_for('login') }}">登入</a></li>
+    <li><a href="../logout">登出</a></li>
+
+</ul>
+<br>
+<br>
+
+
+<form>
+<table class="table table-bordered">
+    <tr>
+        
+      {% for i1 in labels %}
+        <th>{{i1}}</font></th>
+      {% endfor %}       
+    </tr>
+
+      {% for i in content %}
+      <tr>
+        <td>{{i[0]}}</td>
+        <td>{{ i[1] }}</td>
+        <td>{{ i[2] }}</td>
+        <td>{{ i[3] }}</td>
+        <td>{{ i[4] }}</td>
+        <td>{{ i[5] }}</td>
+        <td>{{ i[6] }}</td>
+        <td>{{ i[7] }}</td>
+        <td>{{ i[8] }}</td>
+        <td>{{ i[9] }}</td>
+        <td>{{ i[10] }}</td>
+        <td>{{ i[11] }}</td>
+        <td>{{ i[12] }}</td>
+        <td>{{ i[13] }}</td>
+        <td>{{ i[14] }}</td>
+        <td>{{ i[15] }}</td>
+        <td>{{ i[16] }}</td>
+        <td>{{ i[17] }}</td>
+        <td>{{ i[18] }}</td>
+        <td>{{ i[19] }}</td>
+        <td>{{ i[20] }}</td>
+        <td>{{ i[21] }}</td>
+        <td>{{ i[22] }}</td>
+        <td>{{ i[23] }}</td>
+        <td>{{ i[24] }}</td>
+        <td>{{ i[25] }}</td>
+        <td>{{ i[26] }}</td>
+        <td>{{ i[27] }}</td>
+        <td>{{ i[28] }}</td>
+        <td>{{ i[29] }}</td>
+        <td>{{ i[30] }}</td>
+        <td>{{ i[31] }}</td>
+        <td>{{ i[32] }}</td>
+        <td>{{ i[33] }}</td>
+        <td>{{ i[34] }}</td>
+        <td>{{ i[35] }}</td>
+        <td>{{ i[36] }}</td>
+        <td>{{ i[37] }}</td>
+        <td>{{ i[38] }}</td>
+        <td>{{ i[39] }}</td>
+        <td>{{ i[40] }}</td>
+        <td>{{ i[41] }}</td>
+        <td>{{ i[42] }}</td>
+        <td>{{ i[43] }}</td>
+        <td>{{ i[44] }}</td>
+        <td>{{ i[45] }}</td>
+        <td>{{ i[46] }}</td>
+        <td>{{ i[47] }}</td>
+        <td>{{ i[48] }}</td>
+        <td>{{ i[49] }}</td>
+        <td>{{ i[50] }}</td>
+        <td>{{ i[51] }}</td>
+      </tr>
+    {% endfor %}
+    </table>
+</form>
+
+    <br>
+    <br>
+
+    <form action={{ url_for('updateaction_sink') }} method="post"> 
+        <table>
+            <p>系統 <input type = "text" name = "系統" /></p>
+            <p>狀態 <input type = "text" name = "狀態" /></p>
+            <p>進貨狀態 <input type = "text" name = "進貨狀態" /></p>
+            <p>內部料號 <input type = "text" name = "內部料號" /></p>
+            <p>組序號 <input type = "text" name = "組序號" /></p>
+            <p>模組圖名 <input type = "text" name = "模組圖名" /></p>
+            <p>模組圖號/出圖連結 <input type = "text" name = "模組圖號/出圖連結" /></p>
+            <p>模組數量 <input type = "text" name = "模組數量" /></p>
+            <p>項次 <input type = "text" name = "項次" /></p>
+            <p>零件圖名 <input type = "text" name = "零件圖名" /></p>
+            <p>零件圖號 <input type = "text" name = "零件圖號" /></p>
+            <p>零件數量 <input type = "text" name = "零件數量" /></p>
+            <p>零件總數量 <input type = "text" name = "零件總數量" /></p>
+            <p>類型 <input type = "text" name = "類型" /></p>
+            <p>進度 <input type = "text" name = "進度" /></p>
+            <p>備註 <input type = "text" name = "備註" /></p>
+            <p>出圖日期 <input type = "text" name = "出圖日期" /></p>
+            <p>出圖人員 <input type = "text" name = "出圖人員" /></p>
+            <p>修改日期 <input type = "text" name = "修改日期" /></p>
+            <p>修改原因 <input type = "text" name = "修改原因" /></p>
+            <p>修改人員 <input type = "text" name = "修改人員" /></p>
+            <p>模組 <input type = "text" name = "模組" /></p>
+            <p>主板編號 <input type = "text" name = "主板編號" /></p>
+            <p>制動器編號 <input type = "text" name = "制動器編號" /></p>
+            <p>項目 <input type = "text" name = "項目" /></p>
+            <p>韌體(有V) <input type = "text" name = "韌體(有V)" /></p>
+            <p>韌體連結git <input type = "text" name = "韌體連結git" /></p>
+            <p>型號(規格書) <input type = "text" name = "型號(規格書)" /></p>
+            <p>安裝位置 <input type = "text" name = "安裝位置" /></p>
+            <p>數量 <input type = "text" name = "數量" /></p>
+            <p>需求電壓(V) <input type = "text" name = "需求電壓(V)" /></p>
+            <p>需求電流(A) <input type = "text" name = "需求電流(A)" /></p>
+            <p>功率(W) <input type = "text" name = "功率(W)" /></p>
+            <p>通訊介面 <input type = "text" name = "通訊介面" /></p>
+            <p>芯數 <input type = "text" name = "芯數" /></p>
+            <p>線材編號 <input type = "text" name = "線材編號" /></p>
+            <p>單價 <input type = "text" name = "單價" /></p>
+            <p>總價 <input type = "text" name = "總價" /></p>
+            <p>請購單號 <input type = "text" name = "請購單號" /></p>
+            <p>220V_電流 <input type = "text" name = "220V_電流" /></p>
+            <p>220V_功率 <input type = "text" name = "220V_功率" /></p>
+            <p>24V_電流 <input type = "text" name = "24V_電流" /></p>
+            <p>24V_功率 <input type = "text" name = "24V_功率" /></p>
+            <p>12V_電流 <input type = "text" name = "12V_電流" /></p>
+            <p>12V_功率 <input type = "text" name = "12V_功率" /></p>
+            <p>5V_電流 <input type = "text" name = "5V_電流" /></p>
+            <p>5V_功率 <input type = "text" name = "5V_功率" /></p>
+            <p>3.3V_電流 <input type = "text" name = "3.3V_電流" /></p>
+            <p>3.3V_功率 <input type = "text" name = "3.3V_功率" /></p>
+            <p>流量(率) <input type = "text" name = "流量(率)" /></p>
+            <p>容量 <input type = "text" name = "容量" /></p>
+            <p>壓力 <input type = "text" name = "壓力" /></p>
+        </table>
+    
+        <input type="submit" value="update"> 
+    </form> 
+
+</body>
+</html>

+ 37 - 0
flask/list/check_sink.html

@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+</head>
+<link rel="stylesheet" href="{{ url_for('static',filename='css/ul.css') }}">
+
+<body>
+  <ul>
+    <li><a href="../" class="active">首頁</a></li>
+    <li><a href="{{ url_for('productinfo') }}">檢查產品清單</a></li>
+    <li><a href="{{ url_for('form') }}">新增產品清單</a></li>
+    <li><a href="{{ url_for('check') }}">查詢產品清單</a></li>
+      <li><a href="{{ url_for('system_sink') }}">檢查統槽清單</a></li>
+    <li><a href="{{ url_for('form_sink') }}">新增統槽清單</a></li>
+    <li><a href="{{ url_for('check_sink') }}">查詢統槽清單</a></li>
+    
+    <li><a href="../register">註冊</a></li>
+    <li><a href="{{ url_for('login') }}">登入</a></li>
+    <li><a href="../logout">登出</a></li>
+    
+  </ul>
+  <h1>查詢統槽</h1>
+<br>
+<label>查詢統槽</label>
+<form action="{{ url_for('check_sink') }}" method="POST">
+  <select name="Test">
+    <tr>
+    {% for i1 in labels %}
+    <option>{{i1}}</option>
+    {% endfor %}
+    </tr>
+
+  </select>
+  <button type='submit'>Submit</button>
+</form>
+</body>
+</html>

+ 1 - 0
flask/list/data_excel.html

@@ -0,0 +1 @@
+{{data | safe}}

+ 10 - 0
flask/list/hello.html

@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <title>Hello</title>
+</head>
+<body>
+    hello, {{ username }}, Welcome my homepage!
+</body>
+</html>

+ 3 - 0
flask/list/index.html

@@ -0,0 +1,3 @@
+{% extends 'base.html' %}
+{% block title %}Index{% endblock %}
+{% block content %}Hello{% endblock %}

BIN
flask/list/list.tar.gz


+ 17 - 0
flask/list/login.html

@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <title>Hello Page</title>
+</head>
+<body>
+    <form method='post' action={{ url_for('login') }}>
+        <p>
+        <input type='text' name='username' />
+    </p>
+        <p>
+        <button type='submit'>Submit</button>
+    </p>
+    </form>
+</body>
+</html>

+ 68 - 0
flask/list/plus.html

@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title></title>
+</head>
+<body>
+<table>
+  <tr>
+   <td><input type="button" value="add"   onclick="setOp('+', 'add');"/></td>
+   <td><input type="button" value="miner" onclick="setOp('-', 'miner');"/></td>
+   <td><input type="button" value="times" onclick="setOp('*', 'times');"/></td>
+   <td><input type="button" value="divide" onclick="setOp('/', 'divide');"/></td>
+  </tr>
+</table>
+<table id="tb_calc" style="display:none;">
+   <tr>
+    <td> <input id="x" type="text" style="width:100px" value="" name="x" /></td>
+    <td> <lable id="op" name="op"></lable> </td>
+    <td> <input id="y" type="text" style="width:100px" value="" name="y" /> </td>
+    <td> <input id="opTips" type="button" value="" onclick="calc();"/> </td>
+    <td> <lable id="z" name="z"></lable> </td>
+  </tr>
+</table>
+<script type="application/javascript">
+  function setOp(op, opTips)
+  {
+    var tb=document.getElementById("tb_calc");
+    tb.style.display = "none";
+          
+    document.getElementById("x").value = ""; 
+    document.getElementById("y").value = ""; 
+    document.getElementById("z").innerText = ""; 
+    document.getElementById("op").innerText = op;
+    document.getElementById("opTips").value = opTips;
+    
+    tb.style.display = "block";
+  }
+  function calc()
+  {
+    var x = parseInt(document.getElementById("x").value); 
+    var y = parseInt(document.getElementById("y").value);
+    var op = document.getElementById("op").innerText;
+    
+    var z = "";
+    switch(op)
+    {
+      case '+':
+        z = x + y;
+        break;
+      case '-':
+        z = x - y;
+        break;
+      case '*': ;
+        z = x * y;
+        break;
+      case '/': ;
+        z = x / y;
+        break;
+      default:
+        z = '';
+    }
+    console.log(x, op, y, '=', z);
+    document.getElementById("z").innerText = z;
+  }
+</script>
+</body>
+</html>

+ 57 - 0
flask/list/productinfo.html

@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<style>
+table, th, td {
+  border:1px solid black;
+}
+</style>
+<link rel="stylesheet" href="{{ url_for('static',filename='css/ul.css') }}">
+<body>
+
+<ul>
+    <li><a href="../" class="active">首頁</a></li>
+    <li><a href="{{ url_for('productinfo') }}">檢查產品清單</a></li>
+    <li><a href="{{ url_for('form') }}">新增產品清單</a></li>
+    <li><a href="{{ url_for('check') }}">查詢產品清單</a></li>
+    <li><a href="{{ url_for('system_sink') }}">檢查統槽清單</a></li>
+    <li><a href="{{ url_for('form_sink') }}">新增統槽清單</a></li>
+    <li><a href="{{ url_for('check_sink') }}">查詢統槽清單</a></li>
+    
+    <li><a href="../register">註冊</a></li>
+    <li><a href="{{ url_for('login') }}">登入</a></li>
+    <li><a href="../logout">登出</a></li>
+
+</ul>
+<br>
+<br>
+<form>
+  <table class="table table-bordered">
+    <tr>
+        
+      {% for i1 in labels %}
+        <th>{{i1}}</font></th>
+      {% endfor %}       
+    </tr>
+    {% for i in content %}
+      <tr>
+        <td>{{i[0]}}</td>
+        <td>{{ i[1] }}</td>
+        <td>{{ i[2] }}</td>
+        <td>{{ i[3] }}</td>
+        <td>{{ i[4] }}</td>
+        <td>{{ i[5] }}</td>
+        <td>{{ i[6] }}</td>
+        <td>{{ i[7] }}</td>
+        <td>{{ i[8] }}</td>
+        <td>{{ i[9] }}</td>
+        <td>{{ i[10] }}</td>
+        <td>{{ i[11] }}</td>
+        <td>{{ i[12] }}</td>
+        <td>{{ i[13] }}</td>
+        <td>{{ i[14] }}</td>
+      </tr>
+    {% endfor %}
+  </table>
+</form>
+</body>
+</html>

+ 4 - 0
flask/list/read_excel.html

@@ -0,0 +1,4 @@
+<form class="" action="data_excel" method="post">
+    <input type="file" name="csvfile" value="">
+    <input type="submit" name="" value="submit">
+</form>

BIN
flask/list/select_bom.html


+ 50 - 0
flask/list/submit.html

@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+	<link rel="stylesheet" href="{{ url_for('static',filename='css/ul.css') }}">
+</head>
+
+<body>
+	<ul>
+		<li><a href="../" class="active">首頁</a></li>
+		<li><a href="{{ url_for('productinfo') }}">檢查產品清單</a></li>
+		<li><a href="{{ url_for('form') }}">新增產品清單</a></li>
+		<li><a href="{{ url_for('check') }}">查詢產品清單</a></li>
+		<li><a href="{{ url_for('system_sink') }}">檢查統槽清單</a></li>
+	    <li><a href="{{ url_for('form_sink') }}">新增統槽清單</a></li>
+	    <li><a href="{{ url_for('check_sink') }}">查詢統槽清單</a></li>
+		
+		<li><a href="../register">註冊</a></li>
+		<li><a href="{{ url_for('login') }}">登入</a></li>
+		<li><a href="../logout">登出</a></li>
+		
+	</ul>
+	
+<form action="/add_product" method = "POST">
+	<br>
+	<br>
+
+	<p>NO <input type = "text" name = "NO" /></p>
+	<p>內部料號 <input type = "text" name = "內部料號" /></p>
+	<p>品名 <input type = "text" name = "品名" /></p>
+	<p>規格型號 <input type = "text" name = "規格型號" /></p>
+	<p>類型 <input type = "text" name = "類型" /></p>
+	<p>技術文件連結 <input type = "text" name = "技術文件連結" /></p>
+	<p>原廠料號 <input type = "text" name = "原廠料號" /></p>
+	<p>賣家料號 <input type = "text" name = "賣家料號" /></p>
+	<p>圖示 <input type = "text" name = "圖示" /></p>
+	<p>進單價 <input type = "text" name = "進單價" /></p>
+	<p>數量 <input type = "text" name = "數量" /></p>
+	<p>單位 <input type = "text" name = "單位" /></p>
+	<p>取得方式 <input type = "text" name = "取得方式" /></p>
+	<p>庫存 <input type = "text" name = "庫存" /></p>
+	<p>廠商 <input type = "text" name = "廠商" /></p>
+
+   <p><input type = "submit" value = "Submit" /></p>
+</form>
+
+</body>
+
+
+</html>

+ 92 - 0
flask/list/submit_sink.html

@@ -0,0 +1,92 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+	<link rel="stylesheet" href="{{ url_for('static',filename='css/ul.css') }}">
+</head>
+
+<body>
+	<ul>
+		<li><a href="../" class="active">首頁</a></li>
+		<li><a href="{{ url_for('productinfo') }}">檢查產品清單</a></li>
+		<li><a href="{{ url_for('form') }}">新增產品清單</a></li>
+		<li><a href="{{ url_for('check') }}">查詢產品清單</a></li>
+		<li><a href="{{ url_for('system_sink') }}">檢查統槽清單</a></li>
+	    <li><a href="{{ url_for('form_sink') }}">新增統槽清單</a></li>
+	    <li><a href="{{ url_for('check_sink') }}">查詢統槽清單</a></li>
+		
+		<li><a href="../register">註冊</a></li>
+		<li><a href="{{ url_for('login') }}">登入</a></li>
+		<li><a href="../logout">登出</a></li>
+		
+	</ul>
+	
+<form action="/add_sink" method = "POST">
+	<br>
+	<br>
+
+
+	<p>系統 <input type = "text" name = "系統" /></p>
+	<p>狀態 <input type = "text" name = "狀態" /></p>
+	<p>進貨狀態 <input type = "text" name = "進貨狀態" /></p>
+	<p>內部料號 <input type = "text" name = "內部料號" /></p>
+	<p>組序號 <input type = "text" name = "組序號" /></p>
+	<p>模組圖名 <input type = "text" name = "模組圖名" /></p>
+	<p>模組圖號/出圖連結 <input type = "text" name = "模組圖號出圖連結" /></p>
+	<p>模組數量 <input type = "text" name = "模組數量" /></p>
+	<p>項次 <input type = "text" name = "項次" /></p>
+	<p>零件圖名 <input type = "text" name = "零件圖名" /></p>
+	<p>零件圖號 <input type = "text" name = "零件圖號" /></p>
+	<p>零件數量 <input type = "text" name = "零件數量" /></p>
+	<p>零件總數量 <input type = "text" name = "零件總數量" /></p>
+	<p>類型 <input type = "text" name = "類型" /></p>
+	<p>進度 <input type = "text" name = "進度" /></p>
+	<p>備註 <input type = "text" name = "備註" /></p>
+	<p>出圖日期 <input type = "text" name = "出圖日期" /></p>
+	<p>出圖人員 <input type = "text" name = "出圖人員" /></p>
+	<p>修改日期 <input type = "text" name = "修改日期" /></p>
+	<p>修改原因 <input type = "text" name = "修改原因" /></p>
+	<p>修改人員 <input type = "text" name = "修改人員" /></p>
+	<p>模組 <input type = "text" name = "模組" /></p>
+	<p>主板編號 <input type = "text" name = "主板編號" /></p>
+	<p>制動器編號 <input type = "text" name = "制動器編號" /></p>
+	<p>項目 <input type = "text" name = "項目" /></p>
+	<p>韌體(有V) <input type = "text" name = "韌體(有V)" /></p>
+	<p>韌體連結git <input type = "text" name = "韌體連結git" /></p>
+	<p>型號(規格書) <input type = "text" name = "型號(規格書)" /></p>
+	<p>安裝位置 <input type = "text" name = "安裝位置" /></p>
+	<p>數量 <input type = "text" name = "數量" /></p>
+	<p>需求電壓(V) <input type = "text" name = "需求電壓(V)" /></p>
+	<p>需求電流(A) <input type = "text" name = "需求電流(A)" /></p>
+	<p>功率(W) <input type = "text" name = "功率(W)" /></p>
+	<p>通訊介面 <input type = "text" name = "通訊介面" /></p>
+	<p>芯數 <input type = "text" name = "芯數" /></p>
+	<p>線材編號 <input type = "text" name = "線材編號" /></p>
+	<p>單價 <input type = "text" name = "單價" /></p>
+	<p>總價 <input type = "text" name = "總價" /></p>
+	<p>請購單號 <input type = "text" name = "請購單號" /></p>
+	<p>220V_電流 <input type = "text" name = "220V_電流" /></p>
+	<p>220V_功率 <input type = "text" name = "220V_功率" /></p>
+	<p>24V_電流 <input type = "text" name = "24V_電流" /></p>
+	<p>24V_功率 <input type = "text" name = "24V_功率" /></p>
+	<p>12V_電流 <input type = "text" name = "12V_電流" /></p>
+	<p>12V_功率 <input type = "text" name = "12V_功率" /></p>
+	<p>5V_電流 <input type = "text" name = "5V_電流" /></p>
+	<p>5V_功率 <input type = "text" name = "5V_功率" /></p>
+	<p>3.3V_電流 <input type = "text" name = "3.3V_電流" /></p>
+	<p>3.3V_功率 <input type = "text" name = "3.3V_功率" /></p>
+	<p>流量(率) <input type = "text" name = "流量(率)" /></p>
+	<p>容量 <input type = "text" name = "容量" /></p>
+	<p>壓力 <input type = "text" name = "壓力" /></p>
+
+
+
+
+
+   <p><input type = "submit" value = "Submit" /></p>
+</form>
+
+</body>
+
+
+</html>

+ 101 - 0
flask/list/system_sink.html

@@ -0,0 +1,101 @@
+<!DOCTYPE html>
+<html>
+<style>
+table, th, td {
+  border:1px solid black;
+}
+</style>
+<link rel="stylesheet" href="{{ url_for('static',filename='css/ul.css') }}">
+<body>
+
+<ul>
+    <li><a href="../" class="active">首頁</a></li>
+    <li><a href="{{ url_for('productinfo') }}">檢查產品清單</a></li>
+    <li><a href="{{ url_for('form') }}">新增產品清單</a></li>
+    <li><a href="{{ url_for('check') }}">查詢產品清單</a></li>
+    <li><a href="{{ url_for('system_sink') }}">檢查統槽清單</a></li>
+    <li><a href="{{ url_for('form_sink') }}">新增統槽清單</a></li>
+    <li><a href="{{ url_for('check_sink') }}">查詢統槽清單</a></li>
+    
+    <li><a href="../register">註冊</a></li>
+    <li><a href="{{ url_for('login') }}">登入</a></li>
+    <li><a href="../logout">登出</a></li>
+
+</ul>
+<br>
+<br>
+<form>
+  <table class="table table-bordered">
+    <tr>
+        
+      {% for i1 in labels %}
+        <th>{{i1}}</font></th>
+      {% endfor %}       
+    </tr>
+    {% for i in content %}
+      <tr>
+        <td>{{i[0]}}</td>
+        <td>{{ i[1] }}</td>
+        <td>{{ i[2] }}</td>
+        <td>{{ i[3] }}</td>
+        <td>{{ i[4] }}</td>
+        <td>{{ i[5] }}</td>
+        <td>{{ i[6] }}</td>
+        <td>{{ i[7] }}</td>
+        <td>{{ i[8] }}</td>
+        <td>{{ i[9] }}</td>
+        <td>{{ i[10] }}</td>
+        <td>{{ i[11] }}</td>
+        <td>{{ i[12] }}</td>
+        <td>{{ i[13] }}</td>
+        <td>{{ i[14] }}</td>
+        <td>{{ i[15] }}</td>
+        <td>{{ i[16] }}</td>
+        <td>{{ i[17] }}</td>
+        <td>{{ i[18] }}</td>
+        <td>{{ i[19] }}</td>
+        <td>{{ i[20] }}</td>
+        <td>{{ i[21] }}</td>
+        <td>{{ i[22] }}</td>
+        <td>{{ i[23] }}</td>
+        <td>{{ i[24] }}</td>
+        <td>{{ i[25] }}</td>
+        <td>{{ i[26] }}</td>
+        <td>{{ i[27] }}</td>
+        <td>{{ i[28] }}</td>
+        <td>{{ i[29] }}</td>
+        <td>{{ i[30] }}</td>
+        <td>{{ i[31] }}</td>
+        <td>{{ i[32] }}</td>
+        <td>{{ i[33] }}</td>
+        <td>{{ i[34] }}</td>
+        <td>{{ i[35] }}</td>
+        <td>{{ i[36] }}</td>
+        <td>{{ i[37] }}</td>
+        <td>{{ i[38] }}</td>
+        <td>{{ i[39] }}</td>
+        <td>{{ i[40] }}</td>
+        <td>{{ i[41] }}</td>
+        <td>{{ i[42] }}</td>
+        <td>{{ i[43] }}</td>
+        <td>{{ i[44] }}</td>
+        <td>{{ i[45] }}</td>
+        <td>{{ i[46] }}</td>
+        <td>{{ i[47] }}</td>
+        <td>{{ i[48] }}</td>
+        <td>{{ i[49] }}</td>
+        <td>{{ i[50] }}</td>
+        <td>{{ i[51] }}</td>
+        <td>{{ i[52] }}</td>
+        <td>{{ i[53] }}</td>
+        <td>{{ i[54] }}</td>
+        <td>{{ i[55] }}</td>
+        <td>{{ i[56] }}</td>
+        <td>{{ i[57] }}</td>
+        <td>{{ i[58] }}</td>
+      </tr>
+    {% endfor %}
+  </table>
+</form>
+</body>
+</html>

BIN
flask/list/title.html


+ 36 - 0
flask/list/ul.css

@@ -0,0 +1,36 @@
+ul {
+	list-style-type: none;
+	margin: 0;
+	padding: 0;
+	overflow: hidden;
+	background-color: thistle;
+	position: fixed;
+	width:100%;
+}
+
+ul li{float: left;}
+ul li a{
+	display: block;
+	color: black;
+	padding: 8px 16px;
+	text-align: center;
+	text-decoration: none;
+}
+
+ul li a.active{
+	color: lavender;
+	background-color: darkmagenta;
+}
+
+ul li a:hover:not(.active)
+{
+	background-color: darkviolet;
+	color: white;
+}
+body{
+	margin: 0;
+	font-family: Arial, Helvetica, sans-serif;
+}
+.footer{
+  height: 300px; /*設定footer本身高度*/
+  background-color: red;