예제 #1
0
				$var=!$var;
				print '<tr class="liste_total"><td>'.$langs->trans("Total")."</td><td align=\"right\">".price($total)."</td></tr>";
			}
			print "</table><br>";
		}
		$db->free($resql);
	}
}

/*
 * Actions commerciales a faire
 *
 */
print '</td><td valign="top" width="70%" class="notopnoleftnoright">';

if ($conf->agenda->enabled) show_array_actions_to_do(10);

/*
 * Dernieres propales ouvertes
 *
 */
if ($conf->propal->enabled && $user->rights->propale->lire)
{
	$sql = "SELECT s.nom as name, s.rowid as socid, s.client, s.canvas,";
	$sql.= " p.rowid as propalid, p.total as total_ttc, p.ref, p.datep as dp, c.label as statut, c.id as statutid";
	$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
	$sql.= ", ".MAIN_DB_PREFIX."propal as p";
	$sql.= ", ".MAIN_DB_PREFIX."c_propalst as c";
	if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
	$sql.= " WHERE p.fk_soc = s.rowid";
	$sql.= " AND p.fk_statut = c.id";
예제 #2
0
/*
 * Last actions
 */
if ($user->rights->agenda->myactions->read)
{
	show_array_last_actions_done($max);
}


/*
 * Actions to do
 */
if ($user->rights->agenda->myactions->read)
{
	show_array_actions_to_do(10);
}


/*
 * Last contracts
 */
if ($conf->contrat->enabled && $user->rights->contrat->lire && 0) // TODO A REFAIRE DEPUIS NOUVEAU CONTRAT
{
	$langs->load("contracts");

	$sql = "SELECT s.nom as name, s.rowid, s.canvas, ";
	$sql.= " c.statut, c.rowid as contratid, p.ref, c.mise_en_service as datemes, c.fin_validite as datefin, c.date_cloture as dateclo";
	$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
	$sql.= ", ".MAIN_DB_PREFIX."contrat as c";
	$sql.= ", ".MAIN_DB_PREFIX."product as p";
예제 #3
0
파일: fiche.php 프로젝트: nrjacker4/crm-php
            print '<a class="butActionRefused" href="#" title="' . $langs->trans("NotAllowed") . '">' . $langs->trans("Modify") . '</a>';
            print '<a class="butActionRefused" href="#" title="' . $langs->trans("NotAllowed") . '">' . $langs->trans("Close") . '</a>';
        }
        if ($user->rights->agenda->allactions->delete || ($act->author->id == $user->id || $act->usertodo->id == $user->id) && $user->rights->agenda->myactions->delete) {
            print '<a class="butActionDelete" href="fiche.php?action=delete&id=' . $act->id . '">' . $langs->trans("Delete") . '</a>';
        } else {
            print '<a class="butActionRefused" href="#" title="' . $langs->trans("NotAllowed") . '">' . $langs->trans("Delete") . '</a>';
        }
        print '</div>';
        print "<br>\n";
        print '<table width="100%"><tr><td width="50%" valign="top">';
        /*
         * Actions to do
         */
        if ($user->rights->agenda->myactions->read) {
            show_array_actions_to_do(10, $act->id);
        }
        print '</td><td width="50%" valign="top">';
        /*
         * Last actions
         */
        if ($user->rights->agenda->myactions->read) {
            show_array_last_actions_done(10, $act->id);
        }
        print '</td></tr></table>';
    }
}
$db->close();
llxFooter();
/**
 *  Ajoute une ligne de tableau a 2 colonnes pour avoir l'option synchro calendrier