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


PHP blocks函数代码示例

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


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

示例1: themefooter

function themefooter()
{
    global $cpgtpl;
    blocks('right');
    $cpgtpl->assign_vars(array('B_R_VISIBLE' => hideblock('601') ? 'style="display: none"' : '', 'S_FOOTER' => footmsg()));
    $cpgtpl->set_filenames(array('footer' => 'footer.html'));
    $cpgtpl->display('footer');
}
开发者ID:cbsistem,项目名称:nexos,代码行数:8,代码来源:theme.php

示例2: themefooter

function themefooter()
{
    echo "</td>";
    if (defined('INDEX_FILE')) {
        echo "<td>&nbsp;&nbsp;</td><td valign=\"top\">";
        blocks("right");
    }
    echo "</tr></table></td></tr></table>";
    footmsg();
}
开发者ID:rotvulpix,项目名称:php-nuke,代码行数:10,代码来源:theme.php

示例3: themefooter

function themefooter()
{
    if ($GLOBALS['index'] == 1) {
        echo "</td>\n              <td>&nbsp;&nbsp;</td>\n              <td valign=\"top\" width=\"150\" bgcolor=\"{$GLOBALS['bgcolor1']}\">";
        blocks('right');
    }
    echo "</td></tr></table>\n          </td></tr></table>\n          <center>";
    footmsg();
    echo "</center>";
}
开发者ID:BackupTheBerlios,项目名称:microbuilder,代码行数:10,代码来源:theme.php

示例4: themefooter

function themefooter()
{
    global $index;
    echo "</td>";
    if ($index == 1) {
        echo "<td>&nbsp;&nbsp;</td><td valign=\"top\">";
        blocks(right);
    }
    echo "</tr></table></td></tr></table>";
    footmsg();
}
开发者ID:BackupTheBerlios,项目名称:domsmod-svn,代码行数:11,代码来源:theme.php

示例5: foot

function foot()
{
    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name;
    if ($home == 1) {
        blocks(Down);
    }
    if ($module == 1 and file_exists("modules/{$name}/copyright.php")) {
        $cpname = ereg_replace("_", " ", $name);
        echo "<div align=\"right\"><a href=\"javascript:openwindow()\">{$cpname} &copy;</a></div>";
    }
    if ($module == 1 and file_exists("modules/{$name}/admin/panel.php")) {
        echo "<br>";
        OpenTable();
        include "modules/{$name}/admin/panel.php";
        CloseTable();
    }
    themefooter();
    echo "</body>\n" . "</html>";
    die;
}
开发者ID:BackupTheBerlios,项目名称:domsmod-svn,代码行数:20,代码来源:footer.php

示例6: foot

function foot()
{
    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $name, $admin, $commercial_license;
    if (defined('HOME_FILE')) {
        blocks("Down");
    }
    if (basename($_SERVER['PHP_SELF']) != "index.php" and defined('MODULE_FILE') and file_exists("modules/{$name}/copyright.php") && $commercial_license != 1) {
        $cpname = str_replace("_", " ", $name);
        echo "<div align=\"right\"><a href=\"javascript:openwindow()\">{$cpname} &copy;</a></div>";
    }
    if (basename($_SERVER['PHP_SELF']) != "index.php" and defined('MODULE_FILE') and file_exists("modules/{$name}/admin/panel.php") && is_admin($admin)) {
        echo "<br>";
        OpenTable();
        include "modules/{$name}/admin/panel.php";
        CloseTable();
    }
    themefooter();
    if (file_exists("includes/custom_files/custom_footer.php")) {
        include_secure("includes/custom_files/custom_footer.php");
    }
    echo "</body>\n</html>";
    ob_end_flush();
    die;
}
开发者ID:rotvulpix,项目名称:php-nuke,代码行数:24,代码来源:footer.php

