ソースを参照

Izvediota reģistrācijas forma

master
Vitalijss 5年前
コミット
d168f9d11b
6個のファイルの変更76行の追加127行の削除
  1. +1
    -1
      css/style.css
  2. +0
    -53
      include/head.php
  3. +16
    -69
      index.php
  4. +1
    -1
      install.php
  5. +5
    -3
      login.php
  6. +53
    -0
      register.php

+ 1
- 1
css/style.css ファイルの表示

@@ -47,7 +47,7 @@ body {
height: 400px;
position: absolute;
left: 50%;
top: 50%;
top: 30%;
margin-left: -150px;
margin-top: -200px;
}


+ 0
- 53
include/head.php ファイルの表示

@@ -1,53 +0,0 @@
<?php
//Fails kur glabājas visas kopīgās lietas: css,db,securitycheck,epasta headeri utt.

include '/include/db.php';
//require '/include/phpmailer/phpmailerautoload.php'; //pievienošana php pasta vajadzībām

//Nosakām, ka ir HTML5 faisl, ieviešam CSS lokālo versoiju un encoding uz UTF 8

echo '<!DOCTYPE html>
<html>
<head>
<title>CV Market</title>
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/include/css/w3.css">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
$( "#datepicker" ).datepicker({
changeMonth: true,
changeYear: true,
yearRange: "1945:"+(new Date).getFullYear(),
dateFormat:"dd.mm.yy"
});
$( "#datepickern" ).datepicker({
changeMonth: true,
changeYear: true,
yearRange: "1945:"+(new Date).getFullYear(),
dateFormat:"yy-mm-dd"
});
$( "#datepickerl" ).datepicker({
changeMonth: true,
changeYear: true,
yearRange: "1945:"+(new Date).getFullYear(),
dateFormat:"yy-mm-dd"
});
} );
</script>
</head>
<body>
<div class="w3-top">
<div class="w3-bar w3-red">
<a href="/index.php" class="w3-bar-item w3-button">Sākums</a>
<a href="/persona.php" class="w3-bar-item w3-button">Personas</a>
<!--<a href="/parrunas.php" class="w3-bar-item w3-button">Pārrunas</a>-->
<a href="/admin.php" class="w3-bar-item w3-button">Administrēt</a>
<a href="/logout.php" class="w3-bar-item w3-button">Iziet</a>
</div>
</div>
<br><br>';
?>

+ 16
- 69
index.php ファイルの表示

@@ -1,74 +1,21 @@
<!DOCTYPE html>
<html>
<?php
//Pārbaudām vai vajag instalāciju kā tādu!
$dbkonfig = 'include/db.php';
if(file_exists($dbkonfig))
{
//pieprasam visu sesijai
require 'include/head.php';
require 'include/db.php';
require 'include/check_session.php';
}
else
{
//Vedam uz instalāciju
header("Location: install.php");
}

echo '
<div class="w3-container w3-padding-16">
<h2>CV market Indeks: visa veida meklēšana pēc dažādiem kritērijiem</h2>
<form action="rezultats.php" method="POST">
<label>Izvēlies periodu, ja nepieciešams:</label> No:<input id="datepickern" type="text" onchange="sync()" name=period1> līdz:<input id="datepickerl" onchange="sync()" type="text" name=period2><br>
<br>
<input type="text" class="w3-input" name="vards_uzvards" placeholder="Meklēt pēc vārda VAI uzvārda">
<input type="SUBMIT" value="Meklēt" name="meklet_pers" class="w3-button w3-red">
</form>
<h2>Izvēlies Vēlamās prasmes</h2>
<form method="POST" action="rezultats.php">
<input id="no" type="hidden" value="" name=period1><input id="lidz" type="hidden" value="" name=period2>
<table class="w3-table w3-striped">
';
$tagsk=1;
$mekl_pr="SELECT * FROM tbTag";
$mekl_pr_iz=mysqli_query($conn,$mekl_pr);
while($rezr=mysqli_fetch_assoc($mekl_pr_iz))
{
echo '<td><input class="w3-check" type="checkbox" value="'.$rezr['TID'].'" name="Tag'.$tagsk.'"><label>'.$rezr['TagName'].';</label></td>';
if($tagsk%3==0)
{
echo '</tr><tr>';
}
$tagsk++;
}
echo'</table>
<input type="hidden" value="'.$tagsk.'" name="mekl_sk">
<br><br>
<label>Rādīt tikai melnajā sarakstā esošos:&nbsp</label><input type="checkbox" class="w3-check" name="melnais_sar"><br><br>
<input type="SUBMIT" value="Atlasīt" name="meklet" class="w3-button w3-red">
</form>
<br>
<form action="rezultats.php" method="POST">
<input id="no" type="hidden" value="" name=period1><input id="lidz" type="hidden" value="" name=period2>
<input type="hidden" class="w3-input" name="vards_uzvards" placeholder="Meklēt pēc vārda VAI uzvārda">
<input type="SUBMIT" value="Rādīt visus" name="meklet_pers" class="w3-button w3-red">
</form>
</div>';
//pārbaudām vai ir aktīva sesija!
require_once('include/check_session.php');
?>
<script>
$( function() {
$( "#datepicker" ).datepicker();
$( "#datepicker2" ).datepicker();
} );
function sync()
{
var n1 = document.getElementById('datepickern');
var n2 = document.getElementById('no');
var n3 = document.getElementById('datepickerl');
var n4 = document.getElementById('lidz');
n2.value = n1.value;
n4.value = n3.value;
}
</script>
<head>
<title>Rezervācija</title>
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1">
<!--Šeit norādīts ceļš uz w3 school CSS var dzēst vai labot pēc savas vajadzības-->
<link rel="stylesheet" href="css/w3.css">
</head>
<div class="w3-container w3-padding-16">
<h2>Esat sveicināts <?php echo ' '.$_SESSION['mails'];?></h2>
<h3>Jūsu rezervācijas</h3>
<!-- Šeit no DB atlasīt vias rezervācijas ar šī klienta ID -->
<h3>Izveidot jaunu rezervāciju</h3>
</div>'





