-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.php
75 lines (57 loc) · 1.63 KB
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="x-default" dir="rtl" data-ng-app="app" class="">
<style>
body {background-color: powderblue;}
h1 {color: blue;}
p {color: red;}
.bas {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 35px;
}
.textarea {
font-size: 22px;
width: 100%;
height: 200px;
}
</style>
<head>
<title>لسان عثمانى</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="Paragraph">
<h2> لسان عثمانى توركچه</h2>
</div><br />
<div class="Paragraph">
<h2 dir="rtl" id="example-1">
لسان عثمانى </h2>
<?php
error_reporting(E_STRICT);
require 'ot-php/src/Ottoman.php';
$Ottoman = new \OtPHP\I18N\Ottoman();
if(isset($_POST['submit']))
{
$description = $_POST['description'];
echo "<br/><h1>".$Ottoman->tr2ot("$description"). "</h1><br/>";
}
?>
</div><br />
<textarea class="textarea" form="mygeeks" id="description" name="description" placeholder="---Çevirilecek latin harfli Türkçe yazıyı yapıştırınız---"><?php echo $description; ?></textarea><br>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" id="mygeeks">
<input type="submit" name="submit" class="bas" value="يازييي چوير"><br>
</form>
<hr/>
مسعود سزر
<hr/><p>بويوك دستك
</p>
</div>
<footer><i><a href="https://github.com/khaled-alshamaa/ar-php">عر-پهپ</a>, عرپچه لسان ایچون</i></footer>
</body>
</html>