|
5clicks.com posee una amplia gama de templates o diseños web predefinidos, que su empresa podrá utilizar para implementar su sitio web. Nuestros templates web están totalmente integrados a todos los servicios que usted podrá configurar a través del panel de control de su sitio, incluyendo catálogo de productos, publicación de noticias y novedades, creación de páginas web de contenidos, y carrito de compras, entre otros.
Asimismo, 5clicks se encuentra desarrollando nuevos templates contantemente, y usted tiene la posiblidad de cambiar o actualizar el template de su sitio web todas las veces que lo desee. También es posible crear un template web específicamente para su empresa, utilizando el logo y diseño tradicional de su negocio.
Algunos de los diseños web predefinidos:
class mysqlconn
{
var $db; # link a la conexión MySQL
var $db2; # link a la conexión MySQL
var $db3; # link a la conexión MySQL
var $result; # link al resultado de un query
var $errno; # número del error de MySQL
var $error; # string del error de MySQL
var $query; # query ingresado
var $rows; # rows afectados en el query
var $lastid; # último id en insert en un autoincrement
var $ok; # bool para saber si salió bien un query
function mysqlconn($host='',$user='',$pass='',$base='',$type='')
{
require("dbconfig.inc.php");
if ($type == 0) {
$this->db = mysql_connect($host,$user,$pass);
} else {
$this->db = mysql_pconnect($host,$user,$pass);
}
if (!$this->db)
{
$this->errno = mysql_errno($this->db);
$this->error = mysql_error($this->db);
return 0;
}
if (!mysql_select_db($base,$this->db))
return 0;
return 1;
}
function select($db)
{
if (mysql_select_db($db,$this->db))
return 1;
else
return 0;
}
function query($query)
{
if (!$this->db || empty($query))
return 0;
# Parseamos los argumentos extra
# Sea array o string, lo metemos en $args
for ($i=1 ; $iquery='' ; $iquery .= $c;
}
}
else
$this->query = $query;
$this->result = mysql_query($this->query,$this->db);
$this->errno = mysql_errno($this->db);
$this->error = mysql_error($this->db);
$this->lastid = mysql_insert_id($this->db);
$this->ok = $this->errno==0 ? 1 : 0;
if ($this->ok)
{
if (stristr($this->query,'SELECT'))
$this->rows = @mysql_num_rows($this->result);
else
$this->rows = @mysql_affected_rows($this->db);
}
else
$this->rows = 0;
return $this->result;
}
function getrow($result='')
{
if (empty($result))
$result = $this->result;
if (empty($result))
return 0;
return mysql_fetch_row($result);
}
function getarray($result='')
{
if (empty($result))
$result = $this->result;
if (empty($result))
return 0;
return mysql_fetch_assoc($result);
}
function gethtmlarray($result='')
{
if (empty($result))
$result = $this->result;
if (empty($result))
return 0;
$result = mysql_fetch_assoc($result);
if ((is_array($result)) and (count($result) > 0)) {
foreach ($result as $key=>$val) { $result[$key] = htmlcontent($val); }
}
return $result;
}
function getfield($result='')
{
if (empty($result))
$result = $this->result;
if (empty($result))
return 0;
$row = mysql_fetch_row($result);
return $row[0];
}
function reset()
{
mysql_free_result($this->result);
$this->errno = '';
$this->error = '';
$this->query = '';
$this->rows = '';
$this->lastid = '';
$this->ok = '';
}
function disconnect()
{
if ($this->db)
return mysql_close($this->db);
else
return 0;
}
}
/******************************************************************************/
$db = new mysqlconn();
$db2 = new mysqlconn();
$db3 = new mysqlconn();
/******************************************************************************/
?>
|
Ver:
|
$db->query("SELECT config_interfaces.* FROM config_interfaces INNER JOIN config_global ON config_interfaces.id = config_global.web_interface");
$interface_actual = $db->getarray();
if (!isset($_REQUEST['grupo'])) { $_REQUEST['grupo'] = ''; }
$grupo = $_REQUEST['grupo'];
if ($grupo == '') { $grupo = 'Informatica-y-Computacion'; }
$db->query("SELECT categoria FROM config_interfaces_categorias WHERE mostrar = 0 AND orden = 0");
$categoria_privada = $db->getfield();
$count = 0;
if ($global['web_especifica'] > 0) {
$db->query("SELECT categoria FROM config_interfaces_categorias WHERE orden = 0");
$categoria = $db->getfield();
?>
if ($grupo == cleanForShortURL($categoria)) { ?> } ?>
=htmlentities($categoria)?>
if ($grupo == cleanForShortURL($categoria)) { ?> } ?>
}
$db->query("SELECT categoria FROM config_interfaces_categorias WHERE orden > 0 ORDER BY orden");
while ($categoria = $db->getfield()) {
?>
if ($grupo == cleanForShortURL($categoria)) { ?> } ?>
=htmlentities($categoria)?>
if ($grupo == cleanForShortURL($categoria)) { ?> } ?>
} ?>
|
if (strlen($template_id) == 0) { ?>
$i = 0; ?>
if (($global['web_especifica'] > 0) and ($grupo == $categoria_privada)) {
$count++;
$db->query("SELECT id, titulo, directorio FROM config_interfaces WHERE id = '$global[web_especifica]'");
$interface = $db->getarray();
$i++;
if ($i == 1) { ?>| } else { ?> | }
?>
if ($i == 3) { ?> | } else { ?> }
if ($i == 3) { $i = 0; }
?>
} ?>
$db->query("SELECT categoria FROM config_interfaces_categorias WHERE grupo = '$grupo'");
$categoria = $db->getfield();
$db->query("SELECT id, titulo, directorio FROM config_interfaces WHERE privada = 0 AND implementada = 1 AND categoria = '$categoria'");
while ($interface = $db->getarray()) {
$count++;
$i++;
if ($i == 1) { ?>| } else { ?> | }
if ($interface['id'] == $interface_actual['id']) { $style = 'border-color:#FF0000; border-width:3px;'; } else { $style = 'border-color:#666666; border-width:1px;'; }
?>
if ($i == 3) { ?> | } else { ?> }
if ($i == 3) { $i = 0; }
?>
} ?>
if ($i < 3) { ?> }
?>
$db->query("SELECT categoria FROM config_interfaces_categorias WHERE grupo = '$grupo'");
$categoria = $db->getfield();
$db->query("SELECT COUNT(*) FROM config_interfaces WHERE privada = 0 AND implementada = 0 AND categoria = '$categoria'");
$templates2 = $db->getfield();
if (($count == 0) and ($templates2 == 0)) {
?>
if ($grupo == $categoria_privada) {
$db->query("SELECT * FROM config_submodulos_textos WHERE modulo = 'web' AND submodulo = 'configuracion' AND seccion = 'sin_template_privado'");
} else {
$db->query("SELECT * FROM config_submodulos_textos WHERE modulo = 'web' AND submodulo = 'configuracion' AND seccion = 'sin_templates'");
}
$subtexto = $db->getarray();
?>
=$subtexto['texto']?>
} ?>
} else { ?>
$db->query("SELECT id, titulo, directorio FROM config_interfaces WHERE id = '$template_id'");
$interface = $db->getarray();
?>
=$interface['titulo']?>
|
Página de Inicio
|
Categorpia de Productos
|
Información de un Producto
|
|
|
|
|
|
Listado de Precios
|
Noticias y Novedades
|
Carrito de Compras
|
|
|
|
} ?>
$db->query("SELECT categoria FROM config_interfaces_categorias WHERE grupo = '$grupo'");
$categoria = $db->getfield();
$db->query("SELECT COUNT(*) FROM config_interfaces WHERE privada = 0 AND implementada = 0 AND categoria = '$categoria'");
$cant = $db->getfield();
if ($cant > 0) {
$db->query("SELECT * FROM config_submodulos_textos WHERE modulo = 'web' AND submodulo = 'configuracion' AND seccion = 'mas_templates'");
$texto = $db->getarray();
?>
$db->query("SELECT categoria FROM config_interfaces_categorias WHERE grupo = '$grupo'");
$categoria = $db->getfield();
$db->query("SELECT id, titulo, directorio FROM config_interfaces WHERE privada = 0 AND implementada = 0 AND categoria = '$categoria'");
while ($interface = $db->getarray()) {
?>

}
?>
} ?>
|