[Alba-desarrollo] SVN Alba r4887 - prosistem/alba/trunk/alba/apps/principal/templates

commits en pressenter.com.ar commits en pressenter.com.ar
Mie Ago 1 16:23:31 CEST 2007


Author: hsanchez
Date: 2007-08-01 11:23:30 -0300 (Wed, 01 Aug 2007)
New Revision: 4887

Added:
   prosistem/alba/trunk/alba/apps/principal/templates/layout_impresion.php
   prosistem/alba/trunk/alba/apps/principal/templates/layout_sinmenu.php
   prosistem/alba/trunk/alba/apps/principal/templates/layout_vacio.php
Modified:
   prosistem/alba/trunk/alba/apps/principal/templates/layout.php
Log:
Creando nuevos templates

Modified: prosistem/alba/trunk/alba/apps/principal/templates/layout.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/templates/layout.php	2007-08-01 00:40:43 UTC (rev 4886)
+++ prosistem/alba/trunk/alba/apps/principal/templates/layout.php	2007-08-01 14:23:30 UTC (rev 4887)
@@ -1,19 +1,9 @@
-<?php
-
-if(!isset($vista)){
-     $vista="";
-}
-?><?php if($vista == "noMuestraMenu"):
-    echo $content;
-    else: ?>
     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-200000126/DTD/xhtml1-transitional.dtd">
     <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     <head>
-
     <?php echo include_http_metas() ?>
     <?php echo include_metas() ?>
     <?php echo include_title() ?>
-
     <link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot() . '/js/jsmenu/themes/'.sfConfig::get("app_alba_menutheme").'/theme.css' ?>"/>
     <link rel="shortcut icon" href="/favicon.ico" />
 
@@ -47,19 +37,11 @@
         background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/fder.png"?>);
     }
     </style>
-
-    <?php if($vista == "imprimir") :?>
-        <link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/css/impresion.css" />
-    <? endif;?>
     <?php if (!$sf_user->isAuthenticated()):?>
         <link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/css/login.css">
     <?php endif;?>
     </head>
     <body>
-
-<?php if($vista == "imprimir") :?>
-<?php    echo $content; ?>
-<?php else: ?>
         <table width="100%" border="0" cellpadding="0" cellspacing="0">
             <tr valign="top"> 
                 <td colspan="2" class="fmedio">
@@ -68,7 +50,6 @@
                         <td class="fmedio"><?=image_tag("gui/index_1x1.png", array ( 'width' => '758' , 'heigth' => '77' ) )?></td>
                         <td class="fmedio" align="right"><!-- datos del usuario -->
                             <?php if($sf_user->isAuthenticated() == true): ?>
-
                             <table class="user-info">
                                 <tr>
                                     <td nowrap="nowrap">Bienvenido, <a href="#" onmouseover="this.T_BGCOLOR='#d3e3f6';this.T_SHADOWWIDTH=3;this.T_FONTCOLOR='blue';this.T_BORDERWIDTH=2;this.T_BORDERCOLOR='#000000'; return escape('Organizaci&oacute;n: <?echo $sf_user->getAttribute("organizacion_nombre")?> ' )"><?php echo $sf_user->getAttribute('usuario')?></a>
@@ -91,7 +72,6 @@
                                     ?>
                                     </td>
                                 </tr>
-                                
                             </table>
                             <?php else: ?>
                                 Bienvenido, An&oacute;nimo
@@ -100,24 +80,17 @@
                     </tr>
                 </table>
                 </td>
-                
                 <td><?php echo image_tag("gui/index_1x2.png", array ( 'width' => '17' , 'heigth' => '77' ) )?></td>
             </tr>
-
             <tr valign="top"> 
                 <td class="fizq-menu" width="1%">&nbsp;</td>
-                <td colspan="1" class="fmenu"><?   
+                <td colspan="1" class="fmenu"><?php
                     if($sf_user->isAuthenticated() == true)  {
                         include("menu.php");
                     }
                     ?>
                     <div id="menu" align="right">
-                    <?php  $uri = sfRouting::getInstance()->getCurrentInternalUri();
-                        $vista_var = "vista=imprimir";
-                        $separador = (strstr($uri,'?'))?'&':'?';
-                        $vista_var = $separador.$vista_var;
-                        echo link_to(image_tag(sfContext::getInstance()->getRequest()->getRelativeUrlRoot().'/images/small/print.png'),$uri.$vista_var,'popup=true');
-                    ?>
+                    <a href ="javascript:window.print()"><?php echo image_tag('small/print.png',array('title'=>'Imprimir','alt'=>'print.png','border'=>0))?></a>
                     </div>
                 </td>
                 <td><?php echo image_tag("gui/index_2x2.png", array ( 'width' => '17' , 'heigth' => '35' ) )?></td>
@@ -130,7 +103,6 @@
                         if($sf_user->isAuthenticated() != true)  {
                             if ($sf_params->get('module') != 'seguridad' && $sf_params->get('action') !='login') {
                                include_partial('seguridad/login', array('sf_params' => $sf_params, 'error_inicio_sesion' => @$error_inicio_sesion));
-
                             }
                         }
                     ?>
