samcy (April 4th, 2013)
<?php $expire_date = get_post_meta($post->ID, 'cp_sys_expire_date', true); if(empty($expire_date)){ $duration_days = get_post_meta($post->ID, 'cp_sys_ad_duration', true); //stytem wide ad duraton $duration_seconds = (int)$duration_days * 86400; //days * seconds in a day $duration_date = current_time('timestamp',0) + $duration_seconds; //unix timestamp of expire date $expire_date = date('m/d/Y H:i:s',$duration_date); //set the date in the correct format } ?> <td><input readonly type="text" name="cp_sys_expire_date" class="text" id="datepicker" value="<?php echo esc_html($expire_date); ?>" /></td>
samcy (April 4th, 2013)
There are currently 1 users browsing this thread. (0 members and 1 guests)