Created
October 12, 2014 13:29
-
-
Save truelecter/432c76dcc10a8d11bba7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html > | |
<html> | |
<head> | |
<title>UsicMoney</title> | |
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> | |
</head> | |
<body> | |
<form name="addForm" action="add.php" method="post"> | |
<table> | |
<? | |
if (isset($HTTP_GET_VARS[success])){ | |
echo "<tr>"; | |
echo "<td colspan = '5'>"; | |
echo "<center><div class='centerDiv'>"; | |
if ($HTTP_GET_VARS[success]){ | |
echo "success"; | |
} else { | |
echo "fail"; | |
} | |
echo "</center></div>"; | |
echo "</td>"; | |
echo "</tr>"; | |
} | |
?> | |
<tr> | |
<td> | |
<div class="cell">ПІБ</div> | |
</td> | |
<td> | |
<div class="cell">Кошти (X.YY)</div> | |
</td> | |
<td> | |
<div class="cell">Тип каси</div> | |
</td> | |
<td> | |
<div class="cell" onclick="document.getElementById('dateTime').value = (new Date()).toUTCString()">Дата та час</div> | |
</td> | |
<td> | |
<div class="cell">Примітка</div> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<input type="text" name="nameF" required> | |
</td> | |
<td> | |
<input type="text" name="moneyF" required pattern="\d+([\.,]\d{0,2})?"> | |
</td> | |
<td> | |
<select name="typeF"> | |
<option value="cass" selected>Каса</option> | |
<option value="tea">Чайок</option> | |
</select> | |
</td> | |
<td> | |
<input type="text" name="dateTimeF" id="dateTime" required> | |
</td> | |
<td> | |
<input type="text" name="commentF"> | |
</td> | |
</tr> | |
<tr> | |
<td colspan="5"><center><input type="submit" value="Надіслати"></center></td> | |
</tr> | |
</table> | |
</form> | |
<br> | |
<form name="selectForm" action="selection.php" method="post"> | |
<table> | |
<tr> | |
<td> | |
<select name="typeF"> | |
<option value="cass" selected>Каса</option> | |
<option value="tea">Чайок</option> | |
</select> | |
</td> | |
<td> | |
<select name="range"> | |
<option value="604800" selected>Тиждень</option> | |
<option value="2592000">Місяць</option> | |
<option value="31536000">Рік</option> | |
</select> | |
</td> | |
<td><input type="submit" value="Показати список"></td> | |
</tr> | |
</table> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment