[Alba-desarrollo] SVN Alba r4960 - in prosistem/alba/trunk/alba: apps/principal/config apps/principal/templates web/css

commits en pressenter.com.ar commits en pressenter.com.ar
Mie Ago 15 18:37:10 CEST 2007


Author: josx
Date: 2007-08-15 13:37:09 -0300 (Wed, 15 Aug 2007)
New Revision: 4960

Modified:
   prosistem/alba/trunk/alba/apps/principal/config/view.yml
   prosistem/alba/trunk/alba/apps/principal/templates/layout.php
   prosistem/alba/trunk/alba/web/css/impresion.css
Log:
Mejorada la Impresion al menos para los estilos por defecto usados del symfony. Se saco el menu, encabezado, pie del layout por defecto. Para imprimir se uso un css llamado impresion via media=print

Modified: prosistem/alba/trunk/alba/apps/principal/config/view.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/config/view.yml	2007-08-15 13:45:46 UTC (rev 4959)
+++ prosistem/alba/trunk/alba/apps/principal/config/view.yml	2007-08-15 16:37:09 UTC (rev 4960)
@@ -9,7 +9,7 @@
     keywords:     alba, proyecto, software libre, educacion
     language:     es
 
-  stylesheets:    [ %SF_ADMIN_WEB_DIR%/css/main, main] 
+  stylesheets:    [ %SF_ADMIN_WEB_DIR%/css/main, main, impresion: { media: print }] 
 
   javascripts:    [jsmenu/JSCookMenu]   
 

Modified: prosistem/alba/trunk/alba/apps/principal/templates/layout.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/templates/layout.php	2007-08-15 13:45:46 UTC (rev 4959)
+++ prosistem/alba/trunk/alba/apps/principal/templates/layout.php	2007-08-15 16:37:09 UTC (rev 4960)
@@ -4,19 +4,20 @@
     <?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="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot() ?>favicon.ico" />
+    <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="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot() ?>/favicon.ico" />
 
-    <link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>css/marco_imagenes.css">
+    <link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/css/marco_imagenes.css">
 
     <?php if (!$sf_user->isAuthenticated()):?>
-        <link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>css/login.css">
+        <link rel="stylesheet" type="text/css" href="<?php echo sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/css/login.css">
     <?php endif;?>
     </head>
     <body>
         <table width="100%" border="0" cellpadding="0" cellspacing="0">
             <tr valign="top"> 
                 <td colspan="2" class="fmedio">
+            <div id="logo"> 
                 <table cellpadding="0" cellspacing="0" width="100%">
                     <tr>
                         <td class="fmedio"><?=image_tag("gui/index_1x1.png", array ( 'width' => '758' , 'heigth' => '77' ) )?></td>
@@ -51,8 +52,9 @@
                         </td>
                     </tr>
                 </table>
+            </div>
                 </td>
-                <td><?php echo image_tag("gui/index_1x2.png", array ( 'width' => '17' , 'heigth' => '77' ) )?></td>
+                <td id="marco_derecha"><?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>
@@ -65,7 +67,7 @@
                     <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>
+                <td id="marco_derecha"><?php echo image_tag("gui/index_2x2.png", array ( 'width' => '17' , 'heigth' => '35' ) )?></td>
             </tr>
             <tr valign="top"> 
                 <td width="33" class="fizq">&nbsp;</td>
@@ -99,7 +101,7 @@
                 </td>
                 <td width="17" class="fder">&nbsp;</td>
             </tr>
-            <tr valign="top"> 
+            <tr id="marco_pie" valign="top"> 
                 <td><?php echo image_tag("gui/index3_5x1.png", array ( 'width' => '33' , 'heigth' => '22' ) )?></td>
                 <td class="fdown">&nbsp;</td>
                 <td><?php echo image_tag("gui/index3_5x3.png", array ( 'width' => '17' , 'heigth' => '20' ) )?></td>

