Jump to content
php.lv forumi

problema ar izmeriem


Molodoj

Recommended Posts

Pastāsti kur glabājas šie filmu id, vai arī tev ir vesela tonna ar HTML blokiem ( objektiem ), kuros atsevišķi ir filma?

Vai arī tie glabājas datubāzē, vai arī failā?

Ja datubāzē, tad nevaidzētu būt tā, ka jāmaina visiem, bet gan vienam.

Ja katrā failā, domājams var uzrakstīt īsu skriptu, kas šos failus atver, aizvieto vērtību, un aizver.

Link to comment
Share on other sites

<!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" xml:lang="ru" lang="ru">
<head>
<title>$TITLE_BAR$ - $SITE_NAME$</title>
<link href="/style/styles.css" type="text/css" rel="stylesheet" />
<link href="/style/engine.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/libs.js"></script>
</head>
<body>
<div id="head" class="wwide">
<div class="wrap">
<h1><a class="thide" href="http://fuf.id.lv/" title="TAVSKINO.LV">Tavskino.LV - filmas latviešu valodā online!</a></h1>
<!-- если не нужна рамка вокруг рекламной картинки пишите id="hbanner-no-line" вместо id="hbanner" строчкой ниже. -->
<div id="hbanner-no-line"><div class="hbanner">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6976540282529962";
/* 468x60, izveidots 11.18.9 */
google_ad_slot = "2263145208";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div>
<div class="loginbox"><b class="thide logarrow">></b>$GLOBAL_VXOD$</div>
</div>
</div>
<div id="pagebg" class="wwide">
<div class="wrap">
<div id="topbar">

$GLOBAL_AHEADER$

<?if($USER_LOGGED_IN$)?>
<form id="searchbar" method="get" action='/search/'>
<input type="hidden" name="do" value="search" />
<input type="hidden" name="subaction" value="search" />
<div class="searchbar">
<input class="stext" id="q" name="q" value="Meklēt..." onblur="if(this.value=='') this.value='Meklēt...';" onfocus="if(this.value=='Meklēt...') this.value='';" type="text" />
<input class="sbtn" type="image" src="/images/spacer.gif" title="Meklēt" alt="Meklēt" />
</div>
</form>
<?else?>
<form id="searchbar" method="get" action='/search/'>
<input type="hidden" name="do" value="search" />
<input type="hidden" name="subaction" value="search" />
<div class="searchbar">
<input style="height: 36px;" class="stext" id="q" name="q" value="Meklēt..." onblur="if(this.value=='') this.value='Meklēt...';" onfocus="if(this.value=='Meklēt...') this.value='';" type="text" />
<input class="sbtn" type="image" src="/images/spacer.gif" title="Meklēt" alt="Meklēt" />
</div>
</form>
<?endif?>

</div>
<div class="mctop"><b class="thide"> </b></div>
<div class="wrbg"><div class="wrbg"><div class="wrbg">
<div id="mainside" class="rcol">
<div id="mside" class="lcol"><div class="sidein">
<!-- <body> -->
<h3 class="btl comhead"><span>$ENTRY_NAME$</span></h3>


<div class="base flstory">
<div class="baseinfo small">
<span class="adminico">
<span class="iedit">$MODER_PANEL$</span>
</span>
<i class="argdate"><a href="$CAT_URL$">$CAT_NAME$</a></i>
<i class="arg">Pievienoja: $USER$</i>
<i class="argdate">Skatijušies: <b>$READS$</b></i>
<i class="argdate">$DATE$, $TIME$</i>
</div>
<div class="maincont">
<div>
</div>


$MESSAGE$


<div class="clr"></div>
</div>

<div class="mlink">
<i class="argmore"><a href="javascript:history.go(-1)"><b>Atpakaļ</b></a></i>
</div>
</div>

<h3 class="btl mchead">Komentāri ($COMMENTS_NUM$)</h3><?if($USER_LOGGED_IN$)?><?else?>
<?endif?>

