This commit is contained in:
sparkyx 2024-08-29 20:20:35 +02:00
parent 1308c2351d
commit ae29565cf1
11 changed files with 74 additions and 26 deletions

View file

@ -155,7 +155,7 @@ if ($op == 'widget') {
$path = array(
// search accounting , detail ...
"account"=>"ajax_poste",
"account"=>"ajax_account",
// display card detail :possible to update or add
"card"=>"ajax_card",
"ledger"=>"ajax_ledger",

View file

@ -3327,25 +3327,25 @@ li.li-active {
width: 1.5rem;
height: 1.5rem;
display: inline-block;
animation: turn-color 3.5s linear 0s infinite forwards;
animation: turn-color 6s linear 0s infinite forwards;
position: relative;
left: 0px;
top: 10px;
background: rgb(176, 173, 230);
box-shadow: #a7a7b3 1px 1px 40px;
border-radius: 5px;
/* border-radius: 5px;*/
}
.loading_msg:nth-child(2) {
background:blue;
animation: turn-color2 3.5s linear 0s infinite forwards;
animation: turn-color2 6s linear 0s infinite forwards;
}
.loading_msg:nth-child(3) {
background:red;
animation: turn-color3 3.5s linear 0s infinite forwards;
animation: turn-color3 6s linear 0s infinite forwards;
}
.loading_msg:nth-child(4) {
background:navy;
animation: turn-color2 3.5s linear 0s infinite forwards;
animation: turn-color2 6s linear 0s infinite forwards;
}
@keyframes turn-color{
@ -3590,3 +3590,12 @@ div.widget-full_size {
max-height: 100%;
margin: 2px;
}
@keyframes fill_up_loading {
30% {transform:rotateY(90deg);}
60% {transform:rotateY(-90deg);}
}

View file

@ -473,13 +473,23 @@ function success_misc(req) {
}
function loading() {
var str = '<div class="loading_msg"></div>';
str += '<div class="loading_msg"></div>';
str += '<div class="loading_msg"></div>';
str += '<div class="loading_msg"></div>';
str += '<div class="loading_msg"></div>';
return str;
var str ='<div style="animation-duration:6s;animation-name:fill_up_loading;animation-iteration-count: infinite;animation-timing-function: linear;align-items: center">';
str += '<div class="loading_msg"></div>';
str += '<div class="loading_msg"></div>';
str += '<div class="loading_msg"></div>';
str += '<div class="loading_msg"></div>';
str += '<div class="loading_msg"></div>';
str +='</div>';
var str2 = '<div style="animation-duration:6s;animation-name:fill_up_loading;animation-iteration-count: infinite;animation-timing-function: linear;position:relative;top:-50px;animation-delay: 0.7s;">';
str2 += '<div class="loading_msg"></div>';
str2 += '<div class="loading_msg"></div>';
str2 += '<div class="loading_msg"></div>';
str2 += '<div class="loading_msg"></div>';
str2 += '<div class="loading_msg"></div>';
str2 +='</div>';
return str+str2;
}
function ajax_misc_failure() {
@ -3075,7 +3085,29 @@ function init_scroll() {
}
}
function loading_page() {
var id_page = new Element('div', {
"class": "",
"style": "padding: 5px;\n" +
" width: 300px;\n" +
" height: 60px;\n" +
" display: block;\n" +
" position: fixed;\n" +
" bottom: 50px;\n" +
" left: 50px;\n" +
" text-align: center;\n" +
" animation-name: fill_up_loading;\n" +
" animation-duration: 8s;\n" +
" animation-iteration-count: infinite;"+
"opacity: 0.7;"+
"border-radius: 5px;"+
"font-size: 300%;"+
"animation-timing-function: linear;",
id: "loading_page_div"
});
id_page.update('<div class="loading_msg"></div><div class="loading_msg"></div><div class="loading_msg"></div><div class="loading_msg"></div><div class="loading_msg"></div>');
document.body.appendChild(id_page);
}
/**
* Confirm a form thanks a modal dialog Box, it returns true if we agree otherwise
* false
@ -4635,4 +4667,11 @@ Widget.prototype.toggle_full_size=function (widget_domid) {
$(widget_domid).style.zIndex=layer;
}
}
};
/**
* EXPERIMENTAL
(function(){window.addEventListener("beforeunload", (event) => {waiting_box()});})();
(function(){window.addEventListener("onload", (event) => {remove_waiting_box()});})();
*/

View file

@ -420,6 +420,7 @@ class Follow_Up
$iag_ref=new IText("ag_ref");
$iag_ref->value=$this->ag_ref;
$iag_ref->readOnly=false;
$iag_ref->css_size="100%";
$str_ag_ref=$iag_ref->input();
// Preparing the return string
$r="";

View file

@ -57,7 +57,7 @@ if ($histo == 4 || $histo==5)
$fd=new Fiche_Def($cn,$http->request('cat'));
if ($allcard==1 && $fd->hasAttribute(ATTR_DEF_ACCOUNT) == false )
{
$pdf->write_cell(0,10, "Cette catégorie n'ayant pas de poste comptable n'a pas de balance");
$pdf->write_cell(0,10, _("Cette catégorie n'a pas de poste comptable"));
//Save PDF to file
$fDate=date('dmy-Hi');
$pdf->Output("category-$fDate.pdf", 'D');
@ -86,7 +86,7 @@ if ($histo == 4 || $histo==5)
$name=$cn->get_value('select fd_label from fiche_def where fd_id=$1',array($afiche[$e]['fd_id']));
$pdf->SetFont('DejaVu','BI',14);
$pdf->write_cell(0,8,$name,0,1,'C');
$pdf->line_new();
$pdf->SetFont('DejaVuCond','',7);
$pdf->LongLine(30,7,'Quick Code',0,'L',0);
$pdf->LongLine(80,7,'Libellé',0,'L',0);

View file

@ -48,7 +48,7 @@ require_once NOALYSS_INCLUDE.'/lib/function_javascript.php';
- echo js_include('controls.js');
- echo js_include('dragdrop.js');
- echo js_include('accounting_item.js');
*\see ajax_poste.php
*\see ajax_accountajax_account.php
*\code
// must be done BEFORE any FORM
echo js_include('prototype.js');

View file

@ -3,7 +3,6 @@
//see licence.txt
?>
<fieldset id="asearch" style="height:88%">
<legend><?php echo _('Résultats')?></legend>
<div style="height:88%;overflow:auto;">
<?php
$limite=5;

View file

@ -3,7 +3,6 @@
//see licence.txt
?>
<fieldset id="asearch" style="height:88%">
<legend><?php echo _('Résultats'); ?></legend>
<div style="height:88%;overflow:auto;">
<?php
// compute the url, $sql_array is defined in ajax_card.php

View file

@ -15,7 +15,7 @@ $dossier_id=Dossier::id();
<table>
<tr class="highlight">
<TD>
<?php echo _('N° document')?>
<?php echo _('Doc. n°')?>
</TD>
<TD >
<?php echo $this->ag_id;?>
@ -23,7 +23,7 @@ $dossier_id=Dossier::id();
</TR>
<tr>
<TD>
<?php echo _('Reference')?>
<?php echo _('Référence')?>
</TD>
<TD>
<?php echo $str_ag_ref;
@ -104,7 +104,9 @@ if ($this->ag_id > 0 && Document_Option::is_enable_contact_multiple($this->dt_id
<td>
<?php echo _('Autres concernés')?>
</td>
<td id="concerned_card_td">
<td>
<span id="concerned_card_td">
<?php
$followup_other_concerned=new Follow_Up_Other_Concerned($this->db,$this->ag_id);
echo $followup_other_concerned->display_linked_count();
@ -112,8 +114,7 @@ if ($this->ag_id > 0 && Document_Option::is_enable_contact_multiple($this->dt_id
echo $followup_other_concerned->button_action_add_concerned_card();
endif;
?>
</td>
<td>
</span>
<?php
$csv="export.php?".
http_build_query(["gDossier"=>Dossier::id(),

View file

@ -58,7 +58,7 @@ if ( $cn->get_value("select count(*) from profile join profile_user using (p_id)
where user_name=$1 and with_direct_form=true",array($_SESSION[SESSION_KEY.'g_user'])) ==1):
?>
<div id="direct">
<form method="get" onsubmit="if (document.getElementById('ac').value.trim() =='') {return false;} else {return true;}">
<form method="get" onsubmit="return document.getElementById('ac').value.trim()!='';">
<?php echo $http->request('ac',"string", '')?>
<?php echo Dossier::hidden()?>
<?php