Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<html>
<head>
<title></title>
<head>
<script type="text/javascript">
function insertemoticon (emoticon) {
comentval = document.getElementById('comment').value;
document.getElementById('comment').value = comentval + emoticon;
}
</script>
<body>
<textarea id="comment" name="comment"></textarea><br>
<a href="javascript:insertemoticon(':)');" title="">усмихващо се</a> | <a href="javascript:insertemoticon(':(');" title="">начумерено</a><br>
</body>
</html>
<html>
<head>
<script type="text/javascript">
function insertemoticon (emoticon) {
comentval = document.getElementById('comment').value;
document.getElementById('comment').value = comentval + emoticon;
}
</script>
</head>
<body>
...........
else {
echo "
<center><form method='post' action='addnews.php' name='form1'>
<a href='javascript:insertemoticon(':)');'>усмихващо се</a> | <a href='javascript:insertemoticon(':(');'>начумерено</a><br>
<div style='margin-left:-350px;'>Заглавие: <input style='width:250px;' type='text' name='title' /></div><br />
";
$query = "SELECT * FROM cats";
$result = mysql_query($query) or die (mysql_error());
echo "<div style='margin-top:-42px; margin-left:240px;'><select name='kategoria'>";
while ($row = mysql_fetch_assoc($result)) {
echo "<option value='$row[id]'>$row[kategoria]</option>";
}
echo "</select></div>";
echo "
<br /><div style='margin-left:-100px;'>Oписание: <br /><br /><textarea name='opisanie' cols='68' rows='3'></textarea></div><br />
<br /><div style='margin-left:-100px;'>Новина: <br /><textarea name='comment' cols='65' rows='9'></textarea> </div><br />
<div style='margin-left:-120px;'><input type='submit' name='submit' value='Добави новина' /></div>
</form></center>";
}