|
@@ -34,8 +34,7 @@ echo '<label>Datubāzes parole</label>'; |
|
|
echo '<input class="w3-input" type="text" name="password">'; |
|
|
echo '<input class="w3-input" type="text" name="password">'; |
|
|
echo '<label>Datubāzes nosaukums</label>'; |
|
|
echo '<label>Datubāzes nosaukums</label>'; |
|
|
echo '<input class="w3-input" type="text" name="dbname"><br>'; |
|
|
echo '<input class="w3-input" type="text" name="dbname"><br>'; |
|
|
echo '<input type="submit" class="w3-button w3-green" name="db_saglabat" value="Saglabāt">'; |
|
|
|
|
|
echo '</form></div> |
|
|
|
|
|
|
|
|
echo '</div> |
|
|
<div class="w3-padding-16 w3-container w3-third"> |
|
|
<div class="w3-padding-16 w3-container w3-third"> |
|
|
<h3>2.Solis:Pievienot uzņēmuma lietotāju:</h3> |
|
|
<h3>2.Solis:Pievienot uzņēmuma lietotāju:</h3> |
|
|
<form action="" method="POST"> |
|
|
<form action="" method="POST"> |
|
@@ -43,7 +42,8 @@ echo '</form></div> |
|
|
<input class="w3-input" type="mail" name="epasts"> |
|
|
<input class="w3-input" type="mail" name="epasts"> |
|
|
<label>Parole:</label> |
|
|
<label>Parole:</label> |
|
|
<input class="w3-input" type="password" name="parole"> |
|
|
<input class="w3-input" type="password" name="parole"> |
|
|
<input type="submit" class="w3-button w3-red" name="sagl_lietot" value="Saglabāt lietotāju"> |
|
|
|
|
|
|
|
|
<br> |
|
|
|
|
|
<input type="submit" class="w3-button w3-green" name="db_saglabat" value="Saglabāt"> |
|
|
</form> |
|
|
</form> |
|
|
</div> |
|
|
</div> |
|
|
</div>'; |
|
|
</div>'; |
|
@@ -144,6 +144,19 @@ echo '</form></div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Darīšana |
|
|
//Darīšana |
|
|
|
|
|
mysqli_query($conn1,$tabulacv); |
|
|
|
|
|
mysqli_query($conn1,$tabulacvtag); |
|
|
|
|
|
mysqli_query($conn1,$tabulaintervija); |
|
|
|
|
|
mysqli_query($conn1,$tabulakomentars); |
|
|
|
|
|
mysqli_query($conn1,$tabulapersamats); |
|
|
|
|
|
mysqli_query($conn1,$tabulapersonas); |
|
|
|
|
|
mysqli_query($conn1,$tabulatag); |
|
|
|
|
|
mysqli_query($conn1,$tabulausers); |
|
|
|
|
|
$parole= mysqli_real_escape_string($conn1, $_POST['parole']); |
|
|
|
|
|
$parolehash=password_hash($parole, PASSWORD_DEFAULT); |
|
|
|
|
|
$epasts=mysqli_real_escape_string($conn1, $_POST['epasts']); |
|
|
|
|
|
$insusr="INSERT INTO tbUsers (UsrMail,UsrParole) VALUES ('$epasts','$parolehash')"; |
|
|
|
|
|
mysqli_query($conn1,$insusr); |
|
|
if(mysqli_query($conn1,$tabulaamats)) |
|
|
if(mysqli_query($conn1,$tabulaamats)) |
|
|
{ |
|
|
{ |
|
|
echo '<h2>Tabula veiksmīgi izveidota</h2>'; |
|
|
echo '<h2>Tabula veiksmīgi izveidota</h2>'; |
|
@@ -169,14 +182,7 @@ echo '</form></div> |
|
|
{ |
|
|
{ |
|
|
echo '<h2>Kaut kas nogāja greizi</h2>'; |
|
|
echo '<h2>Kaut kas nogāja greizi</h2>'; |
|
|
} |
|
|
} |
|
|
mysqli_query($conn1,$tabulacv); |
|
|
|
|
|
mysqli_query($conn1,$tabulacvtag); |
|
|
|
|
|
mysqli_query($conn1,$tabulaintervija); |
|
|
|
|
|
mysqli_query($conn1,$tabulakomentars); |
|
|
|
|
|
mysqli_query($conn1,$tabulapersamats); |
|
|
|
|
|
mysqli_query($conn1,$tabulapersonas); |
|
|
|
|
|
mysqli_query($conn1,$tabulatag); |
|
|
|
|
|
mysqli_query($conn1,$tabulausers); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|