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


PHP setTitle函数代码示例

本文整理汇总了PHP中setTitle函数的典型用法代码示例。如果您正苦于以下问题:PHP setTitle函数的具体用法?PHP setTitle怎么用?PHP setTitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了setTitle函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setHead

function setHead($title = '', $extra = '', $charset = '')
{
    echo '<head>
    ' . setCharset() . '
    ' . setTitle($title) . '
    ' . setRss() . '
    <style type="text/css" media="all">
        @import "css/defaults.css";
        @import "css/messages.css";
    </style>
    <!-- Begin the rounding blurb and use RUZEE -->
    <script type="text/javascript" src="js/sb.js"></script>
    <script type="text/javascript">
            var border = RUZEE.ShadedBorder.create({ corner:10, shadow:16,  border:1 });
            var minicontainer = RUZEE.ShadedBorder.create({ corner:7, shadow:0,  border:1 });
    </script>';
    echo !empty($extra) ? "\t" . $extra . "\n" : "\n";
    echo "</head>\n";
    #[TODO] Create a good favicon <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
}
开发者ID:Apogeus,项目名称:apogeus,代码行数:20,代码来源:utils.php

示例2: array

             
     	    $validation = $validateRegister->check($_POST, array(
     	            'name' => array('required' => true),
     	            'password' => array('required' => true)
       				));
     */
     $_SESSION["error"] = login($user, $pass);
     header("Location: DTTadmin.php?a=admin");
 } else {
     if ($action == "admin") {
         if (!isset($_SESSION["name"])) {
             header("Location: DTTadmin.php?a=login");
         } else {
             //var_dump($_SESSION["name"]);
             $admin = file_get_contents("widgetAdmin.html");
             echo setTitle($template, "", $admin);
             require_once "adminArt.html";
             $query = $pdo->prepare("SELECT * FROM articleTable");
             $count = 0;
             if ($query->execute()) {
                 while ($row = $query->fetch()) {
                     $count += 1;
                     echo showTable($row, $count);
                 }
             }
             $link = '</table> <br/>' . $count . ' articles in total<br/><br/><a href = "article.php?a=admin&b=add">Add a New Article</a>';
             echo setFoot($link);
         }
     } else {
         if ($action == "logout") {
             logout();
开发者ID:SRferrero,项目名称:DTTtask,代码行数:30,代码来源:DTTadmin.php

示例3: pushKeywords

<?php

pushKeywords('web', 'tool', 'easy', 'simple');
loadModules('strings.php');
setTitle('Tools for the Compuationally Impaired');
开发者ID:BigDub,项目名称:soggypancakes,代码行数:5,代码来源:tools.php

示例4: redirect

<?php

require_once './common.php';
//检查漫游是否开启
if (!$_SITE_CONFIG['my_status']) {
    redirect(SITE_URL, 5, '抱歉:漫游已关闭。系统将在5秒后自动跳转至首页');
}
if (empty($_GET['id'])) {
    exit('请先选择应用');
}
$_GET['id'] = intval($_GET['id']);
$db_prefix = getDbPrefix();
$app = doQuery("SELECT * FROM {$db_prefix}myop_myapp WHERE `appid` = {$_GET['id']} LIMIT 1");
$app = $app[0];
setTitle($app['appname']);
//漫游
$my_appId = $_GET['id'];
$my_suffix = base64_decode(urldecode($_GET['my_suffix']));
$my_prefix = MYOP_URL . '/';
if (!$my_suffix) {
    header('Location: userapp.php?id=' . $my_appId . '&my_suffix=' . urlencode(base64_encode('/')));
    exit;
}
if (preg_match('/^\\//', $my_suffix)) {
    $url = 'http://apps.manyou.com/' . $my_appId . $my_suffix;
} else {
    if ($my_suffix) {
        $url = 'http://apps.manyou.com/' . $my_appId . '/' . $my_suffix;
    } else {
        $url = 'http://apps.manyou.com/' . $my_appId;
    }
开发者ID:laiello,项目名称:thinksns-2,代码行数:31,代码来源:userapp.php

示例5: getCDataTag

        echo getCDataTag(false);
        ?>
    </script>
  </head>
  <body onload="JavaScript:defaultOnload();">
    <?php 
        echo getTopFrame();
        ?>
    <?php 
        echo getNoScript("<convert>#label=22<convert>", "<convert>#label=23<convert>");
        ?>
		<?php 
        echo getCloseBtn("filter_" . $_SESSION['language'] . ".php", "<convert>#label=371<convert>");
        ?>
		<div class="frame_title"><?php 
        echo setTitle("#", "filter", "<convert>#label=80<convert>", 2);
        ?>
</div><!--Erreur-->
		<div class="error"><?php 
        echo getTopBubble();
        ?>
<convert>#label=81<convert><!--Cas non traité !--><?php 
        echo getBotBubble();
        ?>
</div>
<?php 
        break;
}
?>
    <?php 
echo getBotFrame();
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:31,代码来源:massif.php

示例6: sc_convert

    if (array_key_exists($_POST['from'], $options)) {
        $from = $_POST['from'];
    }
}
if (!isempty($_POST['to'])) {
    if (array_key_exists($_POST['to'], $options)) {
        $to = $_POST['to'];
    }
}
$input = null;
$output = null;
if (!isempty($_POST['input'])) {
    $input = $_POST['input'];
    $output = sc_convert($input, $from, $to);
}
setTitle('String Converter::' . $SP_TITLE);
include ROOT . '/header.php';
?>
<h1>String Converter</h1>
<h2><?php 
echo $options[$from] . ' to ' . $options[$to];
?>
</h2>
<span>The input needs to be the right length for a byte of each type:</span>
<ul>
<li>ASCII: 1 character long. It takes a lot of effort to mess this one up.</li>
<li>Hexadecimal: 2 characters long. e.x. "0f" instead of just "f"</li>
<li>Decimal: 3 characters long, do not exceed 255. e.x. "097" instead of just "97"</li>
<li>Binary: 8 characters long. e.x. "00000101" instead of just "101"</li>
</ul>
<span>If you are short any characters the conversion will become offset and the last byte will be ignored.</span>
开发者ID:BigDub,项目名称:soggypancakes,代码行数:31,代码来源:stringconvert.php

示例7: file_get_contents

<?php

require_once "DTTCore.php";
$template = file_get_contents("DTTHeader.html");
echo setTitle($template);
try {
    $query = $pdo->prepare("SELECT * FROM articleTable ORDER BY id DESC LIMIT 5");
    if ($query->execute()) {
        while ($row = $query->fetch()) {
            echo display($row);
        }
    }
} catch (Exception $e) {
    $pdo->rollBack();
    echo "Fail: " . $e->getMessage();
}
$query = null;
$pdo = null;
//Override link for footer.
$link = '<a href = "article.php?a=allStories">Article Archive</a>';
echo setFoot($link);
开发者ID:SRferrero,项目名称:DTTtask,代码行数:21,代码来源:index.php

示例8: setTitle

<?php

include_once 'base.php';
setTitle("로그인");
if (isset($_POST['id']) && isset($_POST['pw'])) {
    $result = login($_POST['id'], $_POST['pw']);
    if ($result[0][0] == 'success') {
        echo "string";
        $_SESSION['user_id'] = $result[1][0];
        $_SESSION['user_name'] = $result[1][1];
        $_SESSION['user_level'] = $result[1][2];
        echo "<meta http-equiv='refresh' content='0;url=todaysExercise.php'>";
    } else {
        // 존재하지 않는 아이디거나 비밀번호가 틀림
        echo '<script type="text/javascript">';
        echo 'alert("비밀번호가 틀렷거나 등록되지 않은 아이디 입니다.")';
        echo '</script>';
        $isLogin = false;
    }
} else {
    $isLogin = false;
}
startblock('content');
?>
       <h1 class="login_text">로그인</h1>
       <form action="login.php" method="post">
         <input class="input_id" type="text" name="id" value="" placeholder="id"/><br/>
         <input class="input_password" type="password" name="pw" value="" placeholder="pw"/>
         <input class="btn vtn-default login_button" type="submit" name="" value="login"/>
         <a href="register.php" class="join">회원가입</a>
       </form>
开发者ID:KeoSeong,项目名称:project,代码行数:31,代码来源:login.php

示例9: getBotMenu

            <select class="input1" style="width:100%" name="result" id="result" size="10" disabled="disabled" onclick="JavaScript:selectOnClick(event, this);"><!-- ondblclick="JavaScript:selectOnClick(event, this, event);"-->
              <option></option>
            </select>
          </td></tr></table>
          <input type="button" class="button1" id="advanced" name="advanced" style="visibility:hidden;display:none;" value="<convert>#label=310<convert>" onclick="JavaScript:advancedSearch();" /><!--Recherche avancée...-->
        </form>
        <?php 
    echo getBotMenu();
    ?>
      </div>
<?php 
}
?>
      <div class ="menu" id="help_menu">
        <?php 
echo getTopMenu('<div class="frame_title" style="margin-right:0px;">' . setTitle("#", "details", "<convert>#label=311<convert>", 1) . '</div><!--Aide &amp; contacts-->');
?>
        <ul>
          <li class ="sub_menu">
      	    <a href="contact_<?php 
echo $_SESSION['language'];
?>
.php?type=message" target="filter"><convert>#label=312<convert><!--Contacter votre administrateur/modérateur--></a>
      	  </li>

          <li class ="sub_menu">
            <?php 
$blogURL = "http://blog-" . strtolower($_SESSION['language']) . ".grottocenter.org";
if (!in_array(strtolower($_SESSION['language']), array("fr", "en"))) {
    $blogURL = "http://blog-en.grottocenter.org";
}
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:31,代码来源:details.php

示例10: define

        $type = "Admin";
        break;
    case "Login":
        $type = "Login";
        break;
}
define("PAGETYPE", $type);
$GLOBALS["C"]["pagetype"] = $type;
inc("dom-manage");
switch ($type) {
    case "Admin":
        explode("/", $uri)[1];
        if ($uri == "") {
            $uri = "index.php";
        }
        if (file_exists(HERE . "admin" . DS . $uri)) {
            inc("admin" . DS . $uri);
        } else {
            inc("admin" . DS . "404");
        }
        break;
    case "Login":
        inc("pages" . DS . "login");
        break;
    case "none":
        setTitle(L("404", true));
        inc("404");
        break;
}
//Show the Page
echo $GLOBALS["C"]["doc"]->saveHTML();
开发者ID:ZeitZumSterben,项目名称:website-cms,代码行数:31,代码来源:boot.php

示例11: addcategory

function addcategory( $option ) {
	global $savantConf, $Itemid, $mtconf;
	
	$database	=& JFactory::getDBO();
	$my		=& JFactory::getUser();
	
	# Get cat_id / link_id
	$cat_id	= JRequest::getInt('cat_id', 0);
	$link_id	= JRequest::getInt('link_id', 0);

	if ( $cat_id == 0 && $link_id > 0 ) {
		$database->setQuery( "SELECT cl.cat_id FROM (#__mt_links AS l, #__mt_cl AS cl) WHERE l.link_id = cl.link_id AND cl.main = '1' AND link_id ='".$link_id."'" );
		$cat_parent = $database->loadResult();
	} else {
		$cat_parent = $cat_id;
	}

	$database->setQuery( "SELECT cat_name FROM #__mt_cats WHERE cat_id = '".$cat_parent."' LIMIT 1" );
	$cat_name = $database->loadResult();

	$title = JText::sprintf( 'Add cat2', $cat_name);
	setTitle($title);
	

	# Pathway
	$pathWay = new mtPathWay( $cat_parent );

	# Savant Template
	$savant = new Savant2($savantConf);
	assignCommonVar($savant);
	$savant->assign('pathway', $pathWay);
	$savant->assign('cat_parent', $cat_parent);

	if ( $mtconf->get('user_addcategory') == '1' && $my->id < 1 ) {
		# Error. Please login before you can add category
		$savant->assign('error_msg', JText::_( 'Please login before addcategory' ));
		$savant->display( 'page_error.tpl.php' );
	} elseif( $mtconf->get('user_addcategory') == '-1' ) {
		# Add category is disabled
		JError::raiseError(404, JText::_('Resource Not Found'));
	} else {
		# OK. User is allowed to add category
		$savant->display( 'page_addCategory.tpl.php' );
	}

}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:46,代码来源:mtree.php

