-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
164 lines (147 loc) · 4.62 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php session_start(); ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Pagina Web</title>
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<script src="js/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="js/jquery.jcarousel.pack.js" type="text/javascript"></script>
<script src="js/jquery.slide.js" type="text/javascript"></script>
<script src="js/jquery-func.js" type="text/javascript"></script>
</head>
<body>
<!-- Top -->
<div id="top">
<div class="shell">
<!-- Header -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="index.php">Inicio</a></li>
<?php
if(!$_SESSION){
echo "<li><a href=\"registro.php\">Registro</a></li>";
echo "<li class=\"last\"><a href=\"login.php\">Login</a></li>";
}else{
$id_usuario=$_SESSION['id_usuario'];
$usuario=$_SESSION['usuario'];
echo "<li><a href=\"#\">$usuario</a></li>";
echo "<li class=\"last\"><a href=\"logout.php\">Salir</a></li>";
}
?>
</ul>
</div>
</div>
<!-- End Header -->
<div id="slider">
<div id="slider-holder">
<ul>
<!--
<li><a href="#"><img src="css/images/slide1.jpg" alt="" /></a></li>
<li><a href="#"><img src="css/images/slide2.jpg" alt="" /></a></li>
<li><a href="#"><img src="css/images/slide1.jpg" alt="" /></a></li>
<li><a href="#"><img src="css/images/slide2.jpg" alt="" /></a></li>
<li><a href="#"><img src="css/images/slide1.jpg" alt="" /></a></li>
<li><a href="#"><img src="css/images/slide2.jpg" alt="" /></a></li>
-->
</ul>
</div>
<div id="slider-nav">
<a href="#" class="prev">Previous</a>
<a href="#" class="next">Next</a>
</div>
</div>
</div>
</div>
<!-- Top -->
<!-- Main -->
<div id="main">
<div class="shell">
<!--Busqueda-->
<div class="options">
<div class="search">
<form action="index.php" method="POST">
<span class="field"><input type="text" class="blink" value="Busqueda Avanzada" name="buscar" /></span>
<input type="hidden" name="tipo" value="1" />
<input type="hidden" name="pagina" value="1" />
<input type="submit" class="search-submit" value="GO" />
</form>
</div>
<div class="search">
<form action="index.php" method="POST">
<span class="field"><select name="categoria">
<?php include 'categoria.php'; ?>
</select></span>
<input type="hidden" name="tipo" value="2" />
<input type="hidden" name="pagina" value="1" />
<input type="submit" class="search-submit" value="GO" />
</form>
</div>
</div>
<!--Busqueda-->
<!-- Content -->
<div id="content">
<!-- Tabs -->
<div class="tabs"><ul>
<li><a href="#" class="active"><span>Catalogo</span></a></li>
<?php
if($_SESSION){
echo "<li><a href=\"#\" class=\"active\"><span>Nuevo Anuncio</span></a></li>";
}
?>
</ul></div>
<!-- Tabs -->
<!-- Container -->
<div id="container">
<div class="tabbed">
<!-- Tab Catalogo -->
<div class="tab-content" style="display:block;">
<div class="items">
<?php include 'catalogo.php'; ?>
</div>
<div class="cl"> </div>
Sugerencias<div style="min-height:1px; clear:both; width:100%; border-bottom:1px solid #d1d1d1; height:1px; padding-top:5px; margin-top:5px; margin-bottom:10px;"></div>
<div class="items">
<?php include 'sugerencias.php'; ?>
</div>
</div>
<!-- Tab Catalogo -->
<!-- Tab Nuevo Anuncio -->
<?php
if($_SESSION){
echo "<div class=\"tab-content\" style=\"display:block;\"><div>";
include 'crearAnuncio.php';
echo "</div></div>";
}
?>
<!-- Tab Nuevo Anuncio -->
</div>
<!-- Footer -->
<div id="footer">
<div class="left">
<a href="Index.php">Inicio</a>
<span>|</span>
<?php
if(!$_SESSION){
echo "<a href=\"registro.php\">Registro</a><span>|</span>";
echo "<a href=\"login.php\">Login</a>";
}else{
echo "<a href=\"logout.php\">Salir</a>";
}
?>
</div>
<div class="right">
© Sitename.com. Design by <a href="http://chocotemplates.com" target="_blank" title="CSS Templates">ChocoTemplates.com</a>
</div>
</div>
<!-- End Footer -->
</div>
<!-- End Container -->
</div>
<!-- End Content -->
</div>
</div>
<!-- End Main -->
</body>
</html>