예제 #1
0
    ?>
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1','" . urlencode($LegalCase->getId()) . "');", "Save");
            $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?LegalCase=" . urlencode($LegalCase->getId()), "Cancel");
        }
    } else {
        $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?edit=1&LegalCase=" . urlencode($LegalCase->getId()), "Edit") . ifaceButton($_SERVER['PHP_SELF'] . "?del=1&LegalCase=" . urlencode($LegalCase->getId()), "Delete");
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The LegalCase is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No LegalCase object selected - VIRO - ADL Prototype</TITLE>");
        ?>
<i>No LegalCase object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #2
0
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1','" . urlencode($Pattern->getId()) . "');", "Save");
            $buttons .= ifaceButton(serviceref($_REQUEST['content'], array('Pattern' => urlencode($Pattern->getId()))), "Cancel");
        }
    } else {
        $buttons = $buttons;
        $buttons = $buttons;
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Pattern is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Pattern object selected - Atlas - ADL Prototype</TITLE>");
        ?>
<i>No Pattern object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #3
0
파일: form_cool.php 프로젝트: newsomc/unify
<?php

require_once '_base.php';
writeHead();
?>
<h1><?php 
echo $form_heading;
?>
</h1>
<h1><?php 
echo $form_content;
?>
</h1>
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1','" . urlencode($Gebruiker->getId()) . "');", "Save");
            $buttons .= ifaceButton(serviceref($_REQUEST['content'], array('Gebruiker' => urlencode($Gebruiker->getId()))), "Cancel");
        }
    } else {
        ifaceButton(serviceref($_REQUEST['content'], array('Gebruiker' => urlencode($Gebruiker->getId()), 'edit' => 1)), "Edit");
        ifaceButton(serviceref($_REQUEST['content'], array('Gebruiker' => urlencode($Gebruiker->getId()), 'del' => 1)), "Delete");
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Gebruiker is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Gebruiker object selected - Meterkast - ADL Prototype</TITLE>");
        ?>
<i>No Gebruiker object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #5
0
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1','" . urlencode($Concept->getId()) . "');", "Save");
            $buttons .= ifaceButton(serviceref($_REQUEST['content'], array('Concept' => urlencode($Concept->getId()))), "Cancel");
        }
    } else {
        $buttons = $buttons;
        $buttons = $buttons;
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Concept is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Concept object selected - Atlas - ADL Prototype</TITLE>");
        ?>
<i>No Concept object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #6
0
    $name = mysql_real_escape_string($name);
    mysql_select_db('thengamer_userdb');
    query("DELETE FROM users WHERE id = {$old_id} LIMIT 1");
    $rs = query("SELECT COUNT(*) FROM users WHERE id = {$id}");
    list($num) = mysql_fetch_row($rs);
    if ($num) {
        query("UPDATE users SET id = {$id}, name = '{$name}' WHERE id = {$old_id} LIMIT 1");
        logAction("updated user {$id} with username \"{$name}\" and old id {$old_id}");
    } else {
        query("INSERT INTO users (id, name) VALUES ({$id},'{$name}')");
        logAction("inserted user {$id} with username \"{$name}\"");
    }
    mysql_select_db('thengamer_forum');
    $message = "<p>User added/edited.</p>";
}
writeHead('GFuserDB Moderation');
if (@$_POST['action'] == 'Next...') {
    $id = (int) @$_POST['user'];
    mysql_select_db('thengamer_userdb');
    $rs = query("SELECT name FROM users WHERE id = {$id}");
    list($username) = @mysql_fetch_row($rs);
    mysql_select_db('thengamer_forum');
    $username = htmlspecialchars($username);
    echo <<<ADDEDIT
<h3>Add/edit a user</h3>

<form action="gfuserdb.php" method="post">
  <p>User ID: <input type="text" name="id" value="{$id}" /></p>
  <p>Username: <input type="hidden" name="old_id" value="{$id}" /><input type="text" name="username" value="{$username}" /> <input type="submit" name="action" value="Submit" /></p>  
</form>
ADDEDIT;
예제 #7
0
    if ($Regels->save() !== false) {
        die('ok:' . serviceref($_REQUEST['content']));
    } else {
        die('Please fix errors!');
    }
    exit;
    // do not show the interface
}
$buttons = "";
if (isset($_REQUEST['edit'])) {
    $edit = true;
} else {
    $edit = false;
}
$Regels = new Regels();
writeHead("<TITLE>Regels - Atlas - ADL Prototype</TITLE>" . ($edit ? '<SCRIPT type="text/javascript" src="js/edit.js"></SCRIPT>' : '<SCRIPT type="text/javascript" src="js/navigate.js"></SCRIPT>') . "\n");
if ($edit) {
    echo '<FORM name="editForm" action="' . $_SERVER['PHP_SELF'] . '" method="POST" class="Edit">';
}
?>
<H1>Regels</H1>
    <DIV class="Floater Regellijst">
      <DIV class="FloaterHeader">Regellijst</DIV>
      <DIV class="FloaterContent"><?php 