+ 1
- 1
install.php ファイルの表示

@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html>
<title>CV dbase</title>
<title>Rezervācija</title>
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1">
<!--Šeit norādīts ceļš uz w3 school CSS var dzēst vai labot pēc savas vajadzības-->
<link rel="stylesheet" href="css/w3.css">


+ 5
- 3
login.php ファイルの表示

@@ -5,7 +5,7 @@

<!--META-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CV market</title>
<title>Market</title>

<!--STYLESHEETS-->
<link href="css/style.css" rel="stylesheet" type="text/css" />
@@ -54,14 +54,16 @@ $(document).ready(function() {
<!--CONTENT-->
<div class="content">
<!--USERNAME--><input autofocus name="epasts" type="text" class="input username" placeholder="epasts" required autocomplete="off" onfocus="this.value=''" /><!--END USERNAME-->
<!--USERNAME--><input autofocus name="epasts" type="text" class="input username" placeholder="Epasts" required autocomplete="off" onfocus="this.value=''" /><!--END USERNAME-->
<!--PASSWORD--><input name="parole" type="password" class="input password" required autocomplete="off" onfocus="this.value=''" /><!--END PASSWORD-->
</div>
<!--END CONTENT-->
<!--FOOTER-->
<div class="footer">
<!--LOGIN BUTTON--><input type="submit" name="submit" value="Autorizēties" class="button" /><!--END LOGIN BUTTON-->
<!--LOGIN BUTTON--><input type="submit" name="submit" value="Autorizēties" class="button" />
<span><a href="register.php">Reģistrēties</a></span>
<!--END LOGIN BUTTON-->
</div>
<!--END FOOTER-->



+ 53
- 0
register.php ファイルの表示

@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<body>

<form action="/action_page.php" class="w3-container w3-card-4 w3-light-grey w3-text-blue w3-margin">
<h2 class="w3-center">Reģistrēties</h2>
<div class="w3-row w3-section">
<div class="w3-col" style="width:50px"><i class="w3-xxlarge fa fa-user"></i></div>
<div class="w3-rest">
<input class="w3-input w3-border" name="vards" type="text" autocomplete="off" required placeholder="Vārds">
</div>
</div>

<div class="w3-row w3-section">
<div class="w3-col" style="width:50px"><i class="w3-xxlarge fa fa-user"></i></div>
<div class="w3-rest">
<input class="w3-input w3-border" name="uzvards" type="text" autocomplete="off" required placeholder="Uzvārds">
</div>
</div>

<div class="w3-row w3-section">
<div class="w3-col" style="width:50px"><i class="w3-xxlarge fa fa-envelope-o"></i></div>
<div class="w3-rest">
<input class="w3-input w3-border" name="epasts" type="text" autocomplete="off" required placeholder="epasts">
</div>
</div>

<div class="w3-row w3-section">
<div class="w3-col" style="width:50px"><i class="w3-xxlarge fa fa-phone"></i></div>
<div class="w3-rest">
<input class="w3-input w3-border" required name="telefons" autocomplete="off" type="text" placeholder="Telefona nr.">
</div>
</div>

<div class="w3-row w3-section">
<div class="w3-col" style="width:50px"><i class="w3-xxlarge fa fa-lock"></i></div>
<div class="w3-rest">
<input class="w3-input w3-border" name="parole" autocomplete="off" type="password" required>
</div>
</div>

<p class="w3-center">
<button class="w3-button w3-section w3-blue w3-ripple"> Reģistrēties </button>
</p>
</form>

</body>
</html>

読み込み中…
キャンセル
保存

Powered by TurnKey Linux.