$ /sql/alter.sql
/taxes/tax_types.php
/taxes/db/tax_types_db.inc
++ Added 2 functions in ui_input.inc, button and button_cell
+ /includes/ui/ui_input.inc
11-Feb-2008 Joe Hunt
+ Added file, update_db.php, for updating company databases from an SQL script.
submit_cells($name, $value, $extra);
echo "</tr>\n";
}
+//---------------------------------------------------------------------------------
+
+function button($name, $value, $onclick)
+{
+ echo "<input type=\"button\" class=\"inputsubmit\" name=\"$name\" value=\"$value\" onclick=\"$onclick\" />\n";
+}
+
+function button_cell($name, $value, $onclick)
+{
+ echo "<td>";
+ button($name, $value, $onclick);
+ echo "</td>\n";
+}
+
//-----------------------------------------------------------------------------------
function check_value($name)
// Ex. label_cell(print_document_link($myrow['order_no'], _("Print")));
// or display_note(print_document_link($order_no, _("Print this order")));
// or if a button
-// echo "<input type='button' name='button' value='"._("Print this order")."' onclick=\"".
-// print_document_link($order_no, "", false)."\" class='inputsubmit' />\n";
+// button("button", _("Print this order"), print_document_link($order_no, "", false))";
+// or if a button inside a TD
+// button_cell("button", _("Print this order"), print_document_link($order_no, "", false))";
function print_document_link($doc_no, $link_text, $link=true)
{