Mercurial > hg > fapweb
comparison pages/vote.inc.php @ 1075:7e497188e4c6
Use long tags.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 24 Jan 2017 17:59:55 +0200 |
parents | 5f92fa5e683a |
children | 01783161eeb2 |
comparison
equal
deleted
inserted
replaced
1074:48e16e856646 | 1075:7e497188e4c6 |
---|---|
1 <? | 1 <?php |
2 // | 2 // |
3 // FAPWeb - Simple Web-based Demoparty Management System | 3 // FAPWeb - Simple Web-based Demoparty Management System |
4 // Competition voting page | 4 // Competition voting page |
5 // (C) Copyright 2012-2015 Tecnic Software productions (TNSP) | 5 // (C) Copyright 2012-2015 Tecnic Software productions (TNSP) |
6 // | 6 // |
96 jsSendPOSTRequest("action=set&entry_id="+eid+"&vote="+value, msuccess, mfail); | 96 jsSendPOSTRequest("action=set&entry_id="+eid+"&vote="+value, msuccess, mfail); |
97 return false; | 97 return false; |
98 } | 98 } |
99 | 99 |
100 </script> | 100 </script> |
101 <? | 101 <?php |
102 // Try fetching previously stored votes | 102 // Try fetching previously stored votes |
103 $sql = stPrepareSQL( | 103 $sql = stPrepareSQL( |
104 "SELECT entry_id,value FROM votes WHERE key_id=%d", | 104 "SELECT entry_id,value FROM votes WHERE key_id=%d", |
105 stGetSessionItem("key_id")); | 105 stGetSessionItem("key_id")); |
106 | 106 |