Форум программистов, компьютерный форум, киберфорум
PHP для начинающих
Войти
Регистрация
Восстановить пароль
Карта форума Темы раздела Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 5.00/5: Рейтинг темы: голосов - 5, средняя оценка - 5.00
0 / 0 / 0
Регистрация: 18.09.2014
Сообщений: 9
1

Undefined variable: action

18.09.2014, 01:07. Показов 1002. Ответов 9
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
Люди добрые ,прошу помощи , перерыл гугл , перерыл данный форум , нашол кучю подобных ткм , но ничего не помогло , такчто решил создать новую тему ... прошу сильно не пинать , я уже три ночи разбираюсь с етой бедой.....

проблемма заключается в том что после редактирования текста , он не сохроняется.
PHP/HTML
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<?
 
session_start();
 
ini_set('register_globals', 'on');
 
include "path.php";
include "$path/login.php";
function klaida ($klaida) {
echo $klaida;
exit;
}
 
if(isset($_POST['login'])){
    if($_POST['login']==$login && $_POST['pass'] == $password){
        $_SESSION['admin_loged'] = 1;
    }else{
        echo "Neteisingi prisijungimai!<br><br>";
    }
}
 
if(!isset($_SESSION['admin_loged'])){
    echo "<form method='post'><input type='text' name='login'><br><input type='password' name='pass'><br><input type='submit' value='Prisijungti'></form>";
    exit;
}
 
/*
if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == "$login") && ( $PHP_AUTH_PW == "$password" )) ) {
header("WWW-Authenticate: Basic entrer=\"Form2txt admin\"");
header("HTTP/1.0 401 Unauthorized");
klaida("<html><head><title>Klaida!</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1257\"><LINK href=\"style.css\" type=text/css rel=stylesheet></head><body><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"100%\"><tr><td align=\"center\" valign=\"middle\"><strong>Informacija jums neprieinama!</strong></td></tr></table></body></html>");
}
*/
 
$article = $_GET['article'];
 