$Regellijst = $Regels->get_Regellijst();
echo '
          <UL>';
foreach ($Regellijst as $i0 => $idv0) {
    $v0 = display('UserRule', 'display', $idv0);
    echo '
            <LI CLASS="item UI" ID="0.' . $i0 . '">';
예제 #8
0
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1','" . urlencode($Actie->getId()) . "');", "Save");
            $buttons .= ifaceButton(serviceref($_REQUEST['content'], array('Actie' => urlencode($Actie->getId()))), "Cancel");
        }
    } else {
        ifaceButton(serviceref($_REQUEST['content'], array('Actie' => urlencode($Actie->getId()), 'edit' => 1)), "Edit");
        ifaceButton(serviceref($_REQUEST['content'], array('Actie' => urlencode($Actie->getId()), 'del' => 1)), "Delete");
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Actie is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Actie object selected - Meterkast - ADL Prototype</TITLE>");
        ?>
<i>No Actie object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1','" . urlencode($Populatie->getId()) . "');", "Save");
            $buttons .= ifaceButton(serviceref($_REQUEST['content'], array('Populatie' => urlencode($Populatie->getId()))), "Cancel");
        }
    } else {
        $buttons = $buttons;
        $buttons = $buttons;
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Populatie is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Populatie object selected - Atlas - ADL Prototype</TITLE>");
        ?>
<i>No Populatie object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #10
0
    if ($Ops->save() !== false) {
        die('ok:' . serviceref($_REQUEST['content']));
    } else {
        die('Please fix errors!');
    }
    exit;
    // do not show the interface
}
$buttons = "";
if (isset($_REQUEST['edit'])) {
    $edit = true;
} else {
    $edit = false;
}
$Ops = new Ops();
writeHead("<TITLE>Ops - Meterkast - ADL Prototype</TITLE>" . ($edit ? '<SCRIPT type="text/javascript" src="js/edit.js"></SCRIPT>' : '<SCRIPT type="text/javascript" src="js/navigate.js"></SCRIPT>') . "\n");
if ($edit) {
    echo '<FORM name="editForm" action="' . $_SERVER['PHP_SELF'] . '" method="POST" class="Edit">';
}
?>
<H1>Ops</H1>
    <DIV class="Floater Operations">
      <DIV class="FloaterHeader">Operations</DIV>
      <DIV class="FloaterContent"><?php 
$Operations = $Ops->get_Operations();
echo '
          <UL>';
