欢迎各位兄弟 发布技术文章
这里的技术是共享的
{ $get = _getFormFileValue(); $form['date']['date_start'] = array( '#title' => '开始时间', '#type' => 'date_popup', // Provided by the date_popup module '#date_format' => 'Y-m-d', // Uses the PHP date() format - http://php.net/manual/en/function.date.php '#date_year_range' => '-20:+20', // Limits the year range to the next two upcoming years '#required' => False, '#default_value' => $get['start_date'], // Default value must be in 'Y-m-d' format. ); $form['date1']['date_end'] = array( '#title' => '结束时间', '#type' => 'date_popup', // Provided by the date_popup module '#date_format' => 'Y-m-d', // Uses the PHP date() format - http://php.net/manual/en/function.date.php '#date_year_range' => '-20:+20', // Limits the year range to the next two upcoming years '#required' => False, '#default_value' => $get['end_date'], // Default value must be in 'Y-m-d' format. ); $form['date']['#attributes']['class'] = 'date_item'; $form['date1']['#attributes']['class'] = 'date_item'; //来源 $form['field_qq_property'] = array( '#type' => 'select', '#title' => '来源', '#default_value' => $get['field_qq_property'], '#options' => $get['field_qq_properties'], '#attributes' => array('class'=>'search-input-div'), '#multiple' => true, '#size' => 8 ); //状态 $form['field_chat_status'] = array( '#type' => 'select', '#title' => '状态', '#default_value' => $get['field_chat_status'], '#options' => $get['field_chat_statuses'], '#attributes' => array('class'=>'search-input-div') ); $form['date2']['submit'] = array('#type' => 'submit', '#value' => '查询'); $form['#method'] = 'get'; return $form; }