コード例 #1
0
ファイル: login.php プロジェクト: ravenii/guardocs
// Display demo user name and password within login form if "$allow_demo_mode" is true
$demo_text = "";
if ($allow_demo_mode == True) {
    $demo_text = "Login as user: demouser and password: cooldemo";
} else {
    $demo_text = "Please login here";
}
if (!isset($def_coy)) {
    $def_coy = 0;
}
$def_theme = $path_to_root . '/themes/default';
?>
<html>
<head>
<?php 
echo get_js_png_fix();
?>
<script type="text/javascript">
function defaultCompany()
{
	document.forms[0].company_login_name.options[<?php 
echo $def_coy;
?>
].selected = true;
}
</script>
    <title><?php 
echo $app_title . " " . $version;
?>
</title>
    <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
コード例 #2
0
ファイル: update_db.php プロジェクト: ravenii/guardocs
<?php

//ini_set("display_errors", "on");
$path_to_root = ".";
include_once $path_to_root . "/admin/db/maintenance_db.inc";
include_once $path_to_root . "/includes/db/connect_db.inc";
include_once $path_to_root . "/includes/ui/ui_view.inc";
include_once $path_to_root . "/includes/ui/ui_input.inc";
$js = get_js_png_fix();
$js .= get_js_set_focus("user");
$image = $path_to_root . "/themes/default/images/logo_archivistaerp.png";
$title = "Update All Company Databases";
function get_js_set_focus($name)
{
    $js = "\n<script type=\"text/javascript\">\n" . "<!--\n" . "function setFocus()\n" . "{\n" . "\tdocument.forms[0].{$name}.focus();\n" . "}\n" . "-->\n" . "</script>\n";
    return $js;
}
function display_error($msg, $center = true)
{
    echo "<center><table border='1' cellpadding='3' cellspacing='0' style='border-collapse: collapse' bordercolor='#CC3300' width='50%'>\n      <tr>\n        <td  " . ($center ? "align='center' " : "") . " width='100%' bgcolor='#ffcccc'><font color='#dd2200'>{$msg}</font></td>\n      </tr>\n    </table></center><br>\n";
}
function display_notification($msg, $center = true)
{
    echo "<center><table border='1' cellpadding='3' cellspacing='0' style='border-collapse: collapse' bordercolor='#33cc00' width='50%'>\n      <tr>\n        <td " . ($center ? "align='center' " : "") . " width='100%' bgcolor='#ccffcc'><font color='#007700'>{$msg}</font></td>\n      </tr>\n    </table></center><br>\n";
}
function db_open($conn)
{
    $db = mysql_connect($conn["host"], $conn["dbuser"], $conn["dbpassword"]);
    if (!$db) {
        return false;
    }
コード例 #3
0
ファイル: logout.php プロジェクト: ravenii/guardocs
<?php

$page_security = 1;
$path_to_root = ".";
include $path_to_root . "/includes/session.inc";
include_once $path_to_root . "/includes/ui/ui_view.inc";
page(tr("Logout"), true, false, "", get_js_png_fix());
?>

<table width="100%" border="0">
  <tr>
	<td align="center"><img src="<?php 
echo "{$path_to_root}/themes/default/images/logo_archivistaerp.png";
?>
" alt="ArchivistaERP" onload="fixPNG(this)"></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><div align="center"><font size=2>
<?php 
echo tr("Thank you for using") . " ";
echo "<strong>{$app_title} {$version}</strong>";
?>
         </font></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>