Форум программистов, компьютерный форум, киберфорум
DataLife Engine (DLE)
Войти
Регистрация
Восстановить пароль
Карта форума Темы раздела Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.75/12: Рейтинг темы: голосов - 12, средняя оценка - 4.75
0 / 0 / 0
Регистрация: 13.12.2010
Сообщений: 73
1

помогите разделить делить main.tpl

23.09.2011, 17:35. Показов 2368. Ответов 2
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
помогите разделить делить 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="&#x041f;&#x043e;&#x0438;&#x0441;&#x043a;" />
  </div>
</form>
 
<script type="text/javascript" src="http://www.google.ru/coop/cse/brand?form=cse-search-box&amp;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>© 20102011, 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>Логин:&nbsp;&nbsp;&nbsp;</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>&nbsp;</th>
  </tr>
</table>
 
[/no-user]
0
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
23.09.2011, 17:35
Ответы с готовыми решениями:

<h1> в main.tpl
Доброго времени суток уважаемые форумчане! У меня возник вопрос, который я без Вашей помощи решить...

Две главные странице в main.tpl
Кто сталкивался с подобным ?? В маин похожим на тег авиабле можно поделить на несколько страниц...

Вывод содержимого нескольких страниц в main.tpl
Есть главная страничка... нужно на нее вывести потроха нескольких определенных статистических...

Добавление новостей не только в main.tpl, но и в *.html файлы
Все привет. Сразу скажу что я новичок в работе с движком DLE, потому не судите строго. У меня...

2
грОмотей
239 / 175 / 17
Регистрация: 01.04.2011
Сообщений: 1,435
11.10.2011, 06:19 2
100 рублей на WEB - money и разделю...
0
грОмотей
239 / 175 / 17
Регистрация: 01.04.2011
Сообщений: 1,435
11.10.2011, 06:19 3
100 рублей на WEB - money и разделю...
0
11.10.2011, 06:19
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
11.10.2011, 06:19
Помогаю со студенческими работами здесь

Как вставить скрипт смены валюты в main.tpl?
Всем здарова. Нашел скрипт смены валюты вроде бы рабочий, как его например вставить в main.tpl? ...

Возможно ли, чтобы при заходе на сайт загружался не main.tpl, а другой шаблон?
возможно ли сделать так что бы при заходе на сайт загружаться не main.tpl а другой шаблон, а на...

RIP сайта. Отображается main.tpl на странице с полной новостью/статических страницах
Сначала не открывалась страница с полной новостью и статические страницы, прописал {info}{content}...

Импорт из main.tpl в style.css ???
Как правильно перенести стили из main.tpl в style.css ? Тем самым разгрузить (уменьшить вес...


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

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