当前位置: 首页>>代码示例>>PHP>>正文


PHP print_fiche_titre函数代码示例

本文整理汇总了PHP中print_fiche_titre函数的典型用法代码示例。如果您正苦于以下问题:PHP print_fiche_titre函数的具体用法?PHP print_fiche_titre怎么用?PHP print_fiche_titre使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了print_fiche_titre函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: print_rapport

function print_rapport()
{
    global $langs;
    $date_d = preg_replace('/\\//', '-', GETPOST('date_deb'));
    $date_f = preg_replace('/\\//', '-', GETPOST('date_fin'));
    $date_deb = date('Y-m-d', strtotime($date_d));
    $date_fin = date('Y-m-d', strtotime($date_f));
    if (empty(GETPOST('date_deb'))) {
        $date_deb = date('Y-m-d', strtotime(date('Y-m-d')) - 60 * 60 * 24 * 7);
    }
    if (empty(GETPOST('date_fin'))) {
        $date_fin = date('Y-m-d');
    }
    $PDOdb = new TPDOdb();
    $interval = (strtotime($date_fin) - strtotime($date_deb)) / 3600 / 24;
    $TDataBrut = get_user_capacity_period($date_deb, $date_fin);
    $TData = array();
    $total_temps_saisi = 0;
    $hours_to_work = _get_hours_to_work($interval);
    $capacity = $hours_to_work / $interval;
    foreach ($TDataBrut as $ligne) {
        $TData[] = array('task_date' => $ligne['task_date'], 'duree' => $ligne['duree'], 'capacity' => $capacity);
        $total_temps_saisi = $ligne['total'];
    }
    $explorer = new stdClass();
    $explorer->actions = array("dragToZoom", "rightClickToReset");
    $listeview = new TListviewTBS('graphProject');
    print $listeview->renderArray($PDOdb, $TData, array('type' => 'chart', 'chartType' => 'ColumnChart', 'liste' => array('titre' => $langs->transnoentities('timeInput')), 'hAxis' => array('title' => 'Date'), 'vAxis' => array('title' => 'Temps'), 'explorer' => $explorer));
    print_fiche_titre($langs->trans("Temps saisis/capacité de production"));
    $percentage = round($total_temps_saisi / $hours_to_work * 100, 2);
    ?>
			<div class="tabBar">
				<table>
					<tbody>
						<tr>
							<td style="font-weight: bold">Pourcentage heures saisies/capacité de production :</td>
							<td <?php 
    echo $percentage > 80 ? 'style="font-weight : bold; color : green;"' : 'style="font-weight : bold; color : red;"';
    ?>
><?php 
    echo $percentage;
    ?>
 %</td>
						</tr>						
					</tbody>			
				</table>
			</div>
		<?php 
}
开发者ID:ATM-Consulting,项目名称:dolibarr_module_mandarin,代码行数:49,代码来源:graph_time_period.php

示例2: alert

                $s .= '<script type="text/javascript">' . "\n";
                $s .= 'jQuery(document).ready(function () {' . "\n";
                $s .= '		jQuery("#check_ext' . $htmlname . '").click(function() {';
                $s .= ' 		/* alert("' . $htmlname . '"); */';
                $s .= ' 		jQuery(".family_ext' . $htmlname . '").toggle();';
                $s .= '		});' . "\n";
                $s .= '});' . "\n";
                $s .= '</script>' . "\n";
                $s .= '<div class="nowrap float"><input type="checkbox" id="check_ext' . $htmlname . '" name="check_ext' . $htmlname . '" checked="true"> ' . $val['name'] . ' &nbsp; </div>';
            }
        }
    }
    //$s.='<div class="nowrap float"><input type="checkbox" id="check_birthday" name="check_birthday"> '.$langs->trans("AgendaShowBirthdayEvents").' &nbsp; </div>';
}
$link = '';
print_fiche_titre($s, $link . ' &nbsp; &nbsp; ' . $nav, '');
// Get event in an array
$eventarray = array();
$sql = 'SELECT';
if ($usergroup > 0) {
    $sql .= " DISTINCT";
}
$sql .= ' a.id, a.label,';
$sql .= ' a.datep,';
$sql .= ' a.datep2,';
$sql .= ' a.percent,';
$sql .= ' a.fk_user_author,a.fk_user_action,';
$sql .= ' a.transparency, a.priority, a.fulldayevent, a.location,';
$sql .= ' a.fk_soc, a.fk_contact, a.fk_element, a.elementtype,';
$sql .= ' ca.code, ca.color';
$sql .= ' FROM ' . MAIN_DB_PREFIX . 'c_actioncomm as ca, ' . MAIN_DB_PREFIX . "actioncomm as a";
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:peruser.php

