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


PHP pFooter函数代码示例

本文整理汇总了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');
开发者ID:Samara94,项目名称:dolibarr,代码行数:30,代码来源:fileconf.php

示例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");
开发者ID:Samara94,项目名称:dolibarr,代码行数:30,代码来源:step1.php

示例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
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:check.php

示例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);
}
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:upgrade.php

示例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);

?>
开发者ID:remyyounes,项目名称:dolibarr,代码行数:30,代码来源:index.php

示例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

开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:28,代码来源:check.php

示例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();
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:etape4.php

示例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);

?>
开发者ID:remyyounes,项目名称:dolibarr,代码行数:30,代码来源:upgrade.php

示例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);
}
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:upgrade.php

示例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();
?>
开发者ID:nrjacker4,项目名称:crm-php,代码行数:31,代码来源:etape2.php

示例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 : '') . '&amp;selectlang=' . $setuplang . '&amp;versionfrom=' . $versionfrom . '&amp;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
开发者ID:ripasch,项目名称:dolibarr,代码行数:31,代码来源:check.php

示例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);
}
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:index.php

示例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
 */
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:upgrade2.php

示例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');
?>
开发者ID:nrjacker4,项目名称:crm-php,代码行数:30,代码来源:fileconf.php

示例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);
?>
开发者ID:remyyounes,项目名称:dolibarr,代码行数:28,代码来源:licence.php


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