} } } $result = strtotime($max) - strtotime($time); if ($result <= 0) { return 300; } else { return $result; } } ?> <div class = "content"> <div id = "timer_line"> <form name = "timeLeftForm"> <input type = "hidden" id = "timeLeft" value = "<?php echo getTimeLeft($seats, $time); ?> " style="display:none"> </form> <div id = "mytimer"></div> </div> <script src = "/application/views/timer.js"></script> <script type="text/javascript"> /* Данная функция создаёт кроссбраузерный объект XMLHTTP */ function getXmlHttp() { var xmlhttp; try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
' src="<?php echo is_null($row->imgurl) ? $this->themePath('img/') . Flux::config('ImageUploadPath') . '/' . $row->imgname : $row->imgurl; ?> " /> </button> </td> <td style="text-align:center"><?php echo number_format($row->votepoints); ?> </td> <td style="text-align:center"><?php echo $row->voteinterval . " " . ((int) $row->voteinterval > 1 ? "Hours" : "Hour"); ?> </td> <td style="text-align:center"><?php echo isVoted($row->id, $server) !== FALSE ? getTimeLeft(isVoted($row->id, $server)) : Flux::message('VoteNow'); ?> </td> </tr> <?php } ?> </table> </form> <script type="text/javascript"> $(function() { $('.vote-button').click(function() { var id = $(this).val(); var vote_sites = new Array(); <?php