Changeset View
Changeset View
Standalone View
Standalone View
fundraisers/randameetings2016/index.php
Show All 22 Lines | 21 | <body class="top-navigation" data-spy="scroll" data-target="#navbar" onload="fixNavbarOffset()"> | |||
---|---|---|---|---|---|
23 | <?php | 23 | <?php | ||
24 | $page_disablekdeevdonatebutton = true; | 24 | $page_disablekdeevdonatebutton = true; | ||
25 | $page_title="Randa Meetings 2016 fundraising"; | 25 | $page_title="Randa Meetings 2016 fundraising"; | ||
26 | 26 | | |||
27 | $goal=24000; | 27 | $goal=24000; | ||
28 | $enddate="2016-07-22"; | 28 | $enddate="2016-07-22"; | ||
29 | $daystogo=floor((strtotime($enddate)-time())/(60*60*24)); | 29 | $daystogo=floor((strtotime($enddate)-time())/(60*60*24)); | ||
30 | 30 | | |||
31 | require("donations_auth.inc"); | 31 | require("config.php"); | ||
32 | 32 | | |||
33 | $query = "select *,unix_timestamp(date) as date_t from randameetings2016donations order by date desc;"; | 33 | $res = $dbConnection->prepare("SELECT *, UNIX_TIMESTAMP(date) AS date_t FROM randameetings2016donations ORDER BY date DESC;"); | ||
34 | $q = mysql_query($query,$sq); | 34 | $res->execute(); | ||
35 | echo mysql_error(); | | |||
36 | $total = 0; | 35 | $total = 0; | ||
37 | $count = 0; | 36 | $count = 0; | ||
38 | $table = ""; | 37 | $table = ""; | ||
39 | while ($row = mysql_fetch_array($q)) { | 38 | while ($row = $res->fetch()) { | ||
40 | $msg = htmlspecialchars($row["message"]); | 39 | $msg = htmlspecialchars($row["message"]); | ||
41 | if ($msg == "") { | 40 | if ($msg == "") { | ||
42 | $msg = "<i>Anonymous donation</i>"; | 41 | $msg = "<i>Anonymous donation</i>"; | ||
43 | } | 42 | } | ||
44 | $total += $row["amount"]; | 43 | $total += $row["amount"]; | ||
45 | $count++; | 44 | $count++; | ||
46 | 45 | | |||
47 | $table.="<tr>"; | 46 | $table.="<tr>"; | ||
▲ Show 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | 156 | <div class="ibox-content"> | |||
159 | <h1 class="no-margins current-amount">€<?php echo $total; ?></h1> | 158 | <h1 class="no-margins current-amount">€<?php echo $total; ?></h1> | ||
160 | <small>Pledged of €<?php echo $goal; ?> goal</small> | 159 | <small>Pledged of €<?php echo $goal; ?> goal</small> | ||
161 | <p></p> | 160 | <p></p> | ||
162 | <h2><?php echo $percent; ?>%</h2> | 161 | <h2><?php echo $percent; ?>%</h2> | ||
163 | <div class="progress progress-mini"> | 162 | <div class="progress progress-mini"> | ||
164 | <?php echo "<div style='width: ".$percent."%;' class='progress-bar'></div>"; ?> | 163 | <?php echo "<div style='width: ".$percent."%;' class='progress-bar'></div>"; ?> | ||
165 | </div> | 164 | </div> | ||
166 | </div> | 165 | </div> | ||
167 | <!-- | 166 | <?php /* | ||
168 | <div class="ibox-content"> | 167 | <div class="ibox-content"> | ||
169 | <h1 class="no-margins pull-right text-success"><i class="fa fa-calendar"></i></h1> | 168 | <h1 class="no-margins pull-right text-success"><i class="fa fa-calendar"></i></h1> | ||
170 | <h1 class="no-margins"><?php echo $daystogo; ?></h1> | 169 | <h1 class="no-margins"><?php echo $daystogo; ?></h1> | ||
171 | <small>Days to go</small> | 170 | <small>Days to go</small> | ||
172 | </div> | 171 | </div> | ||
173 | <div class="ibox-content"> | 172 | <div class="ibox-content"> | ||
174 | <h1 class="no-margins pull-right text-success"><i class="fa fa-heart"></i></h1> | 173 | <h1 class="no-margins pull-right text-success"><i class="fa fa-heart"></i></h1> | ||
175 | <a data-toggle="modal" class="btn btn-success" href="#modal-form">Back this campaign</a>a | 174 | <a data-toggle="modal" class="btn btn-success" href="#modal-form">Back this campaign</a>a | ||
Show All 31 Lines | 181 | <div class="col-md-12 b-r"><h3 class="m-t-none m-b">Donate to Randa Meetings 2016 Fundraising Campaign</h3> | |||
207 | </form> | 206 | </form> | ||
208 | </div> | 207 | </div> | ||
209 | </div> | 208 | </div> | ||
210 | </div> | 209 | </div> | ||
211 | </div> | 210 | </div> | ||
212 | </div> | 211 | </div> | ||
213 | </div> | 212 | </div> | ||
214 | </div> | 213 | </div> | ||
215 | --> | 214 | */ ?> | ||
216 | </div> | 215 | </div> | ||
217 | </div> | 216 | </div> | ||
218 | </div> | 217 | </div> | ||
219 | <div class="row anchor" id="about"> | 218 | <div class="row anchor" id="about"> | ||
220 | <div class="col-md-7"> | 219 | <div class="col-md-7"> | ||
221 | <div class="ibox float-e-margins"> | 220 | <div class="ibox float-e-margins"> | ||
222 | <div class="ibox-title"> | 221 | <div class="ibox-title"> | ||
223 | <h5>About this fundraising campaign</h5> | 222 | <h5>About this fundraising campaign</h5> | ||
▲ Show 20 Lines • Show All 463 Lines • Show Last 20 Lines |