Exemple #1
0
if ($particularsCount <= 0) {
    $numParticulars = 6;
}
drawHeader();
drawPageTitle('Create Table', $errMsg);
?>

<div class="container_mid">
<fieldset class="top">
New Table
</fieldset>

<fieldset class="middle">
<table class="input_form">
<?php 
drawSelectField('drawDBConnection', 'DB Connection', 'DB_Connection_ID');
drawTextField('Table Name', 'Table_Name');
drawTextField('Folder / Subdirectory', 'Folder');
drawTextField('Remarks', '', '', 'Textarea');
drawMultiFieldStart('Table Pages');
if ($numParticulars < 1) {
    $numParticulars = 1;
}
echo "<table>\n      <tr>\n          <td>&nbsp;</td>\n          <td>Page</td>\n          <td>Filename</td>\n      </tr>";
for ($a = 0; $a < $numParticulars; $a++) {
    echo "<tr><td>" . ($a + 1) . "</td><td>";
    init_var($Page_ID[$a]);
    drawTablePage($Page_ID[$a], TRUE);
    echo "&nbsp;&nbsp;";
    echo "</td><td>";
    drawTextField('', 'Filename', FALSE, '', FALSE, TRUE, $a);
Exemple #2
0
drawHeader();
drawPageTitle('Edit Project', $errMsg);
?>
<input type="hidden" name="Orig_Project_ID" value="<?php 
echo $_SESSION['Project_ID'];
?>
">
<div class="container_mid_huge">
<fieldset class="top">
Modify Project Data
</fieldset>

<fieldset class="middle">
<table class="input_form">
<?php 
drawTextField('Project Name', 'Project_Name');
drawTextField('Client Name', 'Client_Name');
drawTextField('Base Directory', 'Base_Directory');
drawSelectField('drawDBConnection', 'Default DB Connection', 'Database_Connection_ID');
drawTextField('Description', 'Project_Description', '', 'Textarea');
?>
</table>
</fieldset>
<fieldset class="bottom">
<?php 
drawSubmitCancel();
?>
</fieldset>
</div>
<?php 
drawFooter();
    }
}
drawHeader();
drawPageTitle('Define Relationship', $errMsg);
?>
<div class="container_mid_huge">
<fieldset class="top">
New Relationship
</fieldset>

<fieldset class="middle">
<table class="input_form">
<?php 
drawSelectField('drawTableRelationType', 'Relation', 'Relation', TRUE, 'id="relation_field" onChange="toggleChildFieldSubtext()"');
drawSelectField('drawFieldsParent', 'Parent', 'Parent_Field_ID');
drawSelectField('drawFields', 'Child', 'Child_Field_ID');
drawTextField('Child Field Subtext', 'Child_Field_Subtext', FALSE, 'text', TRUE, FALSE, 0, 'size="50"');
?>
</table>
</fieldset>
<fieldset class="bottom">
<?php 
drawSubmitCancel();
?>
</fieldset>
<?php 
drawSubtextFields($Parent_Field_ID);
?>
</div>
<script>
function toggleChildFieldSubtext()
drawSelectField('drawBookListGenerator', 'Book List Generator: ', 'Book_List_Generator', FALSE);
?>
        <br><br>
            
    <li> If Control Type is "Drop-down List", choose the list source type: <br>
        <?php 
$arrayItems = array('Items' => array('Predefined list (choose specific list in #3)', 'SQL generated'), 'Values' => array('Predefined', 'Source'), 'PerLine' => TRUE);
drawRadioField($arrayItems, '', 'DropdownType', FALSE);
?>
<br>

    <li> If Control Type is 'Radio', choose a Predefined List. <br>
        Or if Control Type is 'Drop-down List' but you still want <br> 
        to use a predefined list, choose the list you want here. <br>
        <?php 
drawSelectField('drawPredefinedList', 'Predefined List: ', 'List_ID', FALSE);
?>
        <br><br>
        
    <li> If Control Type is 'Drop-down List' and you chose <br>
        SQL generated source, specify the parameters here:<br>
            <table align=center border=1>
            <tr><td>
                <table><tr><td>
            <?php 
if (!isset($selectCount)) {
    $selectCount = 2;
    $Select_Field_Display[0] = 'No';
    $Select_Field_Display[1] = 'Yes';
}
$arrayMultiField = array("FieldLabels" => array('FIELD', 'DISPLAY (NO means use as value)'), "FieldControls" => array('drawListSourceSelectField', 'drawListSourceSelectFieldDisplay'), "FieldVariables" => array('Select_Field_ID', 'Select_Field_Display'));