0byt3m1n1
Path:
/
var
/
www
/
listcrawler.app
/
public_html
/
admin
/
forms
/
[
Home
]
File: list_form.php
<fieldset> <div class="form-group"> <label for="title">Ad Title *</label> <textarea name="list_title" placeholder="Ad Title" class="form-control" id="list_title"><?php echo htmlspecialchars(($edit) ? $list['list_title'] : '', ENT_QUOTES, 'UTF-8'); ?></textarea> </div> <div class="form-group"> <label for="detail">Ad Detail *</label> <textarea name="list_desc" placeholder="Ad Detail" class="form-control" id="list_desc" style="height: 230px;"><?php echo htmlspecialchars(($edit) ? $list['list_desc'] : '', ENT_QUOTES, 'UTF-8'); ?></textarea> </div> <div class="form-group"> <label for="age">Age *</label> <input type="text" name="age" value="<?php echo htmlspecialchars($edit ? $list['age'] : '', ENT_QUOTES, 'UTF-8'); ?>" placeholder="Age" class="form-control" required="required" id="age" style="width: 50%;"> </div> <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"] == $lists_locations['location_id'])) { echo "selected";} ?>><?php echo $location["location_name"]; ?></option> <?php endforeach; ?> </select> </div> <div class="form-group"> <?php if ($edit && isset($pics[0]) && $pics[0] && file_exists("../pics/".$pics[0])) { ?> <div style="margin-top:30px;"> <a href="/pics/<?php echo $pics[0];?>" data-lightbox="lc-pics"> <img src="/pics/<?php echo $pics[0];?>" width = "50"> </a> <a href="#" class="btn btn-danger delete_btn" data-toggle="modal" data-target="#confirm-delete-<?php echo $pic_ids[0]; ?>"><i class="glyphicon glyphicon-trash"></i></a> <input type="hidden" name="pic_1_id" id = "pic_1_id" value="<?php echo $pic_ids[0]; ?>"> </div> <?php } ?> <label for="pic1">Pic 1</label> <input type="file" name="pic1" placeholder="Upload the pic 1" class="form-control" id = "pic1" style="width: 50%;"> </div> <div class="form-group"> <?php if ($edit && isset($pics[1]) && $pics[1] && file_exists("../pics/".$pics[1])) { ?> <div style="margin-top:30px;"> <a href="/pics/<?php echo $pics[1];?>" data-lightbox="lc-pics"> <img src="/pics/<?php echo $pics[1];?>" width = "50"> </a> <a href="#" class="btn btn-danger delete_btn" data-toggle="modal" data-target="#confirm-delete-<?php echo $pic_ids[1]; ?>"><i class="glyphicon glyphicon-trash"></i></a> <input type="hidden" name="pic_2_id" id = "pic_2_id" value="<?php echo $pic_ids[1]; ?>"> </div> <?php } ?> <label for="pic2">Pic 2</label> <input type="file" name="pic2" placeholder="Upload the pic 2" class="form-control" id = "pic2" style="width: 50%;"> </div> <div class="form-group"> <?php if ($edit && isset($pics[2]) && $pics[2] && file_exists("../pics/".$pics[2])) { ?> <div style="margin-top:30px;"> <a href="/pics/<?php echo $pics[2];?>" data-lightbox="lc-pics"> <img src="/pics/<?php echo $pics[2];?>" width = "50"> </a> <a href="#" class="btn btn-danger delete_btn" data-toggle="modal" data-target="#confirm-delete-<?php echo $pic_ids[2]; ?>"><i class="glyphicon glyphicon-trash"></i></a> <input type="hidden" name="pic_3_id" id = "pic_3_id" value="<?php echo $pic_ids[2]; ?>"> </div> <?php } ?> <label for="pic3">Pic 3</label> <input type="file" name="pic3" placeholder="Upload the pic 3" class="form-control" id = "pic3" style="width: 50%;"> </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>