Update extension_download.php

This commit is contained in:
chansizzle 2019-05-27 10:06:21 -06:00 committed by GitHub
parent f2abe53a58
commit d598ba07b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 1 deletions

View File

@ -152,7 +152,7 @@ $row_style["1"] = "row_style1";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<tr>\n";
echo "<th><input type=\"checkbox\" id=\"selecctall\"/>";
echo "<th><input type=\"checkbox\" id=\"selectall\" onclick=\"checkbox_toggle();\"/></th>\n";
echo "</th>";
echo "<th> Column Name";
echo "</th>";
@ -183,6 +183,23 @@ $row_style["1"] = "row_style1";
echo "<br><br>";
echo "</form>";
//define the checkbox_toggle function
echo "<script type=\"text/javascript\">\n";
echo " function checkbox_toggle(item) {\n";
echo " var inputs = document.getElementsByTagName(\"input\");\n";
echo " for (var i = 0, max = inputs.length; i < max; i++) {\n";
echo " if (inputs[i].type === 'checkbox') {\n";
echo " if (document.getElementById('selectall').checked == true) {\n";
echo " inputs[i].checked = true;\n";
echo " }\n";
echo " else {\n";
echo " inputs[i].checked = false;\n";
echo " }\n";
echo " }\n";
echo " }\n";
echo " }\n";
echo "</script>\n";
//include the footer
require_once "resources/footer.php";
?>