Blank Date

Version 1.0.1 added 1 year ago by chriscarvache

HOW TO INSTALL: To install this package, copy the following code and paste it into your Pods >> Package Manager under the Import tab and follow instructions there.

1.0.1 Notes

Helper updated

About this Package

<?php $x = '0000-00-00 00:00:00';
$currentDate = date('Y-m-d G:i:s');
if (!empty($value)) { $x = $value; }
?>
<input type="text" class="form <?php echo $coltype . ' ' . $name; ?>" id="pods_form1_<?php echo $name; ?>" value="<?php echo $x; ?>" />Use Current Date
<script type="text/javascript">
jQuery(function($){
$('.fcp_current_date[rel=' + 'pods_form1_<?php echo $name; ?>]').click(function(){
$('#pods_form1_<?php echo $name; ?>').val('<?php echo $currentDate; ?>');
});
});
</script>