[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4307 - in phpcompta/trunk: html include include/templat
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4307 - in phpcompta/trunk: html include include/template |
Date: |
Thu, 3 Nov 2011 23:44:24 +0100 (CET) |
Author: danydb
Date: 2011-11-03 23:44:23 +0100 (Thu, 03 Nov 2011)
New Revision: 4307
Modified:
phpcompta/trunk/html/style-color.css
phpcompta/trunk/html/style-light.css
phpcompta/trunk/html/style.css
phpcompta/trunk/include/ac_common.php
phpcompta/trunk/include/template/module.php
Log:
0434: Form direct action : add the form
Modified: phpcompta/trunk/html/style-color.css
===================================================================
--- phpcompta/trunk/html/style-color.css 2011-11-03 22:17:25 UTC (rev
4306)
+++ phpcompta/trunk/html/style-color.css 2011-11-03 22:44:23 UTC (rev
4307)
@@ -955,4 +955,21 @@
margin-right:150;
+}
+#predef_form {
+ margin-left:20%;
+ width:60%;
+
+}
+#direct
+{
+ display:inline;
+ float:right;
+
+
+}
+.direct
+{
+ font-size:6px;
+ border:groove 1px #00ff00;
}
\ No newline at end of file
Modified: phpcompta/trunk/html/style-light.css
===================================================================
--- phpcompta/trunk/html/style-light.css 2011-11-03 22:17:25 UTC (rev
4306)
+++ phpcompta/trunk/html/style-light.css 2011-11-03 22:44:23 UTC (rev
4307)
@@ -1000,4 +1000,18 @@
margin-left:20%;
width:60%;
-}
\ No newline at end of file
+}
+#direct
+{
+ display:inline;
+ float:right;
+
+
+}
+.direct
+{
+ font-size:6px;
+ border:groove 1px #33378d;
+ margin:1px;
+}
+
Modified: phpcompta/trunk/html/style.css
===================================================================
--- phpcompta/trunk/html/style.css 2011-11-03 22:17:25 UTC (rev 4306)
+++ phpcompta/trunk/html/style.css 2011-11-03 22:44:23 UTC (rev 4307)
@@ -986,4 +986,22 @@
margin-right:150;
+}
+#predef_form {
+ margin-left:20%;
+ width:60%;
+
+}
+#direct
+{
+ display:inline;
+ float:right;
+
+
+}
+.direct
+{
+ font-size:6px;
+ border:groove 1px #000000;
+ margin:1px;
}
\ No newline at end of file
Modified: phpcompta/trunk/include/ac_common.php
===================================================================
--- phpcompta/trunk/include/ac_common.php 2011-11-03 22:17:25 UTC (rev
4306)
+++ phpcompta/trunk/include/ac_common.php 2011-11-03 22:44:23 UTC (rev
4307)
@@ -297,14 +297,9 @@
// language
if (isset($_SESSION['g_lang']))
{
- set_language();
+ set_language();
}
- /* If we are on the user_login page */
- if (basename($_SERVER['PHP_SELF']) == 'user_login.php')
- {
- return;
- }
}
/* !
@@ -754,6 +749,15 @@
require_once('template/module.php');
$file = $cn->get_array("select me_file,me_parameter from v_all_menu
where me_code=$1 and user_name=$2",
array($selected,$g_user->login));
+ if ( count($file ) == 0 )
+ {
+ echo '</div>';
+ echo '</div>';
+ echo '<div class="content">';
+ echo_warning("Module inexistant [$selected");
+ echo '</div>';
+ exit();
+ }
if ($file[0]['me_file'] != '')
{
if ($file[0]['me_parameter'] !== "")
Modified: phpcompta/trunk/include/template/module.php
===================================================================
--- phpcompta/trunk/include/template/module.php 2011-11-03 22:17:25 UTC (rev
4306)
+++ phpcompta/trunk/include/template/module.php 2011-11-03 22:44:23 UTC (rev
4307)
@@ -3,6 +3,19 @@
<H2 class="dossier"> Dossier : <?=h(dossier::name())?></h2>
<?=IButton::show_calc()?>
+ <div id="direct">
+ <form method="get">
+ <?=Dossier::hidden()?>
+ <?
+ $direct=new IText('ac');
+ $direct->style='class="direct"';
+ $direct->value=HtmlInput::default_value('ac', '',
$_REQUEST);
+
$direct->size=(strlen($direct->value)<10)?10:strlen($direct->value);
+ echo $direct->input();
+ echo HtmlInput::submit('go','aller');
+ ?>
+ </form>
+ </div>
</div>
<div class="acces_direct">
<table>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4307 - in phpcompta/trunk: html include include/template,
phpcompta-dev <=