本文整理汇总了PHP中setEventMessage函数的典型用法代码示例。如果您正苦于以下问题:PHP setEventMessage函数的具体用法?PHP setEventMessage怎么用?PHP setEventMessage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setEventMessage函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: doActions
/**
* Overloading the doActions function : replacing the parent's function with the one below
*
* @param array() $parameters Hook metadatas (context, etc...)
* @param CommonObject &$object The object to process (an invoice if you are in invoice module, a propale in propale's module, etc...)
* @param string &$action Current action (if set). Generally create or edit or null
* @param HookManager $hookmanager Hook manager propagated to allow calling another hook
* @return int < 0 on error, 0 on success, 1 to replace standard code
*/
function doActions($parameters, &$object, &$action, $hookmanager)
{
if (in_array('invoicecard', explode(':', $parameters['context']))) {
if ($action == 'update_courrier') {
global $user, $db, $langs;
$object->array_options['options_courrier_envoi'] = time();
$object->insertExtraFields();
dol_include_once('/comm/action/class/actioncomm.class.php');
$a = new ActionComm($db);
$a->type_code = 'AC_OTH_AUTO';
$a->label = $langs->trans('ClassifyCourrierEvent', $object->ref);
$a->fk_element = $object->id;
$a->elementtype = 'facture';
$a->usertodo = $user;
$a->userdone = $user;
$a->percentage = 100;
$a->datep = date('Y-m-d H:i:s');
$a->add($user);
setEventMessage('ClassifyCourrierMsg');
} else {
if ($action == 'no_courrier') {
global $user;
$object->array_options['options_courrier_envoi'] = '';
$object->insertExtraFields();
setEventMessage('UnClassifyCourrierMsg');
}
}
}
return 0;
}
开发者ID:ATM-Consulting,项目名称:dolibarr_module_facturecourrier,代码行数:39,代码来源:actions_facturecourrier.class.php
示例2: _createOFCommande
function _createOFCommande(&$PDOdb, $TProduct, $TQuantites, $fk_commande, $fk_soc, $oneOF = false)
{
global $db, $langs;
if (!empty($TProduct)) {
if ($oneOF) {
$assetOf = new TAssetOF();
$assetOf->fk_commande = $fk_commande;
}
foreach ($TProduct as $fk_commandedet => $v) {
foreach ($v as $fk_product => $dummy) {
if (!$oneOF) {
$assetOf = new TAssetOF();
$assetOf->fk_commande = $fk_commande;
}
if ($assetOf->fk_commande > 0) {
$com = new Commande($db);
//TODO on est pas censé toujours être sur la même commande ? AA
$com->fetch($assetOf->fk_commande);
$assetOf->fk_project = $com->fk_project;
if (!empty($com->date_livraison)) {
$assetOf->date_besoin = $com->date_livraison;
}
}
/* pre($TQuantites,true);
pre($TProduct,true);exit;*/
$qty = $TQuantites[$fk_commandedet];
//print "$fk_product x $qty<br />";
$assetOf->fk_soc = $fk_soc;
$assetOf->addLine($PDOdb, $fk_product, 'TO_MAKE', $qty, 0, '', 0, $fk_commandedet);
$assetOf->save($PDOdb);
}
}
setEventMessage($langs->trans('OFAsset') . " créé(s) avec succès", 'mesgs');
}
}
开发者ID:ATM-Consulting,项目名称:dolibarr_module_of,代码行数:35,代码来源:liste_of.php
示例3: updateAllSoc
function updateAllSoc(&$PDOdb)
{
global $langs, $conf, $user, $db;
$TUser = TCommercialCategory::getUser($PDOdb, $this->fk_category);
// useless, just for popup
$nb_user = count($TUser);
$TSociete = TCommercialCategory::getSociete($PDOdb, $this->fk_category);
$nb_soc = count($TSociete);
foreach ($TSociete as &$soc) {
self::updateSociete($PDOdb, $soc);
}
setEventMessage($langs->trans('CategUserAffectation', $nb_user, $nb_soc));
}
开发者ID:ATM-Consulting,项目名称:dolibarr_module_commercialbycategory,代码行数:13,代码来源:commercialcategory.class.php
示例4: del
static function del(&$PDOdb, $id_charge)
{
$recurrence = self::get_recurrence($PDOdb, $id_charge);
if (isset($recurrence)) {
$message = 'Récurrence de la charge sociale ' . $id_charge . ' supprimée.';
setEventMessage($message);
return $recurrence->delete($PDOdb);
} else {
$message = 'Suppression impossible : Récurrence de la charge sociale ' . $id_charge . ' introuvable.';
setEventMessage($message, 'errors');
return false;
}
}
开发者ID:vinclar,项目名称:dolibarr_module_recurence,代码行数:13,代码来源:recurrence.class.php
示例5: formObjectOptions
public function formObjectOptions($parameters, &$object, &$action, HookManager $hookManager)
{
global $db, $user, $langs, $mysoc, $dolibarr_main_cookie_cryptkey;
$langs->load('otp@otp');
$regenerate_button = '<form method="post">
<input type="submit" value="' . $langs->trans('OTPRegenerate') . '" class="button" name="regenerate_otp">
</form>';
if ($action == '') {
print '<tr><td>' . $langs->trans('OTPLogin') . '</td><td colspan="2">';
if (GETPOST('regenerate_otp')) {
if ($user->admin || $user->id == GETPOST('id', 'int')) {
/**
* Examples from http://es.php.net/mcrypt_encrypt
*/
// Generates a 20-byte (160-bit) secret key
$otpSeed = Seed::generate();
$base32Seed = $otpSeed->getValue(Seed::FORMAT_BASE32);
$key = pack('H*', $dolibarr_main_cookie_cryptkey);
# crear una aleatoria IV para utilizarla co condificación CBC
$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC);
$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
$ciphertext = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $base32Seed, MCRYPT_MODE_CBC, $iv);
# anteponer la IV para que esté disponible para el descifrado
$ciphertext = $iv . $ciphertext;
# codificar el texto cifrado resultante para que pueda ser representado por un string
$ciphertext_base64 = base64_encode($ciphertext);
$sql = "UPDATE " . MAIN_DB_PREFIX . "user SET otp_seed = '" . $db->escape($ciphertext_base64) . "', otp_counter = 0 WHERE rowid = " . $user->id;
$db->query($sql);
$qrCode = new QrCode();
$qrCode->setText("otpauth://hotp/" . $mysoc->name . ":" . $user->login . "?secret=" . $base32Seed . "&issuer=" . $mysoc->name);
$qrCode->setSize(96);
$qrCode->setPadding(5);
$img_path = __DIR__ . '/../tmp/' . $user->id . '.png';
$qrCode->save($img_path);
//Qrcode library doesn't warn on image creation error
if (file_exists($img_path)) {
print '<img src="' . dol_buildpath('/otp/showdoc.php', 1) . '?img=' . $user->id . '"><br>' . $langs->trans('OTPTroubleHash') . '<br />
<span style="font-family:monospace;font-size:20px">' . $base32Seed . '</span><br>' . $langs->trans('OTPKeyType');
} else {
print $regenerate_button;
setEventMessage('ErrorCreatingImage', 'errors');
}
}
} else {
if ($user->admin || $user->id == GETPOST('id', 'int')) {
print $regenerate_button;
}
}
print '</td></tr>';
}
}
开发者ID:Getron,项目名称:dolibarr-otp,代码行数:51,代码来源:actions_otp.class.php
示例6: doActions
function doActions($parameters, &$object, &$action)
{
global $langs, $user;
$langs->load('resource@resource');
if (in_array('element_resource', explode(':', $parameters['context']))) {
// Efface une ressource
if ($action == 'confirm_delete_resource' && $user->rights->resource->delete && GETPOST('confirm') == 'yes') {
$res = $object->fetch(GETPOST('lineid'));
if ($res) {
$result = $object->delete_resource(GETPOST('lineid'), GETPOST('element'));
if ($result >= 0) {
setEventMessage($langs->trans('RessourceLineSuccessfullyDeleted'));
Header("Location: " . $_SERVER['PHP_SELF'] . "?element=" . GETPOST('element') . "&element_id=" . GETPOST('element_id'));
exit;
} else {
setEventMessage($object->error, 'errors');
}
}
}
// Update ressource
if ($action == 'update_resource' && $user->rights->resource->write && !GETPOST('cancel')) {
$res = $object->fetch(GETPOST('lineid'));
if ($res) {
$object->id = GETPOST('lineid');
$object->busy = GETPOST('busy');
$object->mandatory = GETPOST('mandatory');
$result = $object->update();
if ($result >= 0) {
setEventMessage($langs->trans('RessourceLineSuccessfullyUpdated'));
Header("Location: " . $_SERVER['PHP_SELF'] . "?element=" . GETPOST('element') . "&element_id=" . GETPOST('element_id'));
exit;
} else {
setEventMessage($object->error, 'errors');
}
}
}
}
}
开发者ID:jmmu,项目名称:dolibarr-resource,代码行数:38,代码来源:actions_resource.class.php
示例7: del
static function del(&$PDOdb, $id_charge)
{
global $conf, $db, $user;
$recurrence = self::get_recurrence($PDOdb, $id_charge);
if (isset($recurrence)) {
$message = 'Récurrence de la charge sociale ' . $id_charge . ' supprimée.';
setEventMessage($message);
//Suppression de toutes les charges sociales créé dans le futur lié à cette récurrence
if ($conf->global->RECURRENCE_DELETE_FUTUR_SOCIAL_TAXES) {
$TCharges = self::get_prochaines_charges($PDOdb, $id_charge, date('Y-m-d'));
foreach ($TCharges as $charge) {
$chargesocial = new ChargeSociales($db);
$chargesocial->fetch($charge->rowid);
$chargesocial->delete($user);
}
}
return $recurrence->delete($PDOdb);
} else {
$message = 'Suppression impossible : Récurrence de la charge sociale ' . $id_charge . ' introuvable.';
setEventMessage($message, 'errors');
return false;
}
}
开发者ID:ATM-Consulting,项目名称:dolibarr_module_recurence,代码行数:23,代码来源:recurrence.class.php
示例8: mouvement
function mouvement(&$PDOdb, &$object, $fk_product, $qty, $fk_warehouse_from, $fk_warehouse_to)
{
global $db, $user, $langs;
dol_include_once('/product/stock/class/mouvementstock.class.php');
dol_include_once('/product/class/product.class.php');
/*var_dump($fk_product, $qty,$fk_warehouse_from, $fk_warehouse_to);
exit;
*/
$stock = new MouvementStock($db);
$label = '';
if (method_exists($object, 'getNomUrl')) {
$label .= $object->getNomUrl(1);
}
if (!empty($conf->global->ROUTING_INFO_ALERT)) {
$product = new Product($db);
$product->fetch($fk_product);
$msg = $product->getNomUrl(0) . ' ' . $product->label . ' ' . $langs->trans('MoveFrom') . ' ' . $wh_from_label . ' ' . $langs->trans('MoveTo') . ' ' . $wh_to_label;
setEventMessage($msg);
}
$stock->origin = $object;
$stock->reception($user, $fk_product, $fk_warehouse_to, $qty, 0, $label);
$stock->livraison($user, $fk_product, $fk_warehouse_from, $qty, 0, $label);
}
开发者ID:ATM-Consulting,项目名称:dolibarr_module_routing,代码行数:23,代码来源:routing.class.php
示例9: Societe
exit;
}
if (GETPOST("action") == 'setremise') {
$soc = new Societe($db);
$soc->fetch($_GET["id"]);
$result = $soc->set_remise_client($_POST["remise"], $_POST["note"], $user);
if ($result > 0) {
if (!empty($backtopage)) {
header("Location: " . $backtopage);
exit;
} else {
header("Location: remise.php?id=" . $_GET["id"]);
exit;
}
} else {
setEventMessage($soc->error, 'errors');
}
}
/*
* View
*/
$form = new Form($db);
llxHeader();
/*********************************************************************************
*
* Mode fiche
*
*********************************************************************************/
if ($socid > 0) {
// On recupere les donnees societes par l'objet
$objsoc = new Societe($db);
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:remise.php
示例10: setEventMessage
$object->fk_parent = $parent;
}
$ret = $extrafields->setOptionalsFromPost($extralabels, $object);
if (!$object->label) {
$error++;
$errors[] = $langs->trans("ErrorFieldRequired", $langs->transnoentities("Ref"));
$action = 'create';
}
// Create category in database
if (!$error) {
$result = $object->create($user);
if ($result > 0) {
$action = 'confirmed';
$_POST["addcat"] = '';
} else {
setEventMessage($object->error, 'errors');
}
}
}
// Confirm action
if (($action == 'add' || $action == 'confirmed') && $user->rights->categorie->creer) {
// Action confirmation de creation categorie
if ($action == 'confirmed') {
if ($urlfrom) {
header("Location: " . $urlfrom);
exit;
} else {
if ($idProdOrigin) {
header("Location: " . DOL_URL_ROOT . '/categories/categorie.php?id=' . $idProdOrigin . '&mesg=' . urlencode($langs->trans("CatCreated")));
exit;
} else {
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:fiche.php
示例11: accessforbidden
}
$limit = $conf->liste_limit;
$offset = $limit * $page;
if (!$user->admin) {
accessforbidden();
}
/*
* Actions
*/
if ($action == 'delete') {
$file = $conf->admin->dir_output . '/' . GETPOST('urlfile');
$ret = dol_delete_file($file, 1);
if ($ret) {
setEventMessage($langs->trans("FileWasRemoved", GETPOST('urlfile')));
} else {
setEventMessage($langs->trans("ErrorFailToDeleteFile", GETPOST('urlfile')), 'errors');
}
$action = '';
}
/*
* View
*/
$form = new Form($db);
$formfile = new FormFile($db);
$label = getStaticMember($db, 'label');
$help_url = 'EN:Backups|FR:Sauvegardes|ES:Copias_de_seguridad';
llxHeader('', '', $help_url);
?>
<script type="text/javascript">
jQuery(document).ready(function() {
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:30,代码来源:dolibarr_export.php
示例12: header
}
if ($result >= 0) {
$db->commit();
header("Location: " . DOL_URL_ROOT . '/compta/salaries/index.php');
exit;
} else {
$object->error = $accountline->error;
$db->rollback();
setEventMessage($object->error, 'errors');
}
} else {
$db->rollback();
setEventMessage($object->error, 'errors');
}
} else {
setEventMessage('Error try do delete a line linked to a conciliated bank transaction', 'errors');
}
}
/*
* View
*/
llxHeader();
$form = new Form($db);
if ($id) {
$object = new PaymentSalary($db);
$result = $object->fetch($id);
if ($result <= 0) {
dol_print_error($db);
exit;
}
}
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:card.php
示例13: setEventMessage
//Verify if process() works
$res = $price_updaters->process();
if ($res > 0) {
$res = $price_updaters->update($user);
}
if ($res > 0) {
$action = '';
} else {
setEventMessage($price_updaters->error, 'errors');
}
} elseif ($action == 'delete_updater') {
$res = $price_updaters->delete($selection, $user);
if ($res > 0) {
$action = '';
} else {
setEventMessage($price_updaters->error, 'errors');
}
}
} elseif (!empty($cancel)) {
$action = '';
}
/*
* View
*/
//Header
llxHeader("", "", $langs->trans("CardProduct" . $product->type));
print load_fiche_titre($langs->trans("DynamicPriceConfiguration"));
$form = new Form($db);
//Global variables table
if ($action != 'create_updater' && $action != 'edit_updater') {
print $langs->trans("GlobalVariables");
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:dynamic_prices.php
示例14: array
// j is module number. Automatically affected if module number not defined.
$modNameLoaded = array();
foreach ($modulesdir as $dir) {
// Load modules attributes in arrays (name, numero, orders) from dir directory
//print $dir."\n<br>";
dol_syslog("Scan directory " . $dir . " for module descriptor files (modXXX.class.php)");
$handle = @opendir($dir);
if (is_resource($handle)) {
while (($file = readdir($handle)) !== false) {
//print "$i ".$file."\n<br>";
if (is_readable($dir . $file) && substr($file, 0, 3) == 'mod' && substr($file, dol_strlen($file) - 10) == '.class.php') {
$modName = substr($file, 0, dol_strlen($file) - 10);
if ($modName) {
if (!empty($modNameLoaded[$modName])) {
$mesg = "Error: Module " . $modName . " was found twice: Into " . $modNameLoaded[$modName] . " and " . $dir . ". You probably have an old file on your disk.<br>";
setEventMessage($mesg, 'warnings');
dol_syslog($mesg, LOG_ERR);
continue;
}
try {
$res = (include_once $dir . $file);
if (class_exists($modName)) {
try {
$objMod = new $modName($db);
$modNameLoaded[$modName] = $dir;
if ($objMod->numero > 0) {
$j = $objMod->numero;
} else {
$j = 1000 + $i;
}
$modulequalified = 1;
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:modules.php
示例15: setEventMessage
exit;
} else {
$action = 'create';
setEventMessage($menu->error, 'errors');
}
}
}
// delete
if ($action == 'confirm_delete' && $_POST["confirm"] == 'yes') {
$this->db->begin();
$sql = "DELETE FROM " . MAIN_DB_PREFIX . "menu WHERE rowid = " . $_GET['menuId'];
$db->query($sql);
if ($result == 0) {
$this->db->commit();
llxHeader();
setEventMessage($langs->trans("MenuDeleted"));
llxFooter();
exit;
} else {
$this->db->rollback();
$reload = 0;
$_GET["action"] = '';
}
}
/*
* View
*/
$form = new Form($db);
$formadmin = new FormAdmin($db);
llxHeader('', $langs->trans("Menu"));
if ($action == 'create') {
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:edit.php
示例16: setOptionalsFromPost
/**
* Fill array_options property of object by extrafields value (using for data sent by forms)
*
* @param array $extralabels $array of extrafields
* @param object $object Object
* @param string $onlykey Only following key is filled. When we make update of only one extrafield ($action = 'update_extras'), calling page must must set this to avoid to have other extrafields being reset.
* @return int 1 if array_options set, 0 if no value, -1 if error (field required missing for example)
*/
function setOptionalsFromPost($extralabels, &$object, $onlykey = '')
{
global $_POST, $langs;
$nofillrequired = '';
// For error when required field left blank
$error_field_required = array();
if (is_array($extralabels)) {
// Get extra fields
foreach ($extralabels as $key => $value) {
if (!empty($onlykey) && $key != $onlykey) {
continue;
}
$key_type = $this->attribute_type[$key];
if ($this->attribute_required[$key] && !GETPOST("options_{$key}", 2)) {
$nofillrequired++;
$error_field_required[] = $value;
}
if (in_array($key_type, array('date', 'datetime'))) {
// Clean parameters
$value_key = dol_mktime($_POST["options_" . $key . "hour"], $_POST["options_" . $key . "min"], 0, $_POST["options_" . $key . "month"], $_POST["options_" . $key . "day"], $_POST["options_" . $key . "year"]);
} else {
if (in_array($key_type, array('checkbox', 'chkbxlst'))) {
$value_arr = GETPOST("options_" . $key);
if (!empty($value_arr)) {
$value_key = implode($value_arr, ',');
} else {
$value_key = '';
}
} else {
if (in_array($key_type, array('price', 'double'))) {
$value_arr = GETPOST("options_" . $key);
$value_key = price2num($value_arr);
} else {
$value_key = GETPOST("options_" . $key);
}
}
}
$object->array_options["options_" . $key] = $value_key;
}
if ($nofillrequired) {
$langs->load('errors');
setEventMessage($langs->trans('ErrorFieldsRequired') . ' : ' . implode(', ', $error_field_required), 'errors');
return -1;
} else {
return 1;
}
} else {
return 0;
}
}
开发者ID:luismr19,项目名称:Dolibarr-ERP-3.8.1,代码行数:58,代码来源:extrafields.class.php
示例17: setEventMessage
$object->fetch($id);
$res = $object->update_num($_POST['num_paiement']);
if ($res === 0) {
setEventMessage($langs->trans('PaymentNumberUpdateSucceeded'));
} else {
setEventMessage($langs->trans('PaymentNumberUpdateFailed'), 'errors');
}
}
if ($action == 'setdatep' && !empty($_POST['datepday'])) {
$object->fetch($id);
$datepaye = dol_mktime(12, 0, 0, $_POST['datepmonth'], $_POST['datepday'], $_POST['datepyear']);
$res = $object->update_date($datepaye);
if ($res === 0) {
setEventMessage($langs->trans('PaymentDateUpdateSucceeded'));
} else {
setEventMessage($langs->trans('PaymentDateUpdateFailed'), 'errors');
}
}
/*
* View
*/
llxHeader();
$thirdpartystatic = new Societe($db);
$result = $object->fetch($id);
if ($result <= 0) {
dol_print_error($db, 'Payement ' . $id . ' not found in database');
exit;
}
$form = new Form($db);
$head = payment_prepare_head($object);
dol_fiche_head($head, 'payment', $langs->trans("PaymentCustomerInvoice"), 0, 'payment');
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:card.php
示例18: dol_delete_file
// Do not use urldecode here ($_GET and $_POST are already decoded by PHP).
$ret = dol_delete_file($file);
if ($ret) {
setEventMessage($langs->trans("FileWasRemoved", GETPOST('urlfile')));
} else {
setEventMessage($langs->trans("ErrorFailToDeleteFile", GETPOST('urlfile')), 'errors');
}
$result = $ecmdir->changeNbOfFiles('-');
clearstatcache();
}
$action = 'file_manager';
}
// Remove directory
if ($action == 'confirm_deletesection' && GETPOST('confirm') == 'yes') {
$result = $ecmdir->delete($user);
setEventMessage($langs->trans("ECMSectionWasRemoved", $ecmdir->label));
clearstatcache();
}
// Refresh directory view
if ($action == 'refreshmanual') {
$ecmdirtmp = new EcmDirectory($db);
// This part of code is same than into file ecm/ajax/ecmdatabase.php TODO Remove duplicate
clearstatcache();
$diroutputslash = str_replace('\\', '/', $conf->ecm->dir_output);
$diroutputslash .= '/';
// Scan directory tree on disk
$disktree = dol_dir_list($conf->ecm->dir_output, 'directories', 1, '', '^temp$', '', '', 0);
// Scan directory tree in database
$sqltree = $ecmdirstatic->get_full_arbo(0);
$adirwascreated = 0;
// Now we compare both trees to complete missing trees into database
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:index_auto.php
示例19: setEventMessage
setEventMessage($langs->trans("SetupSaved"));
} else {
setEventMessage($langs->trans("Error"), 'errors');
}
} else {
if ($action == 'set_COMMANDE_FREE_TEXT') {
$freetext = GETPOST("COMMANDE_FREE_TEXT");
// No alpha here, we want exact string
$res = dolibarr_set_const($db, "COMMANDE_FREE_TEXT", $freetext, 'chaine', 0, '', $conf->entity);
if (!$res > 0) {
$error++;
}
if (!$error) {
setEventMessage($langs->trans("SetupSaved"));
} else {
setEventMessage($langs->trans("Error"), 'errors');
}
} else {
if ($action == 'setModuleOptions') {
if (dolibarr_set_const($db, "COMMANDE_ADDON_PDF_ODT_PATH", GETPOST('value1'), 'chaine', 0, '', $conf->entity)) {
// La constante qui a ete lue en avant du nouveau set
// on passe donc par une variable pour avoir un affichage coherent
$conf->global->COMMANDE_ADDON_PDF_ODT_PATH = GETPOST('value1');
}
}
}
}
}
}
}
}
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:commande.php
示例20: print_titre
print '</td>';
print '<td>' . $langs->trans("to") . ' ';
print $form->select_date($datee, 'datee', 0, 0, 1);
print '</td>';
print '<td>';
print '<input type="submit" name="refresh" value="' . $langs->trans("Refresh") . '" class="button">';
print '</td>';
print '</tr></table>';
print '</form><br>';
$showdatefilter++;
}
print '<br>';
print_titre($langs->trans($title));
$selectList = $formproject->select_element($tablename, $project->thirdparty->id);
if (!$selectList || $selectList < 0) {
setEventMessage($formproject->error, 'errors');
} else {
print '<form action="' . $_SERVER["PHP_SELF"] . '?id=' . $projectid . '" method="post">';
print '<input type="hidden" name="tablename" value="' . $tablename . '">';
print '<input type="hidden" name="action" value="addelement">';
print '<input type="hidden" name="datesrfc" value="' . dol_print_date($dates, 'dayhourrfc') . '">';
print '<input type="hidden" name="dateerfc" value="' . dol_print_date($datee, 'dayhourrfc') . '">';
print '<table><tr><td>' . $langs->trans("SelectElement") . '</td>';
print '<td>' . $selectList . '</td>';
print '<td><input type="submit" class="button" value="' . dol_escape_htmltag($langs->trans("AddElement")) . '"></td>';
print '</tr></table>';
print '</form>';
}
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td width="100" colspan="2">' . $langs->trans("Ref") . '</td>';
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:element.php
注:本文中的setEventMessage函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论