Follow-Up Cosmetic, form before creating a new follow-up action
This commit is contained in:
parent
94bba9cf62
commit
f48a95e74d
4 changed files with 88 additions and 42 deletions
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of NOALYSS.
|
||||
*
|
||||
|
|
@ -29,25 +28,11 @@
|
|||
require_once NOALYSS_INCLUDE."/lib/select_box.class.php";
|
||||
$http=new HttpInput();
|
||||
// Create select box for new Action
|
||||
$selbox=new Select_Box(uniqid(), _("Ajout action"));
|
||||
$selbox->set_position("normal");
|
||||
$selbox->set_filter("yes");
|
||||
$aDocumentType=$cn->get_array("select dt_id,dt_value from document_type order by 2");
|
||||
$nbDocumentType=count($aDocumentType);
|
||||
$ac=$http->request("ac");
|
||||
$dossier_id=Dossier::id();
|
||||
$sup_parameter=HtmlInput::array_to_string(["sc","sb","f_id","qcode"], $_REQUEST,"&");
|
||||
for ($i=0;$i<$nbDocumentType;$i++) {
|
||||
$selbox->add_url($aDocumentType[$i]['dt_value'],
|
||||
"do.php?".http_build_query([ "ac"=>$ac,"gDossier"=>$dossier_id,"sa"=>"add_action"
|
||||
,"action_type"=>$aDocumentType[$i]["dt_id"]]).$sup_parameter);
|
||||
|
||||
}
|
||||
Follow_Up::show_action_add(array("sa"=>"add_action"));
|
||||
?>
|
||||
<div class="content" style="display:inline" >
|
||||
<div style="display:inline">
|
||||
<input id="bt_search" type="button" class="smallbutton" onclick="$('search_action').style.display='block'" value="<?php echo _('Recherche') ?>">
|
||||
<?=$selbox->input();?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue