0byt3m1n1
Path:
/
var
/
www
/
listcrawler.app
/
public_html
/
admin
/
forms
/
[
Home
]
File: sponsor_form.php
<fieldset> <div class="form-group"> <label for="ad_title">Ad Title *</label> <input type="text" name="ad_title" value="<?php echo htmlspecialchars($edit ? $sponsor['ad_title'] : '', ENT_QUOTES, 'UTF-8'); ?>" placeholder="Ad Title" class="form-control" required="required" id="ad_title"> </div> <div class="form-group"> <label for="ad_url">Ad URL *</label> <input type="text" name="ad_url" value="<?php echo htmlspecialchars($edit ? $sponsor['ad_url'] : '', ENT_QUOTES, 'UTF-8'); ?>" placeholder="Ad URL" class="form-control" required="required" id="ad_url"> </div> <div class="form-group"> <?php if ($edit && isset($pics[0]) && $pics[0] && file_exists("../sponsor_pics/".$pics[0])) { ?> <div style="margin-top:30px;"> <a href="/sponsor_pics/<?php echo $pics[0];?>" data-lightbox="lc-pics"> <img src="/sponsor_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("../sponsor_pics/".$pics[1])) { ?> <div style="margin-top:30px;"> <a href="/sponsor_pics/<?php echo $pics[1];?>" data-lightbox="lc-pics"> <img src="/sponsor_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("../sponsor_pics/".$pics[2])) { ?> <div style="margin-top:30px;"> <a href="/sponsor_pics/<?php echo $pics[2];?>" data-lightbox="lc-pics"> <img src="/sponsor_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>