Ejemplo n.º 1
0
foreach ($promo[0] as $key => $value) {
    switch ($key) {
        case 'caption':
            textArea($key, $value);
            break;
        case 'title':
            textInput($key, $value);
            break;
        case 'paypal_url':
            textInput($key, $value);
            break;
        case 'start_date':
            textInput($key, $value, true);
            break;
        case 'desc':
            textInput($key, $value);
            break;
            // case 'date':
            // 	textInput($key , $value, true);
            // 	break;
        // case 'date':
        // 	textInput($key , $value, true);
        // 	break;
        case 'id':
            hiddenInput($key, $value);
            break;
    }
}
?>
<input type="hidden" name="processing" value="true"></input>
<button type="submit" class="btn btn-secondary-outline btn-block m-b-md"><i class="fa fa-save"></i> Save Changes</button>
Ejemplo n.º 2
0
function otherInput($name, $size)
{
    checkboxInput($name, 'useOther', '');
    echo "<strong>otherwise</strong>\n";
    textInput('add_' . $name, '', $size);
    return 1;
}
echo '</div>';
echo '<p>Are you at threat of utility shutoffs? </p>';
echo '<div>';
checkBox("HeatShutoff", "Heat");
checkBox("LightShutoff", "Light");
checkBox("WaterShutoff", "Water");
textInput("OtherShutoff", "Other");
echo '</div>';
echo '<p>Are you at threat of housing displacement?</p>';
echo '<div>';
checkBox("TaxesDifficulty", "Difficulty Paying Taxes");
checkBox("ForeclosureNotice", "Foreclosure Notice");
checkBox("LandlordEviction", "Landlord Eviction");
textInput("OtherHousingIssue", "Other");
echo '</div>';
textInput("AdditionalServices", "Are there any additional services you need?");
echo '<div class="fieldWrapper" id="divOtherNotes"><label for="OtherNotes">Other/Notes: </label><textarea id="OtherNotes" name="OtherNotes" rows="3" cols="50">' . $row["OtherNotes"] . '</textarea></div>';
dateInput("EnrollmentDate", "Enrollment Date");
echo '<h3>Christmas Coat Orders:</h3>';
checkBox("CoatOrder", "Coat Ordered");
echo 'Have you participated in previous Christmas food distributions in Brightmoor? ';
checkBox("PreviousChristmasFoodYes", "Yes");
checkBox("PreviousChristmasFoodNo", "No");
dateInput("CoatOrderDate", "Coat Order Date");
if ($row["ClientID"] != "") {
    echo '<input type="submit" value="Update Client Information"/></form>';
} else {
    echo '<input type="submit" value="Enter new client"/></form>';
}
?>
</div><!--end form style -->