diff options
author | albertogp <albertogp@uma.es> | 2014-01-31 10:19:48 +0000 |
---|---|---|
committer | albertogp <albertogp@uma.es> | 2014-01-31 10:19:48 +0000 |
commit | c4252df1df875a17e89c7551a5859e505412506e (patch) | |
tree | 6efcda4da6d96b2f80e3966bef1d17cec2baaf78 /admin/WebConsole/frames.php | |
parent | 86263067113caa1186a79afbf93cabd2a4fd4c7f (diff) |
branches-version1.0-tickets
#614
- IntegraciĆ³n del ticket en la versiĆ³n 1.0
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4126 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/frames.php')
-rw-r--r-- | admin/WebConsole/frames.php | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/admin/WebConsole/frames.php b/admin/WebConsole/frames.php index 822ff4ff..fc5b5f66 100644 --- a/admin/WebConsole/frames.php +++ b/admin/WebConsole/frames.php @@ -18,6 +18,14 @@ if (! empty ($_POST['idmicentro'])) { if (empty ($idioma)) $idioma="esp"; include_once("./idiomas/php/$idioma/acceso_$idioma.php"); //________________________________________________________________________________________________________ +// ******************************************************************************************************** +// Compatibilidad +$device="";$device = strtolower($_SERVER['HTTP_USER_AGENT']); +if(stripos($device,'iphone') !== false ){$device="iphone";} +elseif (stripos($device,'ipad') !== false) {$device="ipad";} +elseif (stripos($device,'android') !== false){$device="android";} +else{$device=0;} +// ******************************************************************************************************** ?> <html> <head> @@ -29,10 +37,16 @@ include_once("./idiomas/php/$idioma/acceso_$idioma.php"); <FRAME SRC="barramenu.php" frameborder=1 scrolling=no NAME="frame_menus" > <FRAMESET cols="22%,*"> <?php if($idtipousuario!=$SUPERADMINISTRADOR) - echo '<FRAME SRC="./principal/aulas.php" frameborder=1 scrolling=auto NAME="frame_arbol" >'; + if ($device=="0") + {echo '<FRAME SRC="./principal/aulas.php" frameborder=1 scrolling=auto NAME="frame_arbol" >';} + else + {echo '<FRAME SRC="./principal/aulas.device.php" frameborder=1 scrolling=auto NAME="frame_arbol" >';} else{ if($idtipousuario==$SUPERADMINISTRADOR) - echo '<FRAME SRC="./principal/administracion.php" frameborder=1 scrolling=auto NAME="frame_arbol" >'; + if ($device=="0") + {echo '<FRAME SRC="./principal/administracion.php" frameborder=1 scrolling=auto NAME="frame_arbol" >';} + else + {echo '<FRAME SRC="./principal/administracion.device.php" frameborder=1 scrolling=auto NAME="frame_arbol" >';} } ?> <FRAME SRC="nada.php" frameborder=0 NAME="frame_contenidos"> |