109 lines
3.3 KiB
PHP
109 lines
3.3 KiB
PHP
|
|
<?php
|
||
|
|
include('db.php');
|
||
|
|
?>
|
||
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||
|
|
"http://www.w3.org/TR/html4/loose.dtd">
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||
|
|
<title>clave audio</title>
|
||
|
|
<link href="_incl/ca.css" rel="stylesheet" type="text/css" />
|
||
|
|
<script type="text/javascript" src="_incl/code.js"></script>
|
||
|
|
<style type="text/css">
|
||
|
|
<!--
|
||
|
|
.E1 {
|
||
|
|
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||
|
|
font-weight: bold;
|
||
|
|
font-size: 14px;
|
||
|
|
color: #00539E;
|
||
|
|
border-bottom:1px solid #CCCCCC;
|
||
|
|
margin-top: 3px;
|
||
|
|
}
|
||
|
|
.faq {
|
||
|
|
margin-top:6px;
|
||
|
|
}
|
||
|
|
.question, .answer {
|
||
|
|
position: relative;
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
.question {
|
||
|
|
float:left;
|
||
|
|
font-weight:bold;
|
||
|
|
width:168px;
|
||
|
|
text-align:right;
|
||
|
|
}
|
||
|
|
.answer {
|
||
|
|
float:right;
|
||
|
|
width:348px;
|
||
|
|
}
|
||
|
|
-->
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body onLoad="MM_preloadImages('_imgs/menu_homeB.gif','_imgs/menu_whoB.gif','_imgs/menu_storeB.gif','_imgs/menu_newsB.gif','_imgs/menu_learningB.gif','_imgs/menu_instB.gif','_imgs/menu_contactB.gif')">
|
||
|
|
<?php
|
||
|
|
include("top.htm");
|
||
|
|
?>
|
||
|
|
<table border="0" align="center" cellpadding="0" cellspacing="0">
|
||
|
|
<tr><td colspan="7"><img src="_bann/topClave.jpg" width="708" height="132"></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td><img src="_imgs/d.gif" width="168" height="12"></td>
|
||
|
|
<td><img src="_imgs/d.gif" width="12" height="12"></td>
|
||
|
|
<td><img src="_imgs/d.gif" width="168" height="12"></td>
|
||
|
|
<td><img src="_imgs/d.gif" width="12" height="12"></td>
|
||
|
|
<td><img src="_imgs/d.gif" width="168" height="12"></td>
|
||
|
|
<td><img src="_imgs/d.gif" width="12" height="12"></td>
|
||
|
|
<td><img src="_imgs/d.gif" width="168" height="12"></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td valign="top" width="168"><?php include("clavemenu.php"); ?></td>
|
||
|
|
<td background="_imgs/ptos.gif"></td>
|
||
|
|
<td colspan="5" width="528" valign="top"><img src="_imgs/titFaq.gif" width="325" height="20"><br>
|
||
|
|
<img src="_imgs/g.gif" width="528" height="1">
|
||
|
|
<?php
|
||
|
|
$conn = db_connect();
|
||
|
|
if($conn) {
|
||
|
|
$query = "SELECT faq_seccion, faq_pregunta, faq_respuesta, faq_enlace FROM shoop_faq ORDER BY faq_seccion, faq_id";
|
||
|
|
$result = mysql_query($query, $conn);
|
||
|
|
$num_results = mysql_num_rows($result);
|
||
|
|
$curSeccion = '';
|
||
|
|
$secciones = array( '',
|
||
|
|
'Sobre nosotros',
|
||
|
|
'Sobre los pedidos',
|
||
|
|
'Sobre la forma de pago',
|
||
|
|
'Sobre los envíos',
|
||
|
|
'Sobre los productos',
|
||
|
|
'Otras preguntas');
|
||
|
|
for ($i=0; $i <$num_results; $i++)
|
||
|
|
{
|
||
|
|
$row = mysql_fetch_array($result);
|
||
|
|
$faq_seccion = $row['faq_seccion'];
|
||
|
|
$faq_pregunta = $row['faq_pregunta'];
|
||
|
|
$faq_respuesta = $row['faq_respuesta'];
|
||
|
|
$faq_enlace = $row['faq_enlace'];
|
||
|
|
if($faq_seccion != $curSeccion) {
|
||
|
|
$curSeccion = $faq_seccion;
|
||
|
|
?>
|
||
|
|
<div class="E1"><?php echo $secciones[$curSeccion]; ?></div>
|
||
|
|
<?php
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<div class="faq">
|
||
|
|
<div class="question"><?php echo str_replace("\r", "<br>", str_replace("\n", "<br>", stripslashes($faq_pregunta))); ?></div>
|
||
|
|
<div class="answer"><?php echo $faq_respuesta; ?></div>
|
||
|
|
<div style="clear:both; font-size:4px;"> </div>
|
||
|
|
</div>
|
||
|
|
<?php
|
||
|
|
} // FOR
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
</td></tr>
|
||
|
|
<tr><td colspan="7"><img src="_imgs/d.gif" width="708" height="12"></td></tr>
|
||
|
|
<tr>
|
||
|
|
<td colspan="7"><?php include("pie.htm"); ?></td>
|
||
|
|
</tr>
|
||
|
|
<tr><td colspan="7"><img src="_imgs/d.gif" width="708" height="12"></td></tr>
|
||
|
|
</table>
|
||
|
|
</body>
|
||
|
|
</html>
|