[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 34/34: esthetic and doc
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 34/34: esthetic and doc |
Date: |
Sun, 5 Feb 2023 04:41:43 -0500 (EST) |
sparkyx pushed a commit to branch devel
in repository noalyss.
commit 1ba959b43951f15af11d637865cbb836605a07b6
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Feb 5 10:41:25 2023 +0100
esthetic and doc
---
html/index.php | 3 ++-
html/securimage/securimage_show.php | 18 ++++++++----------
include/class/anc_acc_list.class.php | 4 ++--
include/lib/html_input.class.php | 28 ++++++++++++++--------------
4 files changed, 26 insertions(+), 27 deletions(-)
diff --git a/html/index.php b/html/index.php
index 81d11a029..5cf6f81b4 100644
--- a/html/index.php
+++ b/html/index.php
@@ -240,12 +240,13 @@ if
(isset($_REQUEST['reconnect'])&&isset($_REQUEST['backurl']))
// if captcha is used
if (defined('NOALYSS_CAPTCHA') && NOALYSS_CAPTCHA==true) :
?>
+ <div class="form-group row justify-content-center">
Indiquer le code que vous lisez dans l'image
<img id="captcha" src="securimage/securimage_show.php"
alt="CAPTCHA Image" border=1/>
<input type="text" class="input_text" name="captcha_code"
size="10" maxlength="6" autocomplete="off"/>
<a href="#"
onclick="document.getElementById('captcha').src =
'securimage/securimage_show.php?' + Math.random(); return false">Reload
Image</a>
-
+ </div>
<?php
endif;
?>
diff --git a/html/securimage/securimage_show.php
b/html/securimage/securimage_show.php
index 00230a054..4186c2836 100644
--- a/html/securimage/securimage_show.php
+++ b/html/securimage/securimage_show.php
@@ -40,18 +40,16 @@ $img = new securimage();
// Change some settings
-$img->image_width = 205;
-$img->image_height = 50;
-$img->perturbation = 0.35; // 1.0 = high distortion, higher numbers = more
distortion
-$img->image_bg_color = new Securimage_Color("#000000");
-//$img->text_color = new Securimage_Color("#EAEAEA");
-$img->text_transparency_percentage = 45; // 100 = completely transparent
-$img->num_lines = 0;
-$img->line_color = new Securimage_Color("#0033ff");
-$img->signature_color = new Securimage_Color(rand(0, 64), rand(64, 128),
rand(128, 255));
+$img->image_width = 320;
+$img->image_height = 70;
+$img->perturbation = 0.80; // 1.0 = high distortion, higher numbers = more
distortion
+
+$img->text_transparency_percentage = 40; // 100 = completely transparent
+$img->num_lines = 7;
+$img->line_color = new Securimage_Color(rand(0, 255), rand(0, 255),
rand(0, 255));
$img->image_type = SI_IMAGE_JPEG;
$img->background_directory="./backgrounds";
-$img->bgimg="./backgrounds/bg4.jpg";
+$img->bgimg="./backgrounds/bg3.jpg";
$img->use_multi_text=true;
$img->show(); // alternate use: $img->show('/path/to/background_image.jpg');
diff --git a/include/class/anc_acc_list.class.php
b/include/class/anc_acc_list.class.php
index 85ef6aef1..f25987e63 100644
--- a/include/class/anc_acc_list.class.php
+++ b/include/class/anc_acc_list.class.php
@@ -493,7 +493,7 @@ order by
$tot_card=bcadd($tot_card,$amount);
$tot_glob=bcadd($tot_glob,$amount);
- echo '<td style="padding-left:10">'.HtmlInput::history_card
($this->arow[$i]['f_id'],$this->arow[$i]['j_qcode'].'
'.$this->arow[$i]['name'],' display:inline').'</td>';
+ echo '<td style="padding-left:10px;">'.HtmlInput::history_card
($this->arow[$i]['f_id'],$this->arow[$i]['j_qcode'].'
'.$this->arow[$i]['name'],' display:inline').'</td>';
echo td(nbm($amount),' class="num" ');
echo '</tr>';
@@ -548,7 +548,7 @@ order by
$tot_card=bcadd($tot_card,$amount);
$tot_glob=bcadd($tot_glob,$amount);
- echo '<td style="padding-left:10">'.HtmlInput::history_account
($this->arow[$i]['j_poste'],$this->arow[$i]['j_poste'].'
'.$this->arow[$i]['name'],' display:inline').'</td>';
+ echo '<td style="padding-left:10px;">'.HtmlInput::history_account
($this->arow[$i]['j_poste'],$this->arow[$i]['j_poste'].'
'.$this->arow[$i]['name'],' display:inline').'</td>';
echo td(nbm($amount),' class="num" ');
echo '</tr>';
diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php
index f44cd7f45..8ffc726e7 100755
--- a/include/lib/html_input.class.php
+++ b/include/lib/html_input.class.php
@@ -105,8 +105,8 @@ class HtmlInput
}
/**
- * Set the value of input (IText, INum,...)
- * @param type $p_string
+ * @brief Set the value of input (IText, INum,...)
+ * @param string $p_string
*/
function set_value($p_string)
{
@@ -114,7 +114,7 @@ class HtmlInput
}
/**
- * Return the value of input (IText, INum,...)
+ * @brief Return the value of input (IText, INum,...)
*/
function get_value()
{
@@ -125,7 +125,7 @@ class HtmlInput
* @brief you can add attribute to this in javascript
* this function is a wrapper and create a script (in js) to modify
* "this" (in javascript) with the value of obj->attribute from PHP
- * @return return string with the javascript code
+ * @return string : return string with the javascript code
*/
public function get_js_attr()
{
@@ -146,7 +146,7 @@ class HtmlInput
}
/**
- * Make a JSON object, this method create a javascript object
+ *@brief Make a JSON object, this method create a javascript object
* with the attribute set, it returns a javascript string with the object
* @param $p_name : name of the object, can be null. If the name is not
null, return
* $p_name={} otherwise only the object {}
@@ -274,7 +274,7 @@ class HtmlInput
}
/**
- * return a string containing the html code for calling the modifyOperation
+ * @brief return a string containing the html code for calling the
modifyOperation
*/
static function detail_op($p_jr_id, $p_mesg)
{
@@ -296,7 +296,7 @@ class HtmlInput
}
/**
- * return a string containing the html code for calling the
modifyModeleDocument
+ * @brief return a string containing the html code for calling the
modifyModeleDocument
*/
static function detail_modele_document($p_id, $p_mesg)
{
@@ -305,7 +305,7 @@ class HtmlInput
}
/**
- * return a string containing the html code for calling the removeStock
+ *@brief return a string containing the html code for calling the
removeStock
*/
static function remove_stock($p_id, $p_mesg)
{
@@ -314,7 +314,7 @@ class HtmlInput
}
/**
- * display a div with the history of the card
+ *@brief display a div with the history of the card
*/
static function history_card($f_id, $p_mesg, $p_style="",$p_exercice="")
{
@@ -328,7 +328,7 @@ class HtmlInput
}
/**
- * display a div with the history of the card
+ *@brief display a div with the history of the card
* @param int $f_id fiche.f_id
* @param string $p_mesg string to display
* @param int $p_exercice exercice of the history
@@ -348,7 +348,7 @@ class HtmlInput
}
/**
- * display a div with the history of the account
+ * @brief display a div with the history of the account
* @param string $p_account accounting
* @param string $p_mesg string to display
* @param string $p_style extra code for HTML
@@ -365,7 +365,7 @@ class HtmlInput
return $view_history;
}
/**
- * display a div with the history of the analytic account
+ * @brief display a div with the history of the analytic account
* @param int $p_account po_id
* @param string $p_mesg string to display
* @param string $p_style extra code for HTML
@@ -383,7 +383,7 @@ class HtmlInput
}
/**
- * create a hidden plus button to select the cat of ledger
+ * @brief create a hidden plus button to select the cat of ledger
* @note the selected value is stored in the array p_cat
*/
static function select_cat($array_cat)
@@ -672,7 +672,7 @@ class HtmlInput
* @see HtmlInput::request_to_hidden
* @return html string with the hidden data
*/
- static function request_to_hidden($array)
+ static function request_to_hidden(array $array)
{
$r=self::array_to_hidden($array, $_REQUEST);
return $r;
- [Noalyss-commit] [noalyss] 25/34: Merge branch 'devel', (continued)
- [Noalyss-commit] [noalyss] 25/34: Merge branch 'devel', Dany De Bontridder, 2023/02/05
- [Noalyss-commit] [noalyss] 22/34: improve code : sql : document table action_gestion, Dany De Bontridder, 2023/02/05
- [Noalyss-commit] [noalyss] 23/34: Documentation ManageTable.js, Dany De Bontridder, 2023/02/05
- [Noalyss-commit] [noalyss] 30/34: Bug #0002219: Compatibilité PHP 8.2 , 8.1 , 8.0, Dany De Bontridder, 2023/02/05
- [Noalyss-commit] [noalyss] 33/34: Minimum PHP 7.4, Dany De Bontridder, 2023/02/05
- [Noalyss-commit] [noalyss] 20/34: Fix : if there is no stock there is an exception instead of a warning, Dany De Bontridder, 2023/02/05
- [Noalyss-commit] [noalyss] 27/34: Bug #0002206: CA - impossible de supprimer un poste analytique, Dany De Bontridder, 2023/02/05
- [Noalyss-commit] [noalyss] 11/34: NEW #0002205 Mode maintenance, Dany De Bontridder, 2023/02/05
- [Noalyss-commit] [noalyss] 12/34: Fix : generate_random_string returns always same value , due to a change in srand(), Dany De Bontridder, 2023/02/05
- [Noalyss-commit] [noalyss] 19/34: Documentation, Dany De Bontridder, 2023/02/05
- [Noalyss-commit] [noalyss] 34/34: esthetic and doc,
Dany De Bontridder <=