<?if($COM_CAN_ADD$)?>
$COM_ADD_FORM$
<?else?>
<?if($USER_LOGGED_IN$)?><?else?><div align="center" class="commReg"><!--<s5237>-->Pievienot komentāru var tikai reģistrēti apmeklētāji.<!--</s>--><br />[ <a href="$REGISTER_LINK$"><!--<s3089>-->Reģistrēties<!--</s>--></a> | <a href="$LOGIN_LINK$"><!--<s3087>-->Ienākt<!--</s>--></a> ]</div><?endif?>
<?endif?>
<?endif?>

<?if($COM_IS_ACTIVE$)?>
<?if($COM_CAN_READ$)?>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td align="right" height="25">$COM_PAGE_SELECTOR$</td></tr>
<tr><td colspan="2">$COM_BODY$</td></tr>
<tr><td colspan="2" align="center">$COM_PAGE_SELECTOR1$</td></tr>
<tr><td colspan="2" height="10"></td></tr>
</table>
<?endif?>

<!-- </body> -->
</div></div>
<div id="rside" class="rcol">
<div class="sidebar">


<!-- <block> -->
<div class="block">
<h3 class="btl">SKATĪTĀKĀS FILMAS</h3>
<div class="dcont">
<ul class="contitems">
$MYINF_10$
</ul>
</div>
</div>


<div class="block">
<h3 class="btl">PĒDĒJIE KOMENTĀRI</h3>
<div class="dcont">
$MYINF_2$
</div>
</div>


<div class="block adsb">
<h3 class="btl">Jaunākais FORUMĀ</h3>
<div class="dcont eee">$MYINF_11$</div>
</div>


<!-- </block> -->


</div>
</div>
</div>
<div id="lside" class="lcol">
<div class="sidebar">


<!-- <block> -->
<div class="block vmenu">
<h3 class="btl">Žanri</h3>
<ul>
<li>$CATEGORIES$</li>

</ul>
</div>

