gengar003
06-21-2003, 05:13 PM
Bleh. Icky title.
Anyway, I've made a custom page for my admin CP, works likea charm, BUT -- the pages are all black on white.
I COULD hard-code it to look like the other pages, but, upon looking at some other hacks, (namely the template backup system)
I've figured out that there are approximately a jillion makeinputcode("blah", "lbah", "halb"); maketableheader("moo", "moo" , 0);
etc things that can be used, and I'd prefer to use them.
SO, i've got a hard-coded (using "echo") form, and I want to put it in a nice table w/colors that match the rest of the cp.
What would I use, and how?
echo "<p>Modifying TAC?mon:<br>"; // This would be the table header.
echo "<form action=\"tacemon.php\" method=\"GET\">"; // this just needs to be here, doesn't show up.
echo "Old Name: <input type=\"text\" name=\"old_name\" length=\"25\" size=\"20\"><br>";//seperate line
echo "<br><hr><br>"; //would probably be removed
echo "New Name: <input type=\"text\" name=\"new_name\" length=\"25\" size=\"20\"> (type 'keep' to leave it as is.)<br>"; // new line
echo "New Variable: <input type=\"text\" name=\"new_var\" length=\"30\" size=\"20\">(type 'keep' to leave it as is.)<br>";// new line
echo "New Data: <input type=\"text\" name=\"new_data\" length=\"20000\" size=\"20\">(type 'keep' to leave it as is.)<br>"; // new line
echo "<input type=\"submit\" name=\"submit\" value=\"Modd 'em!\">"; // the submit button
echo "<input type=\"hidden\" name=\"action\" value=\"modifying\">"; // just needs to be here
echo "</form>"; // ditto as above.
Anyway, I've made a custom page for my admin CP, works likea charm, BUT -- the pages are all black on white.
I COULD hard-code it to look like the other pages, but, upon looking at some other hacks, (namely the template backup system)
I've figured out that there are approximately a jillion makeinputcode("blah", "lbah", "halb"); maketableheader("moo", "moo" , 0);
etc things that can be used, and I'd prefer to use them.
SO, i've got a hard-coded (using "echo") form, and I want to put it in a nice table w/colors that match the rest of the cp.
What would I use, and how?
echo "<p>Modifying TAC?mon:<br>"; // This would be the table header.
echo "<form action=\"tacemon.php\" method=\"GET\">"; // this just needs to be here, doesn't show up.
echo "Old Name: <input type=\"text\" name=\"old_name\" length=\"25\" size=\"20\"><br>";//seperate line
echo "<br><hr><br>"; //would probably be removed
echo "New Name: <input type=\"text\" name=\"new_name\" length=\"25\" size=\"20\"> (type 'keep' to leave it as is.)<br>"; // new line
echo "New Variable: <input type=\"text\" name=\"new_var\" length=\"30\" size=\"20\">(type 'keep' to leave it as is.)<br>";// new line
echo "New Data: <input type=\"text\" name=\"new_data\" length=\"20000\" size=\"20\">(type 'keep' to leave it as is.)<br>"; // new line
echo "<input type=\"submit\" name=\"submit\" value=\"Modd 'em!\">"; // the submit button
echo "<input type=\"hidden\" name=\"action\" value=\"modifying\">"; // just needs to be here
echo "</form>"; // ditto as above.