Beispiel #1
0
        $var=!$var;

	print '</table>';
        print '</td>';
        print '<td valign="top" width="50%" class="notopnoright">';
        if($conf->highcharts->enabled && $user->rights->highcharts->read )
                {
                    $langs->load("highcharts@highCharts");
                    
                    $graph = new HighCharts($db);
                    $graph->height = '300px';
                    $graph->socid = $soc->id;
                    $graph->label = $langs->trans("ActivityHistory");
                    if($user->rights->highcharts->all)
                            $graph->mine=0;
                    $graph->graphTaskDone(0,0,1);
                }
        print '</td>';
        print '</tr>';
        print '</table>';

	print '</div>';


	dol_htmloutput_mesg($mesg);


    /*
     * Barre d'action
     */
Beispiel #2
0
    $graph->name = "graphProspectionState";
    $graph->label = $langs->trans("ProspectionStatus");
    if ($user->rights->highcharts->all && $user->rights->agenda->allactions->read) {
        $graph->mine = 0;
    }
    $graph->graphProspectionState();
}
/* Print Activity Graph */
if ($user->rights->agenda->myactions->read && $conf->highcharts->enabled && $user->rights->highcharts->read) {
    $graph->label = $langs->trans("graphMonthTaskDone") . ' ' . (isset($_GET["month"]) ? $_GET["month"] : strftime("%m", dol_now())) . "/" . (isset($_GET["year"]) ? $_GET["year"] : strftime("%Y", dol_now()));
    $graph->name = "graphMonthTaskDone";
    $graph->height = "350px";
    if ($user->rights->highcharts->all && $user->rights->agenda->myactions->all) {
        $graph->mine = 0;
    }
    $graph->graphTaskDone(isset($_GET["month"]) ? $_GET["month"] : strftime("%m", dol_now()), isset($_GET["year"]) ? $_GET["year"] : strftime("%Y", dol_now()));
}
/*
 * Last modified customers or prospects
 */
if ($conf->societe->enabled && $user->rights->societe->lire) {
    $langs->load("boxes");
    $sql = "SELECT s.rowid, s.nom as name, s.client, s.datec, s.tms, s.canvas";
    $sql .= " FROM " . MAIN_DB_PREFIX . "societe as s";
    if (!$user->rights->societe->client->voir && !$socid) {
        $sql .= ", " . MAIN_DB_PREFIX . "societe_commerciaux as sc";
    }
    $sql .= " WHERE s.client IN (1, 2, 3)";
    $sql .= " AND s.entity IN (" . getEntity($companystatic->element, 1) . ")";
    if (!$user->rights->societe->client->voir && !$socid) {
        $sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = " . $user->id;