noalyss Version-9
action_other_action.php
Go to the documentation of this file.
1<?php
2//This file is part of NOALYSS and is under GPL
3//see licence.txt
4?>
5
6<?php
7 echo HtmlInput::button("other_bt", _("Autres actions"), 'onclick="$(\'other_div\').style.display=\'block\';action_show_checkbox();"', "smallbutton");
8 $radio=new IRadio("othact");
9
10/*
11 * Hidden values for a previous search
12 */
13echo HtmlInput::request_to_hidden(array("closed_action","remind_date_end","remind_date","sag_ref", "remind_date","only_internal", "state", "gDossier", "qcode", "start_date", "end_date", "ag_id", "ag_dest_query",
14 "tdoc", "action_query","date_start","date_end","hsstate","searchtag"));
15?>
16<div id="other_div" class="inner_box" style="left:25%;width:45rem;display: none">
17 <?php echo HtmlInput::title_box(_('Actions sur plusieurs documents'),'other_div', 'hide','action_hide_checkbox();') ?>
18 <?php echo _("Sélectionner les documents et l' action :")?>
19 <ul style='list-style-type: none;padding-left:30px;margin: 0px' >
20 <li >
21 <?php $radio->value="IMP"; $radio->selected=true;echo $radio->input(); ?>
22 <?php echo _("Impression");?>
23 </li>
24 <li>
25 <?php $radio->value="ST";$radio->selected=false;echo $radio->input(); ?>
26 <?php echo _("Changement des états");?>
27 <?php
28 $etat=new ISelect('ag_state');
29 $etat->value=$cn->make_array('select s_id,s_value from document_state order by s_value');
30 echo $etat->input();
31 ?>
32 </li>
33 <li>
34 <?php $radio->value="ETIADD";echo $radio->input(); ?>
35 <?php echo _("Ajout d'étiquettes");?>
36 <?php echo Tag_Action::select_tag_search('add'); ?>
37 <?php echo Tag_Action::add_clear_button('add'); ?>
38 <span id="addtag_choose_td">
39 </span>
40 </li>
41 <li>
42 <?php $radio->value="ETIREM";echo $radio->input(); ?>
43 <?php echo _("Enlever des étiquettes");?>
44 <?php echo Tag_Action::select_tag_search('rem'); ?>
45 <?php echo Tag_Action::add_clear_button('rem'); ?>
46 <span id="remtag_choose_td">
47 </span>
48 </li>
49 <li>
50 <?php $radio->value="ETICLEAR";echo $radio->input(); ?>
51 <?php echo _("Enlever toutes les étiquettes des documents choisis");?>
52 </li>
53 <li>
54 <?php $radio->value="DOCREM";echo $radio->input(); ?>
55 <?php echo _("Effacer les documents choisis");?>
56 </li>
57 </ul>
58 <ul class="aligned-block">
59 <li>
60 <?php
61 echo HtmlInput::submit("other_action_bt", _("Valider"));
62 ?>
63
64 </li>
65 <li>
66 <?php
67 echo HtmlInput::button_Hide("other_div");
68 ?>
69
70 </li>
71
72 </ul>
73</div>
74<script>
75 var obj=document.getElementById('other_div');
76 new Draggable('other_div',{starteffect:function(){
77 new Effect.Highlight(obj.id,{scroll:window,queue:'end'});
78 }
79 }
80 );
81</script>
span($p_string, $p_extra='')
Definition: ac_common.php:43
$opd_description style
static request_to_hidden(array $array)
transform $_REQUEST data to hidden
static button($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
static title_box($p_name, $p_div, $p_mod="close", $p_js="", $p_draggable="n", $p_enlarge='n')
Title for boxes, you can customize the symbol thanks symbol with the mode "custom".
static submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
Html Input.
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
static add_clear_button($p_prefix)
clear the search cell
static select_tag_search($p_prefix)
Show a button to select tag for Search.