fix cws already being open
This commit is contained in:
parent
91f55f0350
commit
8447d7b6f9
3 changed files with 12 additions and 12 deletions
|
@ -59,10 +59,10 @@ foreach (array_reverse($rows) as $i){
|
||||||
if ($i["isrespondedto"] === "f" && $i["ispublic"] == "t") {
|
if ($i["isrespondedto"] === "f" && $i["ispublic"] == "t") {
|
||||||
echo("<div class=\"question\">");
|
echo("<div class=\"question\">");
|
||||||
if ($i["iscwed"] === "t") {
|
if ($i["iscwed"] === "t") {
|
||||||
echo("<details><summary>cw: " . htmlspecialchars($i["cw"]) . "</summary><span class=\"cwfiller\"></span></details>");
|
echo("<details><summary>cw: " . htmlspecialchars($i["cw"]) . "</summary><span class=\"cwfiller\"></span>");
|
||||||
}
|
}
|
||||||
echo(htmlspecialchars($i["text"]));
|
echo(htmlspecialchars($i["text"]));
|
||||||
echo("<div class=\"time\">" . $i["time"] . "</div>");
|
echo("<div class=\"time\">" . $i["time"] . "</details></div>");
|
||||||
echo("<a class=\"permalink\" href=\"index.php?page=respond&id=" . $i["id"] . "&pw={$adminPassword}\">respond</a> / <a class=\"permalink\" href=\"index.php?page=delete&id=" . $i["id"] . "&pw={$adminPassword}\">delete</a></div>");
|
echo("<a class=\"permalink\" href=\"index.php?page=respond&id=" . $i["id"] . "&pw={$adminPassword}\">respond</a> / <a class=\"permalink\" href=\"index.php?page=delete&id=" . $i["id"] . "&pw={$adminPassword}\">delete</a></div>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -72,10 +72,10 @@ foreach (array_reverse($rows) as $i){
|
||||||
if ($i["ispublic"] === "f" && $i["isprivread"] === "f") {
|
if ($i["ispublic"] === "f" && $i["isprivread"] === "f") {
|
||||||
echo("<div class=\"question\">");
|
echo("<div class=\"question\">");
|
||||||
if ($i["iscwed"] === "t") {
|
if ($i["iscwed"] === "t") {
|
||||||
echo("<details><summary>cw: " . htmlspecialchars($i["cw"]) . "</summary><span class=\"cwfiller\"></span></details>");
|
echo("<details><summary>cw: " . htmlspecialchars($i["cw"]) . "</summary><span class=\"cwfiller\"></span>");
|
||||||
}
|
}
|
||||||
echo(htmlspecialchars($i["text"]));
|
echo(htmlspecialchars($i["text"]));
|
||||||
echo("<div class=\"time\">" . $i["time"] . "</div>");
|
echo("<div class=\"time\">" . $i["time"] . "</details></div>");
|
||||||
echo("<a class=\"permalink\" href=\"index.php?page=mark&action=read&id=" . $i["id"] . "&pw={$adminPassword}\">mark read</a> / <a class=\"permalink\" href=\"index.php?page=delete&id=" . $i["id"] . "&pw={$adminPassword}\">delete</a></div>");
|
echo("<a class=\"permalink\" href=\"index.php?page=mark&action=read&id=" . $i["id"] . "&pw={$adminPassword}\">mark read</a> / <a class=\"permalink\" href=\"index.php?page=delete&id=" . $i["id"] . "&pw={$adminPassword}\">delete</a></div>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,10 +85,10 @@ foreach (array_reverse($rows) as $i){
|
||||||
if ($i["ispublic"] === "t" && $i["isrespondedto"] === "t") {
|
if ($i["ispublic"] === "t" && $i["isrespondedto"] === "t") {
|
||||||
echo("<div class=\"question\">");
|
echo("<div class=\"question\">");
|
||||||
if ($i["iscwed"] === "t") {
|
if ($i["iscwed"] === "t") {
|
||||||
echo("<details><summary>cw: " . htmlspecialchars($i["cw"]) . "</summary><span class=\"cwfiller\"></span></details>");
|
echo("<details><summary>cw: " . htmlspecialchars($i["cw"]) . "</summary><span class=\"cwfiller\"></span>");
|
||||||
}
|
}
|
||||||
echo(htmlspecialchars($i["text"]));
|
echo(htmlspecialchars($i["text"]));
|
||||||
echo("<div class=\"time\">" . $i["time"] . "</div>");
|
echo("<div class=\"time\">" . $i["time"] . "</details></div>");
|
||||||
echo("<div class=\"response\">" . htmlspecialchars($i["responsetext"]) . "");
|
echo("<div class=\"response\">" . htmlspecialchars($i["responsetext"]) . "");
|
||||||
echo("<div class=\"time\">" . $i["responsetime"] . "</div></div>");
|
echo("<div class=\"time\">" . $i["responsetime"] . "</div></div>");
|
||||||
echo("<a class=\"permalink\" href=\"index.php?page=respond&responded=1&id=" . $i["id"] . "&pw={$adminPassword}\">edit response</a> / <a class=\"permalink\" href=\"index.php?page=delete&id=" . $i["id"] . "&pw={$adminPassword}\">delete</a></div>");
|
echo("<a class=\"permalink\" href=\"index.php?page=respond&responded=1&id=" . $i["id"] . "&pw={$adminPassword}\">edit response</a> / <a class=\"permalink\" href=\"index.php?page=delete&id=" . $i["id"] . "&pw={$adminPassword}\">delete</a></div>");
|
||||||
|
@ -100,10 +100,10 @@ foreach (array_reverse($rows) as $i){
|
||||||
if ($i["ispublic"] === "f" && $i["isprivread"] === "t") {
|
if ($i["ispublic"] === "f" && $i["isprivread"] === "t") {
|
||||||
echo("<div class=\"question\">");
|
echo("<div class=\"question\">");
|
||||||
if ($i["iscwed"] === "t") {
|
if ($i["iscwed"] === "t") {
|
||||||
echo("<details><summary>cw: " . htmlspecialchars($i["cw"]) . "</summary><span class=\"cwfiller\"></span></details>");
|
echo("<details><summary>cw: " . htmlspecialchars($i["cw"]) . "</summary><span class=\"cwfiller\"></span>");
|
||||||
}
|
}
|
||||||
echo(htmlspecialchars($i["text"]));
|
echo(htmlspecialchars($i["text"]));
|
||||||
echo("<div class=\"time\">" . $i["time"] . "</div>");
|
echo("<div class=\"time\">" . $i["time"] . "</details></div>");
|
||||||
echo("<a class=\"permalink\" href=\"index.php?page=mark&action=unread&id=" . $i["id"] . "&pw={$adminPassword}\">mark unread</a> / <a class=\"permalink\" href=\"index.php?page=delete&id=" . $i["id"] . "&pw={$adminPassword}\">delete</a></div>");
|
echo("<a class=\"permalink\" href=\"index.php?page=mark&action=unread&id=" . $i["id"] . "&pw={$adminPassword}\">mark unread</a> / <a class=\"permalink\" href=\"index.php?page=delete&id=" . $i["id"] . "&pw={$adminPassword}\">delete</a></div>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,10 +31,10 @@ if (pg_num_rows($qresp) === 0 || $arr["ispublic"] === "f" || $arr["isrespondedto
|
||||||
echo("<a class=\"goback\" href=\"index.php\">(go back?)</a>");
|
echo("<a class=\"goback\" href=\"index.php\">(go back?)</a>");
|
||||||
echo("<div class=\"question\">");
|
echo("<div class=\"question\">");
|
||||||
if ($arr["iscwed"] === "t") {
|
if ($arr["iscwed"] === "t") {
|
||||||
echo("<details><summary>cw: " . htmlspecialchars($arr["cw"]) . "</summary><span class=\"cwfiller\"></span></details>");
|
echo("<details><summary>cw: " . htmlspecialchars($arr["cw"]) . "</summary><span class=\"cwfiller\"></span>");
|
||||||
}
|
}
|
||||||
echo(htmlspecialchars($arr["text"]));
|
echo(htmlspecialchars($arr["text"]));
|
||||||
echo("<div class=\"time\">" . $arr["time"] . "</div>");
|
echo("<div class=\"time\">" . $arr["time"] . "</details></div>");
|
||||||
echo("<div class=\"response\">" . $arr["responsetext"] . "");
|
echo("<div class=\"response\">" . $arr["responsetext"] . "");
|
||||||
echo("<div class=\"time\">" . $arr["responsetime"] . "</div></div></div>");
|
echo("<div class=\"time\">" . $arr["responsetime"] . "</div></div></div>");
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,10 +40,10 @@ foreach (array_reverse($rows) as $i){
|
||||||
if ($i["ispublic"] === "t" && $i["isrespondedto"] === "t") {
|
if ($i["ispublic"] === "t" && $i["isrespondedto"] === "t") {
|
||||||
echo("<div class=\"question\">");
|
echo("<div class=\"question\">");
|
||||||
if ($i["iscwed"] === "t") {
|
if ($i["iscwed"] === "t") {
|
||||||
echo("<details><summary>cw: " . htmlspecialchars($i["cw"]) . "</summary><span class=\"cwfiller\"></span></details>");
|
echo("<details><summary>cw: " . htmlspecialchars($i["cw"]) . "</summary><span class=\"cwfiller\"></span>");
|
||||||
}
|
}
|
||||||
echo(htmlspecialchars($i["text"]));
|
echo(htmlspecialchars($i["text"]));
|
||||||
echo("<div class=\"time\">" . $i["time"] . "</div>");
|
echo("<div class=\"time\">" . $i["time"] . "</details></div>");
|
||||||
echo("<div class=\"response\">" . htmlspecialchars($i["responsetext"]) . "");
|
echo("<div class=\"response\">" . htmlspecialchars($i["responsetext"]) . "");
|
||||||
echo("<div class=\"time\">" . $i["responsetime"] . "</div></div>");
|
echo("<div class=\"time\">" . $i["responsetime"] . "</div></div>");
|
||||||
echo("<a class=\"permalink\" href=\"fetch.php?id=" . $i["id"] . "\">permalink</a></div>");
|
echo("<a class=\"permalink\" href=\"fetch.php?id=" . $i["id"] . "\">permalink</a></div>");
|
||||||
|
|
Loading…
Add table
Reference in a new issue