<?php @(include "config.php"); @(include "class/Advertisement.Class.php"); $Advertisement = new Advertisement(); ?> <html> <meta charset="UTF-8"> <head> <title>Example Script : Advertisement Clicks History</title> </head> <body> <h3> Advertisement Clicks History</h3> <?php $Advertisement->DisplayBanner("120x60", "2"); ?> <h3>Advertisement History</h3> <div>Total Clicks : <?php echo count($Advertisement->data); ?> </div> <table width="50%" border="1" cellpadding="3" cellspacing="3"> <tr> <th>Sr No.</th> <th>IP Address</th> <th>Click Time</th> </tr> <?php if (!empty($Advertisement->data)) { $i = 0; ?>
" placeholder="Enter Destination URL. Example :http://www.google.com" size="50"> </div> <div class="row"> <div>Advertisement Impression : </div> <input type="text" name="impression" value="<?php echo @$_POST['impression']; ?> " placeholder="Enter Advertisement Impression in Numeric Value. Example : 100" size="50"> </div> <div class="row"> <input type="submit" name="submit_add" value="Add Advertisement"> </div> </form> <hr> <?php $Advertisement->DisplayBanner("120x60", "1"); ?> <?php $Advertisement->DisplayBanner("125x125", "2"); ?> <?php $Advertisement->DisplayBanner("468x60", "1"); ?> <h3>Manage Advertisement</h3> <table width="100%" border="1" cellpadding="3" cellspacing="3"> <tr> <th>#ID</th> <th>Title</th> <th>Description</th> <th>Image</th> <th>Impression</th>