знаю что надо использовать tinyMCE.activeEditor.getContent(), но встаёт вопрос — как отправить этот "getContent"?
var myContent = tinyMCE.activeEditor.getContent();
$.post('submit.php', myContent, function(msg){
alert('отправлено!')
})
<div style="clear: both"></div>
$from = $request->getParameter('time_from', '00:00:00', 'filter_time');
$to = $request->getParameter('time_to', '23:59:59', 'filter_time');
$tasks = $tasks_model->getTasksByRange($from, $to);
$today = 'WHERE date >= ' . date('Y-m-d 00:00:00', strtotime('today')) . ' AND date < ' . date('Y-m-d 00:00:00', strtotime('tomorrow'));
$yesterday = 'WHERE date >= ' . date('Y-m-d 00:00:00', strtotime('yesterday')) . ' AND date < ' . date('Y-m-d 00:00:00', strtotime('today'));
$this_week_sql = 'WHERE date >= ' . date('Y-m-d 00:00:00', strtotime('last monday')) . ' AND date < ' . date('Y-m-d 00:00:00', strtotime('next monday'));
date('Y-m-d H:i:s')
и не забываем про часовой пояс php.net/manual/en/timezones.phpNevertheless, the most important concept to remember about the checked attribute is that it does not correspond to the checked property. The attribute actually corresponds to the defaultChecked property and should be used only to set the initial value of the checkbox. The checked attribute value does not change with the state of the checkbox, while the checked property does. Therefore, the cross-browser-compatible way to determine if a checkbox is checked is to use the property:
- if ( elem.checked )
- if ( $( elem ).prop( "checked" ) )
- if ( $( elem ).is( ":checked" ) )