本文整理汇总了PHP中pFooter函数的典型用法代码示例。如果您正苦于以下问题:PHP pFooter函数的具体用法?PHP pFooter怎么用?PHP pFooter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pFooter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
?>
');
}
// If create user asked
else if (document.forminstall.db_create_user.checked == true && (document.forminstall.db_user_root.value == ''))
{
ok=false;
alert('<?php
echo dol_escape_js($langs->transnoentities("YouAskToCreateDatabaseUserSoRootRequired"));
?>
');
}
else if (document.forminstall.db_create_user.checked == true && (document.forminstall.db_user_root.value == ''))
{
ok=false;
alert('<?php
echo dol_escape_js($langs->transnoentities("YouAskToCreateDatabaseUserSoRootRequired"));
?>
');
}
return ok;
}
</script>
<?php
// $db->close(); Not database connexion yet
dolibarr_install_syslog("--- fileconf: end");
pFooter($err, $setuplang, 'jscheckparam');
示例2: dol_escape_js
//alert('<?php
echo dol_escape_js($langs->transnoentities("NextStepMightLastALongTime"));
?>
');
document.getElementById('nextbutton').style.visibility="hidden";
document.getElementById('pleasewait').style.visibility="visible";
return ok;
}
</script>
<?php
dolibarr_install_syslog("--- step1: end");
pFooter($error, $setuplang, 'jsinfo', 1);
/**
* Create main file. No particular permissions are set by installer.
*
* @param string $mainfile Full path name of main file to generate/update
* @param string $main_dir Full path name to main.inc.php file
* @return void
*/
function write_main_file($mainfile, $main_dir)
{
$fp = @fopen("{$mainfile}", "w");
if ($fp) {
clearstatcache();
fputs($fp, '<?php' . "\n");
fputs($fp, "// Wrapper to include main into htdocs\n");
fputs($fp, "include_once '" . $main_dir . "/main.inc.php';\n");
示例3: confirm
print '</table>';
print '</div>';
}
}
}
print '<script type="text/javascript">
$("div#AShowChoices a").click(function() {
$("div#navail_choices").toggle();
if ($("div#navail_choices").css("display") == "none") {
$(this).text("' . $langs->trans('ShowNotAvailableOptions') . '");
$(this).parent().children("img").attr("src", "../theme/eldy/img/1downarrow.png");
} else {
$(this).text("' . $langs->trans('HideNotAvailableOptions') . '");
$(this).parent().children("img").attr("src", "../theme/eldy/img/1uparrow.png");
}
});
/*
$(".runupgrade").click(function() {
return confirm("' . dol_escape_js($langs->transnoentitiesnoconv("WarningUpgrade"), 0, 1) . '");
});
*/
</script>';
dolibarr_install_syslog("--- check: end");
pFooter(true);
// Never display next button
示例4: foreach
foreach ($modulesfile as $modulefilelong => $modulefileshort) {
print '<tr><td colspan="2"><hr></td></tr>';
print '<tr><td class="nowrap">' . $langs->trans("ChoosedMigrateScript") . ' (external modules)</td><td align="right">' . $modulefileshort . '</td></tr>' . "\n";
// Run sql script
$okmodule = run_sql($modulefilelong, 0, '', 1);
// Note: Result of migration of external module should not decide if we continue migration of Dolibarr or not.
}
}
}
}
print '</table>';
if ($db->connected) {
$db->close();
}
}
if (empty($actiondone)) {
print '<div class="error">' . $langs->trans("ErrorWrongParameters") . '</div>';
}
$ret = 0;
if (!$ok && isset($argv[1])) {
$ret = 1;
}
dol_syslog("Exit " . $ret);
pFooter(!$ok && empty($_GET["ignoreerrors"]) || $versionmodule, $setuplang);
if ($db->connected) {
$db->close();
}
// Return code if ran from command line
if ($ret) {
exit($ret);
}
示例5: FormAdmin
*/
$formadmin=new FormAdmin(''); // Note: $db does not exist yet but we don't need it, so we put ''.
pHeader("", "check"); // Etape suivante = index2
print '<center>';
print '<img src="../theme/dolibarr_logo.png" alt="Dolibarr logo"><br>';
print DOL_VERSION.'<br><br>';
print '</center>';
// Ask installation language
print '<br><br><center>';
print '<table>';
print '<tr>';
print '<td>'.$langs->trans("DefaultLanguage").' : </td><td align="left">';
print $formadmin->select_language('auto','selectlang',1,0,0,1);
print '</td>';
print '</tr>';
print '</table></center>';
print '<br><br>'.$langs->trans("SomeTranslationAreUncomplete");
// Si pas d'erreur, on affiche le bouton pour passer a l'etape suivante
if ($err == 0) pFooter(0);
?>
示例6: confirm
}
print '<script type="text/javascript">
$("div#AShowChoices a").click(function() {
$("div#navail_choices").toggle();
if ($("div#navail_choices").css("display") == "none") {
$(this).text("'.$langs->trans('ShowNotAvailableOptions').'");
$(this).parent().children("img").attr("src", "../theme/eldy/img/1downarrow.png");
} else {
$(this).text("'.$langs->trans('HideNotAvailableOptions').'");
$(this).parent().children("img").attr("src", "../theme/eldy/img/1uparrow.png");
}
});
/*
$(".runupgrade").click(function() {
return confirm("'.dol_escape_js($langs->transnoentitiesnoconv("WarningUpgrade"), 0, 1).'");
});
*/
</script>';
dolibarr_install_syslog("--- check: end");
pFooter(1); // Never display next button
示例7: dolibarr_install_syslog
print '<tr><td>' . $langs->trans("DolibarrAdminLogin") . ' :</td><td>';
print '<input name="login" type="text" value="' . (!empty($_GET["login"]) ? $_GET["login"] : (isset($force_install_dolibarrlogin) ? $force_install_dolibarrlogin : '')) . '"></td></tr>';
print '<tr><td>' . $langs->trans("Password") . ' :</td><td>';
print '<input type="password" name="pass"></td></tr>';
print '<tr><td>' . $langs->trans("PasswordAgain") . ' :</td><td>';
print '<input type="password" name="pass_verif"></td></tr>';
print '</table>';
if (isset($_GET["error"]) && $_GET["error"] == 1) {
print '<br>';
print '<div class="error">' . $langs->trans("PasswordsMismatch") . '</div>';
$err = 0;
// We show button
}
if (isset($_GET["error"]) && $_GET["error"] == 2) {
print '<br>';
print '<div class="error">';
print $langs->trans("PleaseTypePassword");
print '</div>';
$err = 0;
// We show button
}
if (isset($_GET["error"]) && $_GET["error"] == 3) {
print '<br>';
print '<div class="error">' . $langs->trans("PleaseTypeALogin") . '</div>';
$err = 0;
// We show button
}
}
dolibarr_install_syslog("--- install/etape4.php end", LOG_INFO);
pFooter($err, $setuplang);
$db->close();
示例8: substr
}
}
# Boucle sur chaque fichier
foreach($filelist as $file)
{
print '<tr><td nowrap>';
print $langs->trans("ChoosedMigrateScript").'</td><td align="right">'.$file.'</td></tr>'."\n";
$name = substr($file, 0, dol_strlen($file) - 4);
// Run sql script
$ok=run_sql($dir.$file, 0, '', 1);
}
}
print '</table>';
if ($db->connected) $db->close();
}
if (empty($actiondone))
{
print '<div class="error">'.$langs->trans("ErrorWrongParameters").'</div>';
}
pFooter(! $ok && empty($_GET["ignoreerrors"]),$setuplang);
?>
示例9: run_sql
print '<tr><td colspan="2"><hr></td></tr>';
print '<tr><td class="nowrap">' . $langs->trans("ChoosedMigrateScript") . ' (external modules)</td><td align="right">' . $modulefileshort . '</td></tr>' . "\n";
// Run sql script
$okmodule = run_sql($modulefilelong, 0, '', 1);
// Note: Result of migration of external module should not decide if we continue migration of Dolibarr or not.
}
}
}
}
print '</table>';
if ($db->connected) {
$db->close();
}
}
if (empty($actiondone)) {
print '<div class="error">' . $langs->trans("ErrorWrongParameters") . '</div>';
}
$ret = 0;
if (!$ok && isset($argv[1])) {
$ret = 1;
}
dol_syslog("Exit " . $ret);
dolibarr_install_syslog("--- upgrade: end " . (!$ok && empty($_GET["ignoreerrors"]) || $dirmodule));
pFooter(!$ok && empty($_GET["ignoreerrors"]) || $dirmodule ? 2 : 0, $setuplang);
if ($db->connected) {
$db->close();
}
// Return code if ran from command line
if ($ret) {
exit($ret);
}
示例10: catch
print $langs->trans("DatabaseConnection") . " (" . $langs->trans("User") . " " . $_POST['couchdb_user_root'] . ") : ";
print $dolibarr_main_couchdb_name;
print "</td><td>";
print $langs->trans("OK");
print "</td></tr>";
} catch (Exception $e) {
$error_msg = $e->getMessage();
$ok = 0;
}
if (!$ok) {
print "<tr><td>";
print $langs->trans("ServerConnection") . " (" . $langs->trans("User") . " " . $_POST['couchdb_user_root'] . ") : ";
print $dolibarr_main_couchdb_host;
print "</td><td>";
print $error_msg;
print "</td></tr>";
}
}
print '</table>';
} else {
print 'Parameter action=set not defined';
}
dolibarr_install_syslog("--- install/etape2.php end", LOG_INFO);
pFooter(!$ok, $setuplang);
$db->close();
?>
示例11: sizeof
print '<center><div class="ok">' . $langs->trans("InstallChoiceSuggested") . '</div>';
if ($count < sizeof($migarray)) {
print $langs->trans("MigrateIsDoneStepByStep", DOL_VERSION);
}
print '</center>';
// <img src="../theme/eldy/img/tick.png" alt="Ok"> ';
$foundrecommandedchoice = 1;
// To show only once
}
} else {
// We can not recommand a choice.
// A version of install may be known, but we need last upgrade.
}
}
print '</td>';
print '<td align="center">';
if ($allowupgrade) {
// If it's not last updagre script, action = upgrade_tmp, if last action = upgrade
print '<a href="upgrade.php?action=upgrade' . ($count < sizeof($migrationscript) ? '_' . $versionto : '') . '&selectlang=' . $setuplang . '&versionfrom=' . $versionfrom . '&versionto=' . $versionto . '">' . $langs->trans("Start") . '</a>';
} else {
print $langs->trans("NotAvailable");
}
print '</td>';
print '</tr>' . "\n";
}
print '</table>';
print "\n";
}
}
pFooter(1);
// 1 car ne doit jamais afficher bouton Suivant
示例12: header
include_once '../core/class/html.form.class.php';
include_once '../core/class/html.formadmin.class.php';
$err = 0;
// Si fichier conf existe deja et rempli, on est pas sur une premiere install,
// on ne passe donc pas par la page de choix de langue
if (file_exists($conffile) && isset($dolibarr_main_url_root)) {
header("Location: check.php?testget=ok");
exit;
}
$langs->load("admin");
/*
* View
*/
$formadmin = new FormAdmin('');
// Note: $db does not exist yet but we don't need it, so we put ''.
pHeader("", "check");
// Etape suivante = check
// Ask installation language
print '<br><br><center>';
print '<table>';
print '<tr>';
print '<td>' . $langs->trans("DefaultLanguage") . ' : </td><td align="left">';
print $formadmin->select_language('auto', 'selectlang', 1, 0, 0, 1);
print '</td>';
print '</tr>';
print '</table></center>';
print '<br><br>' . $langs->trans("SomeTranslationAreUncomplete");
// Si pas d'erreur, on affiche le bouton pour passer a l'etape suivante
if ($err == 0) {
pFooter(0);
}
示例13: migrate_delete_old_files
// Actions for all version (not in database)
migrate_delete_old_files($db, $langs, $conf);
migrate_delete_old_dir($db, $langs, $conf);
}
print '</table>';
} else {
print '<div class="error">' . $langs->trans('ErrorWrongParameters') . '</div>';
$error++;
}
$ret = 0;
if ($error && isset($argv[1])) {
$ret = 1;
}
dol_syslog("Exit " . $ret);
dolibarr_install_syslog("--- upgrade2: end");
pFooter($error ? 2 : 0, $setuplang);
if ($db->connected) {
$db->close();
}
// Return code if ran from command line
if ($ret) {
exit($ret);
}
/**
* Reporte liens vers une facture de paiements sur table de jointure (lien n-n paiements factures)
*
* @param DoliDB $db Database handler
* @param Translate $langs Object langs
* @param Conf $conf Object conf
* @return void
*/
示例14: dol_escape_js
{
ok=false;
alert('<?php echo dol_escape_js($langs->transnoentities("YouAskToCreateDatabaseSoRootRequired")); ?>');
}
else if (document.forminstall.db_create_database.checked == true && (document.forminstall.db_user_root.value == ''))
{
ok=false;
alert('<?php echo dol_escape_js($langs->transnoentities("YouAskToCreateDatabaseSoRootRequired")); ?>');
}
// If create user asked
else if (document.forminstall.db_create_user.checked == true && (document.forminstall.db_user_root.value == ''))
{
ok=false;
alert('<?php echo dol_escape_js($langs->transnoentities("YouAskToCreateDatabaseUserSoRootRequired")); ?>');
}
else if (document.forminstall.db_create_user.checked == true && (document.forminstall.db_user_root.value == ''))
{
ok=false;
alert('<?php echo dol_escape_js($langs->transnoentities("YouAskToCreateDatabaseUserSoRootRequired")); ?>');
}
return ok;
}
</script>
-->
<?php
// $db->close(); Not database connexion yet
pFooter(1, $setuplang, 'jscheckparam');
?>
示例15: pHeader
/*
* View
*/
pHeader($langs->trans("License"),"fileconf");
// Test if we can run a first install process
if (! is_writable($conffile))
{
print $langs->trans("ConfFileIsNotWritable",$conffiletoshow);
pFooter(1,$setuplang,'jscheckparam');
exit;
}
//print '<pre style="align: center; font-size: 12px">';
$result=dol_print_file($langs,"html/gpl.html",1);
if (! $result)
{
print '<center>'."\n";
print '<textarea readonly="1" rows="26" cols="80">';
dol_print_file($langs,"html/gpl.txt",1);
print '</textarea>';
print '</center>'."\n";
}
//print '</pre>';
pFooter(0,$setuplang);
?>