-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.asp
114 lines (101 loc) · 4.65 KB
/
settings.asp
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!-- #include file="Assets/inc/conn.asp" -->
<!-- #include file="Assets/inc/system.asp" -->
<!-- #include file="Assets/inc/userControl.asp" -->
<%if user("Yetki")<>0 then response.Redirect("default.asp")%>
<%
set sett = server.createobject("adodb.recordset")
sql="Select * From de_Settings WHERE settID=1"
sett.open sql,conn,1,3
if request.ServerVariables("REQUEST_METHOD")="POST" then
sett("Bilgi")=request.Form("Bilgi")
sett("NedirTT")=request.Form("NedirTT")
sett("Nedir")=request.Form("Nedir")
sett.Update
%>
<script type="text/javascript">
alert("Başarıyla güncellendi.");
location.href="settings.asp";
</script>
<%end if%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Değerler Eğitimi - Genel Ayarlar</title>
<link href="Assets/css/main.css" rel="stylesheet" type="text/css" />
<script src="Assets/ckeditor/ckeditor.js"></script>
</head>
<body>
<div id="main">
<!-- #include file="Assets/inc/sidebar.asp" -->
<div id="panel">
<!-- #include file="Assets/inc/userbar.asp" -->
<div id="maincontent">
<!-- //ContentBox1 -->
<div class="contentpanel">
<div class="contenttitle">
<table width="698" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="349" align="left" valign="middle">Genel Ayarlar</td>
<td width="349" align="right" valign="middle"></td>
</tr>
</table>
</div>
<div class="contentbox">
<form action="" method="POST">
<table width="696" border="0" cellspacing="1" cellpadding="0">
<tr bgcolor="#DFF4FF">
<td width="200" height="30" align="right" valign="middle"><span style="font-size:14px;">Metin Başlığı:</span></td>
<td width="493" height="30" align="left" valign="middle">
<input type="text" name="NedirTT" class="formtext" value="<%=sett("NedirTT")%>" /></td>
</tr>
<tr bgcolor="#CAEDFF">
<td width="200" height="30" align="right" valign="top"><span style="font-size:14px;">Metin:</span><br />(Metini gizlemek için kutucuğu boş bırakın)</td>
<td width="493" height="30" align="left" valign="middle">
<textarea name="Nedir" class="formarea"><%=sett("Nedir")%></textarea></td>
</tr>
<tr bgcolor="#DFF4FF">
<td width="200" height="30" align="right" valign="top"><span style="font-size:14px;">Bilgi Ekranı:</span><br />(Bilgi Ekranını kapatmak için kutucuğu boş bırakın)</td>
<td width="493" height="30" align="left" valign="middle">
<textarea name="bilgi" class="formarea"><%=sett("Bilgi")%></textarea></td>
</tr>
<tr>
<td height="30" align="right" valign="middle"> </td>
<td height="30" align="left" valign="middle"><input type="submit" value="Güncelle" class="formadd" /></td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
<div id="clear"></div>
<!-- #include file="Assets/inc/footer.asp" -->
</div>
<script>
CKEDITOR.replace( 'bilgi', {
// Define the toolbar groups as it is a more accessible solution.
toolbarGroups: [
{"name":"styles","groups":["styles"]},
{"name":"basicstyles","groups":["basicstyles"]},
{"name":"links","groups":["links"]},
{"name":"paragraph","groups":["list","blocks"]},
],
// Remove the redundant buttons from toolbar groups defined above.
removeButtons: 'Subscript,Superscript,Anchor,Styles,Specialchar'
} );
CKEDITOR.replace( 'Nedir', {
// Define the toolbar groups as it is a more accessible solution.
toolbarGroups: [
{"name":"styles","groups":["styles"]},
{"name":"basicstyles","groups":["basicstyles"]},
{"name":"links","groups":["links"]},
{"name":"paragraph","groups":["list","blocks"]},
],
// Remove the redundant buttons from toolbar groups defined above.
removeButtons: 'Subscript,Superscript,Anchor,Styles,Specialchar'
} );
</script>
</body>
</html>