本文整理汇总了PHP中setPageTitle函数的典型用法代码示例。如果您正苦于以下问题:PHP setPageTitle函数的具体用法?PHP setPageTitle怎么用?PHP setPageTitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setPageTitle函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: init
protected function init()
{
// Set Layout
$this->layoutName = adminLayout();
// Set Page Title
setPageTitle(trans($this->moduleName . "::menu_item.settings"));
}
开发者ID:developeryamhi,项目名称:laravel-admin,代码行数:7,代码来源:SettingsController.php
示例2: _mainStatsDate
function _mainStatsDate()
{
#
# Show a typical Master/Detail view with toppane showing a browse list + delete buttons for each entry
# New button loads empty Detail View + Save button --> reloads _browseDate
# Click on a Master row shows editable details form + save button --> reloads _browseDate
# uses: fretAllFedaDates.php for the browselist
global $dbi, $event, $tdbg;
echo setPageTitle('Manage Dates for Static Statistic Lists');
echo '<p>Die hier angezeigten Stichtage sind in den <i>SELECT BOXEN</i> auf den unterschiedlichen statistik seiten sichtbar und anwählbar. Wird ein Datum gelöscht so werden damit <b>keine</b> Werte oder Spiele gelöscht, sondern lediglich die mit diesem Datum assozierte statische Werteliste.<br>Ein Klick auf einen Datumseintrag ladet dieses zum Bearbeiten. Der Datums-Statistik Typ ist zwingend erforderlich.</p>';
# SECTION 0 Navigation
echo '<table bgcolor="' . $tdbg . '" cellpadding="2" cellspacing="1"><tr><td id="btnrefresh" bgcolor="white" onclick="initdatepage()" onMouseOver="mover(this)" onMouseOut="mout(this)">Tabelle neu laden</td>' . '<td></td><td bgcolor="white" id="datebrowseActivity"><i>Ready</i></td>' . '<td></td><td bgcolor="white" id="datesaveActivity"><i>Ready</i></td>' . '</tr></table><br>';
# SECTION 1 BROWSELIST HEADER
$aTH = array('ID', 'Datum', 'Comment', 'Creator', 'SyS', 'Ranking Name');
$HEAD = ArrayToTableHead($aTH);
echo '<table id="browseheader"><col width="20"><col width="90"><col width="310"><col width="90"><col width="30"><col width="170">' . $HEAD . '</table>';
# Section 1.1 Browselist Body
echo '<DIV class="tableroll">';
echo '<table bgcolor="' . $tdbg . '" name="browsetable" id="browsetable" border="0" cellpadding="2" cellspacing="1" width="100%"><tbody></tbody></table></div><br/>';
# SECTION 2 DETAIL VIEW
echo '<div id="frmdate"><form name="dateentry" action="lsdb/statdate.php?opcode=save" method="post" target="_blank" onSubmit="submitForm(this);return false;"><fieldset><legend>Datum Bearbeiten</legend>';
echo include 'forms/date.php';
echo '</fieldset></form></div>';
# // call the page initialisation at last make sure all DOM stuff is in place ....
echo '<script language="javascript">initdatepage();</script>';
}
开发者ID:robmat,项目名称:samplebator,代码行数:26,代码来源:stats_date.php
示例3: _LS_LocationPage
function _LS_LocationPage()
{
global $dbi, $event, $tdbg;
echo setPageTitle('Manage Locations');
echo '<p>Hier werden die Spielstätten bzw. Locations im gesamten Bundesgebiet angezeigt. Ein Klick auf einen Eintrag ladet diesen zum Bearbeiten.<br><b>Unterhalb</b> der Datenmaske werden zugleich alle eingetragenen Heimmannschaften aus dem LigaSystem angezeigt.</p>';
# SECTION 0 Navigation
echo '<table bgcolor="' . $tdbg . '" cellpadding="2" cellspacing="1"><tr><td id="btnrefresh" bgcolor="white" onclick="initlocationpage()" onMouseOver="mover(this)" onMouseOut="mout(this)">Tabelle neu laden</td>' . '<td></td><td bgcolor="white" id="locbrowseActivity"><i>Ready</i></td>' . '<td></td><td bgcolor="white" id="locsaveActivity"><i>Ready</i></td>' . '</tr></table><br>';
$location_count_result = sql_query('SELECT COUNT(*) FROM tbllocation l, tverband v WHERE l.lrealm_id = v.id', $dbi);
$location_count = 0;
while (list($count) = sql_fetch_row($location_count_result, $dbi)) {
$location_count = $count;
}
$response->page = 1;
$response->total = 1;
$response->records = $location_count;
$i = 0;
$location_result = sql_query('SELECT * FROM tbllocation l, tverband v WHERE l.lrealm_id = v.id', $dbi);
while (list($locid, $lname, $lcity, $lplz, $laddress, $lphone, $lactive, $lrealm_id, $lemail, $lcoordinates, $version, $lkey, $vereinid, $vcode, $vname, $vlogic, $version, $vactive) = sql_fetch_row($location_result, $dbi)) {
$response->rows[$i]['id'] = $locid;
$response->rows[$i]['cell'] = array($locid, $lname, $lcity, $lplz, $laddress, $lphone, $lactive, $lemail, $vname, $lcoordinates, $lrealm_id);
$i++;
}
echo '<div id="locationData" style="display: none;">' . json_encode($response) . '</div>';
echo '<table id="locationTable"></table><div id="locationPager"></div><script> createLocationTable(); </script>';
# SECTION 2 DETAIL VIEW
echo '<div id="frmLocation"><form name="locentry" action="fsaveLocation.php?opcode=save" method="post" target="_blank" onSubmit="submitForm(this);return false;"><fieldset><legend>Location Bearbeiten</legend>';
echo include 'forms/location.php';
echo '</form></div>';
# section 4 BrowseOnSelectedDetail
echo '<h3>Aktuelle Heimmannschaften dieser Spielstätte</h3><div id="axteamtable"></div>';
}
开发者ID:robmat,项目名称:samplebator,代码行数:31,代码来源:ls_loc.php
示例4: listall
/**
* purpose: list specific players according to searchstring
* params: findstring, findpassnr
* returns: renders Page with Browsebar+PlayerTable
*/
function listall($findstr = '', $findpass = '', $firstLetter = '')
{
# zeigt einen Table mit einer SpielerListe an
global $dbi, $realm_id, $playercode, $usertoken;
if (sizeof($usertoken['registermap']) < 1) {
die_red('Err58:RegisterMap');
}
if (strlen($findstr) < 1 && strlen($findpass) < 1 && strlen($firstLetter) < 1) {
$findstr = 'A';
}
$aTH = array('Aktiv', 'Vorname', 'Nachname', 'Key-1', 'Key-2', 'PLZ', 'Wohnsitz');
$RS = DB_listPlayers($dbi, 0, $findstr, '', $findpass, '', '', $firstLetter);
$target = $playercode . '?func=edit&vpid=%P1%';
$ROWS = RecordsetToClickTable($RS, 0, $target, 0);
// OUTPUT //
echo setPageTitle('<h3>Liste::Spielereinträge ' . $findstr . '</h3>');
echo LastNameBrowseBar($firstLetter);
OpenTable('browse');
echo ArrayToTableHead($aTH);
echo $ROWS;
CloseTable();
debug('Anzahl der gefundenen Spieler = ' . sizeof($RS));
}
开发者ID:robmat,项目名称:samplebator,代码行数:28,代码来源:dso_player.php
示例5: setPageTitle
<!-- REMOVAL POST PAGE -->
<?php
setPageTitle('Supression de billet');
if ($_SESSION['rank_id'] != 1) {
goPage('accueil');
}
?>
<div class="row">
<div class="large-12 medium-12 small-12 columns">
<div class="panel">
<?php
$post_id = $_GET['post_id'];
$erreur = FALSE;
if (isset($_POST['delete']) && $_POST['delete']) {
$link = connectDB();
$req = "DELETE FROM hella_posts\n \t\tWHERE hella_posts.post_id = " . $post_id;
$que = mysqli_query($link, $req) or die($req);
// Sitemap & RSS flux refresh
sitemapGen();
rssGen();
$_SESSION['textInfo'] = 'Le billet a été supprimé.';
goPage('information');
} else {
?>
<h1>
Suppression de post
</h1>
<?php
if (is_null($post_id)) {
开发者ID:Helladan,项目名称:helladan_website,代码行数:31,代码来源:postRemoval.php
示例6: setPageTitle
<?php
require "template.php";
# Now set the title of the page:
setPageTitle("A Look At Progress");
# Make the header.
generateHeader($_SERVER['PHP_SELF']);
?>
<div class="textheader">FreeGLUT 3.0 an onwards</div>
<p>
Major work, its status and planned milestone. <a
href="help.php">Help</a> on any of these plans is very welcome! Fork the
<a href="">github repository</a>, <a
href="http://lists.sourceforge.net/lists/listinfo/freeglut-developer">join</a>
and contact us on the <a
href="mailto:[email protected]">freeglut-developer</a>
mailing list to discuss your plans, and get cracking!</p>
<table>
<tr>
<th>Feature</th><th>Status</th><th>Milestone</th></tr>
<tr><td>Android port</td><td>Basic but complete functionality by <a href="http://www.beuc.net/">Sylvain
Beucler</a>, but there are <a href=docs/android.php#roadmap>todo
points</a></td><td>Basic functionality as is now done: 3.0. Future
enhancements: 3.0 or later.</td></tr>
<tr><td>BlackBerry 10 port</td><td>Basic but complete functionality
by <a href="https://github.com/rcmaniac25">Vinnie
Simonetti</a>.</td><td>Basic functionality as is now done: 3.0. Future
enhancements: 3.0 or later.</td></tr>
开发者ID:Enseed,项目名称:FreeGLUT,代码行数:30,代码来源:progress.php
示例7: setPageTitle
<?php
require "../template.php";
# Now set the title of the page:
setPageTitle("Installation Instructions");
# Make the header.
generateHeader($_SERVER['PHP_SELF']);
?>
<div class="textheader">How to install freeglut...</div>
<p>It's not *that* hard...</p>
<p>Presently, there are few pre-packaged installs, so the recommended method for most users is to follow these instructions. Even if you have a package system that includes freeglut, you may wish to manually install for a variety of reasons. A likely reason is simply that the latest version of freeglut may not have been packaged.</p>
<p>So...</p>
<div class="textheader">Download freeglut</div>
<p>First, you need to download a freeglut release. Newer is generally better, but unless you know what you're doing, you should use a release marked "Stable." So download the newest Stable release that you can. (On the other hand, if you discover a bug and want to report it, it is helpful to try to run the "current" freeglut, as we have been known to fix some bugs before they are reported.)</p>
<div class="textheader">Untar and configure the packages</div>
<p>Copy the tarball you downloaded into a temporary directory. Untar it as follows:</p>
<pre>zcat freeglut-2.2.0.tar.bz2 | tar -vxf -</pre>
<div class="textheader">Change to the resulting directory:</div>
<pre>cd freeglut-2.X.X</pre>
<div class="textheader">Now, configure the packages:</div>
<pre>./configure</pre>
<p>NetBSD users may need a slightly different command:</p>
开发者ID:Enseed,项目名称:FreeGLUT,代码行数:30,代码来源:install.php
示例8: elseif
if (!$content['struct'][$content['cat_id']]['acat_opengraph']) {
$content['opengraph']['support'] = false;
}
// set search status for current category
$cache_searchable = $content['struct'][$content['cat_id']]['acat_nosearch'];
$content['list_mode'] = true;
if ($aktion[1]) {
// render page based on article
include_once PHPWCMS_ROOT . "/include/inc_front/content.article.inc.php";
$content['list_mode'] = false;
} elseif (!empty($content['struct'][$content['cat_id']]['acat_pagetitle'])) {
// a custom pagetitle for structure level exists
$content["pagetitle"] = $content['struct'][$content['cat_id']]['acat_pagetitle'];
$content['opengraph']['title'] = $content["pagetitle"];
} else {
$content["pagetitle"] = setPageTitle($content["pagetitle"], $content['struct'][$content['cat_id']]['acat_name'], '');
$content['opengraph']['title'] = $content['struct'][$content['cat_id']]['acat_name'];
}
// Force overwritten canonical link
if ($content['struct'][$content['cat_id']]['acat_canonical']) {
$content['overwrite_canonical'] = $content['struct'][$content['cat_id']]['acat_canonical'];
}
if ($content['overwrite_canonical']) {
$_test_canonical_schema = substr($content['overwrite_canonical'], 0, 4);
if ($_test_canonical_schema !== 'http') {
$content['overwrite_canonical'] = ltrim('/');
if ($_test_canonical_schema === '{SIT') {
$content['overwrite_canonical'] = str_replace('{SITE}', PHPWCMS_URL, $content['overwrite_canonical']);
} else {
$content['overwrite_canonical'] = PHPWCMS_URL . $content['overwrite_canonical'];
}
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:content.func.inc.php
示例9: setPageTitle
<!-- QUESTION/ANSWER CREATION PAGE -->
<?php
setPageTitle('Création de Question/Réponse');
if ($_SESSION['rank_id'] != 1) {
goPage('accueil');
} else {
$emptyQuestion = FALSE;
$emptyAnswer = FALSE;
$emptyIllustration = FALSE;
$fileError = FALSE;
?>
<div class="row">
<div class="large-12 medium-12 small-12 columns">
<div class="panel">
<?php
if (isset($_POST['save']) && $_POST['save'] && isset($_POST['question']) && !empty($_POST['question']) && isset($_POST['answer']) && !empty($_POST['answer']) && isset($_FILES['illustration']) && $_FILES['illustration']['error'] == 0 && isset($_POST['illustrationName']) && !empty($_POST['illustrationName'])) {
$question = htmlentities($_POST['question'], ENT_QUOTES);
$answer = htmlentities($_POST['answer'], ENT_QUOTES);
$fileExtension = strtolower(end(explode('.', basename($_FILES['illustration']['name']))));
if ($fileExtension == 'php' or $fileExtension == 'html') {
echo 'Echec du téléchargement du fichier.';
} else {
$illustrationName = htmlentities($_POST['illustrationName'], ENT_QUOTES) . '.' . $fileExtension;
$uploadFile = 'img/answer/' . $illustrationName;
if (move_uploaded_file($_FILES['illustration']['tmp_name'], $uploadFile)) {
$link = connectDB();
$req = "INSERT INTO hella_faq (faq_question, faq_answer, faq_illustration_name)\n\t\t\t\t\t\t\t\t\t\t\tVALUES ('" . $question . "', '" . $answer . "', '" . $illustrationName . "')";
$que = mysqli_query($link, $req) or die($req);
开发者ID:Helladan,项目名称:helladan_website,代码行数:31,代码来源:qaCreation.php
示例10: elseif
if ($row['shopprod_description0']) {
$row['meta_description'] = $row['shopprod_description0'];
} elseif ($row['shopprod_description1']) {
$row['meta_description'] = $row['shopprod_description1'];
} else {
$row['meta_description'] = '';
}
if ($row['meta_description']) {
$row['meta_description'] = trim(strip_tags(strip_bbcode($row['meta_description'])));
$row['meta_description'] = getCleanSubString($row['meta_description'], 75, '', 'word');
$row['meta_description_rendered'] = true;
} else {
$row['meta_description_rendered'] = false;
}
if (!empty($row['shopprod_overwrite_meta'])) {
$content["pagetitle"] = setPageTitle($content["pagetitle"], $article['cat'], $shop_pagetitle);
if ($row['meta_description_rendered']) {
set_meta('description', $row['meta_description']);
}
}
if ($row['shopprod_opengraph']) {
$content['opengraph']['type'] = 'og:product';
$content['opengraph']['title'] = $shop_pagetitle;
$content['opengraph']['url'] = abs_url(array('shop_detail' => $shop_detail_id), array('shop_cat', 'shop_cart', 'phpwcms_output_action', 'print', 'phpwcms-preview', 'unsubscribe', 'subscribe'));
if ($row['meta_description_rendered']) {
$content['opengraph']['description'] = $row['meta_description'];
}
} else {
$content['opengraph']['support'] = false;
}
// Update product view count
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:31,代码来源:frontend.render.php
示例11: setPageTitle
<!-- 404 PAGE -->
<?php
setPageTitle('404');
?>
<div class="row">
<div class="large-12 medium-12 small-12 columns">
<div style="text-align: center"
class="panel">
<img src="img/404_anthony_godard.png">
<p style="font-size: 30px;
font-weight: bold; ">
ERREUR 404
</p>
<p style="font-size: 20px;
font-weight: bold; ">
La page demandée n'a pas été trouvée
</p>
</div>
</div>
</div>
开发者ID:Helladan,项目名称:helladan_website,代码行数:22,代码来源:404.php
示例12: setPageTitle
<!-- REMOVAL Q/A PAGE -->
<?php
setPageTitle('Supression de Question/Réponse');
if ($_SESSION['rank_id'] != 1) {
goPage('accueil');
} else {
?>
<div class="row">
<div class="large-12 medium-12 small-12 columns">
<div class="panel">
<?php
$qa_id = $_GET['qa_id'];
$erreur = FALSE;
if (isset($_POST['delete']) && $_POST['delete']) {
$link = connectDB();
$req = "DELETE FROM hella_faq\n \t\t\tWHERE faq_id = " . $qa_id;
$que = mysqli_query($link, $req) or die($req);
$_SESSION['textInfo'] = 'La question a été supprimée.';
goPage('information');
} else {
?>
<h1>
Suppression de Question/Réponse
</h1>
<?php
if (is_null($qa_id)) {
goPage('accueil');
}
$link = connectDB();
开发者ID:Helladan,项目名称:helladan_website,代码行数:31,代码来源:qaRemoval.php
示例13: _uploadMembership
function _uploadMembership($file, $membertype_id)
{
#
# // add a payment record to this player ... depending on OEDV / OEDSO
# // passnr;start;end;firstname;lastname;vereinID => $membertype_id
# //
$fp = fopen($file, "r");
while ($lineIn = fgetcsv($fp, 1000, ";")) {
if (sizeof($lineIn) < 6) {
die_red('Error517:DataSetSize:' . debug($lineIn));
}
if (strlen($lineIn[5]) < 5) {
die_red('Err518:NoValidVereinsZVR:' . debug($lineIn));
}
if (strlen($lineIn[1]) < 8) {
die_red('Err519:MalformedStartDate:' . debug($lineIn));
}
if (strlen($lineIn[2]) < 8) {
die_red('Err519:MalformedEndDate:' . debug($lineIn));
}
$RS[] = $lineIn;
}
fclose($fp);
foreach ($RS as $R) {
// check if player exist -> msg
// check if verein exist -> msg
// action .... -> msg
$PID = dso_checkPlayerByPassNr($R[0]);
if ($PID > 0) {
$aMSG[] = '<font color=green>Identified Player ' . $R[3] . ' ' . $R[4] . ' as unique ID:' . $PID . '</font>';
$VID = dso_verifyVereinZVR($R[5]);
if ($VID > 0) {
$aMSG[] = '<font color=green>Player OK, Verein OK -- adding Membership</font>';
$aMSG[] = dso_insupdmembership(0, $PID, $VID, $membertype_id, $R[0], $R[1], $R[2]);
} else {
$aMSG[] = '<font color=red>Verein with ID ' . $R[5] . ' not found or no rights to register players for this Verein</font>';
$aMSG[] = '<font color=red>REJECTED LINE:' . $R[0] . ';' . $R[1] . ';' . $R[2] . ';' . $R[3] . ';' . $R[4] . ';' . $R[5] . ';</font>';
}
} else {
$aMSG[] = '<font color=red>Player ' . $R[3] . ' ' . $R[4] . ' can not be identified, no membership added</font>';
$aMSG[] = '<font color=red>REJECTED LINE:' . $R[0] . ';' . $R[1] . ';' . $R[2] . ';' . $R[3] . ';' . $R[4] . ';' . $R[5] . ';</font>';
}
}
// == OUTPUT == //
// ============ //
echo setPageTitle('Log Output from Bulk IMPORT (Records:' . sizeof($RS) . ') for Type=' . $membertype_id);
echo '<p>The loader is doing some minimum checks on the expected fieldvalues - rejected entries are shown in <font color="red">red</font>.</p>';
OpenTable('output');
foreach ($aMSG as $MSG) {
echo '<tr><td>' . $MSG . '</td></tr>';
}
CloseTable();
}
开发者ID:robmat,项目名称:samplebator,代码行数:53,代码来源:egate.php
示例14: setPageTitle
<?php
require "template.php";
# Now set the title of the page:
setPageTitle("Basic Page");
# Make the header.
generateHeader($_SERVER['PHP_SELF']);
?>
<div class="textheader">What?</div>
<p>freeglut is a completely OpenSourced alternative to the OpenGL Utility Toolkit (GLUT) library. GLUT was originally written by Mark Kilgard to support the sample programs in the second edition OpenGL 'RedBook'. Since then, GLUT has been used in a wide variety of practical applications because it is simple, widely available and highly portable.</p>
<?php
generateFooter();
开发者ID:Enseed,项目名称:FreeGLUT,代码行数:14,代码来源:basic_page.php
示例15: setPageTitle
<!-- POST CREATION PAGE -->
<?php
setPageTitle('Création de billet');
// If no admin, return to index
if ($_SESSION['rank_id'] != 1) {
goPage('accueil');
} else {
$emptyTitle = FALSE;
$emptyTag = FALSE;
$emptyContent = FALSE;
?>
<div class="row">
<div class="large-12 medium-12 small-12 columns">
<div class="panel">
<?php
/*//////////////////////////////////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////// Process ////////////////////////////////////////*/
/*//////////////////////////////////////////////////////////////////////////////////////////*/
// If data in $_POST
if (isset($_POST['save']) && $_POST['save'] && isset($_POST['title']) && !empty($_POST['title']) && isset($_POST['tag']) && !empty($_POST['tag']) && isset($_POST['content']) && !empty($_POST['content'])) {
// Data processing and set in variables
$title = htmlentities($_POST['title'], ENT_QUOTES);
$tag = htmlentities($_POST['tag'], ENT_QUOTES);
$content = htmlentities($_POST['content'], ENT_QUOTES);
$link = connectDB();
$req = "INSERT INTO hella_posts (post_title,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t post_tag,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t post_content,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t user_id)\n\t\t\t\t\t\t\t\t\tVALUES ('" . $title . "',\n\t\t\t\t\t\t\t\t\t\t\t'" . $tag . "',\n\t\t\t\t\t\t\t\t\t\t\t'" . $content . "',\n\t\t\t\t\t\t\t\t\t\t\t" . $_SESSION['user_id'] . ")";
$que = mysqli_query($link, $req) or die($req);
// Sitemap & RSS flux refresh
开发者ID:Helladan,项目名称:helladan_website,代码行数:31,代码来源:postCreation.php
示例16: setPageTitle
<?php
require "template.php";
# Now set the title of the page:
setPageTitle("News");
# Make the header.
generateHeader($_SERVER['PHP_SELF']);
?>
<div class="news-item">
<div class="news-header">freeglut 2.8.1 Released [5 April 2013]</div>
<p>A new bugfix release of "freeglut" is now available. Here is a
incomplete list of fixes and enhancements:</p>
<ul>
<li>Visual Studio 2012 project files, and a fix for the disappearing
windows with this toolset.</li>
<li>X11 menu regression fixed, menu behavior improved on Windows.</li>
<li>Now using monotonic clock on X11.</li>
<li>GameMode now doesn't attempt to change unspecified display params to
arbitrary defaults, and not changing display mode when unnecessary to
avoid flicker.</li>
<li>On Windows, windows no longer attain focus as soon as the mouse
enters them</li>
<li>Various demo enhancements.</li>
<li>Many bugs have been fixed.</li>
</ul>
</div>
<div class="news-item">
<div class="news-header">freeglut 2.8.0 Released [2 January 2012]</div>
<p>After two years of quiet maintenance, a new version of "freeglut" has been released. Here are some of the major changes:</p>
开发者ID:Enseed,项目名称:FreeGLUT,代码行数:31,代码来源:news.php
示例17: setPageTitle
<!-- CONTACT PAGE -->
<?php
setPageTitle('Contact');
?>
<div class="row">
<div class="large-12 medium-12 small-12 columns">
<div class="panel">
<?php
/*//////////////////////////////////////////////////////////////////////////////////////////*/
/*//////////////////////////////////////// Process /////////////////////////////////////////*/
/*//////////////////////////////////////////////////////////////////////////////////////////*/
$emptyName = FALSE;
$emptyEmail = FALSE;
$emptyEmailVerify = FALSE;
$notSameEmail = FALSE;
$emptySubject = FALSE;
$emptyMessage = FALSE;
$displayForm = TRUE;
// If ther is the good data in $_POST
if (isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['Email']) && !empty($_POST['Email']) && $_POST['Email'] == $_POST['EmailVerify'] && isset($_POST['subject']) && !empty($_POST['subject']) && isset($_POST['message']) && !empty($_POST['message'])) {
// Data processing
$name = htmlentities($_POST['name'], ENT_QUOTES);
$Email = htmlentities($_POST['Email'], ENT_QUOTES);
$subject = $_POST['subject'];
$message = $_POST['message'];
$recipient = getSiteEmail();
// If data are good to send a email or not, appropriate message
if (sendEmail($name, $Email, $subject, $message, $recipient)) {
开发者ID:Helladan,项目名称:helladan_website,代码行数:31,代码来源:contact.php
示例18: setPageTitle
<!-- QUESTION/ANSWER ILLUSTRATION EDITION PAGE -->
<?php
setPageTitle('Edition de l\'image du projet');
if ($_SESSION['rank_id'] != 1) {
goPage('accueil');
} else {
?>
<div class="row">
<div class="large-12 medium-12 small-12 columns">
<div class="panel">
<?php
$project_id = $_GET['project_id'];
$erreur = FALSE;
if (isset($_POST['save']) && $_POST['save']) {
$fileExtension = strtolower(end(explode('.', basename($_FILES['image']['name']))));
if ($fileExtension == 'php' or $fileExtension == 'html') {
echo 'Erreur sur le fichier.';
} else {
$image = htmlentities($_POST['image'], ENT_QUOTES) . '.' . $fileExtension;
$uploadFile = 'img/project/' . $image;
if (move_uploaded_file($_FILES['image']['tmp_name'], $uploadFile)) {
$link = connectDB();
$req = "UPDATE hella_projects\n\t\t\t\t\t\t\t\t\t\t\tSET project_image ='" . $image . "'\n\t\t\t\t\t\t\t\t\t\t\tWHERE project_id = " . $project_id;
$que = mysqli_query($link, $req) or die($req);
$_SESSION['textInfo'] = 'Enregistrement effectué.';
goPage('information');
} else {
echo 'Echec du téléchargement du fichier.';
}
开发者ID:Helladan,项目名称:helladan_website,代码行数:31,代码来源:projectImageEdition.php
示例19: _blank
function _blank()
{
echo setPageTitle('Liga System LSDB, ein Informationsservice des Dartsverband');
echo '<div id=\'maincontent\'>';
echo '<p>Die von dir gewählte Funktion ist noch nicht verfügbar ...</p>';
echo '</div>';
}
开发者ID:robmat,项目名称:samplebator,代码行数:7,代码来源:ls_system.php
示例20: decode_json
<?php
require $_SERVER['DOCUMENT_ROOT'] . '/includes/config.inc';
$meta = decode_json(realpath("meta.json"));
extract($meta, EXTR_OVERWRITE);
setPageTitle($title);
require "../../../resources/template.inc";
开发者ID:rahulmail345,项目名称:dojox_app_tutorial,代码行数:7,代码来源:index.php
注:本文中的setPageTitle函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论