Beispiel #1
0
                } elseif ($column->fdSearchType == 7) {
                    $begin = date('Y-m-d', strtotime('-30 days'));
                } elseif ($column->fdSearchType == 8) {
                    $begin = date('Y-m-d', strtotime('-90 days'));
                } else {
                    $begin = date('Y-m-d', strtotime('-180 days'));
                }
                echo '<div class="form-group">';
                echo "<label>{$column->fdDesc}</label>&nbsp;";
                echo DatePicker::widget(['name' => $column->fdName . '_begin', 'name2' => $column->fdName . '_end', 'type' => DatePicker::TYPE_RANGE, 'value' => $begin, 'value2' => $end, 'options' => ['placeholder' => '开始日期'], 'options2' => ['placeholder' => '结束日期'], 'separator' => '至', 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
                echo '</div>';
                break;
            case 10:
                echo '<div class="form-group">';
                echo "<label>{$column->fdDesc}</label>&nbsp;";
                echo Html::dropDownList('country', '', Dictionary::getArea(), ['id' => 'country' . $table->id, 'tid' => $table->id, 'class' => 'form-control country', 'style' => 'width: auto;', 'prompt' => '国家']);
                echo Html::dropDownList('province', '', [], ['id' => 'province' . $table->id, 'tid' => $table->id, 'class' => 'form-control province', 'style' => 'width: auto;', 'prompt' => '省份']);
                echo Html::dropDownList('city', '', [], ['id' => 'city' . $table->id, 'tid' => $table->id, 'class' => 'form-control city', 'style' => 'width: auto;', 'prompt' => '城市']);
                echo Html::hiddenInput('area_id', 0, ['id' => 'area_id' . $table->id]);
                echo '</div>';
                break;
            default:
                break;
        }
        echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
    }
    echo Html::button('搜索', ['class' => 'btn btn-success search-button']);
    ?>
	</div>
	<div style="float: right">
	<?php