示例3: AND

if ($socid) {
    $sql .= "  AND (p.fk_soc IS NULL OR p.fk_soc = 0 OR p.fk_soc = " . $socid . ")";
}
$sql .= " AND p.fk_statut=1";
$sql .= " GROUP BY p.ref, p.title, p.rowid, t.label, t.rowid, t.planned_workload, t.duration_effective, t.progress, t.dateo, t.datee";
$sql .= " ORDER BY t.rowid, t.dateo, t.datee";
$sql .= $db->plimit($max + 1);
// We want more to know if we have more than limit
$var = true;
dol_syslog('projet:index.php: affectationpercent', LOG_DEBUG);
$resql = $db->query($sql);
if ($resql) {
    $num = $db->num_rows($resql);
    $i = 0;
    print '<br>';
    print_fiche_titre($langs->trans("TasksOnOpenedProject"), '', '') . '<br>';
    print '<table class="noborder" width="100%">';
    print '<tr class="liste_titre">';
    //print '<th>'.$langs->trans('TaskRessourceLinks').'</th>';
    print '<th>' . $langs->trans('Projects') . '</th>';
    print '<th>' . $langs->trans('Task') . '</th>';
    print '<th>' . $langs->trans('DateStart') . '</th>';
    print '<th>' . $langs->trans('DateEnd') . '</th>';
    print '<th align="right">' . $langs->trans('PlannedWorkload') . '</th>';
    print '<th align="right">' . $langs->trans("ProgressDeclared") . '</td>';
    print '<th align="right">' . $langs->trans('TimeSpent') . '</th>';
    print '<th align="right">' . $langs->trans("ProgressCalculated") . '</td>';
    print '</tr>';
    while ($i < $num && $i < $max) {
        $obj = $db->fetch_object($resql);
        $var = !$var;
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:index.php

示例4: array_merge

                            }
                        }
                    }
                }
            }
        }
    }
}
/*
 * View
 */
$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
llxHeader("", $langs->trans("OrdersSetup"));
$form = new Form($db);
$linkback = '<a href="' . DOL_URL_ROOT . '/admin/modules.php">' . $langs->trans("BackToModuleList") . '</a>';
print_fiche_titre($langs->trans("OrdersSetup"), $linkback, 'setup');
print '<br>';
$head = order_admin_prepare_head(null);
dol_fiche_head($head, 'general', $langs->trans("Orders"), 0, 'order');
/*
 * Orders Numbering model
 */
print_titre($langs->trans("OrdersNumberingModules"));
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>' . $langs->trans("Name") . '</td>';
print '<td>' . $langs->trans("Description") . '</td>';
print '<td class="nowrap">' . $langs->trans("Example") . '</td>';
print '<td align="center" width="60">' . $langs->trans("Status") . '</td>';
print '<td align="center" width="16">' . $langs->trans("ShortInfo") . '</td>';
print '</tr>' . "\n";
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:commande.php

示例5: llxHeader

 */
/**
 *       \file       htdocs/adherents/index.php
 *       \ingroup    member
 *       \brief      Page accueil module adherents
 */
require "../main.inc.php";
require_once DOL_DOCUMENT_ROOT . "/adherent/class/adherent.class.php";
$langs->load("companies");
$langs->load("members");
/*
 * View
 */
