예제 #1
0
    ?>
</td>
            <td><?php 
    echo $us['last_name'];
    ?>
</td>
            <td><?php 
    echo $us['vk_id'];
    ?>
</td>
            <td><?php 
    echo date('d-m-Y', $us['dt_add']);
    ?>
</td>
            <td><?php 
    echo Forms::dropDownList('status', $us['status'], ['1' => 'Клиент', '2' => 'Мастер', '3' => 'Админ'], ['class' => 'form-control status', 'userId' => $us['id']]);
    /* switch($us['status']){
           case 1: echo 'Клиент';break;
           case 2: echo 'Мастер';break;
           case 3: echo 'Админ';break;
       } */
    ?>
</td>
            <td><a class="admin_view" href="/vk2/admin/view_user/?id=<?php 
    echo $us['id'];
    ?>
"></a>
               <!-- <a class="admin_edit" href="/vk2/admin/edit_user/?id=<?php 
    /*= $us['id']*/
    ?>
"></a>-->
예제 #2
0
파일: Search.php 프로젝트: apuc/app_to_vk
 public function actionGet_service()
 {
     $service = new Services();
     $cityAll = $service->find()->orderBy('name', 'ASC')->all();
     echo Forms::dropDownList('service', null, ArrayHelper::map($cityAll, 'id', 'name'), ['class' => 'searchService form-control', 'prompt' => 'Выберите услугу']);
 }
예제 #3
0
파일: index.php 프로젝트: apuc/app_to_vk
<?php

use lib\helpers\ArrayHelper;
use lib\helpers\Forms;
use widgets\MainMenu;
echo MainMenu::run();
?>
<div class="search">
    <div class="filter">
        <?php 
echo Forms::dropDownList('region', 0, ArrayHelper::map($region, 'id', 'name'), ['class' => 'regionSearch form-control', 'prompt' => 'Регион']);
?>
        <span class="search-city"></span>
        <span class="search-service"></span>
        <span class="search-box"></span>
    </div>
</div>
예제 #4
0
파일: profile.php 프로젝트: apuc/app_to_vk
        <?php 
    echo Forms::checkboxList('services', $selectServ, ArrayHelper::map($services, 'id', 'name'));
    ?>
    <?php 
}
?>

    <p class="bg-danger">Выберите свое месторасположение</p>
    <div><span>Регион:</span>
        <?php 
echo Forms::dropDownList('region_id', $user->region_id, ArrayHelper::map($regionAll, 'id', 'name'), ['class' => 'region form-control', 'prompt' => 'Выберите регион']);
?>
    </div>

    <div class="city">
        <?php 
if (isset($user->region_id)) {
    $city = new GeobaseCity();
    $cityAll = $city->find()->where(['region_id' => $user->region_id])->orderBy('name', 'ASC')->all();
    //\lib\helpers\Debug::prn($user->regionId);
    echo "<span>Город:</span>";
    echo Forms::dropDownList('city_id', $user->city_id, ArrayHelper::map($cityAll, 'id', 'name'), ['class' => 'form-control']);
}
?>
    </div>
    <?php 
echo Forms::input('submit', 'saveProfile', 'Сохранить', ['class' => 'btn btn-success']);
echo Forms::end();
?>

예제 #5
0
파일: Profile.php 프로젝트: apuc/app_to_vk
 public function actionGet_city()
 {
     $city = new GeobaseCity();
     $cityAll = $city->find()->where(['region_id' => $_POST['regionId']])->orderBy('name', 'ASC')->all();
     echo "<span>Город:</span>";
     echo Forms::dropDownList('city_id', null, ArrayHelper::map($cityAll, 'id', 'name'), ['class' => 'form-control', 'prompt' => 'Выберите город']);
 }