8 \Noalyss\Dbg::echo_file(__FILE__);
10 <div
style=
"float:left;">
14 <
tr class=
"highlight">
16 <?php echo _(
'N° document')?>
24 <?php echo _(
'Reference')?>
27 <?php echo $str_ag_ref;
33 <?php echo _(
'Type')?>
36 <?php echo $str_doc_type;
44 <?php echo _(
'Destinataire')?>
47 <?php echo
$w->search().$w->input();
53 <?php echo _(
'Contact')?>
57 if (
$g_user->can_write_action($this->ag_id) ==
true ):
58 if ( $ag_contact->extra !=
"" ):
59 echo $ag_contact->search().$ag_contact->input();
61 echo _(
'Pas de catégorie de contact');
72 <
td><?=_(
"VideoConf")?></
td>
73 <
td><A href=
"<?=Document_Option::option_video_conf($this->dt_id)?>" target=
"_blank">
74 <?=_(
"Salle de réunion")?>
80 <?php echo $spcontact->input(); ?>
89 <?php echo _(
'Autres concernés')?>
91 <
td id=
"concerned_card_td">
94 echo $followup_other_concerned->display_linked_count();
95 if ($p_view !=
'READ' &&
$g_user->can_write_action($this->ag_id) ==
true ):
96 echo $followup_other_concerned->button_action_add_concerned_card();
104 "act"=>
"CSV:FollowUpContactOption",
112 <?php
if ($p_view !=
'READ') echo $str_add_button;?>
115 <div
style=
"float:left">
120 <?php echo _(
'Date')?>
123 <?php echo
$date->input();
129 <?php echo _(
'Heure')?>
132 <?php echo $str_ag_hour;
139 <?php echo _(
'Date limite')?>
142 <?php echo $remind_date->input();
148 <?php echo _(
'Etat')?>
151 <?php echo $str_state;
158 <?php echo _(
'Priorité')?>
161 <?php echo $str_ag_priority;
168 <?php echo _(
'Groupe Gestion')?>
171 <?php echo $str_ag_dest;?>
173 <?php
if ($this->
ag_id > 0 ): ?>
179 <
td id=
"action_tag_td" style=
"max-width:35rem">
181 $this->tag_cell($p_view);
189 <div
id=
"choice_other_info_div" style=
"float:left;">
190 <ul
class=
"tabs noprint" >
191 <li
id=
"related_action_tab<?php echo $uniq?>" class=
"tabs_selected"><?php echo _(
"Actions concernées")?></li>
192 <li
id=
"related_operation_tab<?php echo $uniq?>" class=
"tabs"><?php echo _(
'Opérations concernées')?></li>
193 <li
id=
"dependant_action_tab<?php echo $uniq?>" class=
"tabs"><?php echo _(
'Dépendant')?></li>
196 <div
style=
"clear:both"></div>
197 <div
id=
"related_operation_div<?php echo $uniq?>" style=
"display:none" class=
"print">
204 if ( $p_view !=
'READ')
221 <?php
if ($p_view !=
'READ') echo
'<span class="noprint">'.$iconcerned->input().
'</span>';?>
224 <div
id=
"related_action_div<?php echo $uniq?>" class=
"print">
229 $this->display_children($p_view,$p_base);
233 <?php
if ( $p_view !=
'READ') echo
'<span class="noprint">'.$iaction->input().
'</span>';?>
235 <div
id=
"dependant_action_div<?php echo $uniq?>" style=
"display:none" class=
"print">
237 $this->display_parent($p_view,$p_base);
243 <div
style=
"clear: both"></div>
244 <div
id=
"div_action_description">
247 <script language=
"javascript">
248 function enlarge(p_id_textarea){
249 $(p_id_textarea).
style.height=$(p_id_textarea).style.height+250+
'px';
250 $(
'bt_enlarge').
style.display=
"none";
251 $(
'bt_small').style.display=
"inline";
253 function small(p_id_textarea){
254 $(
'bt_enlarge').
style.display=
"inline";
255 $(
'bt_small').style.display=
"none";
259 <
p style=
"margin-left:10px;">
260 <?php echo
$title->input();
276 if ( count($acomment)> 0) {
279 if ( $p_view !=
'READ' && $editable_description ==
true){
280 echo
h2(_(
"Description"));
281 $itDescription=
new ITextarea(
"ag_description");
282 $itDescription->style=
'class="input_text field_follow_up" style="height:21rem;width:98%"';
284 $ag_description_id= $acomment[0][
'agc_id'];
285 $itDescription->value=$acomment[0][
'agc_comment'];
286 $itDescription->id=
"ag_description";
290 $editable_description->add_json_param(
"op",
"followup_comment_oneedit");
291 $editable_description->add_json_param(
"agc_id", $ag_description_id);
292 $editable_description->add_json_param(
"ag_id",
$ag_id);
293 $editable_description->add_json_param(
"gDossier",
Dossier::id());
294 $editable_description->set_callback(
"ajax_misc.php");
296 echo $editable_description->input();
298 elseif ($p_view ==
'READ' || $editable_description ==
false)
300 echo
h2(_(
"Description"));
301 echo
'<pre class="field_follow_up">';
302 $comment_http=
h($acomment[0][
'agc_comment']);
308 echo
h2(_(
"Description"));
311 echo
'<div class="textarea" style="margin-left:5%;margin-right:5%">';
322 if (count($acomment) > 1 ) {
323 echo
h2(_(
"Commentaire"));
324 $comment=
new ITextarea(
"ag_comment_edit");
325 $comment->style=
'class="input_text field_follow_up" style="height:21rem;width:98%"';
327 $ag_comment_id= (count($acomment) > 1)?$acomment[1][
'agc_id']:-1;
328 $comment->value=(count($acomment) > 1 )?$acomment[1][
'agc_comment']:
'';
329 $comment->id=
"ag_comment_edit";
331 if ( $p_view !=
'READ') {
335 $editable_comment->add_json_param(
"op",
"followup_comment_oneedit");
336 $editable_comment->add_json_param(
"agc_id", $ag_comment_id);
337 $editable_comment->add_json_param(
"ag_id",
$ag_id);
338 $editable_comment->add_json_param(
"gDossier",
Dossier::id());
339 $editable_comment->set_callback(
"ajax_misc.php");
341 echo $editable_comment->input();
344 echo $comment->display();
347 echo
'<span class="noprint">';
349 echo
h2(_(
"Commentaire"));
357 if ( count($acomment) > 0
361 echo
h2(_(
"Commentaire"));
363 for( $c=1;$c<count($acomment);$c++){
364 $m_desc=_(
'Commentaire');
366 if ( $p_view !=
'READ' && $c > 0)
368 $rmComment=sprintf(
"return confirm_box(null,'"._(
'Voulez-vous effacer ce commentaire').
369 " ?',function() {remove_comment('%s','%s');});",
371 $acomment[$c][
'agc_id']);
373 $comment=
h($m_desc.
' '.$acomment[$c][
'agc_id'].
'('.$acomment[$c][
'tech_user'].
" ".
374 $acomment[$c][
'str_agc_date'].
')').$js.
375 '<pre class="field_follow_up" id="com'.$acomment[$c][
'agc_id'].
'"> '.
376 " ".add_http_link(
h($acomment[$c][
'agc_comment'])).
'</pre>'
382 $comment=
h($m_desc.
' '.$acomment[$c][
'agc_id'].
'('.$acomment[$c][
'tech_user'].
" ".
383 $acomment[$c][
'str_agc_date'].
')').
384 '<pre class="field_follow_up" id="com'.$acomment[$c][
'agc_id'].
'"> '.
385 " ".add_http_link(
h($acomment[$c][
'agc_comment'])).
'</pre>'
390 $comment=preg_replace(
'/#([0-9]+)/',
'<a class="line" href="javascript:void()" onclick="view_action(\1,'.
396 echo
'<span class="noprint">';
402 if ($p_view ==
'UPD') {
431 <div
style=
"clear:both"></div>
435 <div
id=
"div_action_attached_doc">
437 <?php echo _(
'Pièces attachées')?>
439 <div
class=
"noprint">
446 <?php
if ($p_view !=
'READ' && $str_select_doc !=
'') : ?>
447 <?php echo _(
'Document à générer')?>
449 <?php echo $str_select_doc;
450 echo $str_submit_generate;
468 <A
class=
"print line" style=
"display:inline" id=
"<?php echo "doc
".$aAttachedFile[$i]['d_id'];?>" href=
"<?php echo $aAttachedFile[$i]['link']?>">
475 if ($p_view !=
'READ') :
480 $inplace_description->set_callback(
"ajax_misc.php");
482 $inplace_description->add_json_param(
"gDossier",
Dossier::id());
483 $inplace_description->add_json_param(
"op",
"update_comment_followUp");
484 echo $inplace_description->input();
489 <?php $rmDoc=sprintf(
"return confirm_box(null,'"._(
'Voulez-vous effacer le document').
" %s' , function(){remove_document('%s','%s');});",
496 <?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;?>
506 $url=
"export.php?".http_build_query([
508 "act"=>
"RAW:document",
511 "ag_id"=>$this->
ag_id,
517 <script language=
"javascript">
518 function addFiles() {
520 docAdded=document.getElementById(
'add_file');
521 new_element=document.createElement(
'li');
522 new_element.innerHTML=
'<input class="inp" type="file" value="" name="file_upload[]"/><label>Description</label> <input type="input" class="input_text" name="input_desc[]" >';
524 new_element.innerHTML+=
'<span id="<?=uniqid("file")?>" onclick="document.getElementById(\'add_file\').removeChild(this.parentNode)" class="icon"></span>';
528 docAdded.appendChild(new_element);
530 catch(exception) {
alert(
'<?php echo j(_('Je ne peux pas ajouter de fichier
'))?>');
alert(exception.message);}
533 <?php
if ($p_view !=
'READ') : ?>
534 <div
class=
"noprint">
535 <h3 >Fichiers à ajouter: </h3>
538 <?php echo $upload->input();
541 <input
type=
"input" class=
"input_text" name=
"input_desc[]" >
543 $js=
"document.getElementById('add_file').removeChild(this.parentNode)";
549 <input
type=
"button" class=
"smallbutton" onclick=
"addFiles();" value=
"<?php echo _("Ajouter un fichier
")?>">
554 <?php
if ($p_view !=
'NEW') : ?>
555 Document créé le <?php echo $this->ag_timestamp ?> par <?php echo $this->ag_owner?>
561 $(
'related_action_tab<?php echo $uniq?>').
onclick=
function() {
562 $(
'related_action_tab<?php echo $uniq?>').className=
'tabs_selected';
563 $(
'related_operation_tab<?php echo $uniq?>').className=
'tabs';
564 $(
'dependant_action_tab<?php echo $uniq?>').className=
'tabs';
565 $(
'related_operation_div<?php echo $uniq?>').
hide();
566 $(
'dependant_action_div<?php echo $uniq?>').
hide();
567 $(
'related_action_div<?php echo $uniq?>').show();
569 $(
'related_operation_tab<?php echo $uniq?>').
onclick=
function() {
570 $(
'related_operation_tab<?php echo $uniq?>').className=
'tabs_selected';
571 $(
'related_action_tab<?php echo $uniq?>').className=
'tabs';
572 $(
'dependant_action_tab<?php echo $uniq?>').className=
'tabs';
573 $(
'related_action_div<?php echo $uniq?>').
hide();
574 $(
'dependant_action_div<?php echo $uniq?>').
hide();
575 $(
'related_operation_div<?php echo $uniq?>').show();
577 $(
'dependant_action_tab<?php echo $uniq?>').
onclick=
function() {
578 $(
'dependant_action_tab<?php echo $uniq?>').className=
'tabs_selected';
579 $(
'related_action_tab<?php echo $uniq?>').className=
'tabs';
580 $(
'related_operation_tab<?php echo $uniq?>').className=
'tabs';
581 $(
'related_operation_div<?php echo $uniq?>').
hide();
582 $(
'related_action_div<?php echo $uniq?>').
hide();
583 $(
'dependant_action_div<?php echo $uniq?>').show();