llxHeader('', $langs->trans("Members"), 'EN:Module_Foundations|FR:Module_Adh&eacute;rents|ES:M&oacute;dulo_Miembros');
$staticmember = new Adherent($db);
print_fiche_titre($langs->trans("MembersArea"));
print '<table border="0" width="100%" class="notopnoleftnoright">';
$var = True;
$Adherents = array();
$AdherentsAValider = array();
$MemberUpToDate = array();
$AdherentsResilies = array();
$AdherentType = array();
$result = $staticmember->getView('tag', array("group" => true));
if (count($result->rows)) {
    foreach ($result->rows as $aRow) {
        $AdherentType[$aRow->key] = $aRow->value;
    }
}
$now = dol_now();
$doc->_id = "_temp_view";
开发者ID:nrjacker4,项目名称:crm-php,代码行数:31,代码来源:index.php

示例6: print_fiche_titre

$sql .= $db->order($sortfield, $sortorder);
$sql .= $db->plimit($limit + 1, $offset);
$resql = $db->query($sql);
if ($resql) {
    $num = $db->num_rows($resql);
    $i = 0;
    $var = true;
    $param = '';
    if ($year) {
        $param .= '&amp;year=' . $year;
    }
    if ($typeid) {
        $param .= '&amp;typeid=' . $typeid;
    }
    if ($year) {
        print_fiche_titre($langs->trans("SocialContributions"), $year ? "<a href='index.php?year=" . ($year - 1) . "'>" . img_previous() . "</a> " . $langs->trans("Year") . " {$year} <a href='index.php?year=" . ($year + 1) . "'>" . img_next() . "</a>" : "");
    } else {
        print_barre_liste($langs->trans("SocialContributions"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $totalnboflines);
    }
    dol_htmloutput_mesg($mesg);
    if (empty($mysoc->country_id) && empty($mysoc->country_code)) {
        print '<div class="error">';
        $langs->load("errors");
        $countrynotdefined = $langs->trans("ErrorSetACountryFirst");
        print $countrynotdefined;
        print '</div>';
    } else {
        print '<form method="GET" action="' . $_SERVER["PHP_SELF"] . '">';
        print "<table class=\"noborder\" width=\"100%\">";
        print "<tr class=\"liste_titre\">";
        print_liste_field_titre($langs->trans("Ref"), $_SERVER["PHP_SELF"], "id", "", $param, "", $sortfield, $sortorder);
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:index.php

示例7: accessforbidden

    // From "custom" directory
}
// Libraries
require_once DOL_DOCUMENT_ROOT . "/core/lib/admin.lib.php";
require_once '../lib/lcr.lib.php';
// Translations
$langs->load("lcr@lcr");
// Access control
if (!$user->admin) {
    accessforbidden();
}
/*
 * View
 */
$page_name = "lcrAbout";
llxHeader('', $langs->trans($page_name));
// Subheader
$linkback = '<a href="' . DOL_URL_ROOT . '/admin/modules.php">' . $langs->trans("BackToModuleList") . '</a>';
print_fiche_titre($langs->trans($page_name), $linkback);
// Configuration header
$head = lcrAdminPrepareHead();
dol_fiche_head($head, 'about', $langs->trans("Module104940Name"), 0, 'lcr@lcr');
// About page goes here
print '<div style="float: left;"><img src="../img/Dolibarr_Preferred_Partner_logo.png" /></div>';
print '<div>' . $langs->trans('ATMAbout') . '</div>';
dol_fiche_end();
print '<br><center>';
print '<a href="http://www.atm-consulting.fr" target="_blank"><img src="../img/ATM_logo.jpg" /></a>';
print '</center>';
llxFooter();
$db->close();
开发者ID:ATM-Consulting,项目名称:dolibarr_module_lcr,代码行数:31,代码来源:lcr_about.php

示例8: elseif

     print '</td></tr>';
     // Update all child soc
     print '<tr><td width="15%">';
     print $langs->trans('ForceUpdateChildPriceSoc');
     print '</td>';
     print '<td>';
     print '<input type="checkbox" name="updatechildprice" value="1"/>';
     print '</td>';
     print '</tr>';
     print '</table>';
     print '<center><br><input type="submit" class="button" value="' . $langs->trans("Save") . '">&nbsp;';
     print '<input type="submit" class="button" name="cancel" value="' . $langs->trans("Cancel") . '"></center>';
     print '<br></form>';
 } elseif ($action == 'edit_customer_price') {
     // Edit mode
     print_fiche_titre($langs->trans('PriceByCustomer'));
     $result = $prodcustprice->fetch(GETPOST('lineid', 'int'));
     if ($result < 0) {
         setEventMessage($prodcustprice->error, 'errors');
     }
     print '<form action="' . $_SERVER["PHP_SELF"] . '?socid=' . $soc->id . '" method="POST">';
     print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
     print '<input type="hidden" name="action" value="update_customer_price_confirm">';
     print '<input type="hidden" name="lineid" value="' . $prodcustprice->id . '">';
     print '<table class="border" width="100%">';
     print '<tr>';
     print '<td>' . $langs->trans('Product') . '</td>';
     $staticprod = new Product($db);
     $staticprod->fetch($prodcustprice->fk_product);
     print "<td>" . $staticprod->getNomUrl(1) . "</td>";
     print '</tr>';
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:price.php

示例9: llxHeader

    }
}
/*
 * View
 */
