Ajaxel content management system and framework

Ajaxel система управления сайтом в9.1 и фреймворк

Очень простая аяксовая CMS и фреймворк для любых потребностей проекта. Редактируйте содержимое своего веб-сайта из бэкэнда или внешнего интерфейса. Попробуйте и убедитесь, насколько хорош этот материал!

Ajaxel intranet system

Ajaxel интранет система заказов

Список новых входящих заказов (с удаленных веб-сайтов) с возможностью массовой рассылки электронных писем с сгенерированными вложениями в формате PDF и SMS-сообщениями. Изменение статусов, сохранение ответов и другие. Поставляется с CMS Ajaxel

Ajaxel live slot-machine game

Игровой автомат Ajaxel

Проверьте эту игру, посмотрите, насколько это круто) Доска 5x3, чтобы крутить для победы. Приятная анимация, играющая музыка, бонусы, списки победителей. Можно создавать собственные иконки, линии и призы... Поставляется с Ajaxel CMS. Кроме того, у меня есть игра в онлайн-покер.

Timemonkey - efficient time management web based software

TimeMonkey - Efficient time management web-based

Think positive, save ideas, save thoughts, manage you tasks and control your calendar. Export calendar to your web site!

Ajaxel customer relationship manager

PollExpert - Professional survey web-based

Create your individual, corporate-, secure- or step-by-step online poll. You don't need to be an IT expert. Export results to excel.

Ajaxel customer relationship manager

Любой другой летающий сайт с Ajaxel CMS. Разработка

Создайте желаемый проект с помощью Ajaxel Студии!

Forum template, all-in-one

Home :: HTML and CSS lessons :: Forum template, all-in-oneReply
Forum template, all-in-one
Posted by Alexander Shatalov
Smarty
{strip}
{if $data.type=='categories'}
        <h1>{'Forum categories'|lang}</h1>
        <table cellspacing="0" cellpadding="0" class="table">
                <tbody>
                       
                        <tr class="head">
                                <td class="a">{'Category'|lang}</td>
                                <td width="5%">{'Threads'|lang}</td>
                                <td width="5%" class="b">{'Posts'|lang}</td>
                        </tr>
                        {foreach from=$data.list key=i item=d}
                        <tr class="row{if $i%2} odd{/if}">
                                <td class="a">
                                        <a href="?forum&category={$d.id}" class="ajax_link">{$d.title}</a>
                                       
{$d.descr}
                                </td>
                                <td{if !$d.threads} style="color:#777"{/if}>
                                        {$d.threads}
                                </td>
                                <td class="b"{if !$d.posts} style="color:#777"{/if}>
                                        {$d.posts}
                                </td>
                        </tr>
                        {/foreach}
                </tbody>
        </table>
       
       
{elseif $data.type=='threads'}
        {if $reply}
                <h1>{'Add new thread to %1'|lang:$cat.title}</h1>
               
                        <a href="?forum" class="ajax_link">Home</a> :: {$cat.title}
               
               
                {if $User.UserID}
                        <table cellspacing="0" cellpadding="0" class="form">
                        <tbody>
                               
                                <tr><td>
                                        <form method="post" action="?{$URL}" class="ajax_form center-area">
                                        {include file='includes/form_errors.tpl'}
                                        <h3 class="x">{'New thread:'|lang}<span class="x">{'New thread:'|lang}</span></h3>
                                        <input class="textbox" name="title" onfocus="if(this.value=='{'_Thread title'|lang}'){ this.value='';this.style.color='#000'}" onblur="if (this.value=='') { this.value='{'_Thread title'|lang}';this.style.color='#888' }" style="{if !$smarty.post.title}color:#888;{/if}width:96%;margin:10px 1% 4px 1%;padding:5px 1%;-family:'Lucida Console'" value="{if $smarty.post.title}{$smarty.post.title|strform}{else}{'_Thread title'|lang}{/if}" />
                                        <textarea class="textbox" name="message" onfocus="if(this.value=='{'_Thread message'|lang}'){ this.value='';this.style.color='#000'}" onblur="if (this.value=='') { this.value='{'_Thread message'|lang}';this.style.color='#888' }" style="{if !$smarty.post.message}color:#888;{/if}width:96%;margin:4px 1% 10px 1%;height:280px;padding:5px 1%;-family:'Lucida Console'">{if $smarty.post.message}{$smarty.post.message|strform}{else}{'_Thread message'|lang}{/if}</textarea>
                                       
                                        <button type="submit" class="x">{'Submit'|lang}<span class="x">{'Submit'|lang}</span></button>
                                       
                                        </form>
                                </td></tr>
                        </tbody>
                </table>
                {else}
                       
                        <a href="?user&login&jump=forum/category-{$cat.id}/reply" class="ajax_link">{'You need to login in order to start new thread in our forum'|lang}</a>
                       
                {/if}
               
                <a href="?forum&category={$cat.id}" class="ajax_link"><< Cancel</a>
               
        {else}
               
                <h1>{$cat.title}</h1>
               
                        <a href="?forum" class="ajax_link">Home</a> :: {$cat.title}
                        <a href="?forum&category={$cat.id}&reply" style="float:right" class="ajax_link">{'Add new thread'|lang}</a>
               
                <table cellspacing="0" cellpadding="0" class="table">
                        <tbody>
                               
                                <tr class="head">
                                        <td class="a">Threads</td>
                                        <td width="10%">Date</td>
                                        <td width="5%">Posts</td>
                                </tr>
                                {foreach from=$data.list key=i item=d}
                                <tr class="row{if $i%2} odd{/if}">
                                        <td class="a">
                                                <a href="?forum&thread={$d.id}" class="ajax_link">{$d.title}</a>
                                               