示例7: adm_translate

                  <div class="form-group">
                     <label class="form-control-label" for="index">Index</label>
                     <input class="form-control" type="number" name="index" id="index" min="0" max="9999" />
                  </div>
                  <div class="form-group">
                     <label class="form-control-label" for="Scache">' . adm_translate("Rétention") . '</label>
                     <input class="form-control" type="number" name="Scache" id="Scache" min="0" max="99999" value="60" />
                     <span class="help-block">' . adm_translate("Chaque bloc peut utiliser SuperCache. La valeur du délai de rétention 0 indique que le bloc ne sera pas caché (obligatoire pour le bloc function#adminblock).") . '</span>
                  </div>
                  <div class="form-group">
                     <label class="checkbox-inline text-danger" for="SHTML">
                        <input class="" type="checkbox" name="SHTML" id="SHTML" value="ON" />HTML
                     </label>
                     <label class="checkbox-inline text-danger" for="CSS">
                        <input class="" type="checkbox" name="CSS" id="CSS" value="ON" />CSS
                     </label>
                  </div>
            </fieldset>
         </div>
      </div>
      <div class="form-group">
         <button class="btn btn-primary-outline btn-block" type="submit"><i class ="fa fa-check fa-lg"></i>&nbsp;' . adm_translate("Valider") . '</button>
     </div>
   </form>';
    include "footer.php";
}
switch ($op) {
    case "blocks":
        blocks();
        break;
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:31,代码来源:blocks.php

示例8: Template

$now=time();
$date=date("l, dS  F, Y  - h:i:s A",$now);
$headTemplate= new Template();
$header_array=array("header1.gif","header2.gif","header4.jpg");
$key = array_rand($header_array);
$headTemplate->assign("lang",$lang);
$headTemplate->assign("site_title","$config[site_title]-$page_title");
$headTemplate->assign("description",$config[site_desc]);
$headTemplate->assign("keywords",$config[site_keywords]);
$headTemplate->assign("author","");
$headTemplate->assign("copyright",$config[$site_title]);
$headTemplate->assign("date",$date);
$headTemplate->assign("random_header",$header_array[$key]);
$headTemplate->display("header.tpl");
if(($index==1) || ($index==3)){
 blocks("left");
}
$headTemplate->display("left_center.tpl");

//Url Rewritting Settings.

function replace_for_mod_rewrite(&$s){
	$in =array(
		"'(?<!/)index.php\?m=fare&id=([0-9]*)'",
		"'(?<!/)index.php\?m=package&file=packagedetails&id=([0-9]*)'"
		);
		$out=array(
		"fare\\1.html",
		"package\\1.html"
	);
		$s = preg_replace("(&amp;|&)","&", $s);
开发者ID:bogiesoft,项目名称:TravelAgentv2,代码行数:31,代码来源:header.php

示例9: validBlocks

function validBlocks($board)
{
    $all_values = [1, 2, 3, 4, 5, 6, 7, 8, 9];
    $blocks = blocks($board);
    foreach ($blocks as $row) {
        sort($row);
        if ($row != $all_values) {
            return false;
        }
    }
    return true;
}
开发者ID:peter-wilkins-mayden,项目名称:sudoku-in-php,代码行数:12,代码来源:Sudoku.php

示例10: Header

<?

//Desc : File Loader

if (eregi("footer.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}
require_once("mainfile.php");
global $index,$config;
$tpl= new Template();
global $index;
  if (($index ==1) || ($index==2)) {
		$tpl->display("center_right.tpl");
		blocks(right);
  }
$tpl->assign("copyright",$config[site_title]);
$tpl->display("footer.tpl");
$contents = ob_get_contents(); // store buffer in $contents
ob_end_clean(); // delete output buffer and stop buffering
echo replace_for_mod_rewrite($contents); //display modified buffer to screen

?>
开发者ID:bogiesoft,项目名称:TravelAgentv2,代码行数:23,代码来源:footer.php

示例11: test_blocks

 public function test_blocks()
 {
     $this->assertEquals([[0, 3, 5, 6, 8, 9], [0, 1, 5, 7, 9], [0, 6], [0, 4, 7, 8], [0, 2, 3, 6, 8], [0, 1, 3, 6], [0, 6], [0, 1, 4, 8, 9], [0, 2, 5, 7, 8, 9]], blocks([[5, 3, 0, 0, 7, 0, 0, 0, 0], [6, 0, 0, 1, 9, 5, 0, 0, 0], [0, 9, 8, 0, 0, 0, 0, 6, 0], [8, 0, 0, 0, 6, 0, 0, 0, 3], [4, 0, 0, 8, 0, 3, 0, 0, 1], [7, 0, 0, 0, 2, 0, 0, 0, 6], [0, 6, 0, 0, 0, 0, 2, 8, 0], [0, 0, 0, 4, 1, 9, 0, 0, 5], [0, 0, 0, 0, 8, 0, 0, 7, 9]]));
     $this->assertEquals([[1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9]], blocks([[5, 3, 4, 6, 7, 8, 9, 1, 2], [6, 7, 2, 1, 9, 5, 3, 4, 8], [1, 9, 8, 3, 4, 2, 5, 6, 7], [8, 5, 9, 7, 6, 1, 4, 2, 3], [4, 2, 6, 8, 5, 3, 7, 9, 1], [7, 1, 3, 9, 2, 4, 8, 5, 6], [9, 6, 1, 5, 3, 7, 2, 8, 4], [2, 8, 7, 4, 1, 9, 6, 3, 5], [3, 4, 5, 2, 8, 6, 1, 7, 9]]));
 }
开发者ID:peter-wilkins-mayden,项目名称:sudoku-in-php,代码行数:5,代码来源:SudokuTest.php

示例12: head

##################################################
# Include some common header for HTML generation #
##################################################
$header = 1;
function head()
{
    global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
    $ThemeSel = get_theme();
    include "themes/{$ThemeSel}/theme.php";
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
    echo "<html>\n";
    echo "<head>\n";
    echo "<title>{$sitename} {$pagetitle}</title>\n";
    include "includes/meta.php";
    include "includes/javascript.php";
    if (file_exists("themes/{$ThemeSel}/images/favicon.ico")) {
        echo "<link REL=\"shortcut icon\" HREF=\"themes/{$ThemeSel}/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
    }
    echo "<LINK REL=\"StyleSheet\" HREF=\"themes/{$ThemeSel}/style/style.css\" TYPE=\"text/css\">\n\n\n";
    include "includes/my_header.php";
    echo "\n\n\n</head>\n\n";
    themeheader();
}
online();
head();
include "includes/counter.php";
global $home;
if ($home == 1) {
    message_box();
    blocks(Center);
}
开发者ID:BackupTheBerlios,项目名称:domsmod-svn,代码行数:31,代码来源:header.php


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