本文整理汇总了PHP中msgbox函数的典型用法代码示例。如果您正苦于以下问题:PHP msgbox函数的具体用法?PHP msgbox怎么用?PHP msgbox使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了msgbox函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: showDialog
/** Shows the dialog with the GtkCalendar()-object. */
function showDialog(){
$date_unix = msgbox(gtext("Choose date"), $this->date_unix, "date");
if ($date_unix){
$this->date_unix = $date_unix;
$this->entry->set_text(date("d-m-Y", $date_unix));
$this->eventm->callEvent("changed", $this->date_unix);
$this->eventm->callEVent("changed-manually", $this->date_unix);
}
}
开发者ID:kaspernj,项目名称:knjphpfw,代码行数:10,代码来源:class_gtk2_entrydate.php
示例2: load
public static function load()
{
$msg_ajax = "Vous n'êtes pas autorisé(e) à accéder à cette application , redirection vers acceuil.... \\AJAX";
$msg_app = "Vous n'êtes pas autorisé(e) à accéder à cette application , redirection vers acceuil.... \\APP";
$msg_file = "Vous n'êtes pas autorisé(e) à accéder à cette application , redirection vers acceuil.... \\FILE";
$msg_perm = "Vous n'êtes pas autorisé(e) à accéder à cette application , redirection vers acceuil.... \\PERMISSION_USER";
$msg_sess = "Vous n'êtes pas autorisé(e) à accéder à cette application , redirection vers acceuil.... \\SESSION_USER";
//Check if is Ajax request
if (empty($_SERVER['HTTP_X_REQUESTED_WITH']) && tg('_tsk') !== 'shopdf') {
exit(msgbox($msg_ajax, 0, './', 5));
}
global $db;
Cookie::auto_lastexec('time');
Cookie::auto_logout('time', 600);
//Cookie::session_autoclosed();
//Start check APP
if (tg('_tsk') == '0') {
exit("3#{$msg_app}");
}
$app_id = tg('_tsk');
if (!$db->Query("SELECT * FROM task where app='" . $app_id . "' ")) {
$db->Kill($db->Error());
}
if ($db->RowCount() == 0) {
exit("3#{$msg_app}");
}
$array = $db->RowArray();
$appc_idc = $array['id'];
$needsession = $array['session'];
$app_rep = $array['rep'];
$app_file = $array['file'];
$array_godapp = array(1, 2, 3, 4, 5, 6, 11, 21, 43, 49, 56, 57, 58, 59, 70, 130, 138, 157);
if ($needsession == 1 && !isset($_SESSION['userid'])) {
exit("3#{$msg_sess}");
}
if (!in_array($appc_idc, $array_godapp)) {
$sql = "SELECT * FROM permission_users where perm=1 and appid=" . $appc_idc . " and userid=" . $_SESSION['userid'];
if (!$db->Query($sql)) {
$db->Kill($db->Error());
}
if ($db->RowCount() <= 0) {
exit("3#{$msg_perm}");
}
}
if (!file_exists(CONTROLLER_REP . $app_rep . SLASH . $app_file . '_c.php')) {
exit("3#{$msg_file}");
}
define('ACTIV_APP', $array['dscrip']);
define('MODUL_APP', $array['modul']);
define('APP_ID', $array['id']);
require_once CONTROLLER_REP . SLASH . $app_rep . SLASH . $app_file . '_c.php';
}
开发者ID:ATS001,项目名称:PRSIT,代码行数:52,代码来源:ajax.class.php
示例3: profileload
function profileload()
{
$path = ENGINE_DIR . '/data/xfields.txt';
$filecontents = file($path);
if (!is_array($filecontents)) {
msgbox('Информация', 'Невозможно загрузить файл', 'javascript:history.go(-1)');
exit;
}
foreach ($filecontents as $name => $value) {
$filecontents[$name] = explode("|", trim($value));
foreach ($filecontents[$name] as $name2 => $value2) {
$value2 = str_replace("|", "|", $value2);
$value2 = str_replace("__NEWL__", "\r\n", $value2);
$filecontents[$name][$name2] = $value2;
}
}
return $filecontents;
}
开发者ID:BGCX067,项目名称:facestor-svn-to-git,代码行数:18,代码来源:xfields.php
示例4: trim
$name = trim(stripslashes($name));
$name = htmlspecialchars($name, ENT_QUOTES);
$name = preg_replace($find, $replace, $name);
}
$value = str_replace("\$", "$", $value);
$value = str_replace("{", "{", $value);
$value = str_replace("}", "}", $value);
$name = str_replace("\$", "$", $name);
$name = str_replace("{", "{", $name);
$name = str_replace("}", "}", $name);
$value = $db->safesql($value);
fwrite($handler, "'{$name}' => \"{$value}\",\n\n");
}
fwrite($handler, ");\n\n?>");
fclose($handler);
msgbox('Настройки сохранены', 'Настройки системы были успешно сохранены!', '?mod=system');
} else {
echoheader();
echohtmlstart('Общие настройки');
//Чтение всех шаблон в папке "templates"
$root = './templates/';
$root_dir = scandir($root);
foreach ($root_dir as $templates) {
if ($templates != '.' and $templates != '..' and $templates != '.htaccess') {
$for_select .= str_replace('value="' . $config['temp'] . '"', 'value="' . $config['temp'] . '" selected', '<option value="' . $templates . '">' . $templates . '</option>');
}
}
//Чтение всех языков
$root_dir2 = scandir('./lang/');
foreach ($root_dir2 as $lang) {
if ($lang != '.' and $lang != '..' and $lang != '.htaccess') {
开发者ID:BGCX067,项目名称:facestor-svn-to-git,代码行数:31,代码来源:system.php
示例5: navigation
$tpl->set('[owner]', '');
$tpl->set('[/owner]', '');
} else {
$tpl->set_block("'\\[owner\\](.*?)\\[/owner\\]'si", "");
}
if ($row['friend_id'] == $user_info['user_id']) {
$tpl->set_block("'\\[viewer\\](.*?)\\[/viewer\\]'si", "");
} else {
$tpl->set('[viewer]', '');
$tpl->set('[/viewer]', '');
}
$tpl->compile('content');
}
navigation($gcount, $friends_sql['user_friends_num'], $config['home_url'] . 'friends/' . $get_user_id . '/page/');
} else {
msgbox('', $lang['no_requests'], 'info_2');
}
} else {
msgbox('', $lang['no_requests'], 'info_2');
}
} else {
$user_speedbar = $lang['error'];
msgbox('', $lang['no_notes'], 'info');
}
}
$db->free();
$tpl->clear();
} else {
$user_speedbar = 'Информация';
msgbox('', $lang['not_logged'], 'info');
}
开发者ID:BGCX067,项目名称:facestor-svn-to-git,代码行数:31,代码来源:friends.php
示例6: die
/***************************************************************************\
| Sypex Dumper Lite version 1.0.8b |
| (c)2003-2006 zapimir [email protected] http://sypex.net/ |
| (c)2005-2006 BINOVATOR [email protected] |
|---------------------------------------------------------------------------|
| created: 2003.09.02 19:07 modified: 2006.10.27 03:30 |
|---------------------------------------------------------------------------|
\***************************************************************************/
if (!defined('MOZG')) {
die('Hacking attempt!');
}
header('Content-type: text/html; charset=windows-1251');
$lang = array('dumper_1' => "Бэкап БД успешно создан в папке /backup/", 'dumper_2' => "Создается резервная копия БД", 'dumper_3' => "ОШИБКА! Не указана база данных!", 'dumper_4' => "Не удается выбрать базу данных.<br />", 'dumper_5' => "Создание файла с резервной копией БД:", 'dumper_6' => "Не удается изменить кодировку соединения.<br />", 'dumper_7' => "Установлена кодировка соединения", 'dumper_8' => "Кодировка соединения и таблицы не совпадает:", 'dumper_9' => "Таблица", 'dumper_10' => "соединение", 'dumper_11' => "Обработка таблицы", 'dumper_12' => "Резервная копия БД", 'dumper_13' => "создана.", 'dumper_14' => "Размер БД:", 'dumper_15' => "Размер файла:", 'dumper_16' => "Таблиц обработано:", 'dumper_17' => "Строк обработано:", 'dumper_18' => "Восстановление БД из резервной копии", 'dumper_19' => "ОШИБКА! Не указана база данных!", 'dumper_20' => "Подключение к БД", 'dumper_21' => "ОШИБКА! Файл не найден!", 'dumper_22' => "Чтение файла", 'dumper_23' => "Неправильный запрос.", 'dumper_24' => "БД восстановлена из резервной копии.", 'dumper_25' => "Дата создания копии:", 'dumper_26' => "Запросов к БД:", 'dumper_27' => "Таблиц создано:", 'dumper_28' => "Строк добавлено:", 'dumper_29' => "Статус таблицы:", 'dumper_30' => "Общий статус:", 'dumper_31' => "Возникла ошибка!");
if ($user_info['user_group'] != 1) {
msgbox("error", 'error', 'error');
}
ob_end_flush();
define('PATH', ROOT_DIR . '/backup/');
define('URL', 'backup/');
define('TIME_LIMIT', 600);
define('LIMIT', 1);
define('DBNAMES', DBNAME);
define('DBNUSER', DBUSER);
define('DBPREFIX', PREFIX);
// Кодировка соединения с MySQL
// auto - автоматический выбор (устанавливается кодировка таблицы), cp1251 - windows-1251, и т.п.
define('CHARSET', 'auto');
// Кодировка соединения с MySQL при восстановлении
// На случай переноса со старых версий MySQL (до 4.1), у которых не указана кодировка таблиц в дампе
// При добавлении 'forced->', к примеру 'forced->cp1251', кодировка таблиц при восстановлении будет принудительно заменена на cp1251
开发者ID:BGCX067,项目名称:facestor-svn-to-git,代码行数:30,代码来源:dumper.php
示例7: elseif
$tpl->set('{author-id}', $row['auser_id']);
$tpl->compile('content');
}
} elseif ($type == 6) {
$tpl->load_template('search/result_groups.tpl');
foreach ($sql_ as $row) {
if ($row['photo']) {
$tpl->set('{ava}', '/uploads/groups/' . $row['id'] . '/100_' . $row['photo']);
} else {
$tpl->set('{ava}', '{theme}/images/no_ava_groups_100.gif');
}
$tpl->set('{public-id}', $row['id']);
$tpl->set('{name}', stripslashes($row['title']));
$tpl->set('{note-id}', $row['id']);
$tpl->set('{traf}', $row['traf'] . ' ' . gram_record($row['traf'], 'groups_users'));
if ($row['adres']) {
$tpl->set('{adres}', $row['adres']);
} else {
$tpl->set('{adres}', 'public' . $row['id']);
}
$tpl->compile('content');
}
} else {
msgbox('', $lang['search_none'], 'info_2');
}
navigation($gcount, $count['cnt'], '/index.php?' . $query_string . '&page=');
} else {
msgbox('', '', 'info_search');
}
$tpl->clear();
$db->free();
开发者ID:skypach,项目名称:skypach.ru,代码行数:31,代码来源:search.php
示例8: array
$tableSchema = array();
$tableSchema[] = "ALTER TABLE `" . PREFIX . "_vote` ADD `grouplevel` VARCHAR(250) NOT NULL DEFAULT 'all'";
foreach ($tableSchema as $table) {
$db->query($table);
}
$handler = fopen(ENGINE_DIR . '/data/config.php', "w") or die("Извините, но невозможно записать информацию в файл <b>.engine/data/config.php</b>.<br />Проверьте правильность проставленного CHMOD!");
fwrite($handler, "<?PHP \n\n//System Configurations\n\n\$config = array (\n\n");
foreach ($config as $name => $value) {
fwrite($handler, "'{$name}' => \"{$value}\",\n\n");
}
fwrite($handler, ");\n\n?>");
fclose($handler);
$fdir = opendir(ENGINE_DIR . '/cache/system/');
while ($file = readdir($fdir)) {
if ($file != '.' and $file != '..' and $file != '.htaccess') {
@unlink(ENGINE_DIR . '/cache/system/' . $file);
}
}
@unlink(ENGINE_DIR . '/data/snap.db');
clear_cache();
if ($db->error_count) {
$error_info = "Всего запланировано запросов: <b>" . $db->query_num . "</b> Неудалось выполнить запросов: <b>" . $db->error_count . "</b>. Возможно они уже выполнены ранее.<br /><br /><div class=\"quote\"><b>Список не выполненных запросов:</b><br /><br />";
foreach ($db->query_list as $value) {
$error_info .= $value['query'] . "<br /><br />";
}
$error_info .= "</div>";
} else {
$error_info = "";
}
msgbox("info", "Информация", "Обновление базы данных с версии <b>9.7</b> до версии <b>9.8</b> успешно завершено.<br /><br />{$error_info}<br />Нажмите далее для продолжения процессa обновления скрипта.");
开发者ID:Gordondalos,项目名称:union,代码行数:30,代码来源:9.7.php
示例9: defined
defined('WCROOT') or die('Access Denied');
require WCROOT . PS . "config" . PS . "config_" . $_SESSION['domain'] . ".php";
$db = new db();
$sqlfile = WCROOT . '/install/data/basic.sql';
file_exists($sqlfile) or die('<br /><font color="#F00">数据库安装文件丢失:' . $sqlfile . '</font>');
$sql = file_get_contents($sqlfile);
$sql = str_replace("\r\n", "\n", $sql);
if (empty($sql)) {
die('无法获取安装数据。file_get_contents()');
}
$sql = trim(str_replace("\r", "\n", str_replace(' `ws_', ' `' . $db_config['db_pre'], $sql)));
$ret = explode(";\n", $sql);
unset($sql);
$result = true;
foreach ($ret as $sql) {
$sql = trim($sql);
@$db->execute($sql) or $result = false;
}
if ($result) {
msgbox('', 'index.php?step=6');
} else {
echo '<div style="padding:30px 0 30px 20px; color:#F00;">系统模块安装失败,请重新安装或尝试跳过这一步。</div>';
}
?>
<table width="100%"><tr>
<td width="80" height="80"> </td>
<td align="center"><a href="index.php?step=4" onfocus="this.blur()"><img src="images/button_prev.png" width="112" height="35" /></a></td>
<td align="center"><a href="index.php?step=6" onfocus="this.blur()"><img src="images/button_next.png" width="112" height="35" /></a></td>
<td width="80"> </td>
</tr></table>
开发者ID:dalinhuang,项目名称:water-svn,代码行数:30,代码来源:step5.php
示例10: msgbox
}
}
if ($config['allow_admin_wysiwyg'] == "1" or $config['allow_site_wysiwyg'] == "1" or $config['allow_static_wysiwyg'] == "1") {
$js_array .= "\n<script type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js\"></script>";
$js_array .= "\n<script type=\"text/javascript\" src=\"{$config['http_home_url']}engine/editor/scripts/webfont.js\"></script>";
$js_array .= "\n<link media=\"screen\" href=\"{$config['http_home_url']}engine/editor/css/default.css\" type=\"text/css\" rel=\"stylesheet\" />";
}
if ($video_found) {
$js_array .= "\n<link media=\"screen\" href=\"{$config['http_home_url']}engine/classes/html5player/mediaelementplayer.css\" type=\"text/css\" rel=\"stylesheet\" />";
}
if (stripos($tpl->copy_template, "{content}") !== false) {
$custom_news = false;
}
if ($_SERVER['QUERY_STRING'] and !$tpl->result['content'] and !$tpl->result['info'] and !$custom_news) {
@header("HTTP/1.0 404 Not Found");
msgbox($lang['all_err_1'], $lang['news_err_27']);
}
if (count($onload_scripts)) {
$onload_scripts = implode("\n", $onload_scripts);
$ajax .= <<<HTML
jQuery(function(\$){
{$onload_scripts}
});
HTML;
} else {
$onload_scripts = "";
}
$ajax .= <<<HTML
//-->
开发者ID:Gordondalos,项目名称:union,代码行数:31,代码来源:main.php
示例11: msgbox
if ($er) {
$all_er .= '<li>' . $er . '</li>';
}
}
if ($all_er) {
msgbox('Ошибка', $all_er, '?mod=mysettings');
} else {
if ($newPassOk) {
$db->query("UPDATE `" . PREFIX . "_users` SET user_name = '" . $user_name . "', user_lastname = '" . $user_lastname . "', user_email = '" . $user_email . "', user_search_pref = '" . $user_name . " " . $user_lastname . "' WHERE user_id = '" . $user_info['user_id'] . "'");
} else {
$db->query("UPDATE `" . PREFIX . "_users` SET user_name = '" . $user_name . "', user_lastname = '" . $user_lastname . "', user_email = '" . $user_email . "', user_password = '" . $new_pass . "', user_search_pref = '" . $user_name . " " . $user_lastname . "' WHERE user_id = '" . $user_info['user_id'] . "'");
}
//clear cache
mozg_clear_cache_file('user_' . $user_info['user_id'] . '/profile_' . $user_info['user_id']);
mozg_clear_cache();
msgbox('Изменения сохранены', 'Ваша персональная информация была успешно сохранена', '?mod=mysettings');
}
} else {
echoheader();
echohtmlstart('Редактирование собственного профиля');
echo <<<HTML
<style type="text/css" media="all">
.inpu{width:300px;}
textarea{width:300px;height:100px;}
</style>
<form method="POST" action="">
<div class="fllogall">E-mail:</div><input type="text" name="email" class="inpu" value="{$row['user_email']}" /><div class="mgcler"></div>
<div class="fllogall">Имя:</div><input type="text" name="name" class="inpu" value="{$row['user_name']}" /><div class="mgcler"></div>
开发者ID:BGCX067,项目名称:facestor-svn-to-git,代码行数:31,代码来源:mysettings.php
示例12: str_replace
if (!$is_logged) {
$login_panel = str_replace("{result}", $result, $login_panel);
echo $login_panel;
exit;
}
if (!is_writable(ENGINE_DIR . '/data/')) {
msgbox("info", "Информация", "Установите права для записи на папку 'engine/data/' CHMOD 777");
}
if (!is_writable(ENGINE_DIR . '/data/config.php')) {
msgbox("info", "Информация", "Установите права для записи на файл 'engine/data/config.php' CHMOD 666");
}
if (!is_writable(ENGINE_DIR . '/data/dbconfig.php')) {
msgbox("info", "Информация", "Установите права для записи на файл 'engine/data/dbconfig.php' CHMOD 666");
}
if (!is_writable(ENGINE_DIR . '/data/xfields.txt')) {
msgbox("info", "Информация", "Установите права для записи на файл 'engine/data/xfields.txt' CHMOD 666");
}
if (!$_SESSION['dle_update']) {
echo $skin_header;
echo <<<HTML
<form action="index.php" method="GET">
<input type="hidden" name="next" value="start">
<div class="box">
<div class="box-header">
<div class="title">Информация</div>
</div>
<div class="box-content">
\t<div class="row box-section">
\t\t<font color="red"><b>Внимание:</b></font><br /><br />Прежде чем приступить к процедуре обновления скрипта и базы данных, убедитесь что вы создали и сохранили у себя полные бекапы файлов скрипта и базы данных. Процедура обновления вносит необратимые изменения в структуру базы данных, отмена которых в будущем будет невозможна, вернуть в предыдущее состояние базу данных, можно будет только путем восстановления бекапов базы данных. Также во время процедуры обновления скрипт выполняет тяжелые запросы к базе данных, выполнение которых может потребовать продолжительное время, поэтому обновление рекомендуется проводить во время минимальной нагрузки на сервер. Для больших сайтов, имеющие большое количество публикаций, рекомендуется предварительно проводить обновление на локальном компьютере.
\t</div>
\t<div class="row box-section">
开发者ID:Gordondalos,项目名称:union,代码行数:31,代码来源:template.php
示例13: array
$restrictions = array();
if (isset($_GET['restrict'])) {
list($key, $value) = explode(":", $_GET['restrict'], 2);
$restrictions[$key] = $value;
}
$row = $DB->q('MAYBETUPLE SELECT t.*, a.country, c.name AS catname,
a.shortname AS affshortname, a.name AS affname
FROM team t
LEFT JOIN team_category c USING (categoryid)
LEFT JOIN team_affiliation a ON (t.affilid = a.affilid)
WHERE teamid = %i', $id);
if (!$row) {
error("Invalid team identifier");
}
if (isset($_GET['edited'])) {
echo addForm('refresh_cache.php') . msgbox("Warning: Refresh scoreboard cache", "If the membership of a team in a contest was changed, it may be necessary to recalculate any cached scoreboards.<br /><br />" . addSubmit('recalculate caches now', 'refresh')) . addEndForm();
}
$users = $DB->q('TABLE SELECT userid,username FROM user WHERE teamid = %i', $id);
$affillogo = "../images/affiliations/" . urlencode($row['affilid']) . ".png";
$countryflag = "../images/countries/" . urlencode($row['country']) . ".png";
$teamimage = "../images/teams/" . urlencode($row['teamid']) . ".jpg";
echo "<h1>Team " . specialchars($row['name']) . "</h1>\n\n";
if ($row['enabled'] != 1) {
echo "<p><em>Team is disabled</em></p>\n\n";
}
?>
<div class="col1"><table>
<tr><td>ID: </td><td>t<?php
echo specialchars($row['teamid']);
?>
开发者ID:sponi78,项目名称:domjudge,代码行数:31,代码来源:team.php
示例14: db_fieldsmemory
db_fieldsmemory($rsConsultaConfigDBPref, 0);
if (isset($sEmailServ) && $sEmailServ != '') {
$oMail = new Smtp();
$oMail->Send($mailpref, $w13_emailadmin, 'Prefeitura On-Line - Esqueci Minha Senha', $mensagemDestinatario);
msgbox("Uma mensagem foi encaminhada para o e-mail: {$sEmailServ}");
}
db_logs("", "", 0, "Esqueci minha senha: cgc ou cpf - {$sCgcCpf}");
}
} else {
$sMsg = "Dados informados NÃO encontrados no cadastro da Prefeitura!\\n\n Procure o balcão da Prefeitura para realizar seu cadastro.";
msgbox($sMsg);
db_redireciona("centro_pref.php");
}
} else {
$sMsg = "Dados informados NÃO encontrados no cadastro da Prefeitura!\\n\n Procure o balcão da Prefeitura para realizar seu cadastro.";
msgbox($sMsg);
db_redireciona("centro_pref.php");
}
}
}
function formataDataNascBanco($sData)
{
$data = str_replace("/", "", $sData);
$datanasc_dia = substr($data, -8, 2);
$datanasc_mes = substr($data, -6, 2);
$datanasc_ano = substr($data, -4);
$datanasc = $datanasc_ano . "-" . $datanasc_mes . "-" . $datanasc_dia;
return $datanasc;
}
function formataCpfBanco($sCpf)
{
开发者ID:arendasistemasintegrados,项目名称:mateusleme,代码行数:31,代码来源:conf_senhas_servidor.php
示例15: set_cookie
set_cookie("hid", $hid, 365);
header("Location: {$admin_link}");
} else {
$error_log = 'Доступ отключён!';
}
} else {
$error_log = 'Доступ отключён!';
}
}
}
if (!$logged) {
echoheader();
echohtmlstart('Вход в панель управления');
echo <<<HTML
<form method="POST" action="">
<div class="fllogall">E-mail:</div><input type="text" name="email" class="inpu" /> <font color="red">{$error_log}</font>
<div class="mgcler"></div>
<div class="fllogall">Пароль:</div><input type="password" name="pass" class="inpu" />
<div class="mgcler"></div>
<div class="fllogall"> </div><input type="submit" class="inp fl_l" name="log_in" value="Войти" style="margin-top:5px" />
</form>
<div class="clear"></div>
HTML;
echohtmlend();
} else {
if ($user_info['user_group'] == 1) {
include ADMIN_DIR . '/mod.php';
} else {
msgbox('Информация', 'У вас недостаточно прав для просмотра этого раздела. <a href="' . $admin_link . '?act=logout">Выйти</a>', '');
}
}
开发者ID:BGCX067,项目名称:facestor-svn-to-git,代码行数:31,代码来源:login.php
示例16: pg_query
<td align="left" >Complemento:
</td>
<td align="left" ><input name="it22_compl" type="text" size="60" >
</td>
</tr>
<tr >
<td align="left" >
</td>
<td align="left" >
<?php
if ($cod != "") {
$sql = "select * from itbidadosimovel where it22_itbi ={$cod}";
$result = pg_query($sql);
$linhas = pg_num_rows($result);
if ($linhas > 0) {
msgbox("xxxxxx" . $linhas);
db_fieldsmemory($result, 0);
?>
<input name="alterar" type="submit" value="Alterar" class="botao" onclick="js_verifica();">
</td>
</tr>
</table>
</form>
<html>
<?php
echo "\n\t\t<script>\n\t\t\tdocument.form1.it22_sequencial.value ={$it22_sequencial};\n\t\t\tdocument.form1.it22_setor.value ={$it22_setor};\n\t\t\tdocument.form1.it22_quadra.value ={$it22_quadra} ;\n\t\t \tdocument.form1.it22_lote.value ={$it22_lote} ;\n\t\t\tdocument.form1.it22_descrlograd.value='{$it22_descrlograd}';\n\t\t\tdocument.form1.it22_numero.value ={$it22_numero};\n\t\t\tdocument.form1.it22_compl.value ='{$it22_compl}'; \n\t\t</script>\n\t\t";
} else {
?>
开发者ID:arendasistemasintegrados,项目名称:mateusleme,代码行数:31,代码来源:itbi_dadosimovel.php
示例17: msgbox
}
if ($row['user_id']) {
$db->query("SELECT id FROM " . USERPREFIX . "_ignore_list WHERE user='{$row['user_id']}' AND user_from='{$member_id['name']}'");
if ($db->num_rows()) {
$stop_pm = true;
$lang['pm_err_8'] = $lang['pm_ignored'];
}
$db->free();
}
if (!$stop_pm) {
$tpl->compile('content');
$tpl->clear();
} else {
$tpl->clear();
if (!$tpl->result['info']) {
msgbox($lang['all_info'], $lang['pm_err_8']);
}
}
} elseif (!$stop_pm) {
$tpl->set('[pmlist]', "");
$tpl->set('[/pmlist]', "");
$tpl->set_block("'\\[newpm\\].*?\\[/newpm\\]'si", "");
$tpl->set_block("'\\[readpm\\].*?\\[/readpm\\]'si", "");
$pm_per_page = 20;
if (isset($_GET['cstart'])) {
$cstart = intval($_GET['cstart']);
} else {
$cstart = 0;
}
if ($cstart) {
$cstart = $cstart - 1;
开发者ID:Banych,项目名称:SiteCreate,代码行数:31,代码来源:pm.php
示例18: elseif
$script = false;
} elseif (pg_result($result, 0, "z01_cgccpf") == "00000000000000" || pg_result($result, 0, "z01_cgccpf") == " " || trim(pg_result($result, 0, "z01_cgccpf")) != "{$cgccpf}") {
$script = true;
} elseif (pg_numrows($result) == 1) {
db_fieldsmemory($result, 0);
//$sql2 = "select * from iptubase where j01_numcgm = $z01_numcgm";
//$result2 = @db_query($sql2);
//if(pg_numrows($result2)==0){
// db_redireciona("certidao.php");
//}else{
// db_redireciona("digitamatricula.php");
//}
//exit;
} else {
if (pg_numrows($result) > 1) {
msgbox("Inconsistencia de dados, procure a Prefeitura.");
setcookie("cookie_codigo_cgm");
db_redireciona("certidaonome003.php?outro");
$script = false;
}
}
// if (! isset ( $DB_LOGADO ) && $m_publico != 't') {
// $sql = "select fc_permissaodbpref(" . db_getsession ( "DB_login" ) . ",1,$codigo_cgm)";
// $result = db_query ( $sql );
// if (pg_numrows ( $result ) == 0) {
// db_redireciona ( "digitacontribuinte.php?" . base64_encode ( 'erroscripts=Acesso não Permitido. Contate a Prefeitura.' ) );
// exit ();
// }
// $result = pg_result ( $result, 0, 0 );
// if ($result == "0") {
// db_redireciona ( "digitacontribuinte.php?" . base64_encode ( 'erroscripts=Acesso não Permitido. Contate a Prefeitura.' ) );
开发者ID:arendasistemasintegrados,项目名称:mateusleme,代码行数:31,代码来源:opcoescertidao.php
示例19: md5
}
$db->free();
if ($_POST['allow_subscribe'] and $user_group[$member_id['user_group']]['allow_subscribe'] and !$found_subscribe) {
if (function_exists('openssl_random_pseudo_bytes')) {
$stronghash = md5(openssl_random_pseudo_bytes(15));
} else {
$stronghash = md5(uniqid(mt_rand(), TRUE));
}
$salt = str_shuffle($stronghash);
$s_hash = "";
for ($i = 0; $i < 10; $i++) {
$s_hash .= $salt[mt_rand(0, 31)];
}
$s_hash = md5($s_hash);
$db->query("INSERT INTO " . PREFIX . "_subscribe (user_id, name, email, news_id, hash) values ('{$member_id['user_id']}', '{$member_id['name']}', '{$member_id['email']}', '{$post_id}', '{$s_hash}')");
}
}
if ($config['allow_alt_url'] and !$config['seo_type']) {
$cprefix = "full_";
} else {
$cprefix = "full_" . $post_id;
}
clear_cache(array('news_', 'rss', 'comm_' . $post_id, $cprefix));
if (!$ajax_adds and !$CN_HALT) {
header("Location: {$_SERVER['REQUEST_URI']}");
die;
}
} else {
msgbox($lang['all_err_1'], implode("<br />", $stop) . "<br /><br /><a href=\"javascript:history.go(-1)\">" . $lang['all_prev'] . "</a>");
}
}
开发者ID:Gordondalos,项目名称:union,代码行数:31,代码来源:addcomments.php
示例20: header
// Our color field can be both a HTML color name and an RGB value,
// so we output it only in the human-readable field "color" and
// leave the field "rgb" unset.
$problem['color'] = $prob['color'];
$contest_data['problems'][] = $problem;
}
}
$yaml = Spyc::YAMLDump($contest_data);
echo $yaml;
header('Content-type: text/x-yaml');
header('Content-Disposition: attachment; filename="contest.yaml"');
exit;
}
$title = "Import / export configuration";
require LIBWWWDIR . '/header.php';
echo "<h1>Import / export configuration</h1>\n\n";
if (isset($_GET['import-ok'])) {
echo msgbox("Import successful!", "The file " . specialchars(@$_GET['file']) . " is successfully imported.");
}
echo "<h2>Import from YAML</h2>\n\n";
echo addForm('impexp_contestyaml.php', 'post', null, 'multipart/form-data');
echo msgbox("Please note!", "Importing a contest.yaml may overwrite some settings " . "(e.g. penalty time, clarification categories, clarification answers, etc.)." . "This action can not be undone!");
echo addFileField('import_config');
echo addSubmit('Import', 'import') . addEndForm();
echo "<h2>Export to YAML</h2>\n\n";
echo addForm('impexp_contestyaml.php');
echo '<label for="contest">Select contest: </label>';
$contests = $DB->q("KEYVALUETABLE SELECT cid, name FROM contest");
echo addSelect('contest', $contests, null, true);
echo addSubmit('Export', 'export') . addEndForm();
require LIBWWWDIR . '/footer.php';
开发者ID:rohit-takhar,项目名称:domjudge,代码行数:31,代码来源:impexp_contestyaml.php
注:本文中的msgbox函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论