/**
  * creates the html-form-fragment for this object
  *
  * @param $id string containing a prefix that should be used to identify this
  * object's html fields. This must be done, so that the generateObjectFromPost(...)
  * function can address the fields belonging to this object in the http-post.
  *
  * @param string $offset string used for formatting the output
  * @return string containing the html-form-fragment
  */
 function generateHtmlForm($id = "", $offset = "")
 {
     $temp = "";
     $temp .= $offset . "<tr>\n";
     $temp .= $offset . " <td>\n";
     $temp .= $offset . "  <input type=\"hidden\" name=\"" . $id . "\" value=\"binaryLogicOp\">\n";
     $temp .= $offset . "  <input type=\"hidden\" name=\"" . $id . "_name\" value=\"" . $this->name . "\">\n";
     $temp .= $offset . "  " . $this->name . "<br>\n";
     $number = split("_", $id);
     $number = $number[count($number) - 1];
     $temp .= $offset . "   <a class=\"edit\" href=\"?function=deleteoperation&id=" . $this->parent . "&number=" . $number . "\">";
     $temp .= "<img src='./img/minus.gif' border='0'>&nbsp;l&ouml;schen</a>\n";
     $temp .= $offset . " </td>\n";
     $temp .= $offset . " <td colspan=\"3\">\n";
     $temp .= $offset . "  <table>\n";
     $displayOperationModule = new DisplayOperationModule();
     $temp .= $displayOperationModule->generateHtmlForm($offset . "   ", $this->operations, $id);
     if (count($this->operations) == 1) {
         $temp .= $offset . "<tr>\n";
         $temp .= $offset . " <td colspan=\"4\">\n";
         $temp .= $offset . "  <hr style=\"color: black\">\n";
         $temp .= $offset . " </td>\n";
         $temp .= $offset . "</tr>\n";
     }
     //Only 2 Operations
     //if (count($this->operations) < 2)
     // why should there be only 2 operations? Nothing in the specs ...
     $temp .= $offset . "<tr>\n";
     $temp .= $offset . " <td colspan=\"4\">\n";
     $addOperationModule = new AddOperationModule($this->id, $id);
     $temp .= $addOperationModule->generateHtmlForm($offset . "   ");
     $temp .= $offset . " </td>\n";
     $temp .= $offset . "</tr>\n";
     $temp .= $offset . "   </table>\n";
     $temp .= $offset . " </td>\n";
     $temp .= $offset . "</tr>\n";
     return $temp;
 }
 /**
  * creates the html-form-fragment for this object
  *
  * @param $id string containing a prefix that should be used to identify this
  * object's html fields. This must be done, so that the generateObjectFromPost(...)
  * function can address the fields belonging to this object in the http-post.
  *
  * @param string $offset string used for formatting the output
  * @return string containing the html-form-fragment
  */
 function generateHtmlForm($id = "", $offset = "")
 {
     $temp = "";
     $temp .= $offset . "<tr>\n";
     $temp .= $offset . " <td>\n";
     $temp .= $offset . "  <input type=\"hidden\" name=\"" . $id . "\" value=\"unaryLogicOp\">\n";
     $temp .= $offset . "  <input type=\"hidden\" name=\"" . $id . "_name\" value=\"" . $this->name . "\">\n";
     $temp .= $offset . "  " . $this->name . "<br>\n";
     $number = split("_", $id);
     $number = $number[count($number) - 1];
     $temp .= $offset . "   <a class=\"edit\" href=\"?function=deleteoperation&id=" . $this->parent . "&number=" . $number . "\">";
     $temp .= "<img src='./img/minus.gif' border='0'>&nbsp;l&ouml;schen</a>\n";
     $temp .= $offset . " </td>\n";
     $temp .= $offset . " <td colspan=\"3\" valign=\"top\">\n";
     //Only 1 operation
     if (count($this->operations) < 1) {
         $addOperationModule = new AddOperationModule($this->id, $id);
         $temp .= $addOperationModule->generateHtmlForm($offset . "   ");
     } else {
         $temp .= $offset . "  <table>\n";
         $displayOperationModule = new DisplayOperationModule();
         $temp .= $displayOperationModule->generateHtmlForm($offset . "   ", $this->operations, $id);
         $temp .= $offset . "  </table>\n";
     }
     $temp .= $offset . " </td>\n";
     $temp .= $offset . "</tr>\n";
     return $temp;
 }
 /**
  * creates the html-form-fragment for this object
  *
  * @param $id string containing a prefix that should be used to identify this
  * object's html fields. This must be done, so that the generateObjectFromPost(...)
  * function can address the fields belonging to this object in the http-post.
  *
  * @param string $offset string used for formatting the output
  * @return string containing the html-form-fragment
  */
 function generateHtmlForm($id = "", $offset = "")
 {
     $temp = "";
     $temp .= $offset . "<input type=\"hidden\" name=\"filter\">\n";
     $temp .= $offset . "<table>\n";
     $temp .= $offset . " <tr>\n";
     $temp .= $offset . "  <td>\n";
     $temp .= $offset . "   Filter:<br>\n";
     $temp .= $offset . "   <a class=\"edit\" href=\"sld_edit_filter.php?function=deletefilter\">";
     $temp .= "<img src='./img/minus.gif' border='0'>&nbsp;l&ouml;schen</a>\n";
     $temp .= $offset . "  </td>\n";
     $temp .= $offset . "  <td colspan=\"3\">\n";
     $temp .= $offset . "  &nbsp;\n";
     $temp .= $offset . "  </td>\n";
     $temp .= $offset . " </tr>\n";
     $displayOperationModule = new DisplayOperationModule();
     $temp .= $displayOperationModule->generateHtmlForm($offset . " ", $this->operations, $id);
     if (count($this->operations) == 0) {
         $temp .= $offset . " <tr>\n";
         $temp .= $offset . "  <td colspan=\"4\">\n";
         $addOperationModule = new AddOperationModule($this->id, $id);
         $temp .= $addOperationModule->generateHtmlForm($offset . "    ");
         $temp .= $offset . "  </td>\n";
         $temp .= $offset . " </tr>\n";
     }
     $temp .= $offset . "</table>\n";
     return $temp;
 }