Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const char index_html[] PROGMEM = R"rawliteral(
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style>
- .styled-table {
- border-collapse: collapse;
- margin: 25px 0;
- font-size: 0.9em;
- font-family: sans-serif;
- min-width: 400px;
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
- }
- .styled-table thead tr {
- background-color: #009879;
- color: #ffffff;
- text-align: left;
- }
- .styled-table th,
- .styled-table td {
- padding: 12px 15px;
- }
- </style>
- </head>
- <body>
- <table class="styled-table">
- <thead>
- <tr>
- <th>ID Modbus</th>
- <th>Baudrate</th>
- <th>Serial</th>
- <th>Jumlah Data</th>
- <th>submit</th>
- </tr>
- </thead>
- <tbody>
- <form action="/set_modbus">
- <tr class="active-row">
- <td><select name="id">
- <option>Pilih id</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="baud">
- <option>Pilih Baud</option>
- <option>4800</option>
- <option>9600</option>
- <option>19200</option>
- <option>38400</option>
- <option>57600</option>
- <option>115200</option>
- </select></td>
- <td><Select name="serial">
- <option>Serial Config</option>
- <option>SERIAL_8N1</option>
- <option>SERIAL_8N2</option>
- </Select></td>
- <td><select name="qty_data">
- <option>Pilih Qty Data</option>
- <option>1</option>
- <option>2</option>
- <option>3</option>
- <option>4</option>
- <option>5</option>
- <option>6</option>
- <option>7</option>
- <option>8</option>
- <option>9</option>
- <option>10</option>
- <option>11</option>
- <option>12</option>
- <option>13</option>
- <option>14</option>
- <option>15</option>
- </select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- </table>
- <table class="styled-table">
- <thead>
- <tr>
- <th>Number</th>
- <th>Start Address</th>
- <th>Jumlah Address</th>
- <th>Type Data</th>
- <th>MSB/LSB</th>
- <th>Factor</th>
- <th>Submit</th>
- </tr>
- </thead>
- <tbody>
- <form action="/set_addr1">
- <tr class="active-row">
- <td>1</td>
- <td><input name="startA1" type="text" size="9"></td>
- <td><select name="jmladdr1">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT1">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT1">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT1">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <form action="/set_addr2">
- <tr class="active-row">
- <td>2</td>
- <td><input name="startA2" type="text" size="9"></td>
- <td><select name="jmladdr2">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT2">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT2">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT2">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <form action="/set_addr3">
- <tr class="active-row">
- <td>3</td>
- <td><input name="startA3" type="text" size="9"></td>
- <td><select name="jmladdr3">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT3">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT3">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT3">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <form action="/set_addr4">
- <tr class="active-row">
- <td>4</td>
- <td><input name="startA4" type="text" size="9"></td>
- <td><select name="jmladdr4">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT4">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT4">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT4">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <form action="/set_addr5">
- <tr class="active-row">
- <td>5</td>
- <td><input name="startA5" type="text" size="9"></td>
- <td><select name="jmladdr5">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT5">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT5">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT5">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <form action="/set_addr6">
- <tr class="active-row">
- <td>6</td>
- <td><input name="startA6" type="text" size="9"></td>
- <td><select name="jmladdr6">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT6">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT6">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT6">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <form action="/set_addr7">
- <tr class="active-row">
- <td>7</td>
- <td><input name="startA7" type="text" size="9"></td>
- <td><select name="jmladdr7">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT7">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT7">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT7">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <form action="/set_addr8">
- <tr class="active-row">
- <td>8</td>
- <td><input name="startA8" type="text" size="9"></td>
- <td><select name="jmladdr8">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT8">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT8">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT8">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <form action="/set_addr9">
- <tr class="active-row">
- <td>9</td>
- <td><input name="startA9" type="text" size="9"></td>
- <td><select name="jmladdr9">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT9">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT9">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT9">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <form action="/set_addr10">
- <tr class="active-row">
- <td>10</td>
- <td><input name="startA10" type="text" size="9"></td>
- <td><select name="jmladdr10">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT10">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT10">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT10">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <form action="/set_addr11">
- <tr class="active-row">
- <td>11</td>
- <td><input name="startA11" type="text" size="9"></td>
- <td><select name="jmladdr11">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT11">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT11">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT11">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <form action="/set_addr12">
- <tr class="active-row">
- <td>12</td>
- <td><input name="startA12" type="text" size="9"></td>
- <td><select name="jmladdr12">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT12">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT12">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT12">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <form action="/set_addr13">
- <tr class="active-row">
- <td>13</td>
- <td><input name="startA13" type="text" size="9"></td>
- <td><select name="jmladdr13">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT13">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT13">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT13">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <form action="/set_addr14">
- <tr class="active-row">
- <td>14</td>
- <td><input name="startA14" type="text" size="9"></td>
- <td><select name="jmladdr14">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT14">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT14">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT14">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <form action="/set_addr15">
- <tr class="active-row">
- <td>15</td>
- <td><input name="startA15" type="text" size="9"></td>
- <td><select name="jmladdr15">
- <option >Jumlah Addr</option>
- <option>1</option>
- <option>2</option>
- </select></td>
- <td><select name="typDT15">
- <option>Float</option>
- <option>Integer</option>
- </select></td>
- <td><select name="urutDT15">
- <option>MSB</option>
- <option>LSB</option>
- </select></td>
- <td><Select name="fDT15">
- <option>1</option>
- <option>10</option>
- <option>100</option>
- <option>1000</option>
- </Select></td>
- <td><input type="submit"></td>
- </tr>
- </form>
- <!-- and so on... -->
- </tbody>
- </table>
- )rawliteral";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement