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
GitLab 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
May 21, 2011
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
/* 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 Sebastien Di Cintio <sdicintio@ressource-toi.org>
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
...
...
@@ -45,8 +45,8 @@ class FormOther
/**
*
\brief
Constructeur
*
\
param DB
handler d'acces base de donnee
* Constructeur
*
@
param DB
Database handler
*/
function
FormOther
(
$DB
)
{
...
...
@@ -57,11 +57,11 @@ class FormOther
/**
*
\brief
Ret
o
urn
e la liste des modeles d'export
*
\
param selected Id modele pre-selectionne
*
\
param htmlname Nom de la zone select
*
\
param type Type des modeles recherches
*
\
param useempty Affiche valeur vide dans liste
*
Return
HTML select list of export models
*
@
param selected Id modele pre-selectionne
*
@
param htmlname Nom de la zone select
*
@
param type Type des modeles recherches
*
@
param useempty Affiche valeur vide dans liste
*/
function
select_export_model
(
$selected
=
''
,
$htmlname
=
'exportmodelid'
,
$type
=
''
,
$useempty
=
0
)
{
...
...
@@ -104,11 +104,11 @@ class FormOther
/**
*
\brief
Ret
o
urn
e la
list
e des modeles d'import
*
\
param selected Id modele pre-selectionne
*
\
param htmlname Nom de la zone select
*
\
param type Type des modeles recherches
*
\
param useempty Affiche valeur vide dans liste
*
Return list
of export models
*
@
param selected Id modele pre-selectionne
*
@
param htmlname Nom de la zone select
*
@
param type Type des modeles recherches
*
@
param useempty Affiche valeur vide dans liste
*/
function
select_import_model
(
$selected
=
''
,
$htmlname
=
'importmodelid'
,
$type
=
''
,
$useempty
=
0
)
{
...
...
@@ -151,9 +151,9 @@ class FormOther
/**
*
\brief
Retourne la liste des ecotaxes avec tooltip sur le libelle
*
\
param selected code ecotaxes pre-selectionne
*
\
param htmlname nom de la liste deroulante
* Retourne la liste des ecotaxes avec tooltip sur le libelle
*
@
param selected code ecotaxes pre-selectionne
*
@
param htmlname nom de la liste deroulante
*/
function
select_ecotaxes
(
$selected
=
''
,
$htmlname
=
'ecotaxe_id'
)
{
...
...
@@ -203,13 +203,13 @@ class FormOther
}
/**
*
\brief
Ret
o
urn
e une liste de pou
rcent
age
*
\
param selected pourcentage pre-selectionne
*
\
param htmlname nom de la liste deroulante
*
\
param increment increment value
*
\
param start start value
*
\
param end end value
*
\
return return combo
* Return
a HTML select list to select a pe
rcent
*
@
param selected pourcentage pre-selectionne
*
@
param htmlname nom de la liste deroulante
*
@
param increment increment value
*
@
param start start value
*
@
param end end value
*
@
return return combo
*/
function
select_percent
(
$selected
=
0
,
$htmlname
=
'percent'
,
$disabled
=
0
,
$increment
=
5
,
$start
=
0
,
$end
=
100
)
{
...
...
@@ -235,11 +235,11 @@ class FormOther
}
/**
*
\brief
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 selected Preselected value
*
\
param htmlname Name of combo list
*
\
return return Html combo list code
* 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 selected Preselected value
*
@
param htmlname Name of combo list
*
@
return return Html combo list code
*/
function
select_categories
(
$type
,
$selected
=
0
,
$htmlname
=
'search_categ'
)
{
...
...
@@ -327,14 +327,14 @@ class FormOther
}
/**
*
\brief
Return list of project and tasks
*
\
param selectedtask Pre-selected task
*
\
param projectid Project id
*
\
param htmlname Name of html select
*
\
param modeproject 1 to restrict on projects owned by 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 useempty 0=Allow empty values
* Return list of project and tasks
*
@
param selectedtask Pre-selected task
*
@
param projectid Project id
*
@
param htmlname Name of html select
*
@
param modeproject 1 to restrict on projects owned by 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 useempty 0=Allow empty values
*/
function
selectProjectTasks
(
$selectedtask
=
''
,
$projectid
=
0
,
$htmlname
=
'task_parent'
,
$modeproject
=
0
,
$modetask
=
0
,
$mode
=
0
,
$useempty
=
0
)
{
...
...
@@ -588,7 +588,6 @@ class FormOther
/**
* Write all lines of a project (if parent = 0)
*
* @param $inc
* @param $parent
* @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