noalyss
Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
include
template
action_display_short.php
Go to the documentation of this file.
1
<?php
2
/*
3
* * Copyright (C) 2015 Dany De Bontridder <dany@alchimerys.be>
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19
*
20
*/
21
22
23
/**
24
* @file
25
* @brief call from follow_up::display_short display a small form to
26
* enter a new event
27
*/
28
global
$g_user
;
29
// Date of the event
30
$date
=
new
IDate
(
"date_event"
);
31
$date
->id=
"date_event_action_short"
;
32
$title
=
new
IText
(
'title_event'
);
33
$title
->size=
"60"
;
34
$title
->css_isze=
"60%"
;
35
// Description
36
$summary
=
new
ITextarea
(
'summary'
);
37
$summary
->set_enrichText(
'enrich'
);
38
$summary
->style=
'class="itextarea" style="background-color:white;padding:0px;margin:0px"'
;
39
40
// Type of document / event
41
$type
=
new
ISelect
(
"type_event"
);
42
$type
->name=
"type_event"
;
43
$type
->value=
$cn
->make_array(
"select dt_id,dt_value from document_type order by dt_value"
, 1);
44
$type
->selected=0;
45
46
// Available for the profile
47
$profile
=
new
ISelect
(
'event_group'
);
48
$profile
->value=
$cn
->make_array(
"select p_id as value, "
.
49
"p_name as label "
.
50
" from profile "
51
.
"where "
52
.
"p_id in "
53
.
$g_user
->sql_writable_profile()
54
.
"order by 2"
);
55
56
// priority
57
$priority
=
new
ISelect
(
'event_priority'
);
58
$priority
->value=array(
59
array(
'value'
=>1,
'label'
=>
_
(
'Haute'
)),
60
array(
'value'
=>2,
'label'
=>
_
(
'Moyenne'
)),
61
array(
'value'
=>3,
'label'
=>
_
(
'Basse'
))
62
);
63
$priority
->selected=2;
64
65
// Card
66
$dest
=
new
ICard
(
'dest'
);
67
$dest
->jrn=0;
68
$dest
->name=
'dest'
;
69
$dest
->value=
""
;
70
$dest
->label=
""
;
71
$list_recipient
=
$cn
->make_list(
'select fd_id from fiche_def where frd_id in (14,25,8,9,16)'
);
72
$dest
->extra=
$list_recipient
;
73
$dest
->set_attribute(
'typecard'
,
$list_recipient
);
74
$dest
->set_dblclick(
"fill_ipopcard(this);"
);
75
$dest
->set_attribute(
'ipopup'
,
'ipopcard'
);
76
$dest
->style=
' style="vertical-align:0%"'
;
77
78
// Hours
79
$hour
=
new
IText
(
'hour_event'
);
80
$hour
->size=5;
81
82
echo HtmlInput::title_box(
_
(
'Nouvel événement'
),
'action_add_div'
,
"close"
,
""
,
"y"
);
83
?>
84
<
span
class
=
"notice"
style
=
"float:right"
id
=
"action_add_frm_info"
></
span
>
85
<form method=
"get"
style
=
"margin-left:5%;margin-right: 10%"
id
=
"action_add_frm"
onsubmit=
"action_save_short(<?php echo Dossier::id()?>);return false"
>
86
<
span
>
87
<?php echo
_
(
'Date'
).
" "
.
$date
->input()?>
88
</
span
>
89
<
span
>
90
<?php echo
_
(
'Heure'
).
" "
.
$hour
->input()?>
91
</
span
>
92
<
span
>
93
<?php echo
_
(
'Type évenement'
)?>
94
<?php echo
$type
->input();?>
95
</
span
>
96
<
p
></
p
>
97
<
span
>
98
<?php echo
_
(
'Destinataire'
)?> <?php echo
$dest
->input();?>
99
</
span
>
100
<
span
>
101
<?php echo
_
(
'Priorité'
)?>
102
<?php echo
$priority
->input()?>
103
</
span
>
104
<
span
>
105
<?php echo
_
(
'groupe'
)?>
106
<?php echo
$profile
->input()?>
107
108
</
span
>
109
<
p
>
110
<
span
>
111
<?php echo
_
(
'Sujet'
)?>
112
<?php echo
$title
->input()?>
113
</
span
>
114
</
p
>
115
<
span
> <?php echo
_
(
"Description"
)?>
116
</
span
>
117
<div
style
=
"background-color:white"
>
118
<?php echo
$summary
->input()?>
119
</div>
120
<?php
121
echo HtmlInput::hidden(
'gDossier'
,Dossier::id());
122
echo HtmlInput::hidden(
'op'
,
'action_save'
);
123
?>
124
<
p
style
=
"text-align: center"
>
125
<ol
style
=
"list-style: none"
>
126
<li
style
=
"display:inline"
>
127
<?php echo HtmlInput::submit(
"action_add_submit"
,
_
(
'Valider'
));?>
128
</li>
129
<li
style
=
"display:inline"
>
130
<?php echo HtmlInput::button_close(
"action_add_div"
)?>
131
</li>
132
133
</ol>
134
135
</
p
>
136
</form>
span
span($p_string, $p_extra='')
Definition
ac_common.php:43
p
p($p_string)
Definition
ac_common.php:39
$g_user
global $g_user
if no group available , then stop
Definition
action.common.inc.php:46
$priority
$priority
Definition
action_display_short.php:57
$list_recipient
$list_recipient
Definition
action_display_short.php:71
$date
$date
Definition
action_display_short.php:30
$hour
$hour
Definition
action_display_short.php:79
$summary
$summary
Definition
action_display_short.php:36
$dest
$dest
Definition
action_display_short.php:66
$cn
$cn
Definition
ajax_anc_accounting.php:30
$profile
$profile
Definition
ajax_display_submenu.php:51
style
$opd_description style
Definition
ajax_mod_predf_op.php:52
_
_("actif, passif,charge,...")
Definition
balance.inc.php:195
$type
$type
Definition
balance_age.inc.php:28
ICard
Input HTML for the card show buttons, in the file, you have to add card.js How to use :
Definition
icard.class.php:121
IDate
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
Definition
idate.class.php:34
ISelect
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
Definition
iselect.class.php:40
IText
Html Input.
Definition
itext.class.php:30
ITextarea
Manage the TEXTAREA html element.
Definition
itextarea.class.php:31
$title
$title
Definition
export_balance_csv.php:72
Generated on Wed Jun 25 2025 09:57:48 for noalyss by
1.13.2