[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r5251 - in phpcompta/trunk: html/js include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r5251 - in phpcompta/trunk: html/js include |
Date: |
Sun, 12 May 2013 00:45:38 +0200 (CEST) |
Author: danydb
Date: 2013-05-12 00:45:37 +0200 (Sun, 12 May 2013)
New Revision: 5251
Modified:
phpcompta/trunk/html/js/infobulle.js
phpcompta/trunk/include/restore.inc.php
Log:
Task #0000808: Restaure : agrandir la zone de texte pour le nom
Ajout explication pour nom dossier
Modified: phpcompta/trunk/html/js/infobulle.js
===================================================================
--- phpcompta/trunk/html/js/infobulle.js 2013-05-11 22:33:09 UTC (rev
5250)
+++ phpcompta/trunk/html/js/infobulle.js 2013-05-11 22:45:37 UTC (rev
5251)
@@ -56,6 +56,7 @@
content[26]="Donnez une partie du quickcode, nom, description... pour filtrer";
content[27]="Attention, <b>SI</b> la fiche a changé de poste comptable, c'est
seulement le dernier qui est affiché";
content[28]="Attention Différence entre TVA calculée et donnée";
+content[29]="Si vous ne donnez pas de nom, ce sera le nom du fichier qui sera
utilisé";
function showBulle(p_ctl)
{
d=document.getElementById('bulle');
Modified: phpcompta/trunk/include/restore.inc.php
===================================================================
--- phpcompta/trunk/include/restore.inc.php 2013-05-11 22:33:09 UTC (rev
5250)
+++ phpcompta/trunk/include/restore.inc.php 2013-05-11 22:45:37 UTC (rev
5251)
@@ -36,7 +36,7 @@
putenv("PGUSER=".phpcompta_user);
putenv("PGPORT=".phpcompta_psql_port);
putenv("PGHOST=").phpcompta_psql_host;
-
+
$retour='<hr>'.HtmlInput::button_anchor("Retour","?action=restore");
if ( ! isset($_REQUEST['t']))
{
@@ -69,12 +69,24 @@
$id=$cn->get_next_seq('dossier_id');
if ( strlen(trim($_REQUEST['database'])) == 0 )
+ {
$lname=$id." Restauration :".sql_string($_FILES['file']['name']);
+ }
else
+ {
$lname=$id." ".$_REQUEST['database'];
+ }
+ if (strlen(trim($_REQUEST['desc']))==0)
+ {
+ $ldesc=$lname;
+ }
+ else
+ {
+ $ldesc=sql_string($_REQUEST['desc']);
+ }
- $sql="insert into ac_dossier (dos_id,dos_name) values
(".$id.",'".$lname."') ";
+ $sql="insert into ac_dossier (dos_id,dos_name,dos_description) values
(".$id.",'".$lname."','".$ldesc."') ";
$cn->start();
try
{
@@ -137,7 +149,7 @@
$lname=$id." ".$_REQUEST['database'];
- $sql="insert into modeledef (mod_id,mod_name) values
(".$id.",'Restauration".$lname."') ";
+ $sql="insert into modeledef (mod_id,mod_name,mod_desc) values
(".$id.",'Restauration".$lname."','".$ldesc."') ";
$cn->start();
try
{
@@ -189,10 +201,11 @@
echo HtmlInput::hidden('action','restore');
echo HtmlInput::hidden('sa','r');
echo '<table>';
- echo '<tr><td>'."Nom de la base de donnée".'</td>';
+ echo '<tr><td>'."Nom de la base de donnée".HtmlInput::infobulle(29)
+ .'</td>';
$wNom=new IText();
$wNom->name="database";
- $wNom->size=12;
+ $wNom->size=30;
echo '<td>'.$wNom->input().'</td></tr>';
echo '<tr><td>'."Type de backup :".'</td>';
$chk=new IRadio();
@@ -209,9 +222,15 @@
$file->value="mod";
echo td('Fichier ').
td($file->input());
- echo '</tr>';
+ $desc=new ITextarea('desc');
+ echo '</tr>';
echo '</table>';
+ echo "<p>Description </p>";
+ $desc->heigh=4;$desc->width=60;
+ echo $desc->input();
+ echo '<p>';
echo HtmlInput::submit("","Restauration");
+ echo '</p>';
echo '</form>';
echo '</div>';
}
---
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] r5251 - in phpcompta/trunk: html/js include,
phpcompta-dev <=