<style>
	.price_inputs {
		width: 26%;
	}

</style>
<?php
    if (isset($tpl['status']))
    {
        $status = __('status', true);
        switch ($tpl['status'])
        {
            case 2:
                pjUtil::printNotice(NULL, $status[2]);
                break;
        }
    } else {

        $titles = __('error_titles', true);
        $bodies = __('error_bodies', true);
        ?>

        <div class="row wrapper wrapper-content animated fadeInRight">
        	<div class="col-lg-12">
        		<div class="ibox float-e-margins">
        			<form action="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminClients&amp;action=pjActionCreate" method="post" id="frmCreateClient" class="form pj-form" autocomplete="off">
        				<input type="hidden" name="client_create" value="1" />
        				<div class="ibox-content">
		                    <div class="row">
		                    	<div class="col-lg-12 col-md-12 col-sm-12">
                            		<div class="form-group">
                            			<label class="title"><?php __('lblClientTimezone'); ?></label>
                            				<div class="input-group price_inputs">
                            					<select name="timezone" id="timezone" class="pj-form-field form-control">
								                    <?php
								                        $timezones = DateTimeZone::listIdentifiers();
								                        foreach ($timezones as $timezone) {
								                            echo sprintf('<option value="%1$s">%1$s</option>', $timezone);
								                        }
								                    ?>
								                </select>
                            				</div>
                            		</div>
                            	</div>

                            	<div class="col-lg-12 col-md-12 col-sm-12">
                            		<div class="form-group">
                            			<label class="title"><?php __('lblEmail'); ?></label>
                            				<div class="input-group price_inputs">
                            					<input type="text" name="email" id="email" class="required email form-control" data-msg-required="<?php __('plugin_base_this_field_is_required', false, true);?>" />
                            				</div>
                            		</div>
                            	</div>

                            	<div class="col-lg-12 col-md-12 col-sm-12">
                            		<div class="form-group">
                            			<label class="title"><?php __('lblUsername'); ?></label>
                            				<div class="input-group price_inputs">
                            					<input type="text" name="username" id="username" class="required form-control" data-msg-required="<?php __('plugin_base_this_field_is_required', false, true);?>"/>
                            				</div>
                            		</div>
                            	</div>

                            	<div class="col-lg-12 col-md-12 col-sm-12">
                            		<div class="form-group">
                            			<label class="title"><?php __('lblPassword'); ?></label>
                            				<div class="input-group price_inputs">
                            					<input type="text" name="password" id="password" class="required form-control" data-msg-required="<?php __('plugin_base_this_field_is_required', false, true);?>"/>
                            				</div>
                            		</div>
                            	</div>

                            	<?php

						            if($controller->isAdmin())
						            {
						                ?>
						                <div class="col-lg-12 col-md-12 col-sm-12">
		                            		<div class="form-group">
		                            			<label class="title"><?php __('lblTutor'); ?></label>
		                            				<div class="input-group price_inputs">
		                            					<select name="tutor_id" id="tutor_id" class="required form-control" data-msg-required="<?php __('plugin_base_this_field_is_required', false, true);?>">
								                    		<option value="">-- <?php __('lblChoose'); ?>--</option>
								                            <?php
								                            foreach ($tpl['tutor_arr'] as $k => $v)
								                            {
								                                ?><option value="<?php echo $v['id']; ?>"><?php echo pjSanitize::clean($v['name']); ?></option><?php
								                            }
								                            ?>
								                        </select>
		                            				</div>
		                            		</div>
		                            	</div>
						                <?php
						            }
						            ?>

						        <div class="col-lg-12 col-md-12 col-sm-12">
		                            <div class="form-group">
		                            	<label class="title"><?php __('employee_status'); ?></label>
		                            	<div class="input-group price_inputs">
		                            		<select name="active" id="active" class="required form-control" data-msg-required="<?php __('plugin_base_this_field_is_required', false, true);?>">
						                        <option value="">-- <?php __('lblChoose'); ?>--</option>
						                        <?php
						                        foreach (__('u_statarr', true) as $k => $v)
						                        {
						                            ?><option value="<?php echo $k; ?>"><?php echo $v; ?></option><?php
						                        }
						                        ?>
						                    </select>
		                            	</div>
		                            </div>
		                        </div>
		                    </div>
		                </div>

		                <div class="hr-line-dashed"></div>

		                <div class="clearfix">

							<button type="submit" class="ladda-button btn btn-primary btn-lg btn-phpjabbers-loader pull-left" data-style="zoom-in">

								<span class="ladda-label"><?php __('btnSave', false, true); ?></span>

								<?php include $controller->getConstant('pjBase', 'PLUGIN_VIEWS_PATH') . 'pjLayouts/elements/button-animation.php'; ?>

							</button>

							<button type="button" class="btn btn-white btn-lg pull-right" onclick="window.location.href='<?php echo PJ_INSTALL_URL; ?>index.php?controller=pjAdminClients&action=pjActionIndex';"><?php __('btnCancel'); ?></button>

						</div>
			          
			        </form>
        		</div>
        	</div>

        </div>
        

        <script type="text/javascript">
            var myLabel = myLabel || {};
        </script>
        <?php
    }
?>