整合營銷服務(wù)商

          電腦端+手機端+微信端=數(shù)據(jù)同步管理

          免費咨詢熱線:

          HTML常用代碼有哪些?

          TML即超文本標(biāo)記語言,是目前應(yīng)用最為廣泛的語言之一,是組成一個網(wǎng)頁的主要語言。在現(xiàn)今這個HTML5華麗麗地占領(lǐng)了整個互聯(lián)網(wǎng)的時候,如果想要通過網(wǎng)頁抓住瀏覽者的眼球光靠因循守舊是不行的,程序猿們需要掌握一些必須知道的HTML常用代碼,因為只有熟悉掌握了常用的HTML代碼,程序猿們在編寫網(wǎng)頁的時候才可以做到流暢美觀,用細(xì)膩的思維和創(chuàng)意的細(xì)節(jié)效果打動并留住網(wǎng)頁瀏覽者。

          html+css代碼

          文本設(shè)置

          1、font-size: 字號參數(shù)

          2、font-style: 字體格式

          3、font-weight: 字體粗細(xì)

          4、顏色屬性

          color: 參數(shù)

          注意使用網(wǎng)頁安全色

          超鏈接設(shè)置

          text-decoration: 參數(shù)

          主要用途是改變?yōu)g覽器顯示文字鏈接時的下劃線。

          參數(shù)取值范圍:

          underline:為文字加下劃線

          overline:為文字加上劃線

          line-through:為文字加刪除線

          blink:使文字閃爍

          none:不顯示上述任何效果

          背景

          1、背景顏色

          background-color: 參數(shù)

          2、背景圖片

          background-image: url(URL)

          URL就是背景圖片的存放路徑,none表示無。

          3、背景圖片重復(fù)

          background-repeat: 參數(shù)

          參數(shù)取值范圍 :

          no-repeat:不重復(fù)平鋪背景圖片

          repeat-x:使圖片只在水平方向上平鋪

          repeat-y:使圖片只在垂直方向上平鋪

          如果不指定背景圖片重復(fù)屬性,瀏覽器默認(rèn)的是背景圖片向水平、垂直兩個方向上平鋪。

          4、背景圖片固定

          背景圖片固定控制背景圖片是否隨網(wǎng)頁的滾動而滾動。如果不設(shè)置背景圖片固定屬性,瀏覽器默認(rèn)背景圖片隨網(wǎng)頁的滾動而滾動。為了避免過于花哨的背景圖片在滾動時轉(zhuǎn)移瀏覽者的注意力,一般都設(shè)為固定

          background-attachment: 參數(shù)

          參數(shù)取值范圍:

          fixed:網(wǎng)頁滾動時,背景圖片相對于瀏覽器的窗口而言,固定不動

          scroll:網(wǎng)頁滾動時,背景圖片相對于瀏覽器的窗口而言,一起滾動

          區(qū)塊

          1、單詞間距

          word-spacing: 間隔距離

          2、字母間距

          letter-spacing: 字母間距

          3、文本對齊

          text-align: 參數(shù)

          參數(shù)的取值:

          left:左對齊

          right:右對齊

          center:居中對齊

          justify:相對左右對齊

          4、垂直對齊

          vertical-align: 參數(shù)

          top:頂對齊

          bottom:底對齊

          text-top:相對文本頂對齊

          text-bottom:相對文本底對齊

          baseline:基準(zhǔn)線對齊

          middle:中心對齊

          sub:以下標(biāo)的形式顯示

          super:以上標(biāo)的形式顯示

          5、文本縮進

          text-indent: 縮進距離

          12px相當(dāng)于一個文字距離

          6、空格

          white-space: 參數(shù)

          normal 正常

          pre 保留

          nowrap 不換行

          7、顯示樣式

          display: 參數(shù)

          參數(shù)取值范圍:

          block:塊級元素,在對象前后都換行

          inline:在對象前后都不換行

          list-item:在對象前后都換行,增加了項目符號

          none:無顯示

          方框

          1、height 高度

          2、width 寬度

          3、padding 內(nèi)邊距

          4、margin 外邊距

          5、float(浮動):可以讓塊級元素在一行中排列,例如橫向菜單。

          6、clear 清除浮動

          邊框

          1、樣式

          border style 參數(shù)

          邊框樣式的參數(shù):

          none:無邊框

          dotted:邊框為點線

          dashed:邊框為長短線

          solid:邊框為實線

          double:邊框為雙線

          2、寬度

          border width 參數(shù)

          3、顏色

          border color 參數(shù)

          列表

          list-style-type 列表樣式

          不同瀏覽器的列表符可能不相同,可能會影響到網(wǎng)頁,所以網(wǎng)頁中的列表大多都是由背景圖片顯示。

          控制用戶界面的樣式

          鼠標(biāo)

          cursor:鼠標(biāo)形狀參數(shù)

          CSS鼠標(biāo)形狀參數(shù)表:

          鼠標(biāo)形狀:CSS代碼

          style="cursor:hand"      手形

          style="cursor:crosshair"   十字形

          style="cursor:text"      文本形

          style="cursor:wait"      沙漏形

          style="cursor:move"     十字箭頭形:

          style="cursor:help"      問號形

          style="cursor:e-resize"    右箭頭形

          style="cursor:n-resize"    上箭頭形

          style="cursor:nw-resize"   左上箭頭形

          style="cursor:w-resize"    左箭頭形

          style="cursor:s-resize"    下箭頭形

          style="cursor:se-resize"   右下箭頭形

          style="cursor:sw-resize"   左下箭頭形

          HTML常用代碼之:結(jié)構(gòu)性定義

          文件類型<HTML></HTML> (放在檔案的開頭與結(jié)尾)

          文件主題<TITLE></TITLE> (必須放在「文頭」區(qū)塊內(nèi))

          文頭<HEAD></HEAD> (描述性資料,像是「主題」)

          文體<BODY></BODY> (文件本體)

          標(biāo)題<H?></H?> (從1到6,有六層選擇)

          標(biāo)題的對齊 <H?ALIGN=LEFT|CENTER|RIGHT></H?>

          區(qū)分<DIV></DIV>

          區(qū)分的對齊 <DIVALIGN=LEFT|RIGHT|CENTER|JUSTIFY></DIV>

          引文區(qū)塊<BLOCKQUOTE></BLOCKQUOTE> (通常會內(nèi)縮)

          強調(diào)<EM></EM> (通常會以斜體顯示)

          特別強調(diào)<STRONG></STRONG> (通常會以加粗顯示)

          引文<CITE></CITE> (通常會以斜體顯示)

          碼<CODE></CODE> (顯示原始碼之用)

          樣本<SAMP></SAMP>

          鍵盤輸入<KBD></KBD>

          變數(shù)<VAR></VAR>

          定義<DFN></DFN> (有些瀏覽器不提供)

          地址 <ADDRESS></ADDRESS>

          大字<BIG></BIG>

          小字<SMALL></SMALL>

          與外觀相關(guān)的標(biāo)簽(作者自訂的表現(xiàn)方式)

          加粗<B></B>

          斜體<I></I>

          底線<U></U> (尚有些瀏覽器不提供)

          刪除線<S></S> (尚有些瀏覽器不提供)

          下標(biāo)<SUB></SUB>

          上標(biāo)<SUP></SUP>

          打字機體<TT></TT> (用單空格字型顯示)

          預(yù)定格式<PRE></PRE> (保留文件中空格的大?。?/p>

          預(yù)定格式的寬度<PRE WIDTH=?></PRE>(以字元計算)

          向中看齊<CENTER></CENTER> (文字與圖片都可以)

          閃耀<BLINK></BLINK> (有史以來最被嘲弄的標(biāo)簽)

          字體大小 <FONTSIZE=?></FONT>(從1到7)

          改變字體大小 <FONTSIZE=+|-?></FONT>

          基本字體大小 <BASEFONTSIZE=?> (從1到7; 內(nèi)定為3)

          字體顏色 <FONTCOLOR="#$$"></FONT>($$為顏色代碼)

          HTML常用代碼之:修改頁面的實用性HTML代碼

          貼圖:<img src="圖片地址">

          加入連接:<a href="所要連接的相關(guān)地址">寫上你想寫的字</a>

          在新窗口打開連接:<a href="相關(guān)地址" target="_blank">寫上要寫的字</a>

          移動字體(走馬燈):<marquee>寫上你想寫的字</marquee>

          字體加粗:<b>寫上你想寫的字</b>

          字體斜體:<i>寫上你想寫的字</i>

          字體下劃線: <u>寫上你想寫的字</u>

          字體刪除線: <s>寫上你想寫的字</s>

          字體加大: <big>寫上你想寫的字</big>

          字體控制大?。?lt;h1>寫上你想寫的字</h1> (其中字體大小可從h1-h5,h1最大,h5最小)

          更改字體顏色:<font color="#value">寫上你想寫的字</font>(其中value值在000000與ffffff(16位進制)之間

          消除連接的下劃線:<a href="相關(guān)地址" style="text-decoration:none">寫上你想寫的字</a>

          貼音樂:<embed src="音樂地址" width="寬度" height="高度" autostart=false>

          貼flash: <embed src="flash地址" width="寬度" height="高度">

          貼影視文件:<img dynsrc="文件地址" width="寬度" height="高度" start=mouseover>

          換行:<br>

          段落:<p>段落</p>

          原始文字樣式:<pre>正文</pre>

          換帖子背景:<body background="背景圖片地址">

          固定帖子背景不隨滾動條滾動:<body background="背景圖片地址" body bgproperties=fixed>

          定制帖子背景顏色:<body bgcolor="#value">(value值見10)

          帖子背景音樂:<bgsound="背景音樂地址" loop=infinite>

          貼網(wǎng)頁:<iframe. src="相關(guān)地址" width="寬度" height="高度"></iframe>

          HTML常用代碼之:常常會遇到的問題

          點擊關(guān)閉窗口

          <a href="javascript.:top.window.close();">點擊關(guān)閉窗口</a>!

          請問如何去掉主頁右面的滾動條?

          <body scroll="no">

          <body style="overflow-y:hidden">

          如何做到讓一個網(wǎng)頁自動關(guān)閉.

          <html>

          <head>

          <OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">

          <param name="Command" value="Close">

          </object>

          </head>

          <body >

          這個窗口會在10秒過后自動關(guān)閉,而且不會出現(xiàn)提示. </body>

          如何在不刷新頁面的情況下刷新css?

          <style>

          button{ color:#000000;}

          </style>

          <button nclick=document.styleSheets[0].rules[0].style.color=‘‘‘‘red‘‘‘‘>點擊按鈕直接修改style標(biāo)簽里button選擇符使按鈕改為  紅色</button>

          請問如何讓網(wǎng)頁自動刷新?

          在head部記入<META. HTTP-EQUIV="Refresh" c>其中20為20秒后自動刷新,你可以更改為任意值。

          如何讓頁面自動刷新?

          方法一,用refresh

          HTML 代碼片段如下:

          <head>

          <meta. http-equiv="refresh" c>

          </head>

          5表示刷新時間

          [Ctrl+A 全部選擇 提示:你可先修改部分代碼,再按運行]

          方法二,使用setTimeout控制

          <img src=/logo.gif>

          <script>

          function rl(){

          document.location.reload()

          }

          setTimeout(rl,2000)

          </SCRIPT>

          如何讓超鏈接沒有下劃線

          在源代碼中的<HEAD>…</HEAD>之間輸入如下代碼:

          <style. type="text/css"> <!--

          a { text-decoration: none}

          --> </style>

          請問如何去掉IE的上下滾動條?

          <body style=‘‘‘‘overflow:scroll;overflow-y:hidden‘‘‘‘>

          </body>

          怎樣才能把RealPlayer文件在網(wǎng)頁做一個試聽連接?

          <embed height=25 src=51js.rm type=audio/x-pn-realaudio-plugin width=50 autostart="false" c>

          如何用html實現(xiàn)瀏覽器上后退按鈕的功能?

          <a href="java script.:history.go(-1)">點擊后退</a>

          或者

          <script> history.back() </SCRIPT>

          HTML常用代碼之:你不一定知道的技巧

          ncontextmenu="window.event.returnValue=false" 將徹底屏蔽鼠標(biāo)右鍵

          <table borderncontextmenu=return(false)><td>no</table> 可用于Table

          <body nselectstart="return false"> 取消選取、防止復(fù)制

          onpaste="return false" 不準(zhǔn)粘貼

          oncopy="return false;" ncut="return false;" 防止復(fù)制

          <link rel="Shortcut Icon"href="favicon.ico"> IE地址欄前換成自己的圖標(biāo)

          <link rel="Bookmark"href="favicon.ico"> 可以在收藏夾中顯示出你的圖標(biāo)

          <inputstyle="ime-mode:disabled"> 關(guān)閉輸入法

          永遠(yuǎn)都會帶著框架

          <script. language="JavaScript"><!--

          if (window == top)top.location.href = "frames.htm"; //frames.htm為框架網(wǎng)頁

          // --></script>

          防止被人frame.

          <SCRIPT. LANGUAGE=JAVASCRIPT><!--

          if (top.location != self.location)top.location=self.location;

          // --></SCRIPT>

          網(wǎng)頁將不能被另存為

          <noscript><iframe.src=*.html></iframe></noscript>

          查看網(wǎng)頁源代碼

          <input type=button value=查看網(wǎng)頁源代碼

          onclick="window.location = "view-source:"+"http://www.w3cschool.cn"">

          刪除時確認(rèn)

          <a href="javascript:if(confirm("確實要刪除嗎?"))location="boos.asp? &areyou=刪除&page=1"">刪除</a>

          屏蔽功能鍵Shift,Alt,Ctrl

          <script>

          function look(){

          if(event.shiftKey)

          alert("禁止按Shift鍵!");//可以換成ALT CTRL

          }

          document.onkeydown=look;

          </script>

          網(wǎng)頁不會被緩存

          <META. HTTP-EQUIV="pragma" CONTENT="no-cache">

          <META. HTTP-EQUIV="Cache-Control"CONTENT="no-cache, must-revalidate">

          <META. HTTP-EQUIV="expires"CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">

          或者<META. HTTP-EQUIV="expires"CONTENT="0">

          怎樣讓表單沒有凹凸感?

          <input type=text style="border:1 solid #000000">

          <input type=text style="border-left:none;border-right:none; border -top:none; border-bottom: 1 solid#000000"></textarea>

          不要滾動條?

          讓豎條沒有:

          <body style="overflow:scroll;overflow-y:hidden">

          </body>

          讓橫條沒有:

          <body style="overflow:scroll;overflow-x:hidden">

          </body>

          兩個都去掉?更簡單了

          <body scroll="no">

          </body>

          怎樣去掉圖片鏈接點擊后,圖片周圍的虛線?

          <a href="#"nFocus="this.blur()"><img src="logo.jpg"border=0></a>

          電子郵件處理提交表單

          <form. name="form1"method="post" action="mailt****@***.com"enctype="text/plain">

          <input type=submit>

          </form>

          在打開的子窗口刷新父窗口的代碼里如何寫?

          window.opener.location.reload()

          如何設(shè)定打開頁面的大小

          <body nload="top.resizeTo(300,200);">

          打開頁面的位置<bodynload="top.moveBy(300,200);">

          在頁面中如何加入不是滿鋪的背景圖片,拉動頁面時背景圖不動

          <STYLE>

          body

          {background-image:url(logo.gif); background-repeat:no-repeat;

          background-position:center;background-attachment: fixed}

          </STYLE>

          檢查一段字符串是否全由數(shù)字組成

          <script. language="Javascript"><!--

          function checkNum(str){return str.match(//D/)==null}

          alert(checkNum("1232142141"))

          alert(checkNum("123214214a1"))

          // --></script>

          獲得一個窗口的大小

          document.body.clientWidth; document.body.clientHeight

          怎么判斷是否是字符

          if (/[^/x00-/xff]/g.test(s)) alert("含有漢字");

          else alert("全是字符");

          TEXTAREA自適應(yīng)文字行數(shù)的多少

          <textarea rows=1 name=s1 cols=27npropertychange="this.style.posHeight=this.scrollHeight">

          </textarea>

          日期減去天數(shù)等于第二個日期

          <script. language=Javascript>

          function cc(dd,dadd)

          {

          //可以加上錯誤處理

          var a = new Date(dd)

          a = a.valueOf()

          a = a - dadd * 24 * 60 * 60 * 1000

          a = new Date(a)

          alert(a.getFullYear() + "年" + (a.getMonth() +1) + "月" + a.getDate() + "日")

          } cc("12/23/2002",2)

          </script>

          選擇了哪一個Radio

          <HTML><script. language="vbscript">

          function checkme()

          for each ob in radio1

          if ob.checked then window.alert ob.value

          next

          end function

          </script><BODY>

          <INPUT name="radio1" type="radio"value="style" checked>Style.

          <INPUT name="radio1" type="radio"value="barcode">Barcode

          <INPUT type="button" value="check"nclick="checkme()">

          </BODY></HTML>

          網(wǎng)頁制作的過程中想通過編輯器添加一些特殊應(yīng)用,例如要添加視頻播放器代碼,添加后發(fā)現(xiàn)不能正常播放視頻,檢查代碼后發(fā)現(xiàn)視頻調(diào)用代碼被無情過濾了,部分被替換成空白、部分被替換成div,造成無法實現(xiàn)網(wǎng)站嵌套視頻播放的問題。網(wǎng)上方法不少,大多不能如愿,經(jīng)多次研究整理一套完整的解決方案。

            第一步:UEditor取消html源代碼切換時div/script/style等自動過濾
            在Ueditor編輯器目錄找到ueditor的js文件:ueditor.all.js 注意return;加入的位置!

          ueditor.all.js
          搜索 UE.plugins['defaultfilter']
          UE.plugins['defaultfilter'] = function () {  
              return;   //在這里添加return,不執(zhí)行下面的格式化  
              var me = this;  
              me.setOpt({  
                  'allowDivTransToP':false,  
                  'disabledTableInTable':true  
              });  
              //默認(rèn)的過濾處理  
              //進入編輯器的內(nèi)容處理  
          
          ueditor.all.min.js
          搜索UE.plugins.defaultfilter
          
          UE.plugins.defaultfilter=  
          function(){return;var d=this;d.setOpt({allowDivTransToP:!0,d

            第二步:確保配置文件中白名單列表中包含相關(guān)標(biāo)簽及對應(yīng)的屬性
            找到配置文件:ueditor.config.js 搜索關(guān)鍵詞:whitList 該列表下出現(xiàn)的標(biāo)簽及對應(yīng)的屬性是不會被過濾掉的。

                  // xss過濾白名單
                  ,whitList: {
                      iframe: ['frameborder','border','width','height','src','id'],
                      a:      ['target', 'href', 'title', 'class', 'style'],
                      abbr:   ['title', 'class', 'style'],
                      script: ['type','src'],
                      address: ['class', 'style'],
                      area:   ['shape', 'coords', 'href', 'alt'],
                      article: [],
                      aside:  [],
                      audio:  ['autoplay', 'controls', 'loop', 'preload', 'src', 'class', 'style'],
                      b:      ['class', 'style'],

            以上二步缺一不可,按照步驟修改相關(guān)標(biāo)簽及對應(yīng)的屬性,保存后覆蓋原來的文件,清空站點及本地緩存后即可生效。

            若以上兩步仍不能解決問題,script,style等標(biāo)簽依然被過濾,那么請檢查使用編輯器的頁面調(diào)用的是哪個文件(ueditor.js還是ueditor.min.js),打開對應(yīng)的文件,一般用的是ueditor.min.js這個文件,搜索代碼“filterInputRule:function”,在代碼{for(var這個位置即for前加入return; 編輯之后是:{return;for(var,然后保存上傳并覆蓋。


            如果還是搞不定,本人以Euditor1.4.3為例把修改好的文件打包分享出來,大家可以直接下載覆蓋。
            鏈接: https://pan.baidu.com/s/1Kx8lu-tli6EYb4cIkP5hzg 提取碼: r76f

          實驗室信息管理系統(tǒng)是利用計算機網(wǎng)絡(luò)技術(shù)、數(shù)據(jù)存儲技術(shù)、快速數(shù)據(jù)處理技術(shù)對實驗室進行全方位管理的計算機軟件系統(tǒng)。實驗室信息管理系統(tǒng)從最初僅完成數(shù)據(jù)存儲和有限的網(wǎng)絡(luò)功能,發(fā)展到現(xiàn)在可以處理海量數(shù)據(jù),具備完善的管理職能,并且能夠運行于Internet之上,極大地提高了實驗室的運行效率,節(jié)約了實驗室的運營成本。針對教學(xué)型實驗室以設(shè)備管理和實驗教學(xué)為主要需求的特點,設(shè)計了融入預(yù)警機制的實驗室信息管理系統(tǒng),使實驗室管理人員和實驗室的主管部門更方便了解實驗室的運行狀況,提高管理水平。


          登錄頁


          管理員主頁

          實現(xiàn)的功能

          管理員、教師、學(xué)生三種角色;

          管理員:用戶管理(學(xué)生管理、教師管理)、實驗室管理、教務(wù)管理(班級管理、課程管理)、預(yù)約(個人預(yù)約、教師預(yù)約、預(yù)約列表、審核列表);

          學(xué)生:實驗室列表、預(yù)約(我的預(yù)約、個人預(yù)約);

          教師:班級管理、實驗室列表、預(yù)約(教師預(yù)約、我的預(yù)約)。


          管理員實驗室管理


          管理員預(yù)約功能

          使用的技術(shù)

          后端:JAVA開發(fā)語言,SpringBoot框架,MySql數(shù)據(jù)庫,Maven;

          前端:layUI框架、HTML頁面。


          學(xué)生主頁


          教師主頁

          部分后端代碼展示

          public class SubjectController {
          
              @Autowired
              SubjectService subjectService;
          
              @Autowired
              GradeService gradeService;
          
              @Autowired
              TeacherService teacherService;
          
              @GetMapping("/index.html")
              public String toSubjectPage() {
                  return "/education/subject/index.html";
              }
          
              /**
               * 添加課程頁面
               * */
              @GetMapping("/add.html")
              public String toSubjectAddPage(Model model, @RequestParam(value = "subjectId", defaultValue = "0") Integer subjectId) {
          
                  Subject subject = new Subject();
                  if (subjectId != 0) {
                      subject = subjectService.getSubjectById(subjectId);
                  }
                  List<Grade> gradeList = getGradeList();
                  List<Teacher> teacherList = getTeacherList();
          
                  Map weeks = ConstantUtils.initWeeks();
                  Map days = ConstantUtils.initDays();
                  Map parts = ConstantUtils.initParts();
          
                  model.addAttribute("gradeList",gradeList);
                  model.addAttribute("teacherList",teacherList);
          
                  model.addAttribute("subject",subject);
                  model.addAttribute("weeks",weeks);
                  model.addAttribute("days",days);
                  model.addAttribute("parts",parts);
          
                  return "/education/subject/add.html";
              }
          
          
          
              private List<Grade> getGradeList() {
                  return gradeService.getGradeList();
              }
          
              private List<Teacher> getTeacherList() {
                  return teacherService.getTeacherList();
              }
              /**
               * 添加課程
               * */
              @PostMapping
              @ResponseBody
              public ResultVO addSubject(Subject subject) {
          
                  subjectService.save(subject);
                  return ResultVO.SUCCESS();
              }
          
              /**
               * 獲取所有班級
               * */
              @GetMapping
              @ResponseBody
              public ResultVO getSubjectList(@RequestParam(value = "page", defaultValue = "1") Integer page,
                                           @RequestParam(value = "limit", defaultValue = "10") Integer limit) {
                  page -= 1;
                  long total = subjectService.count();
                  List<Subject> subjectList = subjectService.getGradeList(page,limit);
                  log.info("total {},page {},limit {}",total,page,limit);
                  HashMap<String,Object> data = new HashMap<>();
                  data.put("total",total);
                  data.put("subjectList",subjectList);
          
                  return ResultVO.SUCCESS(0,data);
              }
          
              @PostMapping("/delete")
              @ResponseBody
              public ResultVO deleteSubject(Subject subject) {
                  subjectService.delete(subject);
                  return ResultVO.SUCCESS(200);
              }
          }
          

          部分前端代碼展示

          <!DOCTYPE html>
          <html xmlns:th="http://www.thymeleaf.org">
          <head>
              <meta charset="UTF-8">
              <title>添加課程</title>
              <link rel="stylesheet" href="/layui/css/layui.css" media="all">
          </head>
          <body>
          <div style="margin: 50px 50px 50px 50px;">
          
              <form class="layui-form" action="">
                  <div class="layui-form-item" th:if="${subject.getId() == 0}">
                      <label class="layui-form-label">
                          <a href="http://localhost:8080/education/subject/index.html" class="layui-btn layui-btn-normal">返回</a>
                      </label>
                  </div>
                  <div class="layui-form-item" th:if="${subject.getId() != 0}">
                      <input type="hidden" name="id" th:value="${subject.getId()}">
                  </div>
                  <div class="layui-form-item">
                      <label class="layui-form-label">課程名</label>
                      <div class="layui-input-block">
                          <input type="text" name="name" th:value="${subject.getName()}" required  lay-verify="required" placeholder="請輸入課程名稱" autocomplete="off" class="layui-input">
                      </div>
                  </div>
          
                  <div class="layui-form-item">
                      <label class="layui-form-label">班級</label>
                      <div class="layui-input-block">
                          <select name="gradeId" lay-verify="required">
                              <option value=""></option>
                              <option th:each="grade:${gradeList}" th:value="${grade.getId()}" th:text="${grade.getName()}" th:selected="${grade.getId() == subject.getGradeId()}"></option>
                          </select>
                      </div>
                  </div>
          
                  <div class="layui-form-item">
                      <label class="layui-form-label">老師</label>
                      <div class="layui-input-block">
                          <select name="teacherId" lay-verify="required">
                              <option value=""></option>
                              <option th:each="teacher:${teacherList}" th:value="${teacher.getId()}" th:text="${teacher.getUsername()}" th:selected="${teacher.getId() == subject.getTeacherId()}"></option>
                          </select>
                      </div>
                  </div>
          
                  <div class="layui-form-item">
                      <label class="layui-form-label">起始周</label>
                      <div class="layui-input-block">
                          <select name="startWeek" lay-verify="required">
                              <option value=""></option>
                              <option th:each="start:${weeks}" th:value="${start.key}" th:text="${start.value}" th:selected="${start.key == subject.getStartWeek()}"></option>
                          </select>
                      </div>
                  </div>
          
                  <div class="layui-form-item">
                      <label class="layui-form-label">結(jié)束周</label>
                      <div class="layui-input-block">
                          <select name="endWeek" lay-verify="required">
                              <option value=""></option>
                              <option th:each="end:${weeks}" th:value="${end.key}" th:text="${end.value}" th:selected="${end.key == subject.getEndWeek()}"></option>
                          </select>
                      </div>
                  </div>
          
                  <div class="layui-form-item">
                      <label class="layui-form-label">周幾</label>
                      <div class="layui-input-block">
                          <select name="day" lay-verify="required">
                              <option value=""></option>
                              <option th:each="day:${days}" th:value="${day.key}" th:text="${day.value}" th:selected="${day.key == subject.getDay()}"></option>
                          </select>
                      </div>
                  </div>
          
                  <div class="layui-form-item">
                      <label class="layui-form-label">節(jié)次</label>
                      <div class="layui-input-block">
                          <select name="part" lay-verify="required">
                              <option value=""></option>
                              <option th:each="part:${parts}" th:value="${part.key}" th:text="${part.value}" th:selected="${part.key == subject.getPart()}"></option>
                          </select>
                      </div>
                  </div>
          
                  <div class="layui-form-item">
                      <div class="layui-input-block">
                          <button class="layui-btn" type="button" lay-submit lay-filter="formSubmit">立即提交</button>
                          <button type="reset" class="layui-btn layui-btn-primary" th:if="${subject.getId() == 0}">重置</button>
                      </div>
                  </div>
              </form>
          </div>
          
          </body>
          <script src="/layui/layui.js"></script>
          <script src="/js/jquery.min.js"></script>
          <script src="/js/education/subject/add.js"></script>
          </html>

          獲取源碼請關(guān)注后私信“20230919”


          主站蜘蛛池模板: 杨幂AV污网站在线一区二区| 国产伦精品一区二区| 加勒比精品久久一区二区三区| 国产麻豆精品一区二区三区v视界| 中文激情在线一区二区| 日韩中文字幕一区| 久久精品午夜一区二区福利| 亚洲精品一区二区三区四区乱码| 久久国产精品免费一区| 久久久不卡国产精品一区二区| 国产一区二区三区亚洲综合| 国产三级一区二区三区| 亚洲视频在线一区二区| 鲁大师成人一区二区三区| 亚洲国产精品一区二区第一页免| 丝袜美腿高跟呻吟高潮一区| 动漫精品专区一区二区三区不卡| 无码欧精品亚洲日韩一区夜夜嗨| 中文字幕在线观看一区| 日韩一区二区三区无码影院| 无码一区二区三区爆白浆| 天码av无码一区二区三区四区 | 亚洲国产精品综合一区在线| 69福利视频一区二区| 韩国精品一区二区三区无码视频| 精品乱码一区二区三区在线 | 国产Av一区二区精品久久| 视频一区在线播放| 亚洲电影一区二区三区| 色综合久久一区二区三区| 久久亚洲国产精品一区二区| 精品国产一区二区三区AV | 精品一区精品二区| 亚洲综合无码一区二区| 国产伦精品一区二区三区视频金莲| 久久精品无码一区二区三区| 国产丝袜无码一区二区视频| 中文字幕日韩丝袜一区| 国产一区二区三区乱码| 国产在线观看精品一区二区三区91 | 夜色阁亚洲一区二区三区|