Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > TBDev
Reply
  #1  
Old 17-03-14, 17:58
elite001's Avatar
elite001 elite001 is offline
Member
 
Join Date: Jun 2010
P2P
Posts: 3
Default tpl and php help

Hy, i need your help to programming chat.tpl. This is one customised torrent motor. The code is consequential:

Code:
{include file='fejresz.tpl'}
{* a fejlec csatolasa *}



{* infopanel csatolása *}
{include file='infopanel.tpl'}
<script language="javascript" type="text/javascript" src="scriptek/ajaxqueue.js"></script>
<script language="javascript" type="text/javascript" src="scriptek/hotkeys.js"></script>
{literal}
 <script type="text/javascript">
           
 </script>
{/literal}

<div id="body">
	{foreach from=$OLDAL key=i item=ertek}
		{$ertek}
	{/foreach}

{ if $mehet== true}

{'Üzenőfal'|section_open}
<div class="center"> 
	<div id="uzifal_doboz_nagy">
		<div id="uzifal_doboz">
			<div id="uzifal">
			</div>
		</div>
	</div>
	
	<div id="bevitel">
		<div style="width:100%;text-align:left;padding-left:10px;">
			<h2>Üzenet küldés</h2>
		</div>
		<table width="95%">
			<tr>
				<td rowspan="2">
					<textarea id="chat_uzi" class="textarea" style="border:1px solid #726D5F;height:60px;width:330px;"></textarea>
				</td>
				<td colspan="2">
					<img src="kinezet/smilies/smile1.gif" title=":)" class="kat copy" />
					<img src="kinezet/smilies/wink.gif" title=";)" class="kat copy" />
					<img src="kinezet/smilies/grin.gif" title=":D" class="kat copy" />	
					<img src="kinezet/smilies/sad.gif" title=":(" class="kat copy" />	
					<img src="kinezet/smilies/cry.gif" title=":'(" class="kat copy" />	
					<img src="kinezet/smilies/laugh.gif" title=":lol:" class="kat copy" />
					<img src="kinezet/smilies/yes.gif" title=":yes:" class="kat copy" />	
					<img src="kinezet/smilies/no.gif" title=":no:" class="kat copy" />
					<img src="kinezet/smilies/question.gif" title=":?:" class="kat copy" />	
					<img src="kinezet/smilies/excl.gif" title=":!:" class="kat copy" />						
				</td>
			</tr>	
			<tr>		
				<td>Üzenet szine:
					<select size="1" name="color" id="colors">
						<option  value="alap">Alapérték</option>
						
						<option style="background-color: black; color: black;" value="black">Fekete</option>

						<option style="background-color: white; color: white;" value="white">Fehér</option>
						<option style="background-color: green; color: green;" value="green">Zöld</option>
						<option style="background-color: maroon; color: maroon;" value="maroon">Gesztenye</option>
						<option style="background-color: olive; color: olive;" value="olive">Oliva</option>
						<option style="background-color: navy; color: navy;" value="navy">Mélykék</option>
						<option style="background-color: purple; color: purple;" value="purple">Lila</option>

						<option style="background-color: gray; color: gray;" value="gray">Szürke</option>
						<option style="background-color: yellow; color: yellow;" value="yellow">Sárga</option>
						<option style="background-color: lime; color: lime;" value="lime">Lime</option>
						<option style="background-color: aqua; color: aqua;" value="aqua">Cián</option>
						<option style="background-color: fuchsia; color: fuchsia;" value="fuchsia">Ciklámen</option>
						<option style="background-color: silver; color: silver;" value="silver">Ezüst</option>

						<option style="background-color: red; color: red;" value="red">Piros</option>
						<option style="background-color: blue; color: blue;" value="blue">Kék</option>
						<option style="background-color: teal; color: teal;" value="teal">Pávakék</option>
					</select>
				</td>
				
				<td>
					<input  src="kinezet/{$ipanel.smink}/btn_send.png" type="image" id="kuldes" />
				</td>
			</table>
	</div>	
</div>
<script type="text/javascript">

var UZENOFAL_REFRESH_TIME = 4000;
</script>
<script type="text/javascript" src="scriptek/uzifal.js"></script>

{'Chat'|section_end}




{/if}
</div>

{literal}
<!--script type="text/javascript">

var UZENOFAL_REFRESH_TIME = 4000;
</script>
<script type="text/javascript" src="scriptek/uzifal.js"></script -->

{/literal}
{* a labresz csatolasa *}
{include file='labresz.tpl'}
and php code

PHP Code:
<?php
ob_start
();
define('SZINT',666);
require_once(
'rendszer/mag.php');
$belep=new belep(); // user belépés chek
$old=new old(); //oldalelemek betöltése

$smarty->assign('mehet',true);
$smarty->assign('OLDAL',$OLDAL);
$smarty->display('uzenofal.tpl');
ob_end_flush ();
?>
and script

Code:
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('2 7=v;2 f=\'H\';$().C(0(){c()});0 c(){o.l({n:"k.p",j:"h",i:{g:\'B\',r:7,D:f},E:0(a){$(\'#F\').A(a)}});f=\'u\'}$(\'#5\').8(\'t\',0(e){(e.4)?4=e.4:4=e.w;m(4==x){d();6 9}6 G});$(\'#O\').8(\'s\',0(){d();6 9});0 d(){2 a=$(\'#5\').3();2 b=$(\'#R\').3();m(a.S<1)6 9;o.l({n:"k.p",j:"h",i:{g:\'T\',N:a,r:7,M:b}});$(\'#5\').3(\'\')}$(\'.J\').8(\'s\',0(){q=$(\'#5\').3()+$(K).P(\'Q\');$(\'#5\').3(q)});2 I=y.z("c()",L);',56,56,'function||var|val|keyCode|chat_uzi|return|UZANOFALTOPICID|bind|false|||contentUpdate|sendComment||FRISTUPDATE|modul|POST|data|type|chat_admin|ajaxQueue|if|url|jQuery|php|newVal|id|click|keypress|no|14|which|13|self|setInterval|prepend|gethsz|ready|extra|success|uzifal|true|yes|uzenetFrissites|copy|this|UZENOFAL_REFRESH_TIME|szin|text|kuldes|attr|title|colors|length|addhsz'.split('|'),0,{}))

Last edited by elite001; 17-03-14 at 18:23.
Reply With Quote
Reply

Tags
php , tpl

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 23:03. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2018, vBulletin Solutions Inc.