tesses-webserver-cpp/wwwroot/cgi-bin/delete.twss

39 lines
854 B
Plaintext

<!--tws
id = query_first("id");
if(id)
{
var name = "";
index = id.toLong();
if(index >= 0 && index < (global todos).count)
{
name = htmlencode((global todos)[index]);
}
--><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Delete <!--tws print name;
-->?</title>
</head>
<body>
<h1>Delete <!--tws print name;-->?</h1>
<a href="./delete-confirm.twss?id=<!--tws print id; -->">Yes</a> | <a href="../">No</a>
</body>
</html>
<!--tws}else{-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>No Id</title>
</head>
<body>
<h1>No Id</h1>
</body>
</html>
<!--tws}-->