Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
2f5dcac3
Commit
2f5dcac3
authored
14 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Doxygen
parent
84ab2071
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/class/html.formother.class.php
+37
-38
37 additions, 38 deletions
htdocs/core/class/html.formother.class.php
with
37 additions
and
38 deletions
htdocs/core/class/html.formother.class.php
+
37
−
38
View file @
2f5dcac3
<?php
<?php
/* Copyright (c) 2002-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (c) 2002-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-20
09
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-20
11
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>
...
@@ -45,8 +45,8 @@ class FormOther
...
@@ -45,8 +45,8 @@ class FormOther
/**
/**
*
\brief
Constructeur
* Constructeur
*
\
param DB
handler d'acces base de donnee
*
@
param DB
Database handler
*/
*/
function
FormOther
(
$DB
)
function
FormOther
(
$DB
)
{
{
...
@@ -57,11 +57,11 @@ class FormOther
...
@@ -57,11 +57,11 @@ class FormOther
/**
/**
*
\brief
Ret
o
urn
e la liste des modeles d'export
*
Return
HTML select list of export models
*
\
param selected Id modele pre-selectionne
*
@
param selected Id modele pre-selectionne
*
\
param htmlname Nom de la zone select
*
@
param htmlname Nom de la zone select
*
\
param type Type des modeles recherches
*
@
param type Type des modeles recherches
*
\
param useempty Affiche valeur vide dans liste
*
@
param useempty Affiche valeur vide dans liste
*/
*/
function
select_export_model
(
$selected
=
''
,
$htmlname
=
'exportmodelid'
,
$type
=
''
,
$useempty
=
0
)
function
select_export_model
(
$selected
=
''
,
$htmlname
=
'exportmodelid'
,
$type
=
''
,
$useempty
=
0
)
{
{
...
@@ -104,11 +104,11 @@ class FormOther
...
@@ -104,11 +104,11 @@ class FormOther
/**
/**
*
\brief
Ret
o
urn
e la
list
e des modeles d'import
*
Return list
of export models
*
\
param selected Id modele pre-selectionne
*
@
param selected Id modele pre-selectionne
*
\
param htmlname Nom de la zone select
*
@
param htmlname Nom de la zone select
*
\
param type Type des modeles recherches
*
@
param type Type des modeles recherches
*
\
param useempty Affiche valeur vide dans liste
*
@
param useempty Affiche valeur vide dans liste
*/
*/
function
select_import_model
(
$selected
=
''
,
$htmlname
=
'importmodelid'
,
$type
=
''
,
$useempty
=
0
)
function
select_import_model
(
$selected
=
''
,
$htmlname
=
'importmodelid'
,
$type
=
''
,
$useempty
=
0
)
{
{
...
@@ -151,9 +151,9 @@ class FormOther
...
@@ -151,9 +151,9 @@ class FormOther
/**
/**
*
\brief
Retourne la liste des ecotaxes avec tooltip sur le libelle
* Retourne la liste des ecotaxes avec tooltip sur le libelle
*
\
param selected code ecotaxes pre-selectionne
*
@
param selected code ecotaxes pre-selectionne
*
\
param htmlname nom de la liste deroulante
*
@
param htmlname nom de la liste deroulante
*/
*/
function
select_ecotaxes
(
$selected
=
''
,
$htmlname
=
'ecotaxe_id'
)
function
select_ecotaxes
(
$selected
=
''
,
$htmlname
=
'ecotaxe_id'
)
{
{
...
@@ -203,13 +203,13 @@ class FormOther
...
@@ -203,13 +203,13 @@ class FormOther
}
}
/**
/**
*
\brief
Ret
o
urn
e une liste de pou
rcent
age
* Return
a HTML select list to select a pe
rcent
*
\
param selected pourcentage pre-selectionne
*
@
param selected pourcentage pre-selectionne
*
\
param htmlname nom de la liste deroulante
*
@
param htmlname nom de la liste deroulante
*
\
param increment increment value
*
@
param increment increment value
*
\
param start start value
*
@
param start start value
*
\
param end end value
*
@
param end end value
*
\
return return combo
*
@
return return combo
*/
*/
function
select_percent
(
$selected
=
0
,
$htmlname
=
'percent'
,
$disabled
=
0
,
$increment
=
5
,
$start
=
0
,
$end
=
100
)
function
select_percent
(
$selected
=
0
,
$htmlname
=
'percent'
,
$disabled
=
0
,
$increment
=
5
,
$start
=
0
,
$end
=
100
)
{
{
...
@@ -235,11 +235,11 @@ class FormOther
...
@@ -235,11 +235,11 @@ class FormOther
}
}
/**
/**
*
\brief
Return select list for categories (to use in form search selectors)
* Return select list for categories (to use in form search selectors)
*
\
param type Type of categories (0=product, 1=suppliers, 2=customers, 3=members)
*
@
param type Type of categories (0=product, 1=suppliers, 2=customers, 3=members)
*
\
param selected Preselected value
*
@
param selected Preselected value
*
\
param htmlname Name of combo list
*
@
param htmlname Name of combo list
*
\
return return Html combo list code
*
@
return return Html combo list code
*/
*/
function
select_categories
(
$type
,
$selected
=
0
,
$htmlname
=
'search_categ'
)
function
select_categories
(
$type
,
$selected
=
0
,
$htmlname
=
'search_categ'
)
{
{
...
@@ -327,14 +327,14 @@ class FormOther
...
@@ -327,14 +327,14 @@ class FormOther
}
}
/**
/**
*
\brief
Return list of project and tasks
* Return list of project and tasks
*
\
param selectedtask Pre-selected task
*
@
param selectedtask Pre-selected task
*
\
param projectid Project id
*
@
param projectid Project id
*
\
param htmlname Name of html select
*
@
param htmlname Name of html select
*
\
param modeproject 1 to restrict on projects owned by user
*
@
param modeproject 1 to restrict on projects owned by user
*
\
param modetask 1 to restrict on tasks associated to user
*
@
param modetask 1 to restrict on tasks associated to user
*
\
param mode 0=Return list of tasks and their projects, 1=Return projects and tasks if exists
*
@
param mode 0=Return list of tasks and their projects, 1=Return projects and tasks if exists
*
\
param useempty 0=Allow empty values
*
@
param useempty 0=Allow empty values
*/
*/
function
selectProjectTasks
(
$selectedtask
=
''
,
$projectid
=
0
,
$htmlname
=
'task_parent'
,
$modeproject
=
0
,
$modetask
=
0
,
$mode
=
0
,
$useempty
=
0
)
function
selectProjectTasks
(
$selectedtask
=
''
,
$projectid
=
0
,
$htmlname
=
'task_parent'
,
$modeproject
=
0
,
$modetask
=
0
,
$mode
=
0
,
$useempty
=
0
)
{
{
...
@@ -588,7 +588,6 @@ class FormOther
...
@@ -588,7 +588,6 @@ class FormOther
/**
/**
* Write all lines of a project (if parent = 0)
* Write all lines of a project (if parent = 0)
*
* @param $inc
* @param $inc
* @param $parent
* @param $parent
* @param $lines
* @param $lines
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment