From 2372c052cd8c16f88071aba4e34760cccea27de3 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 25 Feb 2023 15:38:03 +0100 Subject: [PATCH] Documentation and CSS --- html/css/style-classic7.css | 14 +++++++------- include/class/document.class.php | 26 ++++++++++++++++---------- 2 files changed, 23 insertions(+), 17 deletions(-) diff --git a/html/css/style-classic7.css b/html/css/style-classic7.css index 9fca748da..749446f10 100644 --- a/html/css/style-classic7.css +++ b/html/css/style-classic7.css @@ -3292,7 +3292,7 @@ li.li-active { border-radius: 5px; } .loading_msg:nth-child(2) { - background:orangered; + background:blue; animation: turn-color2 3.5s linear 0s infinite forwards; } .loading_msg:nth-child(3) { @@ -3300,24 +3300,24 @@ li.li-active { animation: turn-color3 3.5s linear 0s infinite forwards; } .loading_msg:nth-child(4) { - background:orangered; + background:navy; animation: turn-color2 3.5s linear 0s infinite forwards; } @keyframes turn-color{ 0% { transform : rotate(0deg);opacity:0.1;transform:scale( 0.3);background-color:red;margin-left:0px;} 50% { transform : rotate(90deg);opacity:0.9; background-color:orangered;margin-left:2px; } - 100% { transform : rotate(180deg);opacity:0.1;transform:scale( 1.5);margin-left:30px;} + 100% { transform : rotate(180deg);opacity:0.1;transform:scale( 1.2);margin-left:30px;border-radius: 13px;} } @keyframes turn-color2{ - 0% { transform : rotate(0deg);opacity:0.1;transform:scale( 0.3);background-color:orangered;margin-left:0px;} - 50% { transform : rotate(90deg);opacity:0.9; background-color:orange;margin-left:2px; } - 100% { transform : rotate(180deg);opacity:0.1;transform:scale( 0.9);margin-left:30px;} + 0% { transform : rotate(0deg);opacity:0.1;transform:scale( 0.3);background-color:navy;margin-left:0px;} + 50% { transform : rotate(90deg);opacity:0.9; background-color:lightblue;margin-left:2px; } + 100% { transform : rotate(180deg);opacity:0.1;transform:scale( 0.9);margin-left:30px;border-radius: 13px;} } @keyframes turn-color3{ 0% { transform : rotate(0deg);opacity:0.1;transform:scale( 0.3);background-color:darkgreen;margin-left:0px;} 50% { transform : rotate(90deg);opacity:0.9; background-color:lightgreen;margin-left:2px; } - 100% { transform : rotate(180deg);opacity:0.1;transform:scale( 0.9);margin-left:30px;} + 100% { transform : rotate(180deg);opacity:0.1;transform:scale( 0.9);margin-left:30px;border-radius: 13px;} } diff --git a/include/class/document.class.php b/include/class/document.class.php index 0fc8097fb..704ac7959 100644 --- a/include/class/document.class.php +++ b/include/class/document.class.php @@ -39,7 +39,8 @@ class Document var $md_id; /*!< $md_id document's template */ private $counter; /*!< counter for the items ( goods ) */ - /* Constructor + /*! + * @brief Constructor * \param $p_cn Database connection */ @@ -213,7 +214,8 @@ class Document } } - /*! parseDocument + /** + * * \brief This function parse a document and replace all * the predefined tags by a value. This functions * generate diffent documents (invoice, order, letter) @@ -328,7 +330,7 @@ class Document } } - /*! saveGenerated + /*! * \brief Save the generated Document * \param $p_file is the generated file * @@ -529,7 +531,7 @@ class Document return $r; } - /** Get + /** * \brief send the document */ function send() @@ -570,7 +572,8 @@ class Document $this->db->commit(); } - /*!\brief get all the document of a given action + /** + * \brief get all the document of a given action * \param $ag_id the ag_id from action::ag_id (primary key) * \return an array of objects document or an empty array if nothing found */ @@ -596,7 +599,8 @@ class Document } - /*!\brief Get complete all the data member thx info from the database + /** + * \brief Get complete all the data member thx info from the database */ function get() @@ -1677,7 +1681,7 @@ class Document } } /* - * retrieve the value of ATTR for e_march + * @brief retrieve the value of ATTR for e_march */ if (preg_match('/^BENEFATTR/', $p_tag)==1) { @@ -1705,7 +1709,8 @@ class Document return $r; } - /*!\brief remove a row from the table document, the lob object is not deleted + /*! + * \brief remove a row from the table document, the lob object is not deleted * because can be linked elsewhere */ @@ -1718,7 +1723,8 @@ class Document $this->db->lo_unlink($d_lob); } - /*!\brief Move a document from the table document into the concerned row + /*! + * \brief Move a document from the table document into the concerned row * the document is not copied : it is only a link * * \param $p_internal internal code @@ -1736,7 +1742,7 @@ class Document } /** - * replace a special tag *TAGxxxx with the value from fiche_detail, the xxxx + * @brief replace a special tag *TAGxxxx with the value from fiche_detail, the xxxx * is the ad_value * @param $p_qcode qcode of the card * @param $p_tag tag to parse