esthetic and doc

This commit is contained in:
sparkyx 2023-02-05 10:41:25 +01:00
parent e363525419
commit 1ba959b439
4 changed files with 26 additions and 27 deletions

View file

@ -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;
?>

View file

@ -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');

View file

@ -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>';

View file

@ -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;