<?php 
if ($p_view != 'READ') {
    echo '<span class="noprint">' . $iconcerned->input() . '</span>';
}
?>
	</div>

        <div style="float:left;width: 47%">
		<h4 style="display:inline"><?php 
echo _("Actions concernées");
?>
</h4>
		<ol>

		<?php 
$base = HtmlInput::request_to_string(array("gDossier", "ac", "sa", "sb", "sc", "f_id"));
for ($o = 0; $o < count($action); $o++) {
    if ($p_view != 'READ' && $p_base != 'ajax') {
        $rmAction = sprintf("return confirm_box(null,'" . _('Voulez-vous effacer cette action ') . "', function () {remove_action('%s','%s','%s');});", dossier::id(), $action[$o]['ag_id'], $_REQUEST['ag_id']);
        $showAction = '<a class="line" href="' . $base . "&ag_id=" . $action[$o]['ag_id'] . '">';
        $js = '<a class="tinybutton" id="acact' . $action[$o]['ag_id'] . '" href="javascript:void(0)" onclick="' . $rmAction . '">' . SMALLX . '</a>';
        echo '<li id="act' . $action[$o]['ag_id'] . '">' . $showAction . $action[$o]['str_date'] . " " . $action[$o]['ag_ref'] . " " . h($action[$o]['sub_title']) . '(' . h($action[$o]['dt_value']) . ')</a>' . " " . $js . '</li>';
    } else {
        /*
         * Display detail requested from Ajax Div
         */
        if ($p_base == 'ajax') {
            $xaction = sprintf('view_action(%d,%d,%d)', $action[$o]['ag_id'], Dossier::id(), 1);
            $showAction = '<a class="line" href="javascript:' . $xaction . '">';
            echo '<li>' . $showAction . $action[$o]['str_date'] . " " . $action[$o]['ag_ref'] . " " . h($action[$o]['sub_title']) . '(' . h($action[$o]['dt_value']) . ')</a>' . " " . '</li>';
        } else {
Exemple #2
0
global $g_user;
$retour = HtmlInput::button_anchor(_('Retour liste'), HtmlInput::request_to_string(array("closed_action", "remind_date_end", "remind_date", "sag_ref", "only_internal", "state", "ac", "gDossier", "qcode", "ag_dest_query", "action_query", "tdoc", "date_start", "date_end", "hsstate", "searchtag")), "", "", "smallbutton");
//-----------------------------------------------------
// Follow_Up
//-----------------------------------------------------
require_once NOALYSS_INCLUDE . '/class_icard.php';
require_once NOALYSS_INCLUDE . '/class_ispan.php';
require_once NOALYSS_INCLUDE . '/class_ifile.php';
require_once NOALYSS_INCLUDE . '/class_itext.php';
require_once NOALYSS_INCLUDE . '/class_follow_up.php';
/*!\brief Show the list of action, this code should be common
 *        to several webpage. But for the moment we keep like that
 *        because it is used only by this file.
 *\param $cn database connection
 * \param $retour button for going back
 * \param $h_url calling url
 */
// We need a sub action (3rd level)
// show a list of already taken action
// propose to add one
// permit also a search
// show detail
$sub_action = isset($_REQUEST['sa']) ? $_REQUEST['sa'] : "";
/* if ag_id is set then we give it otherwise we have problem
 * with the generation of document
 */
$ag_id = isset($_REQUEST['ag_id']) ? $_REQUEST['ag_id'] : 0;
$ac = $_REQUEST['ac'];
$base = HtmlInput::request_to_string(array('ac', 'gDossier'), "");
require_once NOALYSS_INCLUDE . '/action.common.inc.php';
echo "</div>";
/*!\file
 * \brief this file is used for the follow up of the customer (mail, meeting...)
 *  - sb = detail
 *  - sc = sv
 *  - sd = this parameter is used here
 *  - $cn = database connection
 */
if (!defined('ALLOWED')) {
    die('Appel direct ne sont pas permis');
}
require_once NOALYSS_INCLUDE . '/class_follow_up.php';
/**
 *\note problem with ShowActionList, this function is local
 * to the file action.inc.php. And this function must different for each
 *  suivi
 */
$sub_action = isset($_REQUEST['sa']) ? $_REQUEST['sa'] : "list";
$ag_id = isset($_REQUEST['ag_id']) ? $_REQUEST['ag_id'] : 0;
if (!isset($_GET['submit_query'])) {
    $_REQUEST['closed_action'] = 1;
    $_GET['closed_action'] = 1;
}
$p_action = $_REQUEST['ac'];
$base = "ac={$p_action}&sc=sv&sb=detail&f_id=" . $_REQUEST['f_id'] . "&" . HtmlInput::request_to_string(array("closed_action", "remind_date_end", "remind_date", "sag_ref", "only_internal", "state", "gDossier", "qcode", "ag_dest", "query", "tdoc", "date_start", "date_end", "hsstate", "searchtag", "sb", "sc"), "");
$retour = HtmlInput::button_anchor('Retour', '?' . dossier::get() . '&' . $base);
$fiche = new Fiche($cn, $_REQUEST['f_id']);
$_GET['qcode'] = $fiche->get_quick_code();
$_REQUEST['qcode'] = $fiche->get_quick_code();
echo '<div class="content">';
require_once NOALYSS_INCLUDE . '/action.common.inc.php';
echo '</div>';