} } if (!$_POST || $formerror) { myError($w, $p, $formerror, FALSE); if ($_GET) { // always need to test - customer could have been deleted // result used later $result1 = $ds->GetCustomerInfo($cust); // should only be one row here if (!($row1 = $result1->FetchRow())) { myError($w, $p, my_("Customer cannot be found!")); } } // display opening text insert($w, heading(3, "{$title}.")); $result = $ds->GetGrps(); $lst = array(); while ($row = $result->FetchRow()) { $col = $row["grp"]; $lst["{$col}"] = $row["grpdescrip"]; } if (empty($lst)) { myError($w, $p, my_("You first need to create some groups!")); } // start form insert($w, $f = form(array("name" => "ENTRY", "method" => "post", "action" => $_SERVER["PHP_SELF"]))); insert($f, $con = container("fieldset", array("class" => "fieldset"))); insert($con, $legend = container("legend", array("class" => "legend"))); insert($legend, text(my_("Required information"))); insert($con, textbr(my_("Customer/autonomous system description:"))); insert($con, hidden(array("name" => "cust", "value" => "{$cust}")));