if (empty($article)) {
$article = "1";
}
?>
<html>
<head>
<title> administrator</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1257">
<STYLE>A:link { COLOR: #000099; TEXT-DECORATION: none }
A:visited { COLOR: #666666; TEXT-DECORATION: none }
A:active { COLOR: #000099; TEXT-DECORATION: none }
A:hover { COLOR: #006699; TEXT-DECORATION: none }
.menu:link { COLOR: #efefef; TEXT-DECORATION: none }
.menu:visited { COLOR: #cccccc; TEXT-DECORATION: none }
.menu:active { COLOR: #efefef; TEXT-DECORATION: none }
.menu:hover { COLOR: #ffffff; TEXT-DECORATION: none }
INPUT { BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 12px; BORDER-LEFT: gray 1px solid; COLOR: #000099; LINE-HEIGHT: normal; BORDER-BOTTOM: gray 1px solid; FONT-STYLE: normal; BACKGROUND-COLOR: #efefef; FONT-VARIANT: normal }
TEXTAREA { BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 12px; BORDER-LEFT: gray 1px solid; COLOR: black; LINE-HEIGHT: normal; BORDER-BOTTOM: gray 1px solid; FONT-STYLE: normal; BACKGROUND-COLOR: #efefef; FONT-VARIANT: normal }
SELECT { BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 8pt; BORDER-LEFT: gray 1px solid; COLOR: black; LINE-HEIGHT: normal; BORDER-BOTTOM: gray 1px solid; FONT-STYLE: normal; BACKGROUND-COLOR: #efefef; FONT-VARIANT: normal }
BODY { FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial }
TABLE { FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial }
TR { FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial }
TD { FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial }
FORM { FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial }
LI { FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial }
</STYLE>
<?
include "$path/edit_script_path.php";
if ($action == "save") {
include "$path/refresh_script.php";
}
?>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="100">
  <tr>
    <td valign="middle" align="left" height="100">
      <table width="760" border="0" cellspacing="0" cellpadding="0" height="100">
        <tr>
          <td width="221" align="center" valign="bottom" nowrap><b><font size="3" color="#336699">Administrator</font></b><br><br></td>
          <td nowrap align="right" valign="bottom">&nbsp;</td>
          <td width="300" align="right" valign="top" nowrap background="img/top.gif">&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td valign="top" align="left" height="100" bgcolor="#DCECF1">
      <table width="760" border="0" cellspacing="0" cellpadding="0" height="100" background="img/line.gif">
        <tr>
          <td nowrap align="left" valign="top">
            <table width="360" border="0" cellspacing="0" cellpadding="0" height="100">
              <tr>
                <td height="25" width="221">&nbsp;</td>
                <td height="25">&nbsp;</td>
              </tr>
              <tr>
                <td width="221" bgcolor="#DCECF1">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
            </table>
          </td>
          <td width="300" align="center" valign="top" nowrap>&nbsp;</td>
          <td width="100" align="left" valign="top" nowrap>
            <table width="100" border="0" cellspacing="0" cellpadding="0" height="100">
              <tr>
                <td height="25" align="center" valign="middle"><b><font color="white">Lit</font></b>&nbsp;<font color="#FFFFFF">|</font>&nbsp;<a class="menu" href="ru/admin.php?article=<? echo "$article"; ?>"><b>Rus</b></a>&nbsp;<font color="#FFFFFF">|</font>&nbsp;<a class="menu" href="en/admin.php?article=<? echo "$article"; ?>"><b>Eng</b></a></td>
              </tr>
              <tr>
                <td><img src="img/pixel.gif" width="100" height="75" border="0"></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td valign="middle" align="left" bgcolor="#DCECF1" height="100">
      <table width="760" border="0" cellspacing="0" cellpadding="0" height="125">
        <tr>
          <td width="200" align="left" valign="top" nowrap>&nbsp;</td>
          <td nowrap align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td valign="middle" align="left" height="100" bgcolor="#336699">
      <table width="760" border="0" cellspacing="0" cellpadding="0" height="100">
        <tr>
          <td width="200" align="left" valign="top" nowrap background="img/top.gif">&nbsp;</td>
          <td nowrap align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td valign="middle" align="left" height="20">
      <table width="760" border="0" cellspacing="0" cellpadding="0" height="50">
        <tr>
          <td width="200" align="left" valign="middle" nowrap background="img/top.gif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="admin.php?article=9"><b>Nustatymai</b></a></td>
          <td nowrap align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<div id="Layer2" style="position:absolute; width:460; height:20; z-index:40; left: 10px; top: 107px"><a class="menu" href="admin.php"><b>Apie&nbsp;mus</b></a>&nbsp;<font color="#FFFFFF">|</font>&nbsp;<a class="menu" href="admin.php?article=2"><b>Paslaugos</b></a>&nbsp;<font color="#FFFFFF">|</font>&nbsp;<a class="menu" href="admin.php?article=3"><b>M�s�&nbsp;klientai</b></a>&nbsp;<font color="#FFFFFF">|</font>&nbsp;<a class="menu" href="admin.php?article=5"><b>Publikacijos</b></a>&nbsp;<font color="#FFFFFF">|</font>&nbsp;<a class="menu" href="admin.php?article=6"><b>Kontaktai</b></a>&nbsp;<font color="#FFFFFF">|</font>&nbsp;<a class="menu" href="forum/admin.php"><b>Forumas</b></a></div>
<div id="Layer3" style="position:absolute; width:300; height:100; z-index:3; left: 360px; top: 100px"><img src="img/top.gif" width="300" height="100"></div>
<div id="Layer4" style="position:absolute; width:180; height:180; z-index:4; left: 10px; top: 135px">
<?
if (($article == 2)||($article == 7)||($article == 8)) {
echo '<p>&nbsp;</p>
<p align="center"><a href="admin.php?article=7">KOKYB�S VADYBOS SISTEMA PAGAL EN ISO 9001:2000 REIKALAVIMUS</a></p>
<p align="center"><a href="admin.php?article=8">APLINKOS APSAUGOS VADYBOS SISTEMA PAGAL EN ISO 14001:1996 REIKALAVIMUS</a></p>';
}
?>
</div>
<div id="Layer5" style="position:absolute; width:550px; height:28px; z-index:41; left: 210px; top: 172px">
  <div align="left"><b><font size="3" color="#336699"><? include "title/$article.txt"; ?></font></b></div>
</div>
<div id="Layer6" style="position:absolute; width:535px; height:263px; z-index:42; left: 213px; top: 212px">
<?
if ($article != 9) {
$failas = "article/$article.txt";
}
else {
$failas = "conf/login.php";
}
if ($action != "save") {
if ($article != 9) {
$duomenys = fopen($failas, "r");
$informacija = fread($duomenys, filesize($failas));
fclose($duomenys);
echo '<form action="admin.php?article='.$article.'&action=save" method="post">
<textarea name="nauja_informacija" style="width:535; height:280">'.$informacija.'</textarea>';
include "$path/editor_generate_script.php";
echo '<p align="center"><input type="submit" name="Submit" style="width: 60px" value="OK"></p>
</form>';
}
else {
echo '<form action="admin.php?article='.$article.'&action=save" method="post">
<p align="center">Naujas slapta�odis: <input type="password" style="width: 100px" name="naujas_slaptazodis" value=""></p>
<p align="center"><input type="submit" name="Submit" style="width: 60px" value="OK"></p>
</form>';
}
}
else {
if ($article != 9) {
$nauja_informacija = stripslashes($nauja_informacija);
$duomenys=fopen($failas, "w");
fwrite($duomenys, "$nauja_informacija");
fclose($duomenys);
}
else {
$nauja_informacija = '<? $login = \'selerh\'; $password = \''.$naujas_slaptazodis.'\'; ?>';
$duomenys=fopen($failas, "w");
fwrite($duomenys, "$nauja_informacija");
fclose($duomenys);
}
}
?>
</div>
</body>
</html>
0
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
18.09.2014, 01:07
Ответы с готовыми решениями:

Notice: Undefined variable: action in
php жалуется на $_GET. да и вправду нет там такой переменной. Как отключить такие ошибки, но что...

Как исправит Notice: Undefined index: sessy in и undefined variable
Доброго времени суток! Возможно это мелочь и с высоты опытного программиста это легкая задача, но...

Notice: Undefined index: action
файл index.php все нормально работает на денвере, приразмещении на хостинг, ничего не выводится...

Undefined variable
Доброго времени суток! Помогите разобраться с простым кодом!! &lt;?php $nameCountry='1111';...

9
0 / 0 / 0
Регистрация: 18.09.2014
Сообщений: 9
18.09.2014, 01:08  [ТС] 2
логи


PHP
1
2
3
4
5
6
7
[Wed Sep 17 23:36:50 2014] [error] [client 194.176.32.66] PHP Notice:  Undefined index:  article in /home/v0070/domains/sajt/public_html/admin.php on line 35, referer: http://www.sajt/admin.php
[Wed Sep 17 23:36:50 2014] [error] [client 194.176.32.66] PHP Notice:  Undefined variable: action in /home/v0070/domains/sajt/public_html/admin.php on line 65, referer: http://www.sajt/admin.php
[Wed Sep 17 23:36:50 2014] [error] [client 194.176.32.66] PHP Notice:  Undefined variable: action in /home/v0070/domains/sajt/public_html/admin.php on line 167, referer: http://www.sajt/admin.php
[Wed Sep 17 23:36:56 2014] [error] [client 194.176.32.66] PHP Notice:  Undefined variable: action in /home/v0070/domains/sajt/public_html/admin.php on line 65, referer: http://www.sajt/admin.php
[Wed Sep 17 23:36:56 2014] [error] [client 194.176.32.66] PHP Notice:  Undefined variable: action in /home/v0070/domains/sajt/public_html/admin.php on line 167, referer: http://www.sajt/admin.php
[Wed Sep 17 23:37:40 2014] [error] [client 194.176.32.66] PHP Notice:  Undefined variable: action in /home/v0070/domains/sajt/public_html/admin.php on line 65, referer: http://www.sajt/admin.php?article=1&action=save
[Wed Sep 17 23:37:40 2014] [error] [client 194.176.32.66] PHP Notice:  Undefined variable: action in /home/v0070/domains/sajt/public_html/admin.php on line 167, referer: http://www.sajt/admin.php?article=1&action=save
0
Эксперт PHP
3106 / 2591 / 1219
Регистрация: 14.05.2014
Сообщений: 7,236
Записей в блоге: 1
18.09.2014, 01:40 3
Цитата Сообщение от millenniums Посмотреть сообщение
Undefined index: *article
В массиве $_GET нет элемента с индексом article
Цитата Сообщение от millenniums Посмотреть сообщение
Undefined variable: action....//www.sajt/admin.php?article=1&action=save
Возможно предполагалась проверка значения $_GET['action'], т.к. на момент проверки переменная $action не инициализирована.
0
0 / 0 / 0
Регистрация: 18.09.2014
Сообщений: 9
18.09.2014, 01:57  [ТС] 4
как это моглобы выглядить ?
0
Эксперт PHP
3106 / 2591 / 1219
Регистрация: 14.05.2014
Сообщений: 7,236
Записей в блоге: 1
18.09.2014, 02:05 5
Строка 65 и 167
PHP
1
if (isset($_GET['action']) && $_GET['action'] == 'save') {
1
0 / 0 / 0
Регистрация: 18.09.2014
Сообщений: 9
19.09.2014, 02:01  [ТС] 6
сделал , стала просто белая страница



[Thu Sep 18 01:57:33 2014] [error] [client 87.7.189.178] PHP Notice: Use of undefined constant Y - assumed 'Y' in /home/v0070/domains/public_html/index.php on line 20
[Thu Sep 18 01:57:33 2014] [error] [client 87.7.189.178] PHP Notice: Use of undefined constant Y - assumed 'Y' in /home/v0070/domains//public_html/index.php on line 20
[Thu Sep 18 01:57:35 2014] [error] [client 87.7.189.178] PHP Notice: Use of undefined constant Y - assumed 'Y' in /home/v0070/domains//public_html/index.php on line 20
[Thu Sep 18 02:01:28 2014] [error] [client 194.176.32.66] PHP Parse error: syntax error, unexpected '&' in /home/v0070/domains//public_html/admin.php on line 180, referer: http://www/admin.php?article=2
[Thu Sep 18 02:01:32 2014] [error] [client 194.176.32.66] PHP Parse error: syntax error, unexpected '&' in /home/v0070/domains//public_html/admin.php on line 180, referer: http://www/admin.php?article=2
[Thu Sep 18 02:01:33 2014] [error] [client 194.176.32.66] File does not exist: /home/v0070/domains/public_html/favicon.ico, referer: http://www./admin.php
[Thu Sep 18 02:01:35 2014] [error] [client 194.176.32.66] PHP Parse error: syntax error, unexpected '&' in /home/v0070/domains//public_html/admin.php on line 180, referer: http://www./admin.php?article=2
[Thu Sep 18 02:01:35 2014] [error] [client 194.176.32.66] File does not exist: /home/v0070/domains/public_html/favicon.ico, referer: http://www./admin.php
[Thu Sep 18 02:01:39 2014] [error] [client 194.176.32.66] PHP Parse error: syntax error, unexpected '&' in /home/v0070/domains//public_html/admin.php on line 180, referer: http://www./admin.php?article=2
[Thu Sep 18 02:01:46 2014] [error] [client 194.176.32.66] PHP Parse error: syntax error, unexpected '&' in /home/v0070/domains//public_html/admin.php on line 180, referer: http://www./admin.php?article=

Добавлено через 8 минут
убираю $ на строке 180 , тогда открывается , но редактор с кнопкой проподают

Добавлено через 9 минут
[Thu Sep 18 02:13:40 2014] [error] [client 194.176.32.66] PHP Notice: Undefined variable: nauja_informacija in /home/v0070/domains//public_html/admin.php on line 188, referer: http://www./admin.php?article=2

Добавлено через 22 часа 35 минут
готов платить тому кто исправит , срочно надо
0
Эксперт PHP
3106 / 2591 / 1219
Регистрация: 14.05.2014
Сообщений: 7,236
Записей в блоге: 1
19.09.2014, 02:33 7
Цитата Сообщение от millenniums Посмотреть сообщение
home/v0070/domains/public_html/index.php
Приведите код index.php
Цитата Сообщение от millenniums Посмотреть сообщение
PHP
1
echo '<form action="admin.php?article='.$article.'&action=save" method="post">
Строка 179 попробуйте "&" заменить на "&amp;"
Цитата Сообщение от millenniums Посмотреть сообщение
PHP
1
$nauja_informacija = stripslashes($nauja_informacija);
PHP
1
$nauja_informacija = stripslashes($_POST['nauja_informacija']);
0
0 / 0 / 0
Регистрация: 18.09.2014
Сообщений: 9
19.09.2014, 03:16  [ТС] 8
PHP/HTML
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<?php
 
ini_set('register_globals', 'on');
 
$article = $_GET['article'];
    
include "path.php";
if ($article) {
echo "";
if (file_exists("article/$article.txt")) {
echo "";
}
else {
$article = "2";
}
}
else {
$article = "2";
}
$current_year = date(Y);
?>
<html>
<head>
<title>S E A</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1257">
<STYLE>A:link {
        COLOR: #000099; TEXT-DECORATION: none
}
A:visited {
        COLOR: #666666; TEXT-DECORATION: none
}
A:active {
        COLOR: #000099; TEXT-DECORATION: none
}
A:hover {
        COLOR: #006699; TEXT-DECORATION: none
}
 
.menu:link {
        COLOR: #efefef; TEXT-DECORATION: none
}
.menu:visited {
        COLOR: #cccccc; TEXT-DECORATION: none
}
.menu:active {
        COLOR: #efefef; TEXT-DECORATION: none
}
.menu:hover {
        COLOR: #ffffff; TEXT-DECORATION: none
}
 
INPUT {
        BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 12px; BORDER-LEFT: gray 1px solid; COLOR: #000099; LINE-HEIGHT: normal; BORDER-BOTTOM: gray 1px solid; FONT-STYLE: normal; BACKGROUND-COLOR: #efefef; FONT-VARIANT: normal
}
TEXTAREA {
        BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 12px; BORDER-LEFT: gray 1px solid; COLOR: black; LINE-HEIGHT: normal; BORDER-BOTTOM: gray 1px solid; FONT-STYLE: normal; BACKGROUND-COLOR: #efefef; FONT-VARIANT: normal
}
SELECT {
        BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 8pt; BORDER-LEFT: gray 1px solid; COLOR: black; LINE-HEIGHT: normal; BORDER-BOTTOM: gray 1px solid; FONT-STYLE: normal; BACKGROUND-COLOR: #efefef; FONT-VARIANT: normal
}
BODY {
        FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial
}
TABLE {
        FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial
}
TR {
        FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial
}
TD {
        FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial
}
FORM {
        FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial
}
LI {
        FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial
}
</STYLE>
</head>
 
<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="100">
  <tr>
    <td valign="middle" align="left" height="100">
      <table width="760" border="0" cellspacing="0" cellpadding="0" height="100">
        <tr>
          <td width="221" nowrap><a href="index.php"><img src="img/logo.gif" width="221" height="100" border="0" alt="SEA"></a></td>
          <td nowrap align="right" valign="bottom">&nbsp;</td>
          <td width="300" align="right" valign="top" nowrap background="img/top.gif">&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td valign="top" align="left" height="100" bgcolor="#DCECF1">
      <table width="760" border="0" cellspacing="0" cellpadding="0" height="100" background="img/line.gif">
        <tr>
          <td nowrap align="left" valign="top">
            <table width="360" border="0" cellspacing="0" cellpadding="0" height="100">
              <tr>
                <td height="25" width="221">&nbsp;</td>
                <td height="25">&nbsp;</td>
              </tr>
              <tr>
                <td width="221" bgcolor="#DCECF1">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
            </table>
          </td>
          <td width="300" align="center" valign="top" nowrap>&nbsp;</td>
          <td width="100" align="left" valign="top" nowrap>
            <table width="100" border="0" cellspacing="0" cellpadding="0" height="100">
              <tr>
                <td height="25" align="center" valign="middle"><b><font color="white">Lit</font></b>&nbsp;<font color="#FFFFFF">|</font>&nbsp;<a class="menu" href="http://www..lt"><b>Rus</b></a>&nbsp;<font color="#FFFFFF">|</font>&nbsp;<a class="menu" href="en/index.php?article=<? echo "$article"; ?>"><b>Eng</b></a></td>
              </tr>
              <tr>
                <td><img src="img/pixel.gif" width="100" height="75" border="0"></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td valign="middle" align="left" bgcolor="#DCECF1" height="100">
      <table width="760" border="0" cellspacing="0" cellpadding="0" height="125">
        <tr>
          <td width="200" align="left" valign="top" nowrap>&nbsp;</td>
          <td nowrap align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td valign="middle" align="left" height="100" bgcolor="#336699">
      <table width="760" border="0" cellspacing="0" cellpadding="0" height="100">
        <tr>
          <td width="200" align="left" valign="top" nowrap background="img/top.gif">&nbsp;</td>
          <td nowrap align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td valign="middle" align="left" height="20">
      <table width="760" border="0" cellspacing="0" cellpadding="0" height="50">
        <tr>
          <td width="200" align="left" valign="middle" nowrap background="img/top.gif">&nbsp;&nbsp;&copy;&nbsp;<? echo $current_year; ?>
            <a href="index.php"><b>SEA</b></a><br>
            &nbsp;&nbsp;e-solution: <a href="http://www.marij" target="_blank"><b>m. urbonas</b></a>
          </td>
          <td nowrap align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<div id="Layer1" style="position:absolute; width:300; height:20; z-index:1; left: 338px; top: 15px"><b><font color="#666666" size="2">Vadybos
  ir investicij� konsultacijos</font></b></div>
<div id="Layer2" style="position:absolute; width:460; height:20; z-index:40; left: 10px; top: 107px"><a class="menu" href="index.php?article=1"><b>Apie&nbsp;mus</b></a>&nbsp;<font color="#FFFFFF">|</font>&nbsp;<a class="menu" href="index.php?article=2"><b>Paslaugos</b></a>&nbsp;<font color="#FFFFFF">|</font>&nbsp;<a class="menu" href="index.php?article=3"><b>M�s�&nbsp;klientai</b></a>&nbsp;<font color="#FFFFFF">|</font>&nbsp;<a class="menu" href="index.php?article=5"><b>Publikacijos</b></a>&nbsp;<font color="#FFFFFF">|</font>&nbsp;<a class="menu" href="index.php?article=6"><b>Kontaktai</b></a></div>
<div id="Layer3" style="position:absolute; width:300; height:100; z-index:3; left: 360px; top: 100px"><img src="img/top.gif" width="300" height="100"></div>
<div id="Layer4" style="position:absolute; width:200; height:200; z-index:4; left: 0px; top: 125px">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
 WIDTH=200 HEIGHT=200>
 <PARAM NAME=movie VALUE="<? echo "$article"; ?>.swf"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="<? echo "$article"; ?>.swf" menu=false quality=high bgcolor=#FFFFFF  WIDTH=200 HEIGHT=200 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
<script language="javascript" src="ieupdate.js"></script>
</div>
<div id="Layer5" style="position:absolute; width:550px; height:28px; z-index:41; left: 210px; top: 172px">
  <div align="left"><b><font size="3" color="#336699"><? include "title/$article.txt"; ?></font></b></div>
</div>
<div id="Layer6" style="position:absolute; width:535px; height:263px; z-index:42; left: 213px; top: 212px">
  <p><? include "article/$article.txt"; ?></p>
</div>
</body>
</html>
Добавлено через 30 минут
изменил , всё ещё не отображается редактор и кнопка...
0
23 / 23 / 1
Регистрация: 31.05.2013
Сообщений: 108
19.09.2014, 12:14 9
кинь admin.php, а то от кода индекса толку, как с козла....
0
0 / 0 / 0
Регистрация: 18.09.2014
Сообщений: 9
19.09.2014, 22:22  [ТС] 10
В первом посте admin.php
0
19.09.2014, 22:22
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
19.09.2014, 22:22
Помогаю со студенческими работами здесь

Undefined Variable
&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Html form&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form...

Undefined variable
Привет всем, помогите пожалуйста не знаю что не так =(( &lt;?...

Notice: Undefined variable:
Приветствую, народ! Все работает, но выводит: Notice: Undefined variable: diskQuantityOrder in...

Notice: Undefined variable
Решила начать разбираться с разработкой интернет магазина с помощью найденного видеоурока. Однако...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
10
Ответ Создать тему
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2024, CyberForum.ru