<?php

include_once("c_manager.php");
class c_page_cab_manager_client_create extends c_page_cab_manager
{
    public $h1='Добавление нового клиента' ;

    function block_main()
    { $this->page_title() ;
      $this->panel_client_create() ;
    }

    function panel_client_create()
    { ?><div id="panel_client_create"><form>
        <table class="info">
         <tr><td>Группа</td>
             <td><? $list_group=execSQL_row('select pkey,obj_name from obj_site_account where clss in (1,206) and enabled=1 and pkey!=1 order by clss,obj_name') ;
                  ?><select name="group_id">
                     <option value="new">Создать новую группу</option>
                  <? if (_sizeof($list_group)) foreach($list_group as $group_id=>$group_name) {?><option value="<?echo $group_id?>" <?if($this->filter['group_id']==$group_id) echo 'selected'?>><?echo $group_name?></option><?}?>
                  </select>
             </td>
         </tr>
         <tr><td>Краткое название организации:</td><td><input type="text"  data-required name="org_name" class="big" value=""></td></tr>
         <tr><td>Логин:</td><td><input type="text"  data-required name="login" class="big" value=""></td></tr>
         <tr><td>Пароль:</td><td><input type="password"  data-required name="password" class="big" value=""></td></tr>
         <tr><td></td><td><div id="panel_alert"></div><input type="submit" class="v2" cmd="aspmo_manager/create_client" value="Добавить клиента" validate="form"></td></tr>
         </table></form>
       </form></div>
       <?
    }

}



?>