foreach ($Operations as $i0 => $idv0) {
    $v0 = $idv0;
    echo '
            <LI CLASS="item UI" ID="0.' . $i0 . '">';
예제 #11
0
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1','" . urlencode($Bestand->getId()) . "');", "Save");
            $buttons .= ifaceButton(serviceref($_REQUEST['content'], array('Bestand' => urlencode($Bestand->getId()))), "Cancel");
        }
    } else {
        ifaceButton(serviceref($_REQUEST['content'], array('Bestand' => urlencode($Bestand->getId()), 'edit' => 1)), "Edit");
        ifaceButton(serviceref($_REQUEST['content'], array('Bestand' => urlencode($Bestand->getId()), 'del' => 1)), "Delete");
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Bestand is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Bestand object selected - Meterkast - ADL Prototype</TITLE>");
        ?>
<i>No Bestand object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #12
0
    ?>
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1','" . urlencode($Session->getId()) . "');", "Save");
            $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?Session=" . urlencode($Session->getId()), "Cancel");
        }
    } else {
        $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?edit=1&Session=" . urlencode($Session->getId()), "Edit") . ifaceButton($_SERVER['PHP_SELF'] . "?del=1&Session=" . urlencode($Session->getId()), "Delete");
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Session is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Session object selected - VIRO - ADL Prototype</TITLE>");
        ?>
<i>No Session object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #13
0
    ?>
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1','" . urlencode($Party->getId()) . "');", "Save");
            $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?Party=" . urlencode($Party->getId()), "Cancel");
        }
    } else {
        $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?edit=1&Party=" . urlencode($Party->getId()), "Edit") . ifaceButton($_SERVER['PHP_SELF'] . "?del=1&Party=" . urlencode($Party->getId()), "Delete");
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Party is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Party object selected - VIRO - ADL Prototype</TITLE>");
        ?>
<i>No Party object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #14
0
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1','" . urlencode($Session->getId()) . "');", "Save");
            $buttons .= ifaceButton(serviceref($_REQUEST['content'], array('Session' => urlencode($Session->getId()))), "Cancel");
        }
    } else {
        ifaceButton(serviceref($_REQUEST['content'], array('Session' => urlencode($Session->getId()), 'edit' => 1)), "Edit");
        ifaceButton(serviceref($_REQUEST['content'], array('Session' => urlencode($Session->getId()), 'del' => 1)), "Delete");
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Session is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Session object selected - Meterkast - ADL Prototype</TITLE>");
        ?>
<i>No Session object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1','" . urlencode($Relatiedetails->getId()) . "');", "Save");
            $buttons .= ifaceButton(serviceref($_REQUEST['content'], array('Relatiedetails' => urlencode($Relatiedetails->getId()))), "Cancel");
        }
    } else {
        $buttons = $buttons;
        $buttons = $buttons;
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Relatiedetails is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Relatiedetails object selected - Atlas - ADL Prototype</TITLE>");
        ?>
<i>No Relatiedetails object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #16
0
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1','" . urlencode($Rule3->getId()) . "');", "Save");
            $buttons .= ifaceButton(serviceref($_REQUEST['content'], array('Rule3' => urlencode($Rule3->getId()))), "Cancel");
        }
    } else {
        $buttons = $buttons;
        $buttons = $buttons;
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Rule3 is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Rule3 object selected - Atlas - ADL Prototype</TITLE>");
        ?>
<i>No Rule3 object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #17
0
    if ($Magistrates->save() !== false) {
        die('ok:' . $_SERVER['PHP_SELF']);
    } else {
        die('');
    }
    exit;
    // do not show the interface
}
$buttons = "";
if (isset($_REQUEST['edit'])) {
    $edit = true;
} else {
    $edit = false;
}
$Magistrates = new Magistrates();
writeHead("<TITLE>Magistrates - VIRO - ADL Prototype</TITLE>" . ($edit ? '<SCRIPT type="text/javascript" src="edit.js"></SCRIPT>' : '<SCRIPT type="text/javascript" src="navigate.js"></SCRIPT>') . "\n");
if ($edit) {
    echo '<FORM name="editForm" action="' . $_SERVER['PHP_SELF'] . '" method="POST" class="Edit">';
}
?>
<H1>Magistrates</H1>
    <DIV class="Floater Judges">
      <DIV class="FloaterHeader">Judges</DIV>
      <DIV class="FloaterContent"><?php 
$Judges = $Magistrates->get_Judges();
echo '
          <UL>';
