plugin
забираем тут:
Для просмотра скрытого содержимого вы должны войти или зарегистрироваться.
забираем тут:
Для просмотра скрытого содержимого вы должны войти или зарегистрироваться.
Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
{* SHOW BASHORG *}
<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td class='home_header'>Цитата БашОрга</td></tr>
<tr><td class='home_box'>
<div style="border: 1px solid #9999bb; background: #f0f0ff; padding: 5px; font-family: 'Monaco', 'Courier New', monospace; font-size: 10pt;">
{literal}
<script language="JavaScript" type="text/javascript" src="http://bash.org.ru/forweb"></script>
{/literal}
</div>
</td>
</tr>
</table>
--
-- Структура таблицы `se_declare`
--
CREATE TABLE `se_declare` (
`id` int(9) NOT NULL auto_increment,
`username` text NOT NULL,
`sex` text NOT NULL,
`gender` text NOT NULL,
`msg` text NOT NULL,
UNIQUE KEY `id` (`id`),
UNIQUE KEY `id_2` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=59 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=59 ;
include "./include/declare.php";
//ADD DECLARE
$declares = declare_list(0, 10);
$smarty->assign('declares', $declares);
В нем же где удобно:{literal}
<script language="JavaScript">
<!--
Rollimage0 = new Array()
Rollimage1 = new Array()
Rollimage0['join']= new Image(10,12);
Rollimage0['join'].src = "./images/icons/action_delete1.gif";
Rollimage1['join'] = new Image(10,12);
Rollimage1['join'].src = "./images/icons/action_delete2.gif";
function SwapOut(imgname, imgsrc) {
imgname.src = Rollimage1[imgsrc].src;
return true;
}
function SwapBack(imgname, imgsrc) {
imgname.src = Rollimage0[imgsrc].src;
return true;
}
//-->
</script>
{/literal}
{* START DECLARE'S *}
{if $user->user_exists == 1}
<table cellpadding='0' cellspacing='0' class='portal_table' width='100%'>
<tr><td class='header'>Заяви о себе</td></tr>
<tr>
<td class='portal_box'>
{section name=declare loop=$declares max=5}
<table cellpadding='0' cellspacing='0' width='200'>
<tr>
<td class='profile_item2'>
<table cellpadding='0' cellspacing='0' width='200'>
<tr>
<td class='profile_comment_author'><b>
<img src="images/icons/{$declares[declare].sex}.png" class="photo"> <a href='/profile.php?user={$declares[declare].username}'>{$declares[declare].username}</a> {$datetime->age($declares[declare].gender)}</b>
{if $user->user_info.user_id < 2}
<a href="delete_declare.php?declare_id={$declares[declare].id}"><img src='./images/icons/action_delete1.gif' style='vertical-align: middle; margin-left: 3px;' border='0' onmouseover="SwapOut(this, 'join')" onmouseout="SwapBack(this, 'join')" name='join{$declares[declare].id}' id='join{$declares[declare].id}'></a>
{/if}
</td>
</tr>
<tr>
<td colspan='2' class='profile_comment_body'>{$declares[declare].msg|choptext:25:"<br>"}</td>
</tr>
</table>
</td>
</tr>
</table>
{/section}
<br />[<a href='add_declare.php'>Добавить записьКу</a>]
</td>
</tr>
</table>
{/if}
{* END DECLARE *}