%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/paste.varak.net-5.6/app/storage/views/
Upload File :
Create Path :
Current File : /www/varak.net/paste.varak.net-5.6/app/storage/views/c17c6661bf7563540f8450eaf131fb81

<?php $__env->startSection('module'); ?>
	<section id="admin-user">
		<fieldset>
			<legend><?php echo Lang::get('admin.manage_users'); ?></legend>

			<?php echo Form::open(array(
					'autocomplete'   => 'off',
					'role'           => 'form'
				)); ?>


			<div class="row">
				<div class="col-sm-8 form-inline">
					<?php echo Form::text('search', NULL, array(
							'class'         => 'form-control',
							'maxlength'     => 50,
							'placeholder'   => Lang::get('global.username')
						)); ?>


					<?php echo Form::submit(Lang::get('global.search'), array(
							'class'   => 'btn btn-primary'
						)); ?>

				</div>

				<div class="col-sm-4 text-right">
					<?php echo link_to('admin/user/create', Lang::get('admin.user_create'), array(
							'class'  => 'btn btn-success'
						)); ?>

				</div>
			</div>
			<br />

			<?php echo Form::close(); ?>


			<div class="row">
				<div class="col-sm-12">
					<?php if( ! empty($user)): ?>
						<?php echo Form::open(array(
								'autocomplete'   => 'off',
								'role'           => 'form',
								'class'          => 'form-horizontal',
							)); ?>


						<fieldset>
							<legend><?php echo Lang::get('admin.user_editor'); ?></legend>

							<div class="form-group">
								<?php echo Form::label('username', Lang::get('global.username'), array(
										'class' => 'control-label col-sm-3 col-lg-2'
									)); ?>


								<div class="col-sm-9 col-lg-10">
									<?php echo Form::text('username', $user->username, array(
											'class'         => 'form-control',
											'maxlength'     => 50,
										)); ?>

								</div>
							</div>

							<div class="form-group">
								<?php echo Form::label('email', Lang::get('global.email'), array(
										'class' => 'control-label col-sm-3 col-lg-2'
									)); ?>


								<div class="col-sm-9 col-lg-10">
									<?php echo Form::text('email', $user->email, array(
											'class'         => 'form-control',
											'maxlength'     => 100,
										)); ?>

								</div>
							</div>

							<div class="form-group">
								<?php echo Form::label('dispname', Lang::get('global.full_name'), array(
										'class' => 'control-label col-sm-3 col-lg-2'
									)); ?>


								<div class="col-sm-9 col-lg-10">
									<?php echo Form::text('dispname', $user->dispname, array(
											'class'         => 'form-control',
											'maxlength'     => 100,
										)); ?>

								</div>
							</div>

							<div class="form-group">
								<?php echo Form::label('password', Lang::get('global.password'), array(
										'class' => 'control-label col-sm-3 col-lg-2'
									)); ?>


								<div class="col-sm-9 col-lg-10">
									<?php echo Form::password('password', array(
											'class' => 'form-control',
										)); ?>

								</div>
							</div>

							<?php if( ! $founder): ?>
								<div class="form-group">
									<?php echo Form::label('active', Lang::get('admin.status'), array(
											'class' => 'control-label col-sm-3 col-lg-2'
										)); ?>


									<div class="col-sm-9 col-lg-10">
										<div class="checkbox">
											<label>
												<?php echo Form::checkbox('active', 1, $user->active, array(
														'id' => 'active',
													)); ?>


												<?php echo Lang::get('admin.active'); ?>

											</label>
										</div>
									</div>
								</div>

								<div class="form-group">
									<?php echo Form::label('admin', Lang::get('admin.role'), array(
											'class' => 'control-label col-sm-3 col-lg-2'
										)); ?>


									<div class="col-sm-9 col-lg-10">
										<div class="checkbox">
											<label>
												<?php echo Form::checkbox('admin', 1, $user->admin, array(
														'id' => 'admin',
													)); ?>


												<?php echo Lang::get('global.admin'); ?>

											</label>
										</div>
									</div>
								</div>
							<?php endif; ?>

							<div class="form-group">
								<div class="col-sm-offset-3 col-lg-offset-2 col-sm-9 col-lg-10">
									<?php echo Form::hidden('id', $user->id); ?>


									<?php echo Form::submit(Lang::get('global.submit'), array(
											'name'    => '_save',
											'class'   => 'btn btn-primary'
										)); ?>


									<?php echo link_to('admin/user/delete/'.urlencode($user->username), Lang::get('global.delete'), array(
											'onclick' => 'return confirm("'.Lang::get('global.action_confirm').'")',
											'class'   => 'btn btn-danger'
										));; ?>

								</div>
							</div>
						</fieldset>

						<?php echo Form::close(); ?>

					<?php else: ?>
						<?php if($site->auth->method != 'db'): ?>
							<div class="alert alert-info">
								<?php echo sprintf(Lang::get('admin.user_auth_method'), Lang::get("admin.{$site->auth->method}")); ?>

							</div>
						<?php endif; ?>

						<table class="table table-striped table-striped-dark table-user">
							<colgroup>
								<col class="col-sm-1" />
								<col class="col-sm-4" />
								<col class="col-sm-4" />
								<col class="col-sm-1" />
							</colgroup>

							<thead>
								<tr>
									<th></th>
									<th><?php echo Lang::get('global.username'); ?></th>
									<th><?php echo Lang::get('global.email'); ?></th>
									<th></th>
								</tr>
							</thead>

							<tbody>
								<?php foreach($users as $user): ?>
									<tr>
										<td class="text-right">
											<?php echo HTML::image('//www.gravatar.com/avatar/'.md5(strtolower($user->email)).'?s=28', NULL, array(
													'class'   => 'img-circle',
													'onerror' => 'this.style.display="none"',
												)); ?>

										</td>

										<td><?php echo $user->username; ?></td>
										<td><?php echo e($user->email); ?></td>

										<td class="text-center">
											<?php echo link_to('admin/user/edit/'.urlencode($user->username), Lang::get('global.edit')); ?>

										</td>
									</tr>
								<?php endforeach; ?>
							</tbody>
						</table>

						<?php echo $pages; ?>

					<?php endif; ?>
				</div>
			</div>

			<?php echo Form::close(); ?>

		</fieldset>
	</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('skins.bootstrap.admin.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Zerion Mini Shell 1.0