[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4789 - in phpcompta/tags/rel600: html include/template
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4789 - in phpcompta/tags/rel600: html include/template |
Date: |
Thu, 22 Mar 2012 20:51:52 +0100 (CET) |
Author: danydb
Date: 2012-03-22 20:51:52 +0100 (Thu, 22 Mar 2012)
New Revision: 4789
Modified:
phpcompta/tags/rel600/html/ajax_ledger.php
phpcompta/tags/rel600/include/template/ledger_detail_file.php
Log:
558 Agrandir zone document : cosmetic background
Modified: phpcompta/tags/rel600/html/ajax_ledger.php
===================================================================
--- phpcompta/tags/rel600/html/ajax_ledger.php 2012-03-22 19:40:22 UTC (rev
4788)
+++ phpcompta/tags/rel600/html/ajax_ledger.php 2012-03-22 19:51:52 UTC (rev
4789)
@@ -189,8 +189,14 @@
$repo=new Database();
$theme=$repo->get_value("select the_filestyle from theme where
the_name=$1",array($_SESSION['g_theme']));
echo "<LINK REL=\"stylesheet\" type=\"text/css\" href=\"$theme\"
media=\"screen\">";
- echo "</head><body class=\"op_detail_frame\">";
- echo '<div class="op_detail_frame">';
+ if ( ! isset($_REQUEST['ajax']) ) {
+ echo "<body class=\"op_detail_frame\">";
+ echo '<div class="op_detail_frame">';
+ }else {
+ echo "<body>";
+ echo "<div>";
+
+ }
echo "<h2>Document</h2>";
if ( $access=='W')
{
@@ -210,18 +216,28 @@
}
else
{
- echo "<html><head>";
- $repo=new Database();
- $theme=$repo->get_value("select the_filestyle from theme where
the_name=$1",array($_SESSION['g_theme']));
- echo " <LINK REL=\"stylesheet\" type=\"text/css\"
href=\"$theme\" media=\"screen\">";
- echo "</head>";
- echo '<div class="op_detail_frame">';
+ echo "<html><head>";
+ if (!isset($_REQUEST['ajax']))
+ {
+ echo "<body class=\"op_detail_frame\">";
+ echo '<div class="op_detail_frame">';
+ }
+ else
+ {
+ echo "<body>";
+ echo "<div>";
+ }
+ $repo = new Database();
+ $theme = $repo->get_value("select the_filestyle
from theme where the_name=$1", array($_SESSION['g_theme']));
+ echo " <LINK REL=\"stylesheet\"
type=\"text/css\" href=\"$theme\" media=\"screen\">";
+ echo "</head>";
+ echo '<div class="op_detail_frame">';
- echo _('Aucun fichier');
- }
- echo '</div>';
- echo '</body></html>';
- exit();
+ echo _('Aucun fichier');
+ }
+ echo '</div>';
+ echo '</body></html>';
+ exit();
}
else
{
@@ -229,7 +245,15 @@
$repo=new Database();
$theme=$repo->get_value("select the_filestyle from theme where
the_name=$1",array($_SESSION['g_theme']));
echo " <LINK REL=\"stylesheet\" type=\"text/css\" href=\"$theme\"
media=\"screen\">";
- echo "</head><body class=\"op_detail_frame\" >";
+ echo "</head>";
+ if ( ! isset($_REQUEST['ajax']) ) {
+ echo "<body class=\"op_detail_frame\">";
+ echo '<div class="op_detail_frame">';
+ }else {
+ echo "<body>";
+ echo "<div>";
+
+ }
echo "<h2>Document</h2>";
echo '<div class="op_detail_frame">';
$x='';
@@ -268,7 +292,8 @@
$repo=new Database();
$theme=$repo->get_value("select the_filestyle from theme where
the_name=$1",array($_SESSION['g_theme']));
echo " <LINK REL=\"stylesheet\" type=\"text/css\" href=\"$theme\"
media=\"screen\">";
- echo "</head><body class=\"op_detail_frame\">";
+ echo "</head>";
+ if ( ! isset($_REQUEST['ajax']) ) echo "<body
class=\"op_detail_frame\">"; else echo "<body>";
echo "<h2>Document</h2>";
echo '<div class="op_detail_frame">';
$x=sprintf('<a class="mtitle" class="notice"
style="margin-left:12;margin-right:12px"
href="ajax_ledger.php?gDossier=%d&div=%s&jr_id=%s&act=rmf" onclick="return
confirm(\'Effacer le document ?\')">enlever</a>',
Modified: phpcompta/tags/rel600/include/template/ledger_detail_file.php
===================================================================
--- phpcompta/tags/rel600/include/template/ledger_detail_file.php
2012-03-22 19:40:22 UTC (rev 4788)
+++ phpcompta/tags/rel600/include/template/ledger_detail_file.php
2012-03-22 19:51:52 UTC (rev 4789)
@@ -5,6 +5,7 @@
* - a file name (which can be opened or removed
*/
$str='?'.dossier::get()."&div=$div&act=file&jr_id=$jr_id";
+if ( isset ($_REQUEST['ajax'])) $str.="&ajax=1";
?>
<div class="noprint">
<iframe frameborder=0 scrolling="no" style="margin:0;padding:
0;border:0;width:100%;height:90;overflow:hidden" src="<? echo
'ajax_ledger.php'.$str; ?>"></iframe>
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4789 - in phpcompta/tags/rel600: html include/template,
phpcompta-dev <=