Modified: prosistem/alba/trunk/alba/web/css/impresion.css
===================================================================
--- prosistem/alba/trunk/alba/web/css/impresion.css	2007-08-15 13:45:46 UTC (rev 4959)
+++ prosistem/alba/trunk/alba/web/css/impresion.css	2007-08-15 16:37:09 UTC (rev 4960)
@@ -1,320 +1,15 @@
-ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,body,html,p,blockquote,fieldset,input
-{ margin: 0; padding: 0; }
-a img,:link img,:visited img { border: none; }
-
-a:link, a:visited
-{
-  text-decoration: none;
+#sfWebDebug {
+    display : none;
 }
 
-a:hover
+#menu, #sf_admin_bar, #sf_admin_footer, #logo, #sf_admin_list_th_sf_actions, #marco_pie, #marco_derecha
 {
-  text-decoration: underline;
+    display : none;
 }
 
-body, td
-{
-  margin: 0;
-  padding: 20px;
-  font-family: Arial, sans-serif;
-  font-size: 11px;
-  background-color: #fff;
+.sf_admin_td_actions, .sf_admin_actions, .fdown, .fmedio, .ftop, .fmenu, .fizq, .menuimg, .fder, .float-right {
+   display : none;
 }
 
-p
-{
-  margin-bottom: 5px;
-}
 
-#sf_admin_bar
-{
-  margin-top: 8px;
-  position: absolute;
-  right: 20px;
-  width: 250px;
-}
 
-#sf_admin_content
-{
-  margin-right: 270px;
-}
-
-h1
-{
-  margin: 8px 0;
-  padding: 3px;
-  padding-left: 0px;
-  color: #555;
-  font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
-  font-size: 25px;
-}
-
-fieldset h2
-{
-  padding: 3px;
-  color: #333;
-  background-color: #ccf;
-  font-size: 11px;
-}
-
-input, textarea, select
-{
-  padding: 3px;
-  font-family: Arial, sans-serif;
-  font-size: 11px;
-  border: 1px solid #ddd;
-  vertical-align:middle;
-}
-
-label
-{
-  display: block;
-  padding: 0 1em 3px 0;
-  float: left;
-  text-align: left;
-  width: 8em;
-  color: #666;
-  font-weight: normal !important;
-}
-
-label.required
-{
-  color: #333 !important;
-  font-weight: bold !important;
-}
-
-.save-ok
-{
-  margin-bottom: 10px;
-  border: 1px solid #73B65A;
-}
-
-.save-ok h2
-{
-  margin: 0 !important;
-  padding: 5px 20px 5px 25px;
-  font-size: 11px;
-  color: #fff;
-  background: #73B65A url(/sf/images/sf_admin/ok.png) no-repeat 5px 2px;
-}
-
-.form-row
-{
-  clear: both;
-  padding: 10px;
-  border-bottom: 1px solid #ddd;
-}
-
-.form-row .content
-{
-  padding-left: 9em;
-}
-
-.form-errors
-{
-  margin-bottom: 10px;
-  border: 1px solid #f33;
-  background-color: #ffc;
-}
-
-.form-errors h2
-{
-  padding: 5px 20px 5px 25px;
-  font-size: 11px;
-  color: #fff;
-  background: #f33 url(/sf/images/sf_admin/error.png) no-repeat 5px 2px;
-}
-
-.form-errors ul
-{
-  padding: 5px;
-  list-style-type: none;
-}
-
-.form-errors li
-{
-  padding: 5px 20px;
-  background: url(/sf/images/sf_admin/error.png) no-repeat 0 2px;
-}
-
-.form-error
-{
-  color: #f33;
-}
-
-.form-error input, .form-error select, .form-error textarea
-{
-  border: 1px solid #f33;
-}
-
-fieldset
-{
-  margin-bottom: 3px;
-  border: 1px solid #ddd;
-  border-bottom: 0px;
-  background-color: #fff;
-}
-
-fieldset.collapsed * { display:none; }
-fieldset.collapsed h2, fieldset.collapsed { display:block !important; }
-fieldset.collapsed .collapse-toggle { display: inline !important; }
-fieldset.collapse h2 a.collapse-toggle { color:#ffc; }
-fieldset.collapse h2 a.collapse-toggle:hover { text-decoration:underline; }
-
-.float-left
-{
-  float: left;
-}
-
-.float-right
-{
-  float: right;
-}
-
-ul.sf_admin_td_actions
-{
-  list-style-type: none;
-}
-
-ul.sf_admin_td_actions li
-{
-  list-style-type: none;
-  display: inline;
-}
-
-ul.sf_admin_actions
-{
-  margin: 10px 0;
-  list-style-type: none;
-  text-align: right;
-}
-
-ul.sf_admin_actions a
-{
-  color: #333;
-}
-
-ul.sf_admin_actions li
-{
-  list-style-type: none;
-  display: inline;
-}
-
-ul.sf_admin_actions input
-{
-  padding: 3px 3px 3px 20px;
-  color: #333;
-  font-size: 11px;
-  font-family: Arial, sans-serif;
-  border: 0px;
-  border-right: 4px solid #999;
-  background-color: #ffc;
-  cursor: hand;
-  cursor: pointer;
-}
-
-.sf_admin_action_create
-{
-  background: url(/sf/images/sf_admin/add.png) no-repeat 3px 2px;
-  border-right: 4px solid #73B65A !important;
-}
-
-.sf_admin_action_save
-{
-  background: url(/sf/images/sf_admin/save.png) no-repeat 3px 2px;
-  border-right: 4px solid #73B65A !important;
-}
-
-.sf_admin_action_save_and_add
-{
-  background: url(/sf/images/sf_admin/save.png) no-repeat 3px 2px;
-  border-right: 4px solid #73B65A !important;
-}
-
-.sf_admin_action_delete
-{
-  background: url(/sf/images/sf_admin/delete.png) no-repeat 3px 2px;
-  border-right: 4px solid #E75C58 !important;
-}
-
-.sf_admin_action_cancel
-{
-  background: url(/sf/images/sf_admin/cancel.png) no-repeat 3px 2px;
-  border-right: 4px solid #E75C58 !important;
-}
-
-.sf_admin_action_filter
-{
-  background: url(/sf/images/sf_admin/filter.png) no-repeat 3px 2px;
-  border-right: 4px solid #66f !important;
-}
-
-.sf_admin_action_reset_filter
-{
-  background: url(/sf/images/sf_admin/reset.png) no-repeat 3px 2px;
-  border-right: 4px solid #E75C58 !important;
-}
-
-.sf_admin_action_list
-{
-  background: url(/sf/images/sf_admin/list.png) no-repeat 3px 2px;
-  border-right: 4px solid #66f !important;
-}
-
-.sf_admin_default_action
-{
-  background-color: #fc6 !important;
-  font-weight: bold !important;
-}
-
-.sf_admin_list
-{
-  width: 100%;
-  border: 1px solid #ddd;
-  border-bottom: 0px;
-  border-right: 0px;
-}
-
-.sf_admin_list th
-{
-  padding: 2px;
-  background-color: #ccf;
-  text-align: left;
-}
-
-.sf_admin_list th a
-{
-  color: #333;
-}
-
-.sf_admin_list td
-{
-  padding: 3px;
-  border-bottom: 1px solid #ddd;
-  border-right: 1px solid #ddd;
-}
-
-.sf_admin_filters li
-{
-  list-style-type: none;
-}
-
-.sf_admin_row_0 td
-{
-  
-}
-
-.sf_admin_row_1 td
-{
-  background-color: #eef;
-}
-
-.sf_admin_edit_help
-{
-  color: #aaa;
-}
-
-.mceEditor td
-{
-  padding: 0px;
-}




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