PATH:
home
/
letacommog
/
letaweb
/
admin
/
modules
/
countdown
<div class="countdown"> <div id="<?php echo $this->page_id;?>_countdown"> </div> </div> <?php $string = ""; $enddate= false; $units = ''; $sep = ''; foreach($this->units as $key=>$value) { if($value == 1) { $units.= $sep.$key; $sep=','; } } $units = '['.$units.']'; if(isset($this->end) && !$this->end_now) { $enddate= ''; foreach($this->end as $key=>$value) { $enddate.= $key.':'.$value.','; } $enddate = '{'.$enddate.'}'; } $startdate= false; if(isset($this->start)&& !$this->start_now) { $startdate= ''; foreach($this->start as $key=>$value) { $startdate.= $key.':'.$value.','; } $startdate = '{'.$startdate.'}'; } $options = '{'. ($startdate !== false ? 'start:'.$startdate.',' : ''). ($enddate !== false ? 'end:'.$enddate.',' : ''). 'units:'.$units.','. 'empty_label:"'.$this->empty_label.'",'. 'max_value:'.$this->max.','. 'digits:'.$this->digits.','. 'suffix_message:"'.$this->suffix_message.'",'. 'post_message:"'.$this->post_message.'",'. '}'; $script = "$('#".$this->page_id."_countdown').countdown(".$options.");"; $this->registerScript('', $script); ?>
[+]
..
[-] backend.php
[edit]
[-] backend.js
[edit]
[-] frontend_view.php
[edit]
[-] frontend_class.php
[edit]
[-] frontend_script.php
[edit]