<?if(!$USER_LOGGED_IN$)?><script type="text/javascript">
$(document).ready(function(){
//Fasr.reg script v 0.1
//script by http://javascript.ucoz.net
$("#fastReg").click(function(){new _uWnd('regWin','Быстрая регистрация',350,400,{autosize:1,fadespeed:100,fadeclosespeed:100,fadetype:1,fadeclosetype:2,icon:'http://s40.ucoz.net/.s/img/icon/us.png',min:1,oncontent:function(){getRegData()}},'<div class="reg1"><div class="reg2">Логин:</div><input style="height: 22px;width: 160px;" class="f_input" type="text" id="rLogin"></div><div class="reg1"><div class="reg2">Пароль:</div><input style="height: 22px;width: 160px;" class="f_input" type="password" id="rPass"></div><div class="reg1"><div class="reg2">E-mail:</div><input style="height: 22px;width: 160px;" class="f_input" type="text" id="rMail"></div><div class="reg1"><div class="reg2"><span id="rRes"> </span> </div><input type="button" class="fbutton" onclick="rEnd()" id="rEnd" value="Регистрация"></div>')});$("#rPost").live("click",function(){_uWnd.close('captcha');_code=$("#rCode").val();$.post("/index/",{jkd498:1,act:_act,ssid:_ssid,jkd428:1,sos:_sos,user:$("#rLogin").val(),password:$("#rPass").val(),password1:$("#rPass").val(),name:$("#rLogin").val(),email:$("#rMail").val(),code:_code,seckey:_seckey,a:4,s:0},function(i){var error=$('.manTdError',i).html();if(error){if(error=='Неправильный код безопасности'){newCodeImg()}_uWnd.alert('<span style="color:red;"><br>'+error+'</span>','Ошибка',{tm:3500,w:200,h:110})}else{new _uWnd('success','Успешная регистрация',350,350,{modal:1,autosize:1,fadespeed:100,fadeclosespeed:100,fadetype:1,fadeclosetype:2,icon:'http://s40.ucoz.net/.s/img/icon/us.png',min:1},'<br><font style="color:green"><b>Регистрация прошла успешно!</b></font><br><br><u>Ваши данные</u>:<br> Логин - <b>'+$("#rLogin").val()+'</b>; Пароль - <b>'+$("#rPass").val()+'</b><br><br><input type="button" value="Войти в свой аккаунт" onclick="postLogin();">')}})})});function postLogin(login,pass){new _uWnd('LF',' ',-250,-110,{autosize:0,oncontent:function(){lgin()}},{url:'/index/40'})}function lgin(){$("input[name='user']").val($("#rLogin").val());$("input[name='password']").val($("#rPass").val());$("#submfrmLg555").click()}function rEnd(){if(!$("#rMail").val().match(/^[a-zA-Z0-9_\.\-]+\@[a-zA-Z0-9\.\-]+\.[a-zA-Z0-9]{2,6}$/)||$("#rLogin").val().match(/^\s+$/)||$("#rLogin").val().length<3||$("#rPass").val().length<4){_uWnd.alert('<span style="color:red;"><br>Проверьте правильность заполнения формы</span>','Ошибка',{tm:3500,w:200,h:110});return}else{new _uWnd('captcha','Код безопасности',300,300,{close:0,modal:1,autosize:1,fadespeed:100,fadeclosespeed:100,fadetype:1,fadeclosetype:2,oncontent:function(){$('#rCha').html(_img)}},'<span id="rCha"></span><br><input type="text" id="rCode"><br><input type="button" value="OK" id="rPost">')}}function newCodeImg(){$.get("/index/3",function(hj){new_img=$("#secImg",hj).clone();new _uWnd('captcha','Код безопасности',300,300,{close:0,modal:1,autosize:1,fadespeed:100,fadeclosespeed:100,fadetype:1,fadeclosetype:2,oncontent:function(){$('#rCha').html(new_img)}},'<span id="rCha"></span><br><input type="text" id="rCode"><br><input type="button" value="OK" id="rPost">')})}function getRegData(){$.get("/index/3",function(m){_act=$("input[name='act']",m).val(),_ssid=$("input[name='ssid']",m).val(),_seckey=$("input[name='seckey']",m).val(),_img=$("#secImg",m).clone(),_sos=getSession(m)})}function getSession(data){for(var i=0,code=data.match(/_dS\('(.+)'\)/i)[1],_i=code.length-1,session='';i<_i;i++){session+=String.fromCharCode(code.charCodeAt(i)-code.substr(_i,1))};return session.match(/\d+/g)}
</script>
<div class="block"><a href="#" onclick="return false" id="fastReg" class="thide ireg">Регистрация (всего за 10 секунд)</a></div>
<?endif?>
<div class="block" id="bvote">
<h3 class="btl">APTAUJA</h3>
$POLL$
</div>

<div class="block" id="vkusnyatka">
<h3 class="btl">REKLĀMA</h3>
<ul class="bestsoft">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6976540282529962";
/* saniskisss */
google_ad_slot = "2207152132";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</ul>
</div>

<div class="block" id="vkusnyatka">
<h3 class="btl">STATISTIKA</h3>
<ul class="bestsoft">
$ONLINE_COUNTER$
</ul>
</div>


<!-- </block> -->


</div>
</div>
<div class="clr"></div>
</div></div></div>
<div class="mcfoot"><b class="thide"> </b><a class="thide" id="toptop" href="#">Augšup</a></div>
</div>
</div>
<div class="wwide" id="footer">
<div class="wrap">
<div class="footer">
<div id="copyright" class="rcol">
<div class="copyright">
<p><a class="thide" href="http://tavskino.lv">TAVSKINO.LV - Filmas latviešu valodā ONLINE</a></p>
<p class="small">
2010-2011 © $POWERED_BY$
Filmas latviešu valodā BEZMAKSAS skaties TIEŠSAISTĒ!
</p>
<!-- <ul class="counts">
<li><img src="/images/count.png" alt="" /></li>
<li><img src="/images/count.png" alt="" /></li>
</ul> -->
</div>
</div>
<div id="footban" class="lcol">
<div id="fbanner">
<h3 class="btl">Google REKLĀMA</h3>
Šeit būs reklāma!
</div>
<span class="thide"> </span>
</div>
<div class="clr"></div>
</div>
</div>
</div>
</body>
</html>

 

Reku,ir pašas lapas HTML kods varbūt tur var kautko pārlabot. Vai arī .css failā ir jālabo?

Edited by Molodoj
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...