помогите разделить делить main.tpl на два файла чтобы получилось main.tpl и footer.tpl чтобы в footer.tpl было только нижняя часть сайта а в main.tpl шапка правое меню а потом уже контент а то уменя все пхп файлы начинаются типа инклюд хадер а заканчивается инклюд футер или подскажите как сделать чтобы в контент загружалось пхп вот код main:
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
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
| <!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>
{headers}
<link rel="stylesheet" href="{THEME}/style.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="{THEME}/login.css" type="text/css" media="screen, projection" />
<link rel="shortcut icon" href="{THEME}/images/apple_favicon.gif" type="image/x-icon" />
<script type="text/javascript" src="{THEME}/js/libs.js"></script>
<script type='text/javascript' src='{THEME}/l10n.js?ver=20101110'></script>
{lang: 'ru'}
</script>
</head>
<body>
{AJAX} <div style="display:none;"> <a href="http://smotru.com/" title="смотреть онлайн фильмы">смотреть фильмы онлайн бесплатно</a></div>
<div id="wrapper">
<div id="header">
<h1><a href="/" id="logo" title=""></a></h1>
<div id="plusodin"><g:plusone href="http://iphonegui.ru"></g:plusone></div>
<div id="nav">
<ul>
<li><a href="/game_for_iphone/" id="n1"><span>Игры для iPhone <span>новые и лучшие игры для iPhone</span></span></a></li>
<li><a href="/apps_for_iphone/" id="n2"><span>Программы для iPhone <span>разные полезные программы для iPhone</span></span></a></li>
<li><a href="/forum/" id="n3"><span>Форум <span>Общение об iPhone и iPad</span></span></a></li>
</ul>
</div>
<ul id="subscribes">
<li><noindex><a href="http://twitter.com/#!/iPhoneGui" target="_blank" rel="nofollow"><img src="{THEME}/i/twitter.gif" width="30" height="33" alt="" /></a></noindex></li>
<li><noindex><a href="http://feeds.feedburner.com/iphonegui" target="_blank"><img src="{THEME}/i/rss.gif" width="30" height="33" alt="" /></a></noindex></li>
<li><noindex><a href="http://vkontakte.ru/iphonegui" target="_blank" rel="nofollow"><img src="{THEME}/i/vkontakte.gif" width="32" height="33" alt="" /></a></noindex></li>
</ul>
<div id="adv">
<noindex><a href="http://vkontakte.ru/iphonegui" target="_blank" rel="nofollow"><img src="{THEME}/i/vkontakte_468_60.gif" width="468" height="60" alt="" /></a></noindex>
</div>
</div><!-- #header -->
<div id="middle">
<div id="container">
<div id="content">
[aviable=main]
<!-- holivar
<div class="post">
<div class="ptop"></div>
<center><h2>Что круче?</h2></center>
<div class="entry">
<center>
<iframe src="http://iphonegui.ru/battle/vote_start.php" style="border: medium none; width: 490px; height: 280px; border: 0; padding: 10px;" frameborder="0" scrolling="no"></iframe>
</center>
</div>
<div class="pbot"></div>
</div>
holivar -->
[/aviable]
{info}{content}
</div><!-- #content -->
</div><!-- #container -->
[not-aviable=search]
<div id="sidebar">
<!-- .section --
<div id="search_box">
<form onsubmit="javascript: showBusyLayer()" method="post" action=''>
<input type="hidden" name="do" value="search" />
<input type="hidden" name="subaction" value="search" />
<input name="story" type="text" class="s_poisk" value="Поиск по сайту..." onfocus="this.value = '';" onblur="if(this.value=='') this.value='Поиск по сайту...';" />
<input type="image" style="width:15px; height:15px; border:0" src="{THEME}/i/btn_search.gif" alt="Search" />
</form>
</div>
!-- .section -->
<div id="auth">
{login}
</div>
<div id="search_box_google">
<form action="http://iphonegui.ru/search.html" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-1376371603538682:7284510098" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="Windows-1251" />
<input type="text" name="q" size="30" />
<input type="submit" name="sa" value="Поиск" />
</div>
</form>
<script type="text/javascript" src="http://www.google.ru/coop/cse/brand?form=cse-search-box&lang=ru"></script>
</div>
<div class="section">
<ul class="tabs">
<!--<li class="current"><div>Популярное</div></li>-->
<li><div>Навигация по сайту</div></li>
</ul>
<div class="box visible">
<ul>
<li><a href="/"><span>Главная</span></a></li>
<li><a href="/news/"><span>Новости</span></a></li>
<li><a href="/game_for_iphone/"><span class="top_menu">Игры для iPhone</span></a></li>
<li><a href="/apps_for_iphone/"><span>Программы для iPhone</span></a></li>
<!--<li><a href="/forum/"><span>Форум iPhone & iPad</span></a></li>-->
<li><a href="/themes_for_iphone/"><span>Темы для iPhone</span></a></li>
<li><a href="/kino_for_iphone/"><span>Фильмы для iPhone и iPad</span></a></li>
<li><a href="/games_for_ipad/"><span class="top_menu">Игры для iPad</span></a></li>
<li><a href="/apps_for_ipad/"><span>Программы для iPad</span></a></li>
<li><a href="/jailbreak/"><span>Прошивки / JailBreak</span></a></li>
<!--<li><a href="/other/"><span>Разное</span></a></li>-->
</ul>
</div>
</div>
<!-- .section -->
<div class="section">
<ul class="tabs">
<li><div>Интересное в сети</div></li>
</ul>
<div class="box visible">
<ul>
<div id="PC_Teaser_Block_34896">загрузка...</div>
</ul>
</div>
</div>
<!-- .section -->
<div class="section">
<ul class="tabs">
<li><div>Популярные игры и программы</div></li>
</ul>
<div class="box visible">
<ul>
{topnews}
</ul>
</div>
</div><!-- .section -->
<!-- .section -->
<div class="section">
<ul class="tabs">
<li><div>Выбор редакции</div></li>
</ul>
<div class="box visible">
<table width="100%" class="top_table">
<tr>
<td rowspan="2" width="90" height="90"><a href="/game_for_iphone/1031-angry-birds-hd-for-ipad-v162.html"><img src="{THEME}/mini/angry_birds.jpg" width="80" height="80" alt="Angry Birds" /></a></td>
<td class="top_h"><a href="/game_for_iphone/1031-angry-birds-hd-for-ipad-v162.html">Angry Birds</a></td>
</tr>
<tr>
<td>Версия: 1.6.2</td>
</tr>
<!-- -->
<tr>
<td rowspan="2" height="90"><a href="/game_for_iphone/1022-silent-ops-v100.html"><img src="{THEME}/mini/Silent-Ops.jpg" width="80" height="80" alt="Silent Ops" /></a></td>
<td class="top_h"><a href="/game_for_iphone/1022-silent-ops-v100.html">Silent Ops</a></td>
</tr>
<tr>
<td>Версия: 1.0.0</td>
</tr>
<!-- -->
<tr>
<td rowspan="2" height="90"><a href="/game_for_iphone/1034-cut-the-rope-experiments-v10.html"><img src="{THEME}/mini/Cut-The-Rope.jpg" width="80" height="80" alt="Cut the Rope: Experiments" /></a></td>
<td class="top_h"><a href="/game_for_iphone/1034-cut-the-rope-experiments-v10.html">Cut the Rope: Experiments</a></td>
</tr>
<tr>
<td>Версия: 1.0</td>
</tr>
<!-- -->
<tr>
<td rowspan="2" height="90"><a href="/game_for_iphone/1011-9mm-v100.html"><img src="{THEME}/mini/9mm.jpg" width="80" height="80" alt="9mm" /></a></td>
<td class="top_h"><a href="/game_for_iphone/1011-9mm-v100.html">9mm</a></td>
</tr>
<tr>
<td>Версия: 1.0.0</td>
</tr>
<!-- -->
<tr>
<td rowspan="2" height="90"><a href="/game_for_iphone/985-backstab-v100.html"><img src="{THEME}/mini/BackStab.jpg" width="80" height="80" alt="BackStab" /></a></td>
<td class="top_h"><a href="/game_for_iphone/985-backstab-v100.html">BackStab</a></td>
</tr>
<tr>
<td>Версия: 1.0.0</td>
</tr>
<!-- -->
<tr>
<td rowspan="2" height="90"><a href="/game_for_iphone/961-death-rally-v15.html"><img src="{THEME}/mini/Death-Rally.jpg" width="80" height="80" alt="Death Rally" /></a></td>
<td class="top_h"><a href="/game_for_iphone/961-death-rally-v15.html">Death Rally</a></td>
</tr>
<tr>
<td>Версия: 1.5</td>
</tr>
<!-- -->
<tr>
<td rowspan="2" height="90"><a href="/game_for_iphone/887-the-sims-3-v1365.html"><img src="{THEME}/mini/The-Sims-3.jpg" width="80" height="80" alt="The Sims 3" /></a></td>
<td class="top_h"><a href="/game_for_iphone/887-the-sims-3-v1365.html">The Sims 3</a></td>
</tr>
<tr>
<td>Версия: 1.3.65</td>
</tr>
</table>
</div>
</div><!-- .section -->
<div align="center">
<div class="counts">
<center>
<!--LiveInternet counter--><script type="text/javascript"><!--
document.write("<a href='http://www.liveinternet.ru/click' "+
"target=_blank><img src='//counter.yadro.ru/hit?t44.1;r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random()+
"' alt='' title='LiveInternet' "+
"border='0' width='31' height='31'><\/a>")
//--></script><!--/LiveInternet-->
</center>
</div>
</div><!-- #sidebar -->
[/not-aviable]
</div><!-- #middle -->
</div><!-- #wrapper -->
<div id="footer"><div id="foot">
<strong>© 2010—2011, iPhoneGui.ru</strong> Игры и программы для iPhone и iPad бесплатно.
</div></div><!-- #footer -->
</body>
</html> |
|
Добавлено через 3 минуты
хотябы поскажите как это вставить в боковое меню ато втавляю а оно мне показывает втавленый код вот вариант что я хочу вставить:
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
| [user]
<img src="avp/{avatar}" alt=""/> <br />
Здравствуйте, <b><font color="red">{user}</font></b> <a href="user-{user}.html"><img src="ico/002.png" align="top" alt="" border="0" /></a><br />
<table class="blockss" width="200" border="0" cellpadding="2" cellspacing="0">
</p>
[/user]
[no-user]
<table width="200">
<tr>
<th scope="col"><center><span class="style1">Авторизация</span></center></th>
</tr>
</table>
<form action="login.php" method="post">
<table width="200">
<tr>
<th scope="col"><img src="ico/10/002.png" align="top" alt=""/> <b>Логин: </b>
<input size="20" maxlength="25" name="username" value="" tabindex="2" type="text" /></th>
</tr>
</table>
<table width="200">
<tr>
<th scope="col"><img src="ico/10/065.png" align="top" alt=""/> <b>Пароль:</b>
<input size="20" maxlength="25" name="password" value="" tabindex="2" type="password" />
<br /></th>
</tr>
</table>
<table width="200">
<tr>
<th scope="col"><button type="submit"><img src="ico/icons/user_go.png" alt="Image"/>Авторизироваться</button> </form>
</th>
</tr>
</table>
<table width="200">
<tr>
<th scope="col">[wmlogin1]
<a rel="nofollow" href='https://login.wmtransfer.com/GateKeeper.aspx?RID={urlid}'>
<button type="submit">
<img src="ico/wm/wmk.png" width="" height="" alt="" border="0"/> Login.WebMoney</button></a>
[/wmlogin1]</th>
</tr>
</table>
<table width="200">
<tr>
<th scope="col"><a href='register.php'><font color="#FF3300">Регистрация</font></a>
<br /><a href="restorepass.php">Забыли пароль?</a> </th>
</tr>
</table>
[/no-user] |
|