10 \Noalyss\Dbg::echo_file(__FILE__);
16 <
tr class=
"highlight">
18 <?php echo _(
'N° document')?>
26 <?php echo _(
'Reference')?>
29 <?php echo $str_ag_ref;
35 <?php echo _(
'Type')?>
38 <?php echo $str_doc_type;
46 <?php echo _(
'Concerne')?>
49 <?php echo
$w->search().$w->input();
53 <
tr class=
"font-weight-bolder" style=
"background: lightsteelblue;color:navy">
54 <
td style=
"width: auto" colspan=
"2" >
60 <?php echo _(
'Contact')?>
65 if (
$g_user->can_write_action($this->ag_id) ==
true ):
66 if ( $ag_contact->extra !=
"" ):
67 echo $ag_contact->search().$ag_contact->input();
69 echo _(
'Pas de catégorie de contact');
76 <
tr class=
"font-weight-bolder" style=
"background: lightsteelblue;color:navy;opacity: 0.8">
77 <
td style=
"width: auto" colspan=
"2">
79 echo $spcontact->input();
88 <
td><?=_(
"VideoConf")?></
td>
89 <
td><A href=
"<?=Document_Option::option_video_conf($this->dt_id)?>" target=
"_blank">
90 <?=_(
"Salle de réunion")?>
96 <?php echo $spcontact->input(); ?>
105 <?php echo _(
'Autres concernés')?>
107 <
td id=
"concerned_card_td">
110 echo $followup_other_concerned->display_linked_count();
111 if ($p_view !=
'READ' &&
$g_user->can_write_action($this->ag_id) ==
true ):
112 echo $followup_other_concerned->button_action_add_concerned_card();
120 "act"=>
"CSV:FollowUpContactOption",
128 <?php
if ($p_view !=
'READ') echo $str_add_button;?>
137 <?php echo _(
'Date')?>
140 <?php echo
$date->input();
146 <?php echo _(
'Heure')?>
149 <?php echo $str_ag_hour;
156 <?php echo _(
'Date limite')?>
159 <?php echo $remind_date->input();
165 <?php echo _(
'Etat')?>
168 <?php echo $str_state;
175 <?php echo _(
'Priorité')?>
178 <?php echo $str_ag_priority;
185 <?php echo _(
'Groupe Gestion')?>
188 <?php echo $str_ag_dest;?>
190<?php
if ($this->
ag_id > 0 ): ?>
196 <
td id=
"action_tag_td" style=
"max-width:35rem">
198 $this->tag_cell($p_view);
207<div
id=
"choice_other_info_div" class=
"col-12 col-lg-6">
210 <ul
class=
"tabs noprint" >
211 <li
id=
"related_action_tab<?php echo $uniq?>" class=
"tabs_selected"><?php echo _(
"Actions concernées")?></li>
212 <li
id=
"related_operation_tab<?php echo $uniq?>" class=
"tabs"><?php echo _(
'Opérations concernées')?></li>
213 <li
id=
"dependant_action_tab<?php echo $uniq?>" class=
"tabs"><?php echo _(
'Dépendant')?></li>
217 <div
id=
"related_operation_div<?php echo $uniq?>" style=
"display:none;" class=
"print concerned_action">
218 <?php
if ($p_view !=
'READ') echo
'<span class="noprint">'.$iconcerned->input().
'</span>';?>
224 if ( $p_view !=
'READ')
243 <div
id=
"related_action_div<?php echo $uniq?>" class=
"print concerned_action" style=
"width: 95%" >
244 <div
class=
"" style=
"display:block">
247 <?php
if ( $p_view !=
'READ') echo $iaction->input();?>
248 <?=
\Icon_Action::detail(
'SmallDetailActionChildren'.
$uniq.
'_bt',
"$('related_action_div{$uniq}').addClassName('FullDetailActionChildren');$('FullDetailActionChildren{$uniq}_bt').show();$('SmallDetailActionChildren{$uniq}_bt').hide()")?>
250 echo \Icon_Action::hide_icon(
"FullDetailActionChildren{$uniq}_bt"
251 ,
"$('related_action_div{$uniq}').removeClassName('FullDetailActionChildren');$('FullDetailActionChildren{$uniq}_bt').hide();$('SmallDetailActionChildren{$uniq}_bt').show()");?>
254 $this->display_children($p_view,$p_base);
257 <script>$(
'FullDetailActionChildren<?=$uniq?>_bt').hide()</script>
260 <div
id=
"dependant_action_div<?php echo $uniq?>" style=
"display:none" class=
"print concerned_action">
263 $this->display_parent($p_view,$p_base);
271<div
style=
"clear: both"></div>
272<div
id=
"div_action_description">
275<script language=
"javascript">
276 function enlarge(p_id_textarea){
277 $(p_id_textarea).style.height=$(p_id_textarea).style.height+250+
'px';
278 $(
'bt_enlarge').style.display=
"none";
279 $(
'bt_small').style.display=
"inline";
281function small(p_id_textarea){
282 $(
'bt_enlarge').style.display=
"inline";
283 $(
'bt_small').style.display=
"none";
287 <
p style=
"margin-left:5%;">
288 <?php echo
$title->input();
291 <div
class=
"nicEdit-main">
298 $style_enl=
'style="display:inline"';
$style_small=
'style="display:none"';
306 if ( count($acomment)> 0) {
310 if ( $p_view !=
'READ' && $editable_description ==
true){
311 echo
h2(_(
"Description"));
312 $itDescription=
new ITextarea(
"ag_description");
313 $itDescription->style=
'class="input_text field_follow_up" style="height:21rem;width:98%;margin-left:1em;"';
314 $itDescription->set_enrichText(
'enrich');
315 $ag_description_id= $acomment[0][
'agc_id'];
316 $itDescription->value=$acomment[0][
'agc_comment_raw'];
317 $itDescription->id=
"ag_description";
318 echo \HtmlInput::hidden(
"ag_description_id",$acomment[0][
'agc_id']);
320 echo $itDescription->input();
323 elseif ($p_view ==
'READ' || $editable_description ==
false)
325 echo
h2(_(
"Description"));
326 echo
'<div class="nicEdit-main field_follow_up" style="margin-left:5%;margin-bottom:1rem;width:90%;">';
327 echo $acomment[0][
'agc_comment_raw'];
331 }
elseif ( count($acomment)> 0 && $p_view !=
'READ') {
333 echo
h2(_(
"Description"));
336 echo
'<div class="textarea" style="margin-left:5%;margin-right:5%;margin-bottom:1rem;width:90%;">';
339 }
elseif ( $p_view !=
'READ' ) {
342 echo
h2(_(
"Description"));
345 echo
'<div class="textarea" style="margin-left:5%;margin-right:5%;margin-bottom:1rem;width:90%;">';
350 $aFile=$this->
db->get_array(
'select d_id,d_filename,d_description,d_mimetype
351 from action_comment_document
352 join document on (d_id=document_id) where action_gestion_comment_id=$1'
353 , array($this->
ag_id));
355 echo
'<div style="left:10%">';
356 echo _(
"Fichiers :");
359 $url=
"export.php?".http_build_query(array(
"act"=>
'RAW:document'
361 ,
"d_id"=>
$file[
"d_id"]));
362 printf(
'<a class="print_line" href="%s">%s</a>',
374 if (count($acomment) > 1 ) {
375 echo
h2(_(
"Commentaire"));
376 $comment=
new ITextarea(
"ag_comment_edit");
377 $comment->set_enrichText(
"plain");
378 $comment->style=
'class="input_text field_follow_up" style="height:21rem;width:98%;margin-left:5%;"';
380 $ag_comment_id= (count($acomment) > 1)?$acomment[1][
'agc_id']:-1;
381 $comment->value=(count($acomment) > 1 )?$acomment[1][
'agc_comment']:
'';
382 $comment->id=
"ag_comment_edit";
384 if ( $p_view !=
'READ') {
388 $editable_comment->add_json_param(
"op",
"followup_comment_oneedit");
389 $editable_comment->add_json_param(
"agc_id", $ag_comment_id);
390 $editable_comment->add_json_param(
"ag_id",
$ag_id);
391 $editable_comment->add_json_param(
"gDossier",
Dossier::id());
392 $editable_comment->set_callback(
"ajax_misc.php");
394 echo $editable_comment->input();
397 echo $comment->display();
401 echo
'<span class="noprint">';
403 echo
h2(_(
"Commentaire"));
414 if ( count($acomment) > 0
418 echo
h2(_(
"Commentaire"));
420 for( $c=1;$c<count($acomment);$c++){
421 $m_desc=_(
'Commentaire');
423 $comment_style=
'style="margin-left:5%;margin-bottom:auto;width:90%;font-weight:bold"';
424 if ( $p_view !=
'READ' && $c > 0)
426 $rmComment=sprintf(
"return confirm_box(null,'"._(
'Voulez-vous effacer ce commentaire').
427 " ?',function() {remove_comment('%s','%s');});",
429 $acomment[$c][
'agc_id']);
431 $comment=
span(
h($m_desc.
' '.$acomment[$c][
'agc_id'].
'('.$acomment[$c][
'tech_user'].
" ".
432 $acomment[$c][
'str_agc_date'].
')'),$comment_style).$js.
433 '<div class="nicEdit-main field_follow_up" style="margin-left:5%;margin-bottom:auto;width:90%" id="com'.$acomment[$c][
'agc_id'].
'"> '.
434 " ".$acomment[$c][
'agc_comment_raw'].
'</div>'
440 $comment=
span(
h($m_desc.
' '.$acomment[$c][
'agc_id'].
'('.$acomment[$c][
'tech_user'].
" ".
441 $acomment[$c][
'str_agc_date'].
')'),$comment_style).
442 '<div class="field_follow_up" id="com'.$acomment[$c][
'agc_id'].
'"> '.
443 " ".$acomment[$c][
'agc_comment_raw'].
'</div>'
448 $comment=preg_replace(
'/ #([0-9]+)/',
' <a class="line" href="javascript:void()" onclick="view_action(\1,'.
453 $aFile=$this->
db->get_array(
'select d_id,d_filename,d_description,d_mimetype
454 from action_comment_document
455 join document on (d_id=document_id) where action_gestion_comment_id=$1'
456 , array( $acomment[$c][
'agc_id']));
458 echo
'<div style="left:10%">';
459 echo _(
"Fichiers :");
462 $url=
"export.php?".http_build_query(array(
"act"=>
'RAW:document'
464 ,
"d_id"=>
$file[
"d_id"]));
465 printf(
'<a class="print_line" href="%s">%s</a>',
474 echo
'<span class="noprint">';
475 echo
'<div style="margin-left:5%;margin-top:2.5rem">';
480 if ($p_view ==
'UPD') {
509<div
style=
"clear:both"></div>
510<?php
if ($p_view !=
'READ') : ?>
511 <div
class=
"noprint">
512 <h3 >Fichiers à ajouter: </h3>
515 <?php echo $upload->input();
519 $js=
"document.getElementById('add_file').removeChild(this.parentNode)";
525 <input
type=
"button" class=
"smallbutton" onclick=
"addFiles();" value=
"<?php echo _("Ajouter un fichier
")?>">
527<script language=
"javascript">
530 docAdded=document.getElementById(
'add_file');
531 new_element=document.createElement(
'li');
532 new_element.innerHTML=
'<input class="inp" type="file" value="" multiple name="file_upload[]"/>';
534 new_element.innerHTML+=
'<span id="<?=uniqid("file")?>" onclick="document.getElementById(\'add_file\').removeChild(this.parentNode)" class="icon"></span>';
538 docAdded.appendChild(new_element);
540catch(exception) {
alert(
'<?php echo j(_('Je ne peux pas ajouter de fichier
'))?>');
alert(exception.message);}
546<?php
if (($p_view !=
'READ' && $str_select_doc !=
'' )|| ! empty ($aAttachedFile)) : ?>
547<div
id=
"div_action_attached_doc">
550 echo _(
'Pièces attachées');
551 printf(
"(%s)",count($aAttachedFile));
554 <div
class=
"noprint">
561 <?php
if ($p_view !=
'READ' && $str_select_doc !=
'') : ?>
562 <?php echo _(
'Document à générer')?>
564 <?php echo $str_select_doc;
565 echo $str_submit_generate;
576 if ( ! empty ($aAttachedFile)) :
578 <div
id=
"icon_show_file_div_id<?=$uniq?>">
581 printf (
"Voir tous les fichiers");
583 echo \Icon_Action::show_icon(uniqid(),
"$('all_attached_files_div{$uniq}').show();$('icon_show_file_div_id{$uniq}').hide()");
586 <div
class=
"print" style=
"display: none" id=
"all_attached_files_div<?=$uniq?>">
588 echo
"Cacher les fichiers";
589 echo \Icon_Action::hide_icon(uniqid(),
"$('all_attached_files_div{$uniq}').hide();$('icon_show_file_div_id{$uniq}').show()")
593for (
$i=0;
$i<
sizeof($aAttachedFile);
$i++) :
598 <A
class=
"print line" style=
"display:inline" id=
"<?php echo "doc
".$aAttachedFile[$i]['d_id'];?>" href=
"<?php echo $aAttachedFile[$i]['link']?>">
599 <?php echo $aAttachedFile[
$i][
'd_filename'];?> </a>
605 if ($p_view !=
'READ') :
610 $inplace_description->set_callback(
"ajax_misc.php");
611 $inplace_description->add_json_param(
"d_id", $aAttachedFile[
$i][
'd_id']);
612 $inplace_description->add_json_param(
"gDossier",
Dossier::id());
613 $inplace_description->add_json_param(
"op",
"update_comment_followUp");
614 echo $inplace_description->input();
616 echo
h($aAttachedFile[
$i][
'd_description']);
619<?php $rmDoc=sprintf(
"return confirm_box(null,'"._(
'Voulez-vous effacer le document').
" %s' , function(){remove_document('%s','%s');});",
620 $aAttachedFile[
$i][
'd_filename'],
622 $aAttachedFile[
$i][
'd_id']);
626 <?php
if ($p_view !=
'READ') : ?> <
span class=
"icon" id=
"<?php echo "ac
".$aAttachedFile[$i]['d_id'];?>" href=
"javascript:void(0)" onclick=
"<?php echo $rmDoc;?>"></
span><?php
endif;?>
639 $url=
"export.php?".http_build_query([
641 "act"=>
"RAW:document",
644 "ag_id"=>$this->
ag_id,
653<?php
if ($p_view !=
'NEW') : ?>
654Document créé le <?php echo $this->ag_timestamp ?> par <?php echo $this->ag_owner?>
660 $(
'related_action_tab<?php echo $uniq?>').onclick=
function() {
661 $(
'related_action_tab<?php echo $uniq?>').className=
'tabs_selected';
662 $(
'related_operation_tab<?php echo $uniq?>').className=
'tabs';
663 $(
'dependant_action_tab<?php echo $uniq?>').className=
'tabs';
664 $(
'related_operation_div<?php echo $uniq?>').hide();
665 $(
'dependant_action_div<?php echo $uniq?>').hide();
666 $(
'related_action_div<?php echo $uniq?>').show();
668 $(
'related_operation_tab<?php echo $uniq?>').onclick=
function() {
669 $(
'related_operation_tab<?php echo $uniq?>').className=
'tabs_selected';
670 $(
'related_action_tab<?php echo $uniq?>').className=
'tabs';
671 $(
'dependant_action_tab<?php echo $uniq?>').className=
'tabs';
672 $(
'related_action_div<?php echo $uniq?>').hide();
673 $(
'dependant_action_div<?php echo $uniq?>').hide();
674 $(
'related_operation_div<?php echo $uniq?>').show();
676 $(
'dependant_action_tab<?php echo $uniq?>').onclick=
function() {
677 $(
'dependant_action_tab<?php echo $uniq?>').className=
'tabs_selected';
678 $(
'related_action_tab<?php echo $uniq?>').className=
'tabs';
679 $(
'related_operation_tab<?php echo $uniq?>').className=
'tabs';
680 $(
'related_operation_div<?php echo $uniq?>').hide();
681 $(
'related_action_div<?php echo $uniq?>').hide();
682 $(
'dependant_action_div<?php echo $uniq?>').show();
h2($p_string, $p_class="", $raw="")
span($p_string, $p_extra='')
tr($p_string, $p_extra='')
td($p_string='', $p_extra='')
surround the string with td
alert($p_msg, $buffer=false)
alert in javascript
global $g_user
if no group available , then stop
h( $row[ 'oa_description'])
foreach($array as $idx=> $m) $w
static is_enable_editable_description($p_document_type)
returns true if it is possible to edit the description , otherwise false
static can_add_comment($p_id)
Returns true if we can add a comment , or false if it is not possible.
static is_enable_video_conf($p_document_type)
returns true there is a videoconf enable
static is_enable_contact_multiple($p_document_type)
returns true if the operation_detail is enable, otherwise false
static option_comment($p_document_type)
returns option from the operation_detail
static is_enable_operation_detail($p_document_type)
returns true if the operation_detail is enable, otherwise false
Class Document corresponds to the table document.
manage the current dossier, everywhere we need to know to which folder we are connected,...
static id()
return the 'gDossier' value after a check
static display(Follow_Up $p_follow_up, $p_view)
Others concerned card in an action.
Manage the TEXTAREA html element.
static detail($p_id, $p_javascript)
static trash($p_id, $p_javascript)
Display the icon of a trashbin.
Inplace_edit class for ajax update of HtmlInput object.
if(count($acomment)> 0) elseif(count( $acomment)> 0 &&$p_view !='READ') elseif( $p_view !='READ') $aFile
if( $delta< 0) elseif( $delta==0)