k2auth_form.php 3.4 KB
<?php

$this->LoginForm = '	<div class="row">
	<div class="col-6">
							<h2 class="h-text text-center">Авторизація</h2>
		<form method="POST" class = "contact_form", action="">		        
					  <div class="form-group">
					    <label for="exampleInputEmail1">Введіть свій Email</label>
					    <input type="text" name="Login" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="email">
					  </div>
					  <div class="form-group">
					    <label for="exampleInputPassword1">Введіть свій пароль</label>
					    <a href="javascript:void(0)" class="showpass" onclick="mouseoverPass();"><i class="fa fa-eye" aria-hidden="true"></i></a>
					    <a href="javascript:void(0)" style="display:none" class="hidepass" onclick="mouseoutPass();"><i class="fa fa-eye" aria-hidden="true"></i></a>
					    <input type="password" name="Password" class="form-control" id="exampleInputPassword1" placeholder="пароль">
					  </div>
			        
                                
                        <button type="submit" name="submit" class="btn login hvr-icon-wobble-horizontal">Вхід <i class="fa fa-sign-in hvr-icon"></i></button>
                        <span class="header__regbtn regbtn_right"><a href="/comp/dp2pub/c/cabinet/page/reg" class="btn remember"> Зареєструватись <i class="fa fa-drivers-license-o"></i></a></span>
                        <span class="header__regbtn regbtn_right"><a href="/?p=remember" class="btn remember"> Згадати пароль</a></span>

			</form>
			<br>
			<a href="/public/img/Система самообслуговування клієнтів IMG-конвертирован.pdf" class="btn btn-primary" target="_blank"><i aria-hidden="true" class="fa fa-file-pdf-o"></i> Інструкція</a>
	</div>
</div>


 <script>
                        function mouseoverPass(obj) {
                            var obj = document.getElementById("exampleInputPassword1");
                            $(".showpass").hide();
                            $(".hidepass").show();
                            obj.type = "text";
                          }
                          function mouseoutPass(obj) {
                            var obj = document.getElementById("exampleInputPassword1");
                            $(".showpass").show();
                            $(".hidepass").hide();
                            obj.type = "password";
                          }
                        </script>

			';

$this->unLoginForm = "<center>
			<form id='myform' method='post' class='form-horizontal form-calculate form-with-line modified-grid-9' style='font-size: 13px;'>

				<div style='width:660px;'>
					<fieldset style='float:left;height:140px;'>
					<b>Пользователь авторизован</b>

					<table style='border-collapse:separate;border-spacing:4px;'>
						<tr>
							<td>Вы авторизированы.</br>
							Логин: {login}</br>
							Имя: {username}</br>
							Права: {rolename}</td>
						</tr>
						<tr>
							<td>
							    <div class='form-group col-lg-3 col-lg-offset-3'>
							        <input class='button db' name='clear' type='submit' value='Разлогиниться' style='color: white;'/>
							    </div>
							</td>
						</tr>
					</table>
					</fieldset>


					<div style='clear:both;'></div>
				</div>

				<!--{render_auth}-->
			</form>
			</center>";