I have a home automation web page that controls power on and power off to a number of electrical wall sockets in the house (see simple web control page below).
At times, a device plugged into a particular wall socket, is swapped for another device, e.g., the printer is removed (unplugged) and replaced with a desk lamp (plugged in).
Because of this I want to be able to edit the part of the web page that refers to the Printer (in the web page below) on the fly; through this same web page. In other words any person should be able to make this page edit, from the page itself, without any knowledge of HTML or server side technology.
The edited change will remain permanently with the web page (or in some server side text file) until the next edit/ page change is made. The change will survive a power re-cycle on the server.
In others words the functionality required here, for this single simple web page, is similar to that of a content management system (CMS) though of course a CMS would be very bulky and unnecessary for these small changes to this one page.
And of course it is only the occurrences of the text "Printer", "Socket 2", "Socket 3", Socket 4" that I need to be able to edit and change from the page itself.
So, what I want to know is how to implement a very simple CMS, only for the parts of the page that display the text "Printer", "Socket 2", "Socket 3", "Socket 4".
Thank you
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<html>
<head>
<meta name='viewport' content='width=device-width'>
<title></title>
<style>a{color:blue}.content1{width: 20px; float:right;}.content2{width: 20px; float:left;}</style>
</head>
<body>
<center>
<br/>
<b><font size=+1 color='#CC33FF'>Sockets 4</font></b>
<br/>
<a href='?s4-all-on' target='x2'>All On</a> <a href='/?s4-all-off' target='x2'>All Off</a><br/>
<a href='/?s4-1on' target='x2'>Printer On</a> <a href='/?s4-1off' target='x2'>Printer Off</a><br/>
<a href='/?s4-2on' target='x2'>Socket 2 On</a> <a href='/?s4-2off' target='x2'>Socket 2 Off</a><br/>
<a href='/?s4-3on' target='x2'>Socket 3 On</a> <a href='/?s4-3off' target='x2'>Socket 3 Off</a><br/>
<a href='/?s4-4on' target='x2'>Socket 4 On</a> <a href='/?s4-4off' target='x2'>Socket 4 Off</a><br/><br/>
<iframe name=x2 style='display:none'></iframe>
</center>
</body>
</html>