foreach ($Judges as $i0 => $v0) {
    echo '
            <LI CLASS="item UI_Judges" ID="0.' . $i0 . '">';
    if (!$edit) {
예제 #18
0
    </DIV>
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1','" . urlencode($ScheduleProcess->getId()) . "');", "Save");
            $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?ScheduleProcess=" . urlencode($ScheduleProcess->getId()), "Cancel");
        }
    } else {
        $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?edit=1&ScheduleProcess=" . urlencode($ScheduleProcess->getId()), "Edit") . ifaceButton($_SERVER['PHP_SELF'] . "?del=1&ScheduleProcess=" . urlencode($ScheduleProcess->getId()), "Delete");
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The ScheduleProcess is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No ScheduleProcess object selected - VIRO - ADL Prototype</TITLE>");
        ?>
<i>No ScheduleProcess object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #19
0
    ?>
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1','" . urlencode($AreaOfLaw->getId()) . "');", "Save");
            $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?AreaOfLaw=" . urlencode($AreaOfLaw->getId()), "Cancel");
        }
    } else {
        $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?edit=1&AreaOfLaw=" . urlencode($AreaOfLaw->getId()), "Edit") . ifaceButton($_SERVER['PHP_SELF'] . "?del=1&AreaOfLaw=" . urlencode($AreaOfLaw->getId()), "Delete");
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The AreaOfLaw is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No AreaOfLaw object selected - VIRO - ADL Prototype</TITLE>");
        ?>
<i>No AreaOfLaw object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #20
0
    ?>
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1','" . urlencode($Magistrate->getId()) . "');", "Save");
            $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?Magistrate=" . urlencode($Magistrate->getId()), "Cancel");
        }
    } else {
        $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?edit=1&Magistrate=" . urlencode($Magistrate->getId()), "Edit") . ifaceButton($_SERVER['PHP_SELF'] . "?del=1&Magistrate=" . urlencode($Magistrate->getId()), "Delete");
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Magistrate is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Magistrate object selected - VIRO - ADL Prototype</TITLE>");
        ?>
<i>No Magistrate object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #21
0
    ?>
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1','" . urlencode($Court->getId()) . "');", "Save");
            $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?Court=" . urlencode($Court->getId()), "Cancel");
        }
    } else {
        $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?edit=1&Court=" . urlencode($Court->getId()), "Edit") . ifaceButton($_SERVER['PHP_SELF'] . "?del=1&Court=" . urlencode($Court->getId()), "Delete");
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Court is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Court object selected - VIRO - ADL Prototype</TITLE>");
        ?>
<i>No Court object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #22
0
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . serviceref($_REQUEST['content']) . "&save=1','" . urlencode($Signal->getId()) . "');", "Save");
            $buttons .= ifaceButton(serviceref($_REQUEST['content'], array('Signal' => urlencode($Signal->getId()))), "Cancel");
        }
    } else {
        $buttons = $buttons;
        $buttons = $buttons;
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Signal is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Signal object selected - Atlas - ADL Prototype</TITLE>");
        ?>
<i>No Signal object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #23
0
    ?>
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1','" . urlencode($Document->getId()) . "');", "Save");
            $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?Document=" . urlencode($Document->getId()), "Cancel");
        }
    } else {
        $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?edit=1&Document=" . urlencode($Document->getId()), "Edit") . ifaceButton($_SERVER['PHP_SELF'] . "?del=1&Document=" . urlencode($Document->getId()), "Delete");
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Document is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Document object selected - VIRO - ADL Prototype</TITLE>");
        ?>
<i>No Document object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);
예제 #24
0
    </DIV>
    <?php 
    if ($edit) {
        echo '</FORM>';
    }
    if ($del) {
        echo "<P><I>Delete failed</I></P>";
    }
    if ($edit) {
        if ($new) {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1',document.forms[0].ID.value);", "Save");
        } else {
            $buttons .= ifaceButton("JavaScript:save('" . $_SERVER['PHP_SELF'] . "?save=1','" . urlencode($Correspondence->getId()) . "');", "Save");
            $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?Correspondence=" . urlencode($Correspondence->getId()), "Cancel");
        }
    } else {
        $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?edit=1&Correspondence=" . urlencode($Correspondence->getId()), "Edit") . ifaceButton($_SERVER['PHP_SELF'] . "?del=1&Correspondence=" . urlencode($Correspondence->getId()), "Delete");
    }
} else {
    if ($del) {
        writeHead("<TITLE>Delete geslaagd</TITLE>");
        echo 'The Correspondence is deleted';
    } else {
        // deze pagina zou onbereikbaar moeten zijn
        writeHead("<TITLE>No Correspondence object selected - VIRO - ADL Prototype</TITLE>");
        ?>
<i>No Correspondence object selected</i><?php 
    }
    $buttons .= ifaceButton($_SERVER['PHP_SELF'] . "?new=1", "New");
}
writeTail($buttons);