Doxygen
This commit is contained in:
parent
dc7a0c031d
commit
6fbf223f97
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (c) 2002-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (c) 2002-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||||
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* \class Form
|
* \class Form
|
||||||
* \brief Classe permettant la generation de composants html
|
* \brief Class to manage generation of HTML components
|
||||||
* \remarks Only common components must be here.
|
* \remarks Only common components must be here.
|
||||||
*/
|
*/
|
||||||
class Form
|
class Form
|
||||||
@ -51,24 +51,24 @@ class Form
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Constructor
|
* Constructor
|
||||||
* \param DB Database handler
|
* @param $DB Database handler
|
||||||
*/
|
*/
|
||||||
function Form($DB)
|
function Form($DB)
|
||||||
{
|
{
|
||||||
$this->db = $DB;
|
$this->db = $DB;
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Output key field for an editable field
|
* Output key field for an editable field
|
||||||
* \param text Text of label
|
* @param text Text of label
|
||||||
* \param htmlname Name of select field
|
* @param htmlname Name of select field
|
||||||
* \param preselected Preselected value for parameter
|
* @param preselected Preselected value for parameter
|
||||||
* \param paramkey Key of parameter (unique if there is several parameter to show)
|
* @param paramkey Key of parameter (unique if there is several parameter to show)
|
||||||
* \param perm Permission to allow button to edit parameter
|
* @param paramvalue Value of parameter
|
||||||
* \param typeofdata Type of data (string by default, email, ...)
|
* @param perm Permission to allow button to edit parameter
|
||||||
|
* @param typeofdata Type of data (string by default, email, ...)
|
||||||
|
* @return string HTML edit field
|
||||||
*/
|
*/
|
||||||
function editfieldkey($text,$htmlname,$preselected,$paramkey,$paramvalue,$perm,$typeofdata='string')
|
function editfieldkey($text,$htmlname,$preselected,$paramkey,$paramvalue,$perm,$typeofdata='string')
|
||||||
{
|
{
|
||||||
@ -90,6 +90,7 @@ class Form
|
|||||||
* \param paramkey Key of parameter (unique if there is several parameter to show)
|
* \param paramkey Key of parameter (unique if there is several parameter to show)
|
||||||
* \param perm Permission to allow button to edit parameter
|
* \param perm Permission to allow button to edit parameter
|
||||||
* \param typeofdata Type of data (string by default, email, ...)
|
* \param typeofdata Type of data (string by default, email, ...)
|
||||||
|
* \return string HTML edit field
|
||||||
*/
|
*/
|
||||||
function editfieldval($text,$htmlname,$preselected,$paramkey,$paramvalue,$perm,$typeofdata='string')
|
function editfieldval($text,$htmlname,$preselected,$paramkey,$paramvalue,$perm,$typeofdata='string')
|
||||||
{
|
{
|
||||||
@ -1768,7 +1769,7 @@ class Form
|
|||||||
$pageno=($useajax == 2?$page.'&confirm=no':'');
|
$pageno=($useajax == 2?$page.'&confirm=no':'');
|
||||||
// Note: Title is not used by dialogConfirm function
|
// Note: Title is not used by dialogConfirm function
|
||||||
print '<script type="text/javascript">window.onload = function(){ dialogConfirm(\''.$title.'\',\''.$pageyes.'\',\''.$pageno.'\',\''.dol_escape_js('<b>'.$title.'</b><br>'.$more.$question).'\',\''.$langs->trans("Yes").'\',\''.$langs->trans("No").'\',\'validate\'); }</script>';
|
print '<script type="text/javascript">window.onload = function(){ dialogConfirm(\''.$title.'\',\''.$pageyes.'\',\''.$pageno.'\',\''.dol_escape_js('<b>'.$title.'</b><br>'.$more.$question).'\',\''.$langs->trans("Yes").'\',\''.$langs->trans("No").'\',\'validate\'); }</script>';
|
||||||
// print '<script id="eee" type="text/javascript">dialogConfirm(\'aaa\',\'bbb\',\'ccc\',\'eee\',\'yyy\',\'zzz\',\'validate\')</script>';
|
// print '<script id="eee" type="text/javascript">dialogConfirm(\'aaa\',\'bbb\',\'ccc\',\'eee\',\'yyy\',\'zzz\',\'validate\')</script>';
|
||||||
|
|
||||||
print "\n";
|
print "\n";
|
||||||
$ret='ajax';
|
$ret='ajax';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user