@@ -422,7 +435,7 @@
";
if(is_array($cinemas)){
for($i = 0; $i < count($cinemas); $i++){
- echo '
+ $reply .= '
'. $ids[$i] .' |
'. $names[$i] .' |
'. $directions[$i] .' |
@@ -449,16 +462,19 @@
';
}
}
- echo'
+ $reply .='
';
break;
- default: break;
+ default:
+ break;
}
+
+ return $reply;
}
//Print session MSG:
diff --git a/cinemas/index.php b/cinemas/index.php
index 2eb5d5a..c5e02d5 100644
--- a/cinemas/index.php
+++ b/cinemas/index.php
@@ -3,7 +3,7 @@
require_once('../assets/php/config.php');
//Specific page content:
- $section = '';
+ $section = '';
//General page content:
require RAIZ_APP.'/HTMLtemplate.php';
diff --git a/index.php b/index.php
index f866026..9e00a64 100644
--- a/index.php
+++ b/index.php
@@ -1,53 +1,17 @@
+
+
+
+ '.$template->print_fimls().'
+
+
+ ';
+
+ //General page content:
+ require RAIZ_APP.'/HTMLtemplate.php';
?>
-
-
-
-
- print_head();
- ?>
-
-
- print_header();
- ?>
-
-
-
-
- Bienvenido {$_SESSION["nombre"]}\n";
- }
- else{
- echo "Bienvenido a CompluCine
\n";
- }
- ?>
-
-
-
-
-
-
-
- print_fimls();
- ?>
-
-
-
-
-
-
- print_footer();
- ?>
-
-
-
diff --git a/showtimes/index.php b/showtimes/index.php
index f804ea9..3d30e03 100644
--- a/showtimes/index.php
+++ b/showtimes/index.php
@@ -2,7 +2,6 @@
//General Config File:
require_once('../assets/php/config.php');
- /*
//Page-specific content:
$section = '
@@ -13,43 +12,4 @@
//General page content:
require RAIZ_APP.'/HTMLtemplate.php';
- */
?>
-
-
-
-
- print_head();
- ?>
-
-
- print_header();
- ?>
-
-
- print_main();
- ?>
-
-
-
-
- print_fimls();
- ?>
-
-
-
-
- print_footer();
- ?>
-
-
-
-