llxHeader('', $langs->trans("Donations"), 'EN:Module_Donations|FR:Module_Dons|ES:M&oacute;dulo_Donaciones');
$form = new Form($db);
$formfile = new FormFile($db);
$formcompany = new FormCompany($db);
/* ************************************************************************** */
/*                                                                            */
/* Creation                                                                   */
/*                                                                            */
/* ************************************************************************** */
if ($action == 'create') {
    print_fiche_titre($langs->trans("AddDonation"));
    dol_htmloutput_errors($mesg, $mesgs);
    print '<form name="add" action="fiche.php" method="post">';
    print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
    print '<table class="border" width="100%">';
    print '<input type="hidden" name="action" value="add">';
    $nbrows = 11;
    if (!empty($conf->projet->enabled)) {
        $nbrows++;
    }
    // Date
    print '<tr><td class="fieldrequired">' . $langs->trans("Date") . '</td><td>';
    $form->select_date($donation_date ? $donation_date : -1, '', '', '', '', "add", 1, 1);
    print '</td>';
    print '<td rowspan="' . $nbrows . '" valign="top">' . $langs->trans("Comments") . ' :<br>';
    print "<textarea name=\"note_private\" wrap=\"soft\" cols=\"40\" rows=\"15\">" . GETPOST("note_private") . "</textarea></td>";
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:fiche.php

示例10: restrictedArea

require "./pre.inc.php";
require_once DOL_DOCUMENT_ROOT . '/compta/paiement/cheque/class/remisecheque.class.php';
require_once DOL_DOCUMENT_ROOT . '/compta/bank/class/account.class.php';
$langs->load("banks");
// Security check
if ($user->societe_id) {
    $socid = $user->societe_id;
}
$result = restrictedArea($user, 'banque', '', '');
$checkdepositstatic = new RemiseCheque($db);
$accountstatic = new Account($db);
/*
 * View
 */
llxHeader('', $langs->trans("ChequesArea"));
print_fiche_titre($langs->trans("ChequesArea"));
print '<table border="0" width="100%" class="notopnoleftnoright">';
print '<tr><td valign="top" width="30%" class="notopnoleft">';
$sql = "SELECT count(b.rowid)";
$sql .= " FROM " . MAIN_DB_PREFIX . "bank as b";
$sql .= ", " . MAIN_DB_PREFIX . "bank_account as ba";
$sql .= " WHERE ba.rowid = b.fk_account";
$sql .= " AND ba.entity = " . $conf->entity;
//feito para o kurt, um sql diferente se o usuário for o CBA (id 7), ele só pode ver a conta mineirao (id 3)
if ($user->id == 7) {
    $sql .= " AND ba.rowid = 3";
}
$sql .= " AND b.fk_type = 'CHQ'";
$sql .= " AND b.fk_bordereau = 0";
$sql .= " AND b.amount > 0";
$resql = $db->query($sql);
开发者ID:rafso,项目名称:cliente,代码行数:31,代码来源:index.php

示例11: strftime

 $pastmonth = strftime("%m", dol_now()) - 1;
 $pastmonthyear = $year_current;
 if ($pastmonth == 0) {
     $pastmonth = 12;
     $pastmonthyear--;
 }
 $datesp = dol_mktime(0, 0, 0, $datespmonth, $datespday, $datespyear);
 $dateep = dol_mktime(23, 59, 59, $dateepmonth, $dateepday, $dateepyear);
 if (empty($datesp) || empty($dateep)) {
     $datesp = dol_get_first_day($pastmonthyear, $pastmonth, false);
     $dateep = dol_get_last_day($pastmonthyear, $pastmonth, false);
 }
 print '<form name="salary" action="' . $_SERVER["PHP_SELF"] . '" method="post">';
 print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
 print '<input type="hidden" name="action" value="add">';
 print_fiche_titre($langs->trans("NewSalaryPayment"), '', 'title_accountancy.png');
 dol_fiche_head('', '');
 print '<table class="border" width="100%">';
 print "<tr>";
 print '<td class="fieldrequired">' . $langs->trans("DatePayment") . '</td><td>';
 print $form->select_date(empty($datep) ? -1 : $datep, "datep", '', '', '', 'add', 1, 1);
 print '</td></tr>';
 print '<tr><td>' . $langs->trans("DateValue") . '</td><td>';
 print $form->select_date(empty($datev) ? -1 : $datev, "datev", '', '', '', 'add', 1, 1);
 print '</td></tr>';
 // Employee
 print "<tr>";
 print '<td class="fieldrequired">' . $langs->trans("Employee") . '</td><td>';
 print $form->select_dolusers(GETPOST('fk_user', 'int'), 'fk_user', 1);
 print '</td></tr>';
 // Label
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:card.php

示例12: restrictedArea

require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT . '/compta/bank/class/account.class.php';
$langs->load("banks");
$langs->load("categories");
// Security check
if ($user->societe_id) {
    $socid = $user->societe_id;
}
$result = restrictedArea($user, 'banque');
/*
 * View
 */
$companystatic = new Societe($db);
llxHeader();
// List movements bu category for bank transactions
print_fiche_titre($langs->trans("BankTransactionByCategories"));
print '<table class="noborder" width="100%">';
print "<tr class=\"liste_titre\">";
print '<td>' . $langs->trans("Rubrique") . '</td>';
print '<td align="right">' . $langs->trans("Nb") . '</td>';
print '<td align="right">' . $langs->trans("Total") . '</td>';
print '<td align="right">' . $langs->trans("Average") . '</td>';
print "</tr>\n";
$sql = "SELECT sum(d.amount) as somme, count(*) as nombre, c.label, c.rowid ";
$sql .= " FROM " . MAIN_DB_PREFIX . "bank_categ as c";
$sql .= ", " . MAIN_DB_PREFIX . "bank_class as l";
$sql .= ", " . MAIN_DB_PREFIX . "bank as d";
$sql .= " WHERE c.entity = " . $conf->entity;
$sql .= " AND c.rowid = l.fk_categ";
$sql .= " AND d.rowid = l.lineid";
$sql .= " GROUP BY c.label, c.rowid";
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:budget.php

示例13: elseif

    print '<option value="_blank"' . ($menu->target == "_blank" ? ' selected' : '') . '>' . $langs->trans('_blank') . '</option>';
    print '</select></td></td><td>' . $langs->trans('DetailTarget') . '</td></tr>';
    // Enabled
    print '<tr><td>' . $langs->trans('Enabled') . '</td><td><input type="text" size="60" name="enabled" value="' . $_POST["enabled"] . '"></td><td>' . $langs->trans('DetailEnabled') . '</td></tr>';
    // Perms
    print '<tr><td>' . $langs->trans('Rights') . '</td><td><input type="text" size="60" name="perms" value="' . $_POST["perms"] . '"></td><td>' . $langs->trans('DetailRight') . '</td></tr>';
    print '</table>';
    // Boutons
    print '<br><div class="center">';
    print '<input type="submit" class="button" name="save" value="' . $langs->trans("Save") . '">';
    print '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
    print '<input type="submit" class="button" name="cancel" value="' . $langs->trans("Cancel") . '">';
    print '</div>';
    print '</form>';
} elseif ($action == 'edit') {
    print_fiche_titre($langs->trans("ModifMenu"), '', 'title_setup');
    print '<br>';
    print '<form action="./edit.php?action=update" method="POST" name="formmenuedit">';
    print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
    print '<input type="hidden" name="handler_origine" value="' . $menu_handler . '">';
    print '<input type="hidden" name="menuId" value="' . $_GET['menuId'] . '">';
    print '<table class="border" width="100%">';
    $menu = new Menubase($db);
    $result = $menu->fetch($_GET['menuId']);
    //var_dump($menu);
    // Id
    print '<tr><td>' . $langs->trans('Id') . '</td><td>' . $menu->id . '</td><td>' . $langs->trans('DetailId') . '</td></tr>';
    // Module
    print '<tr><td>' . $langs->trans('MenuModule') . '</td><td>' . $menu->module . '</td><td>' . $langs->trans('DetailMenuModule') . '</td></tr>';
    // Handler
    if ($menu->menu_handler == 'all') {
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:edit.php

示例14: print_fiche_titre

	print '</table>';


    print '<br><center>';
    print '<input class="button" type="submit" value="'.$langs->trans("Save").'">';
    print '</center>';

    print '</form>';
    print '<br>';
}
else	// Show
{
    $var=true;

    // Language
    print_fiche_titre($langs->trans("Language"),'','').'<br>';
    print '<table class="noborder" width="100%">';
    print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td><td>&nbsp;</td></tr>';

    $var=!$var;
    print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("DefaultLanguage").'</td><td>';
    $s=picto_from_langcode($conf->global->MAIN_LANG_DEFAULT);
    print ($s?$s.' ':'');
    print ($conf->global->MAIN_LANG_DEFAULT=='auto'?$langs->trans("AutoDetectLang"):$langs->trans("Language_".$conf->global->MAIN_LANG_DEFAULT));
    print '</td>';
	print '<td width="20">';
    if ($user->admin && $conf->global->MAIN_LANG_DEFAULT!='auto') print info_admin($langs->trans("SubmitTranslation",$conf->global->MAIN_LANG_DEFAULT),1);
	print '</td>';
	print "</tr>";

    $var=!$var;
开发者ID:remyyounes,项目名称:dolibarr,代码行数:31,代码来源:ihm.php

示例15: User

$userstatic = new User($db);
$title = $langs->trans("Project") . ' - ' . $object->ref . ' ' . $object->name;
if (!empty($conf->global->MAIN_HTML_TITLE) && preg_match('/projectnameonly/', $conf->global->MAIN_HTML_TITLE) && $object->name) {
    $title = $object->ref . ' ' . $object->name;
}
$help_url = "EN:Module_Projects|FR:Module_Projets|ES:M&oacute;dulo_Proyectos";
llxHeader("", $title, $help_url);
if ($action == 'create' && $user->rights->projet->creer) {
    /*
     * Create
     */
    $thirdparty = new Societe($db);
    if ($socid > 0) {
        $thirdparty->fetch($socid);
    }
    print_fiche_titre($langs->trans("NewProject"), '', 'title_project');
    print '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
    print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
    print '<input type="hidden" name="action" value="add">';
    print '<input type="hidden" name="backtopage" value="' . $backtopage . '">';
    dol_fiche_head();
    print '<table class="border" width="100%">';
    $defaultref = '';
    $modele = empty($conf->global->PROJECT_ADDON) ? 'mod_project_simple' : $conf->global->PROJECT_ADDON;
    // Search template files
    $file = '';
    $classname = '';
    $filefound = 0;
    $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
    foreach ($dirmodels as $reldir) {
        $file = dol_buildpath($reldir . "core/modules/project/" . $modele . '.php', 0);
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:card.php


注:本文中的print_fiche_titre函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。