{($d.descr|strip_tags)|trunc:300:1:1}
                                                {if $smarty.const.IS_ADMIN}
                                                       
                                                                <a href="javascript:;" onclick="if(confirm('Are you sure to delete this thread?')) S.G.get('?forum&category={$cat.id}&thread={$d.id}&delete',0,1);">{'Delete this thread'|lang}</a>
                                                       
                                                {/if}
                                        </td>
                                        <td>{'Date'|Call:'dayCountDown':$d.dated}</td>
                                        <td{if !$d.posts} style="color:#777"{/if}>
                                                {$d.posts}
                                        </td>
                                </tr>
                                {/foreach}
                        </tbody>
                </table>
               
                <a href="?forum" class="ajax_link"><< {'Back to forum home'|lang}</a>
                <a href="?forum&category={$cat.id}&reply" style="float:right" class="ajax_link">{'Add new thread'|lang}</a>
               
        {/if}
{elseif $data.type=='posts'}
        {if $reply}
                <h1>{'Reply to %1'|lang:$thread.title}</h1>
               
                        <a href="?forum" class="ajax_link">Home</a> :: <a href="?forum&category={$cat.id}" class="ajax_link">{$cat.title}</a> :: <a href="?forum&category={$cat.id}&thread={$thread.id}" class="ajax_link">{$thread.title}</a> :: Reply
               
               
                <table cellspacing="0" cellpadding="0" class="table">
                        <tbody>
                               
                                <tr class="thread">
                                        <td class="a" colspan="2">
                                               
