noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
follow_up-display.php
Go to the documentation of this file.
1<?php
2
3//This file is part of NOALYSS and is under GPL
4//see licence.txt
5$uniq=uniqid("tab",TRUE);
6$dossier_id=Dossier::id();
7/**
8 * @var $str_ag_ref string reference of Action inherited Follow_Up::display
9 * @var $str_doc_type string type of document (DOCUMENT_TYPE) inherited Follow_Up::display
10 * @var $w ICard concerned tiers inherited Follow_Up::display
11 * @var $sp ISpan concerned tiers' name inherited Follow_Up::display
12 * @var $g_user Noalyss_User connected user : global variable
13 * @var $ag_contact ICard card of contacts inherited Follow_Up::display
14 * @var $spcontact ISpan contact's name inherited Follow_Up::display
15 * @var $ag_id Number Follow_Up::ag_id inherited Follow_Up::display
16 * @var $p_view string mode : READ NEW UPD inherited Follow_Up::display
17 * @var $str_add_button string for adding event inherited Follow_Up::display
18 * @var $date IDate inherited Follow_Up::display
19 * @var $str_ag_hour string Hour inherited Follow_Up::display
20 * @var $remind_date IDate inherited Follow_Up::display
21 * @var $str_state string status event inherited Follow_Up::display
22 * @var $str_ag_priority string priority event inherited Follow_Up::display
23 * @var $str_ag_dest string group event inherited Follow_Up::display
24 * @var $this Follow_Up inherited Follow_Up::display
25 * @var $operation array table ACTION_GESTION_OPERATION inherited Follow_Up::display
26 * @var $iaction array IRelated_Action inherited Follow_Up::display
27 * @var $p_base string ac parameter inherited Follow_Up::display
28 * @var $acomment array comment of event inherited Follow_Up::display
29 * @var $iconcerned IConcerned concerned operation inherited Follow_Up::display
30 * @var $title string title action inherited Follow_Up::display
31 * @var $desc string description of action inherited Follow_Up::display
32 * @var $upload IFiles file to upkiad
33 * @var $str_select_doc
34 * @var $aAttachedFile
35 * @var $str_submit_generate
36 *
37 *
38 *
39 */
40?>
41<div>
42 <?php
43 \Noalyss\Dbg::echo_file(__FILE__);
44 ?>
45<div class="row m-0">
46
47<div class="col">
48 <table>
49 <tr class="highlight">
50 <TD>
51 <?php echo _('Doc. n°')?>
52 </TD>
53 <TD >
54 <?php echo $this->ag_id;?>
55 </TD>
56 </TR>
57 <tr>
58 <TD>
59 <?php echo _('Référence')?>
60 </TD>
61 <TD>
62 <?php echo $str_ag_ref;
63 ?>
64 </TD>
65 </TR>
66 <tr>
67 <TD>
68 <?php echo _('Type')?>
69 </TD>
70 <TD>
71 <?php echo $str_doc_type;
72 ?>
73 </TD>
74 </tr>
75 <tr>
76
77 <tr>
78 <TD>
79 <?php echo _('Concerne')?>
80 </TD>
81 <TD>
82 <?php echo $w->search().$w->input();
83 ?>
84 </td>
85 </tr>
86 <tr class="font-weight-bolder" style="background: lightsteelblue;color:navy">
87 <td style="width: auto" colspan="2" >
88 <?=$sp->input()?>
89 </td>
90 </Tr>
91 <tr>
92 <TD>
93 <?php echo _('Contact')?>
94 </TD>
95
96 <TD>
97 <?php
98 if ($g_user->can_write_action($this->ag_id) == true ):
99 if ( $ag_contact->extra != "" ):
100 echo $ag_contact->search().$ag_contact->input();
101 else:
102 echo _('Pas de catégorie de contact');
104 endif;
105
106 ?>
107 </td>
108 </tr>
109 <tr class="font-weight-bolder" style="background: lightsteelblue;color:navy;opacity: 0.8">
110 <td style="width: auto" colspan="2">
111 <?php //nom autre contact
112 echo $spcontact->input();
113 ?>
114 </td>
115
116 </Tr>
117<?php
118//----------------------- Video Conf --------------------------------------------------------------------------------
119if (Document_Option::is_enable_video_conf($this->dt_id)):?>
120 <tr>
121 <td><?=_("VideoConf")?></td>
122 <td><A href="<?=Document_Option::option_video_conf($this->dt_id)?>" target="_blank">
123 <?=_("Salle de réunion")?>
124 </a>
125 </tr>
126<?php endif;?>
127 <tr>
128 <TD colspan="2">
129 <?php echo $spcontact->input(); ?>
130 </td>
131 </Tr>
132<?php
133//----------------------- Contact Multiple ----------------------------------------------------------------------------
134if ($this->ag_id > 0 && Document_Option::is_enable_contact_multiple($this->dt_id)):
135 ?>
136 <tr>
137 <td>
138 <?php echo _('Autres concernés')?>
139 </td>
140 <td>
141 <span id="concerned_card_td">
142
143 <?php
144 $followup_other_concerned=new Follow_Up_Other_Concerned($this->db,$this->ag_id);
145 echo $followup_other_concerned->display_linked_count();
146 if ($p_view != 'READ' && $g_user->can_write_action($this->ag_id) == true ):
147 echo $followup_other_concerned->button_action_add_concerned_card();
148 endif;
149 ?>
150 </span>
151 <?php
152 $csv="export.php?".
153 http_build_query(["gDossier"=>Dossier::id(),
154 "act"=>"CSV:FollowUpContactOption",
155 "ag_id"=>$ag_id]);
156 echo HtmlInput::anchor(_("Export CSV"), $csv,"",' class="line" title="Export Contacts options"');
157 ?>
158 </td>
159 </tr>
160 <?php endif; ?>
161 </table>
162 <?php if ($p_view != 'READ') echo $str_add_button;?>
163</div>
164
165
166<div class="col">
167 <table>
168
169
170 <TD>
171 <?php echo _('Date')?>
172 </TD>
173 <TD>
174 <?php echo $date->input();
175 ?>
176 </TD>
177 </TR>
178 <TR>
179 <TD>
180 <?php echo _('Heure')?>
181 </TD>
182 <TD>
183 <?php echo $str_ag_hour;
184 ?>
185 </TD>
186 </TR>
187 <tr>
188 <TR>
189 <TD>
190 <?php echo _('Date limite')?>
191 </TD>
192 <TD>
193 <?php echo $remind_date->input();
194 ?>
195 </TD>
196 </TR>
197 <tr>
198 <TD>
199 <?php echo _('Etat')?>
200 </TD>
201 <td>
202 <?php echo $str_state;
203 ?>
204 <TD>
205 </TD>
206 </TR>
207 <tr>
208 <TD>
209 <?php echo _('Priorité')?>
210 </TD>
211 <td>
212 <?php echo $str_ag_priority;
213 ?>
214 <TD>
215 </TD>
216 </TR>
217 <tr>
218 <TD>
219 <?php echo _('Groupe Gestion')?>
220 </TD>
221 <td>
222 <?php echo $str_ag_dest;?>
223 </tr>
224<?php if ($this->ag_id > 0 ): ?>
225 <tr>
226 <TD>
227 Dossier / Etiquette
228 </TD>
229
230 <td id="action_tag_td" style="max-width:35rem">
231 <?php
232 $this->tag_cell($p_view);
233 ?>
234 </td>
235 </TR>
236<?php endif; ?>
237 </table>
238
239</div>
240
241<div id="choice_other_info_div" class="col-12 col-lg-6">
242 <div class="row">
243
244 <ul class="tabs noprint" >
245 <li id="related_action_tab<?php echo $uniq?>" class="tabs_selected"><?php echo _("Actions concernées")?></li>
246 <li id="related_operation_tab<?php echo $uniq?>" class="tabs"><?php echo _('Opérations concernées')?></li>
247 <li id="dependant_action_tab<?php echo $uniq?>" class="tabs"><?php echo _('Dépendant')?></li>
248 </ul>
249 </div>
250 <div class="row">
251 <div id="related_operation_div<?php echo $uniq?>" style="display:none;" class="print concerned_action">
252 <?php if ($p_view != 'READ') echo '<span class="noprint">'.$iconcerned->input().'</span>';?>
253 <ol>
254
255 <?php
256 for ($o=0;$o<count($operation);$o++)
257 {
258 if ( $p_view != 'READ')
259 {
260 $js = HtmlInput::button_action_remove_operation($operation[$o]['ago_id']);
261 echo '<li id="op'.$operation[$o]['ago_id'].'">'.$operation[$o]['str_date']." "
262 .HtmlInput::detail_op($operation[$o]['jr_id'],sprintf("%s (%s) ",$operation[$o]['jr_pj_number'],$operation[$o]['jr_internal']))
263 ." ".h($operation[$o]['jr_comment'])." "
264 .$js.'</li>';
265 }
266 else
267 {
268 echo '<li >'.$operation[$o]['str_date']." ".HtmlInput::detail_op($operation[$o]['jr_id'],$operation[$o]['jr_internal'])." ".h($operation[$o]['jr_comment'])." "
269 .'</li>';
270 }
271 }
272
273
274
275 ?>
276 </ol>
277
278 </div>
279 <div id="related_action_div<?php echo $uniq?>" class="print concerned_action" style="width: 95%" >
280 <div class="" style="display:block">
281 <div>
282
283 <?php if ( $p_view != 'READ') echo $iaction->input();?>
284 <?=\Icon_Action::detail('SmallDetailActionChildren'.$uniq.'_bt', "$('related_action_div{$uniq}').addClassName('FullDetailActionChildren');$('FullDetailActionChildren{$uniq}_bt').show();$('SmallDetailActionChildren{$uniq}_bt').hide()")?>
285 <?php
286 echo \Icon_Action::hide_icon("FullDetailActionChildren{$uniq}_bt"
287 , "$('related_action_div{$uniq}').removeClassName('FullDetailActionChildren');$('FullDetailActionChildren{$uniq}_bt').hide();$('SmallDetailActionChildren{$uniq}_bt').show()");?>
288 </div>
289 <?php
290 $this->display_children($p_view,$p_base);
291
292 ?>
293 <script>$('FullDetailActionChildren<?=$uniq?>_bt').hide()</script>
294 </div>
295 </div>
296 <div id="dependant_action_div<?php echo $uniq?>" style="display:none" class="print concerned_action">
297 <?php
298 //@todo a enlever obsolete
299 $this->display_parent($p_view,$p_base);
300 ?>
301 </div>
302 </div>
303</div>
304
305</div>
306</div>
307<div style="clear: both"></div>
308<div id="div_action_description">
309
310 <p>
311<script language="javascript">
312 function enlarge(p_id_textarea){
313 $(p_id_textarea).style.height=$(p_id_textarea).style.height+250+'px';
314 $('bt_enlarge').style.display="none";
315 $('bt_small').style.display="inline";
316 }
317function small(p_id_textarea){
318 $('bt_enlarge').style.display="inline";
319 $('bt_small').style.display="none";
320
321 }
322</script>
323 <p style="margin-left:5%;">
324 <?php echo $title->input();
325 ?>
326</p>
327 <div class="nicEdit-main">
328 <?php
329/**********************************************************************************************************************
330 * Start BLOCK Comment and description
331 **********************************************************************************************************************/
332?>
333 <?php
334 $style_enl='style="display:inline"';$style_small='style="display:none"';
335 // description
336 $description = new ITextarea("ag_description");
337 $description->set_enrichText("enrich");
338 $description->id="ag_description";
340 //---------------------------------- Description -------------------------------------------------------------------
341 // if there are comments then the first one is the description
342 // variable: $acomment[0]
343 //
344 if ( count($acomment)> 0) {
345 $has_description = true;
346 $editable_description = Document_Option::is_enable_editable_description($this->dt_id);
347 // if editable and the description can be changed
348 if ( $p_view != 'READ' && $editable_description == true){
349 echo h2(_("Description"));
350 $itDescription=new ITextarea("ag_description");
351 $itDescription->style='class="input_text field_follow_up" style="height:21rem;width:98%;margin-left:1em;"';
352 $itDescription->set_enrichText('enrich');
353 $ag_description_id= $acomment[0]['agc_id'];
354 $itDescription->value=$acomment[0]['agc_comment_raw'];
355 $itDescription->id="ag_description";
356 echo \HtmlInput::hidden("ag_description_id",$acomment[0]['agc_id']);
357
358 echo $itDescription->input();
359
360 }
361 elseif ($p_view == 'READ' || $editable_description == false)
362 {
363 echo h2(_("Description"));
364 echo '<div class="nicEdit-main field_follow_up" style="margin-left:5%;margin-bottom:1rem;width:90%;">';
365 echo $acomment[0]['agc_comment_raw'];
366 echo '</div>';
367 echo '</pre>';
368 }
369 } elseif ( count($acomment)> 0 && $p_view != 'READ') {
370 // there is no comments so there is no description, just input one
371 echo h2(_("Description"));
372 $description->set_enrichText('enrich');
373 $description->style='style="height:250px;width:90%;"';
374 echo '<div class="textarea" style="margin-left:5%;margin-right:5%;margin-bottom:1rem;width:90%;">';
375 echo $description->input();
376 echo '</div>';
377 } elseif ( $p_view != 'READ' ) {
378 // no description and no comment it is a new document
379
380 echo h2(_("Description"));
381 $description->set_enrichText('enrich');
382 $description->style='style="height:250px;width:90%;"';
383 echo '<div class="textarea" style="margin-left:5%;margin-right:5%;margin-bottom:1rem;width:90%;">';
384 echo $description->input();
385 echo '</div>';
386 }
388 if ( count($acomment) > 0 ) {
389
390 // link to files to download
391 $aFile=$this->db->get_array('select d_id,d_filename,d_description,d_mimetype
392 from action_comment_document
393 join document on (d_id=document_id) where action_gestion_comment_id=$1'
394 , array($acomment[0]['agc_id']));
395 if ( ! empty ($aFile)) {
396 echo '<div style="left:10%">';
397 echo _("Fichiers :");
398 foreach ($aFile as $file)
399 {
400 $url="export.php?".http_build_query(array("act"=>'RAW:document'
401 ,"gDossier"=>$dossier_id
402 ,"d_id"=>$file["d_id"]));
403 printf('<a class="print_line" href="%s" download>%s</a>',
404 $url,h($file['d_filename']));
405
406 }
407 echo '</div>';
408 }
409 }
410
411 //---------------------------------- Comment -----------------------------------------------------------------------
412
414 Document_Option::option_comment($this->dt_id) == "ONE_EDIT" )
415 {
416 if (count($acomment) > 1 ) {
417 echo h2(_("Commentaire"));
418 $comment=new ITextarea("ag_comment_edit");
419 $comment->set_enrichText("plain");
420 $comment->style='class="input_text field_follow_up" style="height:21rem;width:98%;margin-left:5%;"';
421
422 $ag_comment_id= (count($acomment) > 1)?$acomment[1]['agc_id']:-1;
423 $comment->value=(count($acomment) > 1 )?$acomment[1]['agc_comment']:'';
424 $comment->id="ag_comment_edit";
425
426 if ( $p_view != 'READ') {
427
428 // One editable comment is available
429 $editable_comment=new Inplace_Edit($comment);
430 $editable_comment->add_json_param("op", "followup_comment_oneedit");
431 $editable_comment->add_json_param("agc_id", $ag_comment_id);
432 $editable_comment->add_json_param("ag_id", $ag_id);
433 $editable_comment->add_json_param("gDossier", Dossier::id());
434 $editable_comment->set_callback("ajax_misc.php");
435 echo '<p></p>';
436 echo $editable_comment->input();
437 } else {
438 echo '<p></p>';
439 echo $comment->display();
440 }
441 } else {
442 // new comment
443 echo '<span class="noprint">';
444 if ( $p_view == 'UPD' && $has_description && Document_Option::can_add_comment($ag_id) ) {
445 echo h2(_("Commentaire"));
446 echo '<p></p>';
447 // if comment are editable it will be in
448 if ( Document_Option::option_comment($this->dt_id) == "ONE_EDIT") $desc->set_enrichText("plain");
449 echo $desc->input();
450
451 }
452 echo '</span>';
453 }
454 }
455
456 if ( count($acomment) > 0
458 && Document_Option::option_comment($this->dt_id) == "SOME_FIXED")
459 {
460 echo h2(_("Commentaire"));
461
462 for( $c=1;$c<count($acomment);$c++){
463 $m_desc=_('Commentaire');
464 $comment="";
465 $comment_style='style="margin-left:5%;margin-bottom:auto;width:90%;font-weight:bold"';
466 if ( $p_view != 'READ' && $c > 0)
467 {
468 $rmComment=sprintf("return confirm_box(null,'"._('Voulez-vous effacer ce commentaire').
469 " ?',function() {remove_comment('%s','%s');});",
470 dossier::id(),
471 $acomment[$c]['agc_id']);
472 $js=Icon_Action::trash("accom".$acomment[$c]['agc_id'], $rmComment);
473 $comment=span( h($m_desc.' '.$acomment[$c]['agc_id'].'('.$acomment[$c]['tech_user']." ".
474 $acomment[$c]['str_agc_date'].')'),$comment_style).$js.
475 '<div class="nicEdit-main field_follow_up" style="margin-left:5%;margin-bottom:auto;width:90%" id="com'.$acomment[$c]['agc_id'].'"> '.
476 " ".$acomment[$c]['agc_comment_raw'].'</div>'
477 ;
478
479 }
480 else
481 {
482 $comment=span(h($m_desc.' '.$acomment[$c]['agc_id'].'('.$acomment[$c]['tech_user']." ".
483 $acomment[$c]['str_agc_date'].')'),$comment_style).
484 '<div class="field_follow_up" id="com'.$acomment[$c]['agc_id'].'"> '.
485 " ".$acomment[$c]['agc_comment_raw'].'</div>'
486 ;
487
488
489 }
490 $comment=preg_replace('/ #([0-9]+)/',' <a class="line" href="javascript:void()" onclick="view_action(\1,'.
491 Dossier::id().',0)" >\1</a>',$comment);
492 echo '<p></p>';
493 echo $comment;
494 // link to files to download
495 $aFile=$this->db->get_array('select d_id,d_filename,d_description,d_mimetype
496 from action_comment_document
497 join document on (d_id=document_id) where action_gestion_comment_id=$1'
498 , array( $acomment[$c]['agc_id']));
499 if ( ! empty ($aFile)) {
500 echo '<div style="left:10%">';
501 echo _("Fichiers :");
502 foreach ($aFile as $file)
503 {
504 $url="export.php?".http_build_query(array("act"=>'RAW:document'
505 ,"gDossier"=>$dossier_id
506 ,"d_id"=>$file["d_id"]));
507 printf('<a class="print_line" href="%s">%s</a>',
508 $url,h($file['d_filename']));
509
510 }
511 echo '</div>';
512 }
513
514 } // end for
515 if ( $has_description && $p_view == 'UPD' && Document_Option::can_add_comment($ag_id)) {
516 echo '<span class="noprint">';
517 echo '<div style="margin-left:5%;margin-top:2.5rem">';
518 echo $desc->input();
519 echo '</div>';
520 }
521 echo '</span>';
522 if ($p_view == 'UPD') {
523
524 }
525 }
526
527
528
529
530?>
531
532 </div>
533</div>
534<?php
535/**********************************************************************************************************************
536 * START BLOCK Display Detail of follow up
537 *
538 **********************************************************************************************************************/
539?>
540<?php
541// Display detail if detail_operation is set
542if ( $this->ag_id > 0 && Document_Option::is_enable_operation_detail($this->dt_id)) Follow_Up_Detail::display($this,$p_view);
543
544?>
545<?php
546/**********************************************************************************************************************
547 * END BLOCK Display Detail of follow up
548 **********************************************************************************************************************/
549?>
550
551<div style="clear:both"></div>
552<?php if ($p_view != 'READ') : ?>
553 <div class="noprint">
554 <h3 >Fichiers à ajouter: </h3>
555 <ol id='add_file' >
556 <li>
557 <?php echo $upload->input();
558 ?>
559
560 <?php
561 $js="document.getElementById('add_file').removeChild(this.parentNode)";
562 echo Icon_Action::trash(uniqid(),$js);
563 ?>
564 </li>
565 </ol>
566 <span >
567 <input type="button" class="smallbutton" onclick="addFiles();" value="<?php echo _("Ajouter un fichier")?>">
568 </span>
569<script language="javascript">
570function addFiles() {
571try {
572 docAdded=document.getElementById('add_file');
573 new_element=document.createElement('li');
574 new_element.innerHTML='<input class="inp" type="file" value="" multiple name="file_upload[]"/>';
575
576 new_element.innerHTML+='<span id="<?=uniqid("file")?>" onclick="document.getElementById(\'add_file\').removeChild(this.parentNode)" class="icon">&#xe80f;</span>';
577
578
579
580 docAdded.appendChild(new_element);
581}
582catch(exception) { alert('<?php echo j(_('Je ne peux pas ajouter de fichier'))?>'); alert(exception.message);}
583}
584</script>
585 </div>
586<?php endif;?>
587
588<?php if (($p_view != 'READ' && $str_select_doc != '' )|| ! empty ($aAttachedFile)) : ?>
589<div id="div_action_attached_doc">
590 <h2 class="h-section" style="cursor:pointer" id="h2_action_attached<?=$uniq?>">
591 <?php
592 $a= _('Pièces attachées');
593 // variable: color if files
594 $class=( count($aAttachedFile)>0)?"cell highlight":"";
595 printf('%s <span class="%s"> (%s)</span>',$a,$class,count($aAttachedFile));
596
597 ?>
598 </h2>
599 <script>
600 (function() {
601 $("h2_action_attached<?=$uniq?>").addEventListener('click',function() {
602 $('all_attached_files_div<?=$uniq?>').show();
603 })
604 } )();
605
606 </script>
607
608 <div class="noprint">
609 <?php
610/**********************************************************************************************************************
611 * start BLOCK generate document
612 **********************************************************************************************************************/
613?>
614
615 <?php if ($p_view != 'READ' && $str_select_doc != '') : ?>
616 <?php echo _('Document à générer')?>
617
618 <?php echo $str_select_doc;
619 echo $str_submit_generate;
620
621endif; ?>
622
623<?php
624/**********************************************************************************************************************
625 * end BLOCK generate document
626 **********************************************************************************************************************/
627?>
628 </div>
629 <?php
630 if ( ! empty ($aAttachedFile)) :
631 ?>
632 <div id="icon_show_file_div_id<?=$uniq?>">
633 <?php
634 /** Start Block Document **/
635 printf ("Voir tous les fichiers");
636
637 echo \Icon_Action::show_icon(uniqid(), "$('all_attached_files_div{$uniq}').show();$('icon_show_file_div_id{$uniq}').hide()");
638 ?>
639 </div>
640 <div class="print" style="display: none" id="all_attached_files_div<?=$uniq?>">
641 <?php
642 echo "Cacher les fichiers";
643 echo \Icon_Action::hide_icon(uniqid(), "$('all_attached_files_div{$uniq}').hide();$('icon_show_file_div_id{$uniq}').show()")
644 ?>
645 <table>
646 <?php
647for ($i=0;$i<sizeof($aAttachedFile);$i++) :
648 ?>
649
650 <tr>
651 <td>
652 <A class="print line" style="display:inline" id="<?php echo "doc".$aAttachedFile[$i]['d_id'];?>" href="<?php echo $aAttachedFile[$i]['link']?>">
653 <?php echo $aAttachedFile[$i]['d_filename'];?> </a>
654 </td>
655 <td>
656 <label> : </label>
657 <?php
658 // Description of the file
659 if ($p_view != 'READ') :
660 $description=new IText("value");
661 $description->id="input_desc_txt".$aAttachedFile[$i]['d_id'];
662 $description->value=h($aAttachedFile[$i]['d_description']);
663 $inplace_description=new Inplace_Edit($description);
664 $inplace_description->set_callback("ajax_misc.php");
665 $inplace_description->add_json_param("d_id", $aAttachedFile[$i]['d_id']);
666 $inplace_description->add_json_param("gDossier", Dossier::id());
667 $inplace_description->add_json_param("op", "update_comment_followUp");
668 echo $inplace_description->input();
669 else:
670 echo h($aAttachedFile[$i]['d_description']);
671 endif;
672 ?>
673<?php $rmDoc=sprintf("return confirm_box(null,'"._('Voulez-vous effacer le document')." %s' , function(){remove_document('%s','%s');});",
674 $aAttachedFile[$i]['d_filename'],
675 dossier::id(),
676 $aAttachedFile[$i]['d_id']);
677 ?>
678 </td>
679 <td>
680 <?php if ($p_view != 'READ') : ?> <span class="icon" id="<?php echo "ac".$aAttachedFile[$i]['d_id'];?>" href="javascript:void(0)" onclick="<?php echo $rmDoc;?>">&#xe80f;</span><?php endif;?>
681 </td>
682 </tr>
683 <?php
684endfor;
685
686 ?>
687 </table>
688
689 </div>
690 <div>
691<?php
692 /*** Propose to download all document in only one step */
693 $url="export.php?".http_build_query([
694 'ac'=>"FOLLOW",
695 "act"=>"RAW:document",
696 "gDossier"=>Dossier::id(),
697 "d_id"=>0,
698 "ag_id"=>$this->ag_id,
699 "a"=>"dwnall"]);
700 echo HtmlInput::button_anchor(_("Télécharger toutes les documents"), "", uniqid(),sprintf("onclick=\"download_document('%s')\"",$url));
701
702endif;?>
703 </div>
704
705</div>
706<?php endif;?>
707<?php if ($p_view != 'NEW') : ?>
708Document créé le <?php echo $this->ag_timestamp ?> par <?php echo $this->ag_owner?>
709<?php endif; ?>
710
711</div>
712
713<script>
714 $('related_action_tab<?php echo $uniq?>').onclick=function() {
715 $('related_action_tab<?php echo $uniq?>').className='tabs_selected';
716 $('related_operation_tab<?php echo $uniq?>').className='tabs';
717 $('dependant_action_tab<?php echo $uniq?>').className='tabs';
718 $('related_operation_div<?php echo $uniq?>').hide();
719 $('dependant_action_div<?php echo $uniq?>').hide();
720 $('related_action_div<?php echo $uniq?>').show();
721 } ;
722 $('related_operation_tab<?php echo $uniq?>').onclick=function() {
723 $('related_operation_tab<?php echo $uniq?>').className='tabs_selected';
724 $('related_action_tab<?php echo $uniq?>').className='tabs';
725 $('dependant_action_tab<?php echo $uniq?>').className='tabs';
726 $('related_action_div<?php echo $uniq?>').hide();
727 $('dependant_action_div<?php echo $uniq?>').hide();
728 $('related_operation_div<?php echo $uniq?>').show();
729 } ;
730 $('dependant_action_tab<?php echo $uniq?>').onclick=function() {
731 $('dependant_action_tab<?php echo $uniq?>').className='tabs_selected';
732 $('related_action_tab<?php echo $uniq?>').className='tabs';
733 $('related_operation_tab<?php echo $uniq?>').className='tabs';
734 $('related_operation_div<?php echo $uniq?>').hide();
735 $('related_action_div<?php echo $uniq?>').hide();
736 $('dependant_action_div<?php echo $uniq?>').show();
737 } ;
738</script>
h2($p_string, $p_class="", $raw="")
Definition ac_common.php:68
span($p_string, $p_extra='')
Definition ac_common.php:43
tr($p_string, $p_extra='')
Definition ac_common.php:88
p($p_string)
Definition ac_common.php:39
td($p_string='', $p_extra='')
surround the string with td
Definition ac_common.php:83
alert($p_msg, $buffer=false)
alert in javascript
global $g_user
if no group available , then stop
$ag_id
$dossier_id
h( $row[ 'oa_description'])
$ret label
$opd_description style
foreach($array as $idx=> $m) $w
$input_from id
_("actif, passif,charge,...")
$input_from type
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.
static display(Follow_Up $p_follow_up, $p_view)
Others concerned card in an action.
static button_anchor($p_label, $p_value, $p_name="", $p_javascript="", $p_class="smallbutton")
create a button with a ref
Html Input.
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.
$all table
$c
Definition compute.php:48
$SecUser db
if(count($acomment)> 0) elseif(count( $acomment)> 0 &&$p_view !='READ') elseif( $p_view !='READ') $aFile
if( $delta< 0) elseif( $delta==0)