More help on screen
This commit is contained in:
parent
1160102d4d
commit
850ff8036b
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005 Simon TOSSER <simon@kornog-computing.com>
|
||||
* Copyright (C) 2005-2007 Regis Houssin <regis@dolibarr.fr>
|
||||
*
|
||||
@ -19,7 +19,6 @@
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -450,10 +449,7 @@ if ($_GET["action"] == 'create')
|
||||
}
|
||||
else
|
||||
{
|
||||
$arraylist=$caction->liste_array(1,'code');
|
||||
$arraylist[0]=' ';
|
||||
asort($arraylist);
|
||||
$html->select_array("actioncode", $arraylist, 0);
|
||||
$html->select_type_actions(0, "actioncode");
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
@ -647,7 +647,28 @@ class Form
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
/**
|
||||
* \brief Retourne la liste des types de comptes financiers
|
||||
* \param selected Type pré-sélectionné
|
||||
* \param htmlname Nom champ formulaire
|
||||
*/
|
||||
function select_type_actions($selected='',$htmlname='actioncode')
|
||||
{
|
||||
global $langs,$user;
|
||||
|
||||
require_once(DOL_DOCUMENT_ROOT."/cactioncomm.class.php");
|
||||
$caction=new CActionComm($this->db);
|
||||
|
||||
$arraylist=$caction->liste_array(1,'code');
|
||||
$arraylist[0]=' ';
|
||||
asort($arraylist);
|
||||
|
||||
$this->select_array($htmlname, $arraylist, 0);
|
||||
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* \brief Retourne la liste déroulante des sociétés
|
||||
* \param selected Societe pré-sélectionnée
|
||||
* \param htmlname Nom champ formulaire
|
||||
|
||||
@ -1319,16 +1319,26 @@ function image_format_supported($file)
|
||||
|
||||
/**
|
||||
\brief Affiche info admin
|
||||
\param text Texte info
|
||||
\param text Text info
|
||||
\param infoonimgalt Info is shown on alt of star picto
|
||||
\return string String with info text
|
||||
*/
|
||||
function info_admin($texte)
|
||||
function info_admin($texte,$infoonimgalt=0)
|
||||
{
|
||||
global $conf,$langs;
|
||||
$s='<div class="info">';
|
||||
$s.=img_picto($langs->trans("InfoAdmin"),'star');
|
||||
$s.=' ';
|
||||
$s.=$texte;
|
||||
$s.='</div>';
|
||||
$s='';
|
||||
if ($infoonimgalt)
|
||||
{
|
||||
$s.=img_picto($texte,'star');
|
||||
}
|
||||
else
|
||||
{
|
||||
$s.='<div class="info">';
|
||||
$s.=img_picto($langs->trans("InfoAdmin"),'star');
|
||||
$s.=' ';
|
||||
$s.=$texte;
|
||||
$s.='</div>';
|
||||
}
|
||||
return $s;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user