{$thread.title}
                                               
                                                       
Posted {'Date'|Call:'dayCountDown':$thread.dated} by <b>{$thread.user}</b>
                                                        {$thread.descr}
                                               
                                        </td>
                                </tr>
                        </tbody>
                </table>
                {if $User.UserID}
                        <form method="post" action="?{$URL}" class="ajax_form center-area">
                        {include file='includes/form_errors.tpl'}
                        <h3 class="x" style="text-align:left;margin-top:10px">{'Your reply:'|lang}<span class="x">{'Your reply:'|lang}</span></h3>
                        <textarea class="textbox" name="message" onfocus="if(this.value=='{'_Message'|lang}'){ this.value='';this.style.color='#000'}" onblur="if (this.value=='') { this.value='{'_Message'|lang}';this.style.color='#888' }" style="{if !$smarty.post.message}color:#888;{/if}width:96%;margin:4px 1% 10px 1%;height:280px;padding:5px 1%;-family:'Lucida Console'">{if $smarty.post.message}{$smarty.post.message|strform}{else}{'_Message'|lang}{/if}</textarea>
                       
                        <button type="submit" class="x">{'Submit'|lang}<span class="x">{'Submit'|lang}</span></button>
                       
                        </form>
                {else}
                       
                                <a href="?user&login&jump=forum/category-{$cat.id}/thread-{$thread.id}/reply" class="ajax_link">{'You need to login in order to write on our forum'|lang}</a>
                       
                {/if}
               
                <a href="?forum&category={$cat.id}&thread={$thread.id}" class="ajax_link"><< Cancel</a>
               
        {else}
                <h1>{$thread.title}</h1>
                {if $smarty.const.IS_ADMIN}
                       
                                <a href="javascript:;" onclick="if(confirm('Are you sure to delete this thread?')) S.G.get('?forum&category={$cat.id}&thread={$thread.id}&delete',0,1);">{'Delete this thread'|lang}</a>
                       
                {/if}
               
                        <a href="?forum" class="ajax_link">Home</a> :: <a href="?forum&category={$cat.id}" class="ajax_link">{$cat.title}</a> :: {$thread.title}
                        <a href="?forum&category={$cat.id}&thread={$thread.id}&reply" style="float:right" class="ajax_link">Reply</a>
               
                <table cellspacing="0" cellpadding="0" class="table">
                        <tbody>
                                <tr class="thread">
                                        <td class="a" colspan="2">
                                               
{$thread.title}
                                               
                                                       
Posted {'Date'|Call:'dayCountDown':$thread.dated} by <b>{$thread.user}</b>
                                                        {$thread.descr}
                                               
                                        </td>
                                </tr>
                                {foreach from=$data.list key=i item=d}
                               
                                <tr class="row{if $i%2} odd{/if}">
                                        <td style="text-align:left;width:15%" class="post_author">
                                                <b style="-size:13px">{$d.user}</b>
                                                <span style="-size:13px">{'Date'|Call:'dayCountDown':$d.added}</span>
                                                {if $smarty.const.IS_ADMIN}
                                                       
                                                                <a href="javascript:;" onclick="if(confirm('Are you sure to delete this post?')) S.G.get('?forum&category={$cat.id}&thread={$thread.id}&del={$d.id}',0,1);">{'Delete this post'|lang}</a>
                                                       
                                                {/if}
                                        </td>
                                        <td style="text-align:left" class="post_descr">
                                                {$d.descr}
                                        </td>
                                </tr>
                                {/foreach}
                        </tbody>
                </table>
               
                <a href="?forum&category={$cat.id}" class="ajax_link"><< Back to {$cat.title}</a>
                <a href="?forum&category={$cat.id}&thread={$thread.id}&reply" style="float:right" class="ajax_link">Reply</a>
               
        {/if}
{/if}
{include file='content/pager.tpl' pager=$data.pager}
{/strip}

wink
HTML (4.0.1)
{strip}
{if $data.type=='categories'}
        <h1>{'Forum categories'|lang}</h1>
        <table cellspacing="0" cellpadding="0" class="table">
                <tbody>
                       
                        <tr class="head">
                                <td class="a">{'Category'|lang}</td>
                                <td width="5%">{'Threads'|lang}</td>
                                <td width="5%" class="b">{'Posts'|lang}</td>
                        </tr>
                        {foreach from=$data.list key=i item=d}
                        <tr class="row{if $i%2} odd{/if}">
                                <td class="a">
                                        <a href="?forum&category={$d.id}" class="ajax_link">{$d.title}</a>
                                       