示例12: getCDataTag

    }

    <?php 
echo getCDataTag(false);
?>
    </script>
  </head>
  <body onload="JavaScript:load();">
    <?php 
echo getTopFrame();
?>
    <?php 
echo getNoScript("<convert>#label=22<convert>", "<convert>#label=23<convert>");
?>
    <div class="frame_title"><?php 
echo setTitle("home_" . $_SESSION['language'] . ".php", "home", "<convert>#label=600<convert>", 1);
?>
</div><!--Acceuil-->
    <table border="0" cellspacing="1" cellpadding="0" class="main_table">
      <tr><td>
        <!--<div>-->
        <?php 
include "home_description.php";
?>
        <!--<ul><li><?php 
//echo getAddThisButton($_SESSION['language'], 'grottocenter')
?>
</li></ul>-->
        <!--</div>-->
      </td></tr>
      <tr><td>
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:31,代码来源:home.php

示例13: __construct

 public function __construct()
 {
     setTitle('专业虚拟主机提供商');
     parent::__construct();
 }
开发者ID:srdc2014,项目名称:vhms,代码行数:5,代码来源:public.ctl.php

示例14: header

                 //who expects the own admin injectin bad querys?
                 $query = $pdo->prepare("UPDATE articleTable SET title = '{$title}', sumary = '{$sumary}', article = '{$content}', publishdate = '{$date}' WHERE id = " . $id);
                 $query->execute();
                 header("Location: DTTadmin.php?a=admin");
             }
         }
     }
     break;
 case "edit":
     $id = $_GET["c"];
     //if not null also
     if ($id == null) {
         header("Location: DTTadmin.php?a=admin");
     } else {
         $admin = file_get_contents("widgetAdmin.html");
         echo setTitle($template, "Edit Article", $admin);
         $query = $pdo->prepare("SELECT * FROM articleTable WHERE id = :id");
         $query->execute(array('id' => $id));
         $row = $query->fetch();
         echo loadFormEdit($row);
         $link = '<a href = "article.php?a=admin&b=delete&c=' . $id . '">Delete This Article</a>';
         echo setFoot($link);
     }
     break;
 case "delete":
     $id = $_GET["c"];
     //if not null delete else go admin and dont play with urls
     if (!isset($id)) {
         header("Location: DTTadmin.php?a=admin");
     }
     $query = $pdo->prepare("DELETE FROM articleTable WHERE id = :id");
开发者ID:SRferrero,项目名称:DTTtask,代码行数:31,代码来源:article.php

示例15: getCDataTag

        echo getCDataTag(false);
        ?>
    </script>
  </head>
  <body onload="JavaScript:defaultOnload();">
    <?php 
        echo getTopFrame(false);
        ?>
    <?php 
        echo getNoScript("<convert>#label=22<convert>", "<convert>#label=23<convert>");
        ?>
  	<?php 
        echo getCloseBtn("filter_" . $_SESSION['language'] . ".php", "<convert>#label=371<convert>");
        ?>
  	<div class="frame_title"><?php 
        echo setTitle("#", "popup", "<convert>#label=80<convert>", 1);
        ?>
</div>
  	<div class="error"><?php 
        echo getTopBubble();
        ?>
<convert>#label=81<convert><!--Cas non traité !--><?php 
        echo getBotBubble();
        ?>
</div>
<?php 
        break;
}
?>
    <?php 
if ($type != "topo" && $type != "author") {
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:31,代码来源:request.php


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