Closed ionutfechete closed 10 years ago
fixed it by using custom template..but maybe there is a filter..still awaiting response..thanks!
Hi, Ad1. There are two possibilities:
'date_accepted' => new Zend_Db_Expr("TO_CHAR(date_accepted, 'MM/YYYY')"),
public function init()
{
$this->getHeader('time')->getCell()->addDecorator('callable', array(
'callable' => function($context, $record){
return date('Y-m-d', $record['time'])
}
));
}
Ad2. Could You more explain Your problem. Maybe You think about sending additional param like this:
hi, I finally used a custom template, and it worked! Thanks for the answer!
could by like this code with bootstrap 3 datepicker
<script>
$("#tableContainer").zfTable('cheque', {
complete: function () {
$("input[name='zff_Date']").delay(800).datepicker({
format: 'yyyy-mm-dd'
}).on('changeDate', function (e) {
$(this).datepicker('hide');
});
}
});
</script>
Is there support for converting timestamps from database to something like date('Y-m-d', $time); in zfTable? Also, how can I build a dropdown (e.g. for checking if, for example a value in the form is 0, then select an option from the dropdown, if is 1 select another, but the select has to be in every cell of the column of the table)? Thanks a lot!