1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00
noalyss_ynh/sources/noalyss-6.9.0.0/include/template/action_other_action.php
Laurent Peuch fce579e032 init
2015-09-27 00:42:21 +02:00

69 lines
2.8 KiB
PHP

<?php
//This file is part of NOALYSS and is under GPL
//see licence.txt
?>
<?php
echo HtmlInput::button("other_bt", _("Autres actions"), 'onclick="$(\'other_div\').style.display=\'block\';action_show_checkbox();"', "smallbutton");
$radio=new IRadio("othact");
/*
* Hidden values for a previous search
*/
echo 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",
"tdoc", "action_query","date_start","date_end","hsstate","searchtag"));
?>
<div id="other_div" class="inner_box" style="width:40%;display: none">
<?php echo HtmlInput::title_box(_('Actions sur plusieurs documents'),'other_div', 'hide','action_hide_checkbox();') ?>
<?php echo _("Sélectionner les documents et l' action :")?>
<ul style='list-style-type: none;padding-left:30px;margin: 0px' >
<li >
<?php $radio->value="IMP"; $radio->selected=true;echo $radio->input(); ?>
<?php echo _("Impression");?>
</li>
<li>
<?php $radio->value="ST";$radio->selected=false;echo $radio->input(); ?>
<?php echo _("Changement des états");?>
<?php
$etat=new ISelect('ag_state');
$etat->value=$cn->make_array('select s_id,s_value from document_state order by s_value');
echo $etat->input();
?>
</li>
<li>
<?php $radio->value="ETIADD";echo $radio->input(); ?>
<?php echo _("Ajout d'étiquettes");?>
<?php echo Tag::button_search('add'); ?>
<?php echo Tag::add_clear_button('add'); ?>
<span id="addtag_choose_td">
</span>
</li>
<li>
<?php $radio->value="ETIREM";echo $radio->input(); ?>
<?php echo _("Enlever des étiquettes");?>
<?php echo Tag::button_search('rem'); ?>
<?php echo Tag::add_clear_button('rem'); ?>
<span id="remtag_choose_td">
</span>
</li>
<li>
<?php $radio->value="ETICLEAR";echo $radio->input(); ?>
<?php echo _("Enlever toutes les étiquettes des documents choisis");?>
</li>
<li>
<?php $radio->value="DOCREM";echo $radio->input(); ?>
<?php echo _("Effacer les documents choisis");?>
</li>
</ul>
<?php
echo HtmlInput::submit("other_action_bt", _("Valider"));
?>
</div>
<script>
new Draggable('other_div',{starteffect:function(){
new Effect.Highlight(obj.id,{scroll:window,queue:'end'});
}
}
);
</script>