{$d.descr}
                                </td>
                                <td{if !$d.threads} style="color:#777"{/if}>
                                        {$d.threads}
                                </td>
                                <td class="b"{if !$d.posts} style="color:#777"{/if}>
                                        {$d.posts}
                                </td>
                        </tr>
                        {/foreach}
                </tbody>
        </table>
       
       
{elseif $data.type=='threads'}
        {if $reply}
                <h1>{'Add new thread to %1'|lang:$cat.title}</h1>
               
                        <a href="?forum" class="ajax_link">Home</a> :: {$cat.title}
               
               
                {if $User.UserID}
                        <table cellspacing="0" cellpadding="0" class="form">
                        <tbody>
                               
                                <tr><td>
                                        <form method="post" action="?{$URL}" class="ajax_form center-area">
                                        {include file='includes/form_errors.tpl'}
                                        <h3 class="x">{'New thread:'|lang}<span class="x">{'New thread:'|lang}</span></h3>
                                        <input class="textbox" name="title" onfocus="if(this.value=='{'_Thread title'|lang}'){ this.value='';this.style.color='#000'}" onblur="if (this.value=='') { this.value='{'_Thread title'|lang}';this.style.color='#888' }" style="{if !$smarty.post.title}color:#888;{/if}width:96%;margin:10px 1% 4px 1%;padding:5px 1%;-family:'Lucida Console'" value="{if $smarty.post.title}{$smarty.post.title|strform}{else}{'_Thread title'|lang}{/if}" />
                                        <textarea class="textbox" name="message" onfocus="if(this.value=='{'_Thread message'|lang}'){ this.value='';this.style.color='#000'}" onblur="if (this.value=='') { this.value='{'_Thread message'|lang}';this.style.color='#888' }" style="{if !$smarty.post.message}color:#888;{/if}width:96%;margin:4px 1% 10px 1%;height:280px;padding:5px 1%;-family:'Lucida Console'">{if $smarty.post.message}{$smarty.post.message|strform}{else}{'_Thread message'|lang}{/if}</textarea>
                                       
                                        <button type="submit" class="x">{'Submit'|lang}<span class="x">{'Submit'|lang}</span></button>
                                       
                                        </form>
                                </td></tr>
                        </tbody>
                </table>
                {else}
                       
                        <a href="?user&login&jump=forum/category-{$cat.id}/reply" class="ajax_link">{'You need to login in order to start new thread in our forum'|lang}</a>
                       
                {/if}
               
                <a href="?forum&category={$cat.id}" class="ajax_link"><< Cancel</a>
               
        {else}
               
                <h1>{$cat.title}</h1>
               
                        <a href="?forum" class="ajax_link">Home</a> :: {$cat.title}
                        <a href="?forum&category={$cat.id}&reply" style="float:right" class="ajax_link">{'Add new thread'|lang}</a>
               
                <table cellspacing="0" cellpadding="0" class="table">
                        <tbody>
                               
                                <tr class="head">
                                        <td class="a">Threads</td>
                                        <td width="10%">Date</td>
                                        <td width="5%">Posts</td>
                                </tr>
                                {foreach from=$data.list key=i item=d}
                                <tr class="row{if $i%2} odd{/if}">
                                        <td class="a">
                                                <a href="?forum&thread={$d.id}" class="ajax_link">{$d.title}</a>
                                               
{($d.descr|strip_tags)|trunc:300:1:1}
                                                {if $smarty.const.IS_ADMIN}
                                                       
                                                                <a href="javascript:;" onclick="if(confirm('Are you sure to delete this thread?')) S.G.get('?forum&category={$cat.id}&thread={$d.id}&delete',0,1);">{'Delete this thread'|lang}</a>
                                                       
                                                {/if}
                                        </td>
                                        <td>{'Date'|Call:'dayCountDown':$d.dated}</td>
                                        <td{if !$d.posts} style="color:#777"{/if}>
                                                {$d.posts}
                                        </td>
                                </tr>
                                {/foreach}
                        </tbody>
                </table>
               
                <a href="?forum" class="ajax_link"><< {'Back to forum home'|lang}</a>
                <a href="?forum&category={$cat.id}&reply" style="float:right" class="ajax_link">{'Add new thread'|lang}</a>
               
        {/if}
{elseif $data.type=='posts'}
        {if $reply}
                <h1>{'Reply to %1'|lang:$thread.title}</h1>
               
                        <a href="?forum" class="ajax_link">Home</a> :: <a href="?forum&category={$cat.id}" class="ajax_link">{$cat.title}</a> :: <a href="?forum&category={$cat.id}&thread={$thread.id}" class="ajax_link">{$thread.title}</a> :: Reply
               
               
                <table cellspacing="0" cellpadding="0" class="table">
                        <tbody>
                               
                                <tr class="thread">
                                        <td class="a" colspan="2">
                                               