@@ -161,8 +133,6 @@
                 <td><?php echo image_tag("gui/index3_5x3.png", array ( 'width' => '17' , 'heigth' => '20' ) )?></td>
             </tr>
         </table>
-    <?php endif; ?>
     </body>
 <?php echo javascript_include_tag('varios/wz_tooltip.js'); ?>
     </html>
-<? endif; ?>
\ No newline at end of file

Added: prosistem/alba/trunk/alba/apps/principal/templates/layout_impresion.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/templates/layout_impresion.php	2007-08-01 00:40:43 UTC (rev 4886)
+++ prosistem/alba/trunk/alba/apps/principal/templates/layout_impresion.php	2007-08-01 14:23:30 UTC (rev 4887)
@@ -0,0 +1,49 @@
+    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-200000126/DTD/xhtml1-transitional.dtd">
+    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+    <?php echo include_http_metas() ?>
+    <?php echo include_metas() ?>
+    <?php echo include_title() ?>
+    <link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot() . '/js/jsmenu/themes/'.sfConfig::get("app_alba_menutheme").'/theme.css' ?>"/>
+    <link rel="shortcut icon" href="/favicon.ico" />
+
+    <style type="text/css">
+    .fdown {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/index3_5x2.png"?>);
+    }
+    .fmedio {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/fmedio.png"?>);
+    }
+    .ftop {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/index3_1x4.png"?>);
+    }
+    .fmenu {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/fmenu.png"?>);
+    }
+    td {
+        font-family: Arial, Helvetica, sans-serif;
+        font-size: 11px;
+    }
+    .fizq {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/fizq.png"?>);
+    }
+    .fizq-menu {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/fizq-menu.png"?>);
+    }
+    .menuimg {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/index_2x1.png"?>);
+    }
+    .fder {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/fder.png"?>);
+    }
+    </style>
+        <link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/css/impresion.css" />
+    <?php if (!$sf_user->isAuthenticated()):?>
+        <link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/css/login.css">
+    <?php endif;?>
+    </head>
+    <body>
+<?php echo $content; ?>
+    </body>
+<?php echo javascript_include_tag('varios/wz_tooltip.js'); ?>
+    </html>


Property changes on: prosistem/alba/trunk/alba/apps/principal/templates/layout_impresion.php
___________________________________________________________________
Name: svn:keywords
   + "Id Author Rev Date URL"

Added: prosistem/alba/trunk/alba/apps/principal/templates/layout_sinmenu.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/templates/layout_sinmenu.php	2007-08-01 00:40:43 UTC (rev 4886)
+++ prosistem/alba/trunk/alba/apps/principal/templates/layout_sinmenu.php	2007-08-01 14:23:30 UTC (rev 4887)
@@ -0,0 +1,49 @@
+    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-200000126/DTD/xhtml1-transitional.dtd">
+    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+    <?php echo include_http_metas() ?>
+    <?php echo include_metas() ?>
+    <?php echo include_title() ?>
+    <link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot() . '/js/jsmenu/themes/'.sfConfig::get("app_alba_menutheme").'/theme.css' ?>"/>
+    <link rel="shortcut icon" href="/favicon.ico" />
+
+    <style type="text/css">
+    .fdown {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/index3_5x2.png"?>);
+    }
+    .fmedio {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/fmedio.png"?>);
+    }
+    .ftop {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/index3_1x4.png"?>);
+    }
+    .fmenu {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/fmenu.png"?>);
+    }
+    td {
+        font-family: Arial, Helvetica, sans-serif;
+        font-size: 11px;
+    }
+    .fizq {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/fizq.png"?>);
+    }
+    .fizq-menu {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/fizq-menu.png"?>);
+    }
+    .menuimg {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/index_2x1.png"?>);
+    }
+    .fder {
+        background-image: url(<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()."/images/gui/fder.png"?>);
+    }
+    </style>
+        <link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/css/impresion.css" />
+    <?php if (!$sf_user->isAuthenticated()):?>
+        <link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/css/login.css">
+    <?php endif;?>
+    </head>
+    <body>
+<?php echo $content; ?>
+    </body>
+<?php echo javascript_include_tag('varios/wz_tooltip.js'); ?>
+    </html>


Property changes on: prosistem/alba/trunk/alba/apps/principal/templates/layout_sinmenu.php
___________________________________________________________________
Name: svn:keywords
   + "Id Author Rev Date URL"

Added: prosistem/alba/trunk/alba/apps/principal/templates/layout_vacio.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/templates/layout_vacio.php	2007-08-01 00:40:43 UTC (rev 4886)
+++ prosistem/alba/trunk/alba/apps/principal/templates/layout_vacio.php	2007-08-01 14:23:30 UTC (rev 4887)
@@ -0,0 +1,11 @@
+    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-200000126/DTD/xhtml1-transitional.dtd">
+    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+    <?php echo include_http_metas() ?>
+    <?php echo include_metas() ?>
+    <?php echo include_title() ?>
+    </head>
+    <body>
+        <?php echo $content ?>
+    </body>
+    </html>


Property changes on: prosistem/alba/trunk/alba/apps/principal/templates/layout_vacio.php
___________________________________________________________________
Name: svn:keywords
   + "Id Author Rev Date URL"




Más información sobre la lista de distribución Alba-desarrollo