print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1); } print '</td></tr>'; print '<tr><td>' . $langs->trans("Status") . '</td><td colspan="3">'; print '<select name="statut" class="flat">'; print '<option value="0">' . $langs->trans("WarehouseClosed") . '</option>'; print '<option value="1" selected="selected">' . $langs->trans("WarehouseOpened") . '</option>'; print '</select>'; print '</td></tr>'; print '</table>'; print '<center><br><input type="submit" class="button" value="' . $langs->trans("Create") . '"></center>'; print '</form>'; } else { $id = GETPOST("id", 'int'); if ($id) { dol_htmloutput_mesg($mesg); $object = new Entrepot($db); $result = $object->fetch($id); if ($result < 0) { dol_print_error($db); } /* * Affichage fiche */ if ($action != 'edit' && $action != 're-edit') { $head = stock_prepare_head($object); dol_fiche_head($head, 'card', $langs->trans("Warehouse"), 0, 'stock'); // Confirm delete third party if ($action == 'delete') { print $form->formconfirm($_SERVER["PHP_SELF"] . "?id=" . $object->id, $langs->trans("DeleteAWarehouse"), $langs->trans("ConfirmDeleteWarehouse", $object->libelle), "confirm_delete", '', 0, 2); }
// Ref print '<tr><td valign="top" width="25%">' . $langs->trans("Ref") . '</td>'; print '<td colspan="3">'; print $form->showrefnav($object, 'ref', '', 1, 'ref'); print '</td></tr>'; // Label print '<tr><td valign="top">' . $langs->trans("Label") . '</td>'; print '<td colspan="3">' . $object->label . '</td></tr>'; // Status print '<tr><td valign="top">' . $langs->trans("Status") . '</td>'; print '<td colspan="3">' . $object->getLibStatut(4) . '</td></tr>'; print '<tr><td>' . $langs->trans("NbOfAttachedFiles") . '</td><td colspan="3">' . count($filearray) . '</td></tr>'; print '<tr><td>' . $langs->trans("TotalSizeOfAttachedFiles") . '</td><td colspan="3">' . $totalsize . ' ' . $langs->trans("bytes") . '</td></tr>'; print "</table>\n"; print "</div>\n"; dol_htmloutput_mesg($mesg, $mesgs); /* * Confirmation suppression fichier */ if ($action == 'delete') { $ret = $form->form_confirm($_SERVER["PHP_SELF"] . '?id=' . $object->id . '&urlfile=' . urlencode($_GET["urlfile"]), $langs->trans('DeleteFile'), $langs->trans('ConfirmDeleteFile'), 'confirm_deletefile', '', 0, 1); if ($ret == 'html') { print '<br>'; } } // Affiche formulaire upload $formfile = new FormFile($db); $formfile->form_attach_new_file(DOL_URL_ROOT . '/compta/bank/document.php?id=' . $object->id, '', 0, 0, $user->rights->banque, 50, $object); // List of document $param = '&id=' . $object->id; $formfile->list_of_documents($filearray, $object, 'bank', $param);
exit; } $helpurl = ''; if (isset($type)) { if ($type == 0) { $helpurl = 'EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos'; } else { if ($type == 1) { $helpurl = 'EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios'; } } } llxHeader('', $title, $helpurl, ''); // Displays product removal confirmation if (GETPOST('delprod')) { dol_htmloutput_mesg($langs->trans("ProductDeleted", GETPOST('delprod'))); } $param = "&sref=" . $sref . ($sbarcode ? "&sbarcode=" . $sbarcode : "") . "&snom=" . $snom . "&sall=" . $sall . "&tosell=" . $tosell . "&tobuy=" . $tobuy; $param .= $fourn_id ? "&fourn_id=" . $fourn_id : ""; $param .= $search_categ ? "&search_categ=" . $search_categ : ""; $param .= isset($type) ? "&type=" . $type : ""; print_barre_liste($texte, $page, "liste.php", $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords); if (!empty($catid)) { print "<div id='ways'>"; $c = new Categorie($db); $ways = $c->print_all_ways(' > ', 'product/liste.php'); print " > " . $ways[0] . "<br>\n"; print "</div><br>"; } if (!empty($canvas) && file_exists(DOL_DOCUMENT_ROOT . '/product/canvas/' . $canvas . '/actions_card_' . $canvas . '.class.php')) { $fieldlist = $object->field_list;
dol_syslog("SCRIPT_URI: " . (empty($_SERVER["SCRIPT_URI"]) ? '' : $_SERVER["SCRIPT_URI"]), LOG_DEBUG); // If defined script uri must match domain of PAYPAL_API_OK and PAYPAL_API_KO //$_SESSION["PaymentType"]=$PAYPAL_PAYMENT_TYPE; //$_SESSION["currencyCodeType"]=$PAYPAL_API_DEVISE; //$_SESSION["Payment_Amount"]=$PAYPAL_API_PRICE; // A redirect is added if API call successfull print_paypal_redirect($PAYPAL_API_PRICE, $PAYPAL_API_DEVISE, $PAYPAL_PAYMENT_TYPE, $PAYPAL_API_OK, $PAYPAL_API_KO, $FULLTAG); exit; } } /* * View */ llxHeaderPaypal($langs->trans("PaymentForm")); if (!empty($PAYPAL_API_SANDBOX)) { dol_htmloutput_mesg($langs->trans('YouAreCurrentlyInSandboxMode'), '', 'warning'); } // Common variables $creditor = $mysoc->name; $paramcreditor = 'PAYPAL_CREDITOR_' . $suffix; if (!empty($conf->global->{$paramcreditor})) { $creditor = $conf->global->{$paramcreditor}; } else { if (!empty($conf->global->PAYPAL_CREDITOR)) { $creditor = $conf->global->PAYPAL_CREDITOR; } } print '<span id="dolpaymentspan"></span>' . "\n"; print '<center>' . "\n"; print '<form id="dolpaymentform" name="paymentform" action="' . $_SERVER["PHP_SELF"] . '" method="POST">' . "\n"; print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">' . "\n";
$errors[] = $langs->transnoentitiesnoconv('NoDateDebut'); break; case 'nodatefin': $errors[] = $langs->transnoentitiesnoconv('NoDateFin'); break; case 'DureeHoliday': $errors[] = $langs->transnoentitiesnoconv('ErrorDureeCP'); break; case 'NoMotifRefuse': $errors[] = $langs->transnoentitiesnoconv('NoMotifRefuseCP'); break; case 'mail': $errors[] = $langs->transnoentitiesnoconv('ErrorMailNotSend') . "\n" . $_GET['error_content']; break; } dol_htmloutput_mesg('', $errors, 'error'); } // On vérifie si l'utilisateur à le droit de lire cette demande if ($canedit) { if ($action == 'delete') { if ($user->rights->holiday->delete) { print $form->formconfirm("fiche.php?id=" . $id, $langs->trans("TitleDeleteCP"), $langs->trans("ConfirmDeleteCP"), "confirm_delete", '', 0, 1); } } // Si envoi en validation if ($action == 'sendToValidate' && $cp->statut == 1 && $user->id == $cp->fk_user) { print $form->formconfirm("fiche.php?id=" . $id, $langs->trans("TitleToValidCP"), $langs->trans("ConfirmToValidCP"), "confirm_send", '', 1, 1); } // Si validation de la demande if ($action == 'valid') { print $form->formconfirm("fiche.php?id=" . $id, $langs->trans("TitleValidCP"), $langs->trans("ConfirmValidCP"), "confirm_valid", '', 1, 1);
/* * View */ $linuxlike = 1; if (preg_match('/^win/i', PHP_OS)) { $linuxlike = 0; } if (preg_match('/^mac/i', PHP_OS)) { $linuxlike = 0; } $wikihelp = 'EN:Setup Sms|FR:Paramétrage Sms|ES:Configuración Sms'; llxHeader('', $langs->trans("Setup"), $wikihelp); print_fiche_titre($langs->trans("SmsSetup"), '', 'setup'); print $langs->trans("SmsDesc") . "<br>\n"; print "<br>\n"; dol_htmloutput_mesg($message); // List of sending methods $listofmethods = is_array($conf->sms_engine_modules) ? $conf->sms_engine_modules : array(); asort($listofmethods); if ($action == 'edit') { $form = new Form($db); if (!count($listofmethods)) { print '<div class="warning">' . $langs->trans("NoSmsEngine", '<a href="http://www.dolistore.com/search.php?orderby=position&orderway=desc&search_query=sms_manager">DoliStore</a>') . '</div>'; } print '<form method="post" action="' . $_SERVER["PHP_SELF"] . '">'; print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">'; print '<input type="hidden" name="action" value="update">'; clearstatcache(); $var = true; print '<table class="noborder" width="100%">'; print '<tr class="liste_titre"><td>' . $langs->trans("Parameter") . '</td><td>' . $langs->trans("Value") . '</td></tr>';
?> </div> <?php } ?> </div> <br> <?php if ($message) { ?> <div class="center login_main_message"> <?php echo dol_htmloutput_mesg($message, '', '', 1); ?> </div> <?php } ?> </div> </div> <!-- end of center --> </body> </html> <!-- END PHP TEMPLATE -->
// Keep " on nextval $htmltooltip .= $langs->trans("NextValue") . ': '; if ($nextval) { if (preg_match('/^Error/', $nextval) || $nextval == 'NotConfigured') { $nextval = $langs->trans($nextval); } $htmltooltip .= $nextval . '<br>'; } else { $htmltooltip .= $langs->trans($module->error) . '<br>'; } } print '<td align="center">'; print $form->textwithpicto('', $htmltooltip, 1, 0); if ($conf->global->PAYMENT_ADDON . '.php' == $file) { if (!empty($module->error)) { dol_htmloutput_mesg($module->error, '', 'error', 1); } } print '</td>'; print "</tr>\n"; } } } } closedir($handle); } } } print '</table>'; dol_fiche_end(); llxFooter();
if (is_array($contactarr) && count($contactarr) > 0) { foreach ($contactarr as $contact) { if ($contact['libelle'] == $langs->trans('TypeContact_facture_external_BILLING')) { require_once DOL_DOCUMENT_ROOT . '/contact/class/contact.class.php'; $contactstatic = new Contact($db); $contactstatic->fetch($contact['id']); $custcontact = $contactstatic->getFullName($langs, 1); } } if (!empty($custcontact)) { $formmail->substit['__CONTACTCIVNAME__'] = $custcontact; } } // Tableau des parametres complementaires du post $formmail->param['action'] = $action; $formmail->param['models'] = $modelmail; $formmail->param['facid'] = $object->id; $formmail->param['returnurl'] = $_SERVER["PHP_SELF"] . '?id=' . $object->id; // Init list of files if (GETPOST("mode") == 'init') { $formmail->clear_attached_files(); $formmail->add_attached_files($file, basename($file), dol_mimetype($file)); } print $formmail->get_form(); print '<br>'; } } } dol_htmloutput_mesg('', $mesgs); llxFooter(); $db->close();
/** * Print formated error messages to output (Used to show messages on html output) * @param mesgstring Error message * @param mesgarray Error messages array * @param keepembedded Set to 1 in error message must be kept embedded into its html place (this disable jnotify) * @see dol_print_error * @see dol_htmloutput_mesg */ function dol_htmloutput_errors($mesgstring = '', $mesgarray = '', $keepembedded = 0) { dol_htmloutput_mesg($mesgstring, $mesgarray, 'error', $keepembedded); }
$sql .= $db->order($sortfield, $sortorder); $sql .= $db->plimit($conf->liste_limit + 1, $offset); $resql = $db->query($sql); if ($resql) { $num = $db->num_rows($resql); $i = 0; $params = "&socname=" . $socname . "&search_nom=" . $search_nom . "&search_town=" . $search_town; $params .= $sbarcode ? "&sbarcode=" . $sbarcode : ""; $params .= '&search_idprof1=' . $search_idprof1; $params .= '&search_idprof2=' . $search_idprof2; $params .= '&search_idprof3=' . $search_idprof3; $params .= '&search_idprof4=' . $search_idprof4; print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $params, $sortfield, $sortorder, '', $num, $nbtotalofrecords); // Show delete result message if (GETPOST('delsoc')) { dol_htmloutput_mesg($langs->trans("CompanyDeleted", GETPOST('delsoc')), '', 'ok'); } $langs->load("other"); $textprofid = array(); foreach (array(1, 2, 3, 4) as $key) { $label = $langs->transnoentities("ProfId" . $key . $mysoc->country_code); $textprofid[$key] = ''; if ($label != "ProfId" . $key . $mysoc->country_code) { // Get only text between () if (preg_match('/\\((.*)\\)/i', $label, $reg)) { $label = $reg[1]; } $textprofid[$key] = $langs->trans("ProfIdShortDesc", $key, $mysoc->country_code, $label); } } print '<form method="post" action="' . $_SERVER["PHP_SELF"] . '" name="formfilter">';
print '<input type="radio" id="radiocompany" class="flat" name="private" value="0"' . ($private ? '' : ' checked="checked"') . '>'; print ' '; print $langs->trans("Company/Fundation"); print '</label>'; print ' '; print '<label for="radioprivate">'; $text = '<input type="radio" id="radioprivate" class="flat" name="private" value="1"' . ($private ? ' checked="checked"' : '') . '>'; $text .= ' '; $text .= $langs->trans("Individual"); $htmltext = $langs->trans("ToCreateContactWithSameName"); print $form->textwithpicto($text, $htmltext, 1, 'help', '', 0, 3); print '</label>'; print '</div>'; print "<br>\n"; } dol_htmloutput_mesg(is_numeric($error) ? '' : $error, $errors, 'error'); print '<form enctype="multipart/form-data" action="' . $_SERVER["PHP_SELF"] . '" method="post" name="formsoc">'; print '<input type="hidden" name="action" value="add">'; print '<input type="hidden" name="backtopage" value="' . $backtopage . '">'; print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">'; print '<input type="hidden" name="private" value=' . $object->particulier . '>'; print '<input type="hidden" name="type" value=' . GETPOST("type") . '>'; print '<input type="hidden" name="LastName" value="' . $langs->trans('LastName') . '">'; print '<input type="hidden" name="ThirdPartyName" value="' . $langs->trans('ThirdPartyName') . '">'; if ($modCodeClient->code_auto || $modCodeFournisseur->code_auto) { print '<input type="hidden" name="code_auto" value="1">'; } print '<table class="border" width="100%">'; // Name, firstname print '<tr><td>'; if ($object->particulier || $private) {
})'; print '</script>' . "\n"; } if ($action == 'delete') { print $form->formconfirm($_SERVER['PHP_SELF'] . "?id=" . $object->id, $langs->trans("CronDelete"), $langs->trans("CronConfirmDelete"), "confirm_delete", '', '', 1); $action = ''; } if ($action == 'execute') { print $form->formconfirm($_SERVER['PHP_SELF'] . "?id=" . $object->id, $langs->trans("CronExecute"), $langs->trans("CronConfirmExecute"), "confirm_execute", '', '', 1); $action = ''; } /* * Create Template */ if (empty($object->status) && $action != 'create') { dol_htmloutput_mesg($langs->trans("CronTaskInactive"), '', 'warning', 1); } if ($action == "create" || $action == "edit") { print '<form name="cronform" action="' . $_SERVER["PHP_SELF"] . '" method="post">'; print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">' . "\n"; if (!empty($object->id)) { print '<input type="hidden" name="action" value="update">' . "\n"; print '<input type="hidden" name="id" value="' . $object->id . '">' . "\n"; } else { print '<input type="hidden" name="action" value="add">' . "\n"; } print '<table class="border" width="100%">'; print '<tr><td width="30%">'; print $langs->trans('CronLabel') . "</td>"; print "<td><input type=\"text\" size=\"20\" name=\"label\" value=\"" . $object->label . "\" /> "; print "</td>";
//print img_object($objexport->array_export_module[0]->getName(),$objexport->array_export_module[0]->picto).' '; print $objexport->array_export_module[0]->getName(); print '</td></tr>'; // Lot de donnees a exporter print '<tr><td width="25%">' . $langs->trans("DatasetToExport") . '</td>'; print '<td>'; $icon = $objexport->array_export_icon[0]; $label = $objexport->array_export_label[0]; //print $value.'-'.$icon.'-'.$label."<br>"; print img_object($objexport->array_export_module[0]->getName(), $icon) . ' '; print $label; print '</td></tr>'; print '</table>'; print '<br>'; if ($warnings) { dol_htmloutput_mesg('', $warnings, 'warning'); } // Combo list of export models print '<form action="' . $_SERVER["PHP_SELF"] . '" method="post">'; print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">'; print '<input type="hidden" name="action" value="select_model">'; print '<input type="hidden" name="step" value="2">'; print '<input type="hidden" name="datatoexport" value="' . $datatoexport . '">'; print '<table><tr><td colspan="2">'; print $langs->trans("SelectExportFields") . ' '; $htmlother->select_export_model($exportmodelid, 'exportmodelid', $datatoexport, 1); print '<input type="submit" class="button" value="' . $langs->trans("Select") . '">'; print '</td></tr></table>'; print '</form>'; print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">';
if ($nextval) { $htmltooltip.=$nextval; } else { $htmltooltip.=$langs->trans($module->error); } } print '<td align="center">'; print $html->textwithpicto('',$htmltooltip,1,0); if ($conf->global->FACTURE_ADDON.'.php' == $file) // If module is the one used, we show existing errors { if (! empty($module->error)) dol_htmloutput_mesg($module->error,'','error',1); } print '</td>'; print "</tr>\n"; } } } } closedir($handle); } } }