Файл: faq.php
Строк: 34
<?php include ('header.php');
$urlpage='FAQs';
?>
<link href="css/faq.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-ui-1.8.4.custom.min.js" type="text/javascript"></script>
<script src="js/jquery.scrollTo.js" type="text/javascript"></script>
<script src="js/main.js" type="text/javascript"></script>
<?
$sql=mysql_query("select*from ".$db_pref."sysvals");
$row=mysql_fetch_array($sql);
?>
<div align="center">
<div class="s5_mod_h3_l">
<div class="s5_mod_h3_r">
<div class="s5_mod_h3_m">
<h3 class="s5_mod_h3"><span class="s5_h3_first">
<?=$lang['faq'];?>
</span></h3>
</div>
</div>
</div>
</div>
<div id="questions">
<ul>
<?
$tabla = mysql_query("SELECT * FROM ".$db_pref."text_faq WHERE lang='$text' ORDER BY sort ASC");
while ($registro = mysql_fetch_array($tabla)) {
$vopros=$registro['vopros'];
$otvet=$registro['otvet'];
$id=$registro['id'];
$vopros=str_replace("{sitename}",$row['name_title'],$vopros);
$otvet=str_replace("{sitename}",$row['name_title'],$otvet);
$otvet=str_replace("{timer}",$timer['adtimer'],$otvet);
?>
<li><a href="#answer<?=$id;?>"><?=$vopros;?></a></li>
<?}?>
</ul>
</div>
<div id="answers">
<ul>
<?
$tabla = mysql_query("SELECT * FROM ".$db_pref."text_faq WHERE lang='$text' ORDER BY sort ASC");
while ($registro = mysql_fetch_array($tabla)) {
$vopros=$registro['vopros'];
$otvet=$registro['otvet'];
$id=$registro['id'];
$vopros=str_replace("{sitename}",$row['name_title'],$vopros);
$otvet=str_replace("{sitename}",$row['name_title'],$otvet);
$otvet=str_replace("{timer}",$timer['adtimer'],$otvet);
?>
<li id="answer<?=$id;?>">
<div style="padding:20px 20px 13px">
<h4><?=$vopros;?></h4>
<br>
<div class="accent"><div class="accent-left"></div><div class="accent-right"></div></div>
<br>
<p><?=$otvet;?></p>
</div>
</li>
<?}?>
</ul>
</div>
<BR>
<BR>
<div align="center">
<?=$lang['faq23'];?><br><br> <a href="registr.php"> <?=$lang['faq24'];?></a><br><br>
<?=$lang['faq25'];?>
</div>
<?php include ('footer.php'); ?>