{$thread.title}
                                               
                                                       
Posted {'Date'|Call:'dayCountDown':$thread.dated} by <b>{$thread.user}</b>
                                                        {$thread.descr}
                                               
                                        </td>
                                </tr>
                        </tbody>
                </table>
                {if $User.UserID}
                        <form method="post" action="?{$URL}" class="ajax_form center-area">
                        {include file='includes/form_errors.tpl'}
                        <h3 class="x" style="text-align:left;margin-top:10px">{'Your reply:'|lang}<span class="x">{'Your reply:'|lang}</span></h3>
                        <textarea class="textbox" name="message" onfocus="if(this.value=='{'_Message'|lang}'){ this.value='';this.style.color='#000'}" onblur="if (this.value=='') { this.value='{'_Message'|lang}';this.style.color='#888' }" style="{if !$smarty.post.message}color:#888;{/if}width:96%;margin:4px 1% 10px 1%;height:280px;padding:5px 1%;-family:'Lucida Console'">{if $smarty.post.message}{$smarty.post.message|strform}{else}{'_Message'|lang}{/if}</textarea>
                       
                        <button type="submit" class="x">{'Submit'|lang}<span class="x">{'Submit'|lang}</span></button>
                       
                        </form>
                {else}
                       
                                <a href="?user&login&jump=forum/category-{$cat.id}/thread-{$thread.id}/reply" class="ajax_link">{'You need to login in order to write on our forum'|lang}</a>
                       
                {/if}
               
                <a href="?forum&category={$cat.id}&thread={$thread.id}" class="ajax_link"><< Cancel</a>
               
        {else}
                <h1>{$thread.title}</h1>
                {if $smarty.const.IS_ADMIN}
                       
                                <a href="javascript:;" onclick="if(confirm('Are you sure to delete this thread?')) S.G.get('?forum&category={$cat.id}&thread={$thread.id}&delete',0,1);">{'Delete this thread'|lang}</a>
                       
                {/if}
               
                        <a href="?forum" class="ajax_link">Home</a> :: <a href="?forum&category={$cat.id}" class="ajax_link">{$cat.title}</a> :: {$thread.title}
                        <a href="?forum&category={$cat.id}&thread={$thread.id}&reply" style="float:right" class="ajax_link">Reply</a>
               
                <table cellspacing="0" cellpadding="0" class="table">
                        <tbody>
                                <tr class="thread">
                                        <td class="a" colspan="2">
                                               
{$thread.title}
                                               
                                                       
Posted {'Date'|Call:'dayCountDown':$thread.dated} by <b>{$thread.user}</b>
                                                        {$thread.descr}
                                               
                                        </td>
                                </tr>
                                {foreach from=$data.list key=i item=d}
                               
                                <tr class="row{if $i%2} odd{/if}">
                                        <td style="text-align:left;width:15%" class="post_author">
                                                <b style="-size:13px">{$d.user}</b>
                                                <span style="-size:13px">{'Date'|Call:'dayCountDown':$d.added}</span>
                                                {if $smarty.const.IS_ADMIN}
                                                       
                                                                <a href="javascript:;" onclick="if(confirm('Are you sure to delete this post?')) S.G.get('?forum&category={$cat.id}&thread={$thread.id}&del={$d.id}',0,1);">{'Delete this post'|lang}</a>
                                                       
                                                {/if}
                                        </td>
                                        <td style="text-align:left" class="post_descr">
                                                {$d.descr}
                                        </td>
                                </tr>
                                {/foreach}
                        </tbody>
                </table>
               
                <a href="?forum&category={$cat.id}" class="ajax_link"><< Back to {$cat.title}</a>
                <a href="?forum&category={$cat.id}&thread={$thread.id}&reply" style="float:right" class="ajax_link">Reply</a>
               
        {/if}
{/if}
{include file='content/pager.tpl' pager=$data.pager}
{/strip}

Complete this survey before you download :)


Which website you like to create:
Your plan:
Tell us more about the website you wish to have: (optional)
Website domain:
Your E-mail:
Survey passed: 314 times, starting from 16.09.2013

Главная – Новости – Партнёры – Услуги – Портфолио – Скрипты – Заказать – Обратка