0byt3m1n1
Path:
/
var
/
www
/
listcrawler.app
/
public_html
/
admin
/
forms
/
[
Home
]
File: subarea_form.php
<fieldset> <div class="form-group"> <label for="location">Select a City:</label> <select name="location_id" id="location_id" style="width: 50%;" required="required" class="form-control"> <option value="">Select a City</option> <?php foreach ($getLocations as $location): ?> <option value="<?php echo $location["id"]; ?>" <?php if($edit && ($location["id"] == $subarea['location_id'])) { echo "selected";} ?>><?php echo $location["location_name"]; ?></option> <?php endforeach; ?> </select> </div> <div class="form-group"> <label for="subarea_name">Sub Area Name *</label> <input type="text" name="subarea_name" value="<?php echo htmlspecialchars($edit ? $subarea['subarea_name'] : '', ENT_QUOTES, 'UTF-8'); ?>" placeholder="Sub Area Name" class="form-control" required="required" id="subarea_name" style="width: 50%;"> </div> <div class="form-group"> <br><label for="subarea_name">Is Active? *</label> <br><br> <input type="radio" id="is_active_y" name="is_active" value="Y" <?php if($edit && ($subarea['is_active'] == 'Y')) { echo "checked";} ?>> <label for="active">Active</label><br> <input type="radio" id="is_active_n" name="is_active" value="N" <?php if($edit && ($subarea['is_active'] == 'N')) { echo "checked";} ?>> <label for="inactive">Inactive</label><br> </div> <div class="form-group text-center"> <label></label> <button type="submit" class="btn btn-warning" >Save <i class="glyphicon glyphicon-send"></i></button> </div> </fieldset>