示例#1
0
function instmsg($message, $url_forward = '')
{
    global $lang, $msglang;
    instheader();
    $message = $msglang[$message] ? $msglang[$message] : $message;
    if ($url_forward) {
        $message .= "<br /><br /><br /><a href=\"{$url_forward}\">{$message}</a>";
        $message .= "<script>setTimeout(\"redirect('{$url_forward}');\", 1250);</script>";
    } elseif (strpos($message, $lang['return'])) {
        $message .= "<br /><br /><br /><a href=\"javascript:history.go(-1);\" class=\"mediumtxt\">{$lang['message_return']}</a>";
    }
    echo "<tr><td style=\"padding-top:100px; padding-bottom:100px\"><table width=\"560\" cellspacing=\"1\" bgcolor=\"#000000\" border=\"0\" align=\"center\">" . "<tr bgcolor=\"#3A4273\"><td width=\"20%\" style=\"color: #FFFFFF; padding-left: 10px\">{$lang['error_message']}</td></tr>" . "<tr align=\"center\" bgcolor=\"#E3E3EA\"><td class=\"message\">{$message}</td></tr></table></tr></td>";
    instfooter();
    exit;
}
示例#2
0
文件: ucimport.php 项目: noikiy/mdwp
function showmessage($message, $url_forward = '', $msgtype = 'message', $extra = '', $delaymsec = 1000) {
    //浠ヨ〃鍗曠殑褰㈠紡鏄剧ず淇℃伅
    if($msgtype == 'form') {
        $message = "<form method=\"post\" action=\"$url_forward\" name=\"hidden_form\">".
        "<br><p class=\"p_indent\">$message</p>\n $extra</form><br>".
        '<script type="text/javascript">
            setTimeout("document.forms[\'hidden_form\'].submit()", '. $delaymsec .');
        </script>';
    } else {
        if($url_forward) {
            $message .= "<script>setTimeout(\"redirect('$url_forward');\", $delaymsec);</script>";
            $message .= "<br><div align=\"right\">[<a href=\"$script_name\" style=\"color:red\">鍋滄?杩愯?</a>]<br><br><a href=\"$url_forward\">濡傛灉鎮ㄧ殑娴忚?鍣ㄩ暱鏃堕棿娌℃湁鑷?姩璺宠浆锛岃?鐐瑰嚮杩欓噷锛?/a></div>";
        } else {
            $message .= "<br /><br /><br />";
        }
        $message = "<br>$message$extra<br><br>";
    }

    echo $message;
    instfooter();
    exit;
}
示例#3
0
function showmessage($message, $url_forward = '', $msgtype = 'message', $extra = '', $delaymsec = 1000)
{
    //以表单的形式显示信息
    if ($msgtype == 'form') {
        $message = "<form method=\"post\" action=\"{$url_forward}\" name=\"hidden_form\">" . "<br><p class=\"p_indent\">{$message}</p>\n {$extra}</form><br>" . '<script type="text/javascript">
            setTimeout("document.forms[\'hidden_form\'].submit()", ' . $delaymsec . ');
        </script>';
    } else {
        if ($url_forward) {
            $message .= "<script>setTimeout(\"redirect('{$url_forward}');\", {$delaymsec});</script>";
            $message .= "<br><div align=\"right\">[<a href=\"{$script_name}\" style=\"color:red\">停止运行</a>]<br><br><a href=\"{$url_forward}\">如果您的浏览器长时间没有自动跳转,请点击这里!</a></div>";
        } else {
            $message .= "<br /><br /><br />";
        }
        $message = "<br>{$message}{$extra}<br><br>";
    }
    echo $message;
    instfooter();
    exit;
}
示例#4
0
    echo $lang['start_install'];
    ?>
</font></td></tr>
<tr><td><hr noshade align="center" width="100%" size="1"></td></tr>
<tr><td align="center"><br>
<script type="text/javascript">
	function showmessage(message) {
		document.getElementById('notice').value += message + "\r\n";
	}
</script>
<textarea name="notice" style="width: 80%; height: 400px" readonly id="notice"></textarea>

<br><br>
<input type="button" name="submit" class="b" value=" <?php 
    echo $lang['install_in_processed'];
    ?>
 " disabled style="height: 25" onclick="window.location='admin/index.php'" id="laststep"><br><br>
<br>
</td></tr>
<?php 
    instfooter();
    $fp = fopen(ONEZ_ROOT . $sqlfile, 'rb');
    $sql = fread($fp, filesize($sqlfile));
    fclose($fp);
    $db = new onez_db();
    $tablepre = $tbl;
    runquery($sql);
    @touch(ONEZ_ROOT . $lockfile);
    echo '<script type="text/javascript">document.getElementById("laststep").disabled = false; </script>' . "\r\n";
    echo '<script type="text/javascript">document.getElementById("laststep").value = \'' . $lang['install_succeed'] . '\'; </script>' . "\r\n";
}
示例#5
0
function instmsg($message, $url_forward = '')
{
    global $lang, $msglang;
    instheader();
    $message = $msglang[$message] ? $msglang[$message] : $message;
    if ($url_forward) {
        $message .= "<br><br><br><a href=\"{$url_forward}\">{$message}</a>";
        $message .= "<script>setTimeout(\"redirect('{$url_forward}');\", 1250);</script>";
    } elseif (strpos($message, $lang['return'])) {
        $message .= "<br><br><br><a href=\"javascript:history.go(-1);\" class=\"mediumtxt\">{$lang['message_return']}</a>";
    }
    echo "<tr><td>\r\n\t\t<hr size=\"1\" color=\"#EEE\" style=\"color: #EEE; background-color: #EEE; height: 1px; border: 0;\" />\r\n\t\t<table width=\"560\" class=\"datatable\" align=\"center\">" . "<tr bgcolor=\"#f1f1f1\"><td width=\"20%\" style=\"padding-left: 10px\">错误信息</td></tr>" . "<tr align=\"center\"><td class=\"message\">{$message}</td></tr></table></tr></td>";
    instfooter();
    exit;
}