Merged revisions 4176-4181 via svnmerge from
svn+ssh://danydb@svn/svn/phpcompta/branches/rel560 ........ r4176 | danydb | 2011-07-05 23:26:47 +0200 (Tue, 05 Jul 2011) | 1 line add function HtmlInput::button_close ........ r4177 | danydb | 2011-07-05 23:27:16 +0200 (Tue, 05 Jul 2011) | 1 line Background transparency ........ r4178 | danydb | 2011-07-05 23:27:47 +0200 (Tue, 05 Jul 2011) | 1 line Fix bug : in parameter > extension all the users are seen ........ r4179 | danydb | 2011-07-05 23:35:31 +0200 (Tue, 05 Jul 2011) | 2 lines Bug for 9.0.4: comparison with always true ........ r4180 | danydb | 2011-07-05 23:39:26 +0200 (Tue, 05 Jul 2011) | 2 lines fix small bug ........ r4181 | danydb | 2011-07-10 18:43:22 +0200 (Sun, 10 Jul 2011) | 2 lines #320 bouton fermer dans popup de fiche ........
This commit is contained in:
parent
7114f1e56a
commit
4050d4b23b
6 changed files with 18 additions and 13 deletions
|
|
@ -122,7 +122,8 @@ case 'rmfa':
|
|||
case 'dc':
|
||||
$f=new Fiche($cn);
|
||||
/* add title + close */
|
||||
$html=HtmlInput::button_close($ctl);
|
||||
$html="";
|
||||
$html=HtmlInput::anchor_close($ctl);
|
||||
$html.=h2info('Détail fiche');
|
||||
if ( $qcode != '')
|
||||
{
|
||||
|
|
@ -176,7 +177,7 @@ case 'bc':
|
|||
if ( $user->check_action(FICADD)==1 )
|
||||
{
|
||||
$r='';
|
||||
$r=HtmlInput::button_close($ctl);
|
||||
$r=HtmlInput::anchor_close($ctl);
|
||||
/* get cat. name */
|
||||
$cat_name=$cn->get_value('select fd_label from fiche_def where fd_id=$1',
|
||||
array($fd_id));
|
||||
|
|
@ -244,7 +245,7 @@ case 'st':
|
|||
}
|
||||
}
|
||||
$array=$cn->make_array($sql);
|
||||
$html=HtmlInput::button_close('select_card_div');
|
||||
$html=HtmlInput::anchor_close('select_card_div');
|
||||
$html.=h2info('Choix de la catégorie');
|
||||
if ( empty($array))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -408,7 +408,7 @@ function select_card_type(obj)
|
|||
sx=document.body.scrollTop+60;
|
||||
}
|
||||
|
||||
var str_style="top:"+sx+";left:10%;width:80%;height:auto";
|
||||
var str_style="top:"+sx+";left:25%;width:50%;height:auto";
|
||||
|
||||
var popup={'id': content,'cssclass':'op_detail','style':str_style,'html':loading(),'drag':true};
|
||||
|
||||
|
|
|
|||
|
|
@ -585,7 +585,7 @@ div.popup_back{
|
|||
height:100%;
|
||||
z-index:1;
|
||||
/*background-color:lightgrey;*/
|
||||
|
||||
background-color: rgba(203, 203,203, 0.2);
|
||||
display:none;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -602,7 +602,7 @@ height: 150%;
|
|||
|
||||
z-index:1;
|
||||
/*background-color:lightgrey;*/
|
||||
background-color: rgba(165, 213,195, 0.5);
|
||||
background-color: rgba(203, 203,203, 0.2);
|
||||
display:none;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -397,11 +397,12 @@ class HtmlInput
|
|||
*/
|
||||
static function button_close($div_name)
|
||||
{
|
||||
$html=' <div style="float:right;height:10px;display:block;margin-top:2px;margin-right:2px">';
|
||||
$a=new IButton('Fermer','Fermer');
|
||||
$a->label="Fermer";
|
||||
$a->javascript="removeDiv('".$div_name."')";
|
||||
$html=$a->input();
|
||||
|
||||
$html.= '<A style="background-color:blue;color:white;text-decoration:none" HREF="javascript:void(0)" onclick="removeDiv(\''.$div_name.'\');">Fermer</A>';
|
||||
$html.='</div>';
|
||||
return $html;
|
||||
return $html;
|
||||
|
||||
}
|
||||
/**
|
||||
|
|
@ -411,7 +412,7 @@ class HtmlInput
|
|||
static function anchor_close($div)
|
||||
{
|
||||
$r='';
|
||||
$r.='<div style="float:right">';
|
||||
$r.='<div style="float:right;margin:2;">';
|
||||
$r.= '<A style="background-color:blue;color:white;text-decoration:none" HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">Fermer</A>';
|
||||
$r.='</div>';
|
||||
return $r;
|
||||
|
|
|
|||
|
|
@ -692,8 +692,11 @@ class User
|
|||
{
|
||||
$sql="select distinct use_id,use_login,use_first_name,use_name from ac_users
|
||||
left outer join jnt_use_dos using (use_id)
|
||||
where
|
||||
(dos_id=$1 or use_admin=1) and use_active=1 order by use_login,use_name";
|
||||
left join priv_user on (priv_jnt=jnt_id)
|
||||
where
|
||||
(dos_id=$1 or use_admin=1) and use_active=1 and (use_admin=1 or priv_priv <> 'X') order by use_login,use_name";
|
||||
|
||||
|
||||
$repo=new Database();
|
||||
$array=$repo->get_array($sql,array($p_dossier));
|
||||
if ( $repo->size() == 0 ) throw new Exception ('Error inaccessible folder');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue