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


PHP showPage函数代码示例

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


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

示例1: goAction

function goAction($act, $category_id, $course_id, $courses, $exercises)
{
    if (!$act || $act == null) {
        $act = "default";
    }
    switch ($act) {
        case 'default':
            showPage();
            break;
        case 'getCategory':
            showCategories();
            break;
        case 'getCategoryJson':
            showCategoryTree();
            break;
        case 'getCourses':
            showCourses($category_id);
            break;
        case 'getTracks':
            showTracks($category_id, $course_id);
            break;
        case 'getScores':
            showScores($category_id, $course_id);
            break;
        case 'getSummary':
            showSummary($category_id, $courses, $exercises);
            break;
        case 'getExcel':
            showExcel($category_id, $courses, $exercises);
            break;
        case 'getCfgs':
            showConfig($category_id, $course_id);
            break;
        case 'saveCfgs':
            $count = $_GET['count'];
            $configs = $_GET['config'];
            setConfig($category_id, $course_id, $count, $configs);
            break;
        case 'createCfgs':
            $quiz_count = @$_GET['count'];
            if (!isset($quiz_count) || $quiz_count == null || $quiz_count <= 0) {
                drawConfigPanel($category_id, $course_id);
            } else {
                drawConfigPanel($category_id, $course_id, $quiz_count);
            }
            break;
        case 'removeCfgs':
            removeConfig($category_id, $course_id);
            break;
        case 'getStudents':
            showStudentConfigs();
            break;
        case 'saveStudents':
            $students = $_GET['s'];
            saveStudentConfigs($students);
            break;
    }
}
开发者ID:adexbn,项目名称:sinomedex_report,代码行数:58,代码来源:index.php

示例2: doIndex

function doIndex()
{
    showPage("header");
    if (isset($_GET['action'])) {
        switch ($_GET['action']) {
            case 'login':
                include "login.php";
                break;
            case 'recover_password':
                include "recover_password.php";
                break;
            case "register":
                include "registration.php";
                break;
            case "hash":
                include "hash.php";
                break;
            case "activate":
                include "activation.php";
                break;
                /*case "mail":
                  {
                          mail("jac.karwowski@gmail.com",  "costma",  "costam");
                          break;
                  }*/
            /*case "mail":
              {
                      mail("jac.karwowski@gmail.com",  "costma",  "costam");
                      break;
              }*/
            case "delete":
                include "delete_user.php";
                break;
            case "log_out":
                destroySession();
                include "home_page.php";
                break;
            default:
                include "home_page.php";
                break;
        }
    } else {
        include "home_page.php";
    }
    showPage("footer");
}
开发者ID:inexxt,项目名称:libertarian_blog,代码行数:46,代码来源:index.php

示例3: check

function check()
{
    $dmenu = def_menu();
    $menu = array('Home' => array('Home' => ''), 'Account' => array('Rewards' => 'mpayouts', 'Payments' => 'payments', 'Settings' => 'settings', 'User Settings' => 'userset', '2FA Settings' => '2fa'), 'Workers' => array('Shifts' => 'shifts', 'Shift Graph' => 'usperf', 'Workers' => 'workers', 'Management' => 'workmgt'), 'Pool' => array('Stats' => 'stats', 'Blocks' => 'blocks', 'Graph' => 'psperf', 'Acclaim' => 'userinfo', 'Luck' => 'luck'), 'Admin' => NULL, 'gap' => array('API' => 'api', 'PBlocks' => 'pblocks'), 'Help' => array('Payouts' => 'payout'));
    tryLogInOut();
    $who = loggedIn();
    if ($who === false) {
        $p = getparam('k', true);
        if ($p == 'reset') {
            showPage(NULL, 'reset', $dmenu, '', $who);
        } else {
            if (requestLoginRegReset() == true) {
                showPage(NULL, 'reg', $dmenu, '', $who);
            } else {
                $p = getparam('k', true);
                process($p, $who, $dmenu);
            }
        }
    } else {
        $p = getparam('k', true);
        process($p, $who, $menu);
    }
}
开发者ID:nullivex,项目名称:ckpool,代码行数:23,代码来源:prime.php

示例4: doInDatabase

    if ($base_handler) {
        $result = doInDatabase("SELECT IDu FROM USERS WHERE NICKNAME = \"{$user}\"");
        if (mysql_fetch_assoc($result)) {
            return 1;
        }
    } else {
        echo "Nie mozna polaczyc sie z baza </br>";
        return 0;
    }
}
function signup()
{
    $user = $_GET['username'];
    $password = $_GET['password'];
    $mail = $_GET['mail'];
    if (check($user)) {
        return "JEST JUŻ TAKI";
    }
    $password = hash("sha256", $password);
    $random = generateRandomString(64);
    doInDatabase("INSERT INTO USERS (NICKNAME, PASSWORD, MAIL, CLASS, TEMP_RAND) VALUES (\"{$user}\", \"{$password}\",  \"{$mail}\", \"user\", \"{$random}\")");
    mail($mail, "Nowe konto", "Musisz aktywować nowe konto, aby to zrobić wejdź w link:</br>\n             <a href=\"localhost/my/index.php?action=activate&code={$random}&user={$user}\"> Link </a></br>\n             Dziękujemy za rejestrację :P");
    return "wysłano wiadomość. sprawdź pocztę";
}
if (isset($_GET['username']) && isset($_GET['password']) && isset($_GET['mail'])) {
    echo signup();
} else {
    if (!isset($_GET['done'])) {
        showPage("registration_form");
    }
}
开发者ID:inexxt,项目名称:libertarian_blog,代码行数:31,代码来源:registration.php

示例5: showPage

					<?php 
if ($count == 0) {
    echo "<center><b>No such information!</b></center>";
} else {
    ?>
					<div class="page">
						<div class="pagebefore">Current:<?php 
    echo $page;
    ?>
/<?php 
    echo $pagecount;
    ?>
Page EveryPage <?php 
    echo $pagesize;
    ?>
 Items</div>
						<div class="pageafter">
						<?php 
    echo showPage("system_log.php", $page, $pagecount, "../images");
    ?>
						<div class="clear"></div>
						</div>
					</div>
					<?php 
}
?>
				</div>
			</div>	
		</div>
	</body>
</html>
开发者ID:water940729,项目名称:demo,代码行数:31,代码来源:system_log.php

示例6: showPage

if ($count == 0) {
    echo "<center><b>没有相关信息!</b></center>";
} else {
    ?>
					<div class="page">
						<div class="pagebefore">当前页:<?php 
    echo $page;
    ?>
/<?php 
    echo $pagecount;
    ?>
页 每页 <?php 
    echo $pagesize;
    ?>
 条</div>
						<div class="pageafter">
						<?php 
    echo showPage('order_stats.php', $page, $pagecount);
    ?>
						<div class="clear"></div>
						</div>
					</div>
					<?php 
}
?>
				</div>
			</div>
		</div>
	</body>
</html>
开发者ID:htom78,项目名称:project,代码行数:30,代码来源:sum_order_good.php

示例7: showPage

    $end = $page * $pageSize;
    if (empty($str)) {
        echo "<div style='margin:20px' >对不起!您搜索的内容不存在!</div>";
    } else {
        for ($i = $start; $i < $end; $i++) {
            echo $array[$i];
        }
    }
} else {
    echo "<div style='margin:20px' >对不起!您搜索的内容不存在!</div>";
}
?>


    <div align="center" style="font-size:15px"><?php 
echo showPage($page, $totalPage, "keyword={$keyword}");
?>
</div>
      <div class="clear "></div>
    </div><!-- END of templatemo_main -->
</div><!-- END of templatemo_wrapper -->

<div id="templatemo_bottom_wrapper">
    <div id="templatemo_bottom">
        <?php 
include_once "./include/link.php";
?>
    
        <div class="clear"></div>
    </div><!-- END of templatemo_bottom -->
</div><!-- END of templatemo_bottom_wrapper -->   
开发者ID:vin120,项目名称:school,代码行数:31,代码来源:search.php

示例8: showPage

					<?php 
if ($count == 0) {
    echo "<center><b>没有相关信息!</b></center>";
} else {
    ?>
					<div class="page">
						<div class="pagebefore">当前页:<?php 
    echo $page;
    ?>
/<?php 
    echo $pagecount;
    ?>
页 每页 <?php 
    echo $pagesize;
    ?>
 条</div>
						<div class="pageafter">
						<?php 
    echo showPage("check_goods.php", $page, $pagecount, "../images");
    ?>
						<div class="clear"></div>
						</div>
					</div>
					<?php 
}
?>
				</div>
			</div>	
		</div>
	</body>
</html>
开发者ID:htom78,项目名称:project,代码行数:31,代码来源:manage_focus.php

示例9: getPager

 /**
  * 生成分页
  * @param int $page
  * @param string $baseUrl
  * @param array $pageParam
  * @return string
  */
 public function getPager($page, $baseUrl, $pageParam = array())
 {
     $count = $this->db->get_count($this->table);
     return showPage($count, $page, $baseUrl, $pageParam);
 }
开发者ID:weixinpy,项目名称:phpweixin,代码行数:12,代码来源:Model.class.php

示例10: showPage

					<?php 
if ($count == 0) {
    echo "<center><b>There is no relevant information!</b></center>";
} else {
    ?>
					<div class="page">
						<div class="pagebefore">Current page:<?php 
    echo $page;
    ?>
/<?php 
    echo $pagecount;
    ?>
page Each page <?php 
    echo $pagesize;
    ?>
 one</div>
						<div class="pageafter">
						<?php 
    echo showPage("search_user.php", $page, $pagecount, "../images");
    ?>
						<div class="clear"></div>
						</div>
					</div>
					<?php 
}
?>
				</div>
			</div>
		</div>
	</body>
</html>
开发者ID:water940729,项目名称:demo,代码行数:31,代码来源:search_user.php

示例11: showPage

} else {
    ?>
					<div class="page">
						<div class="pagebefore">当前页:<?php 
    echo $page;
    ?>
/<?php 
    echo $pagecount;
    ?>
页 每页 <?php 
    echo $pagesize;
    ?>
 条</div>
						<div class="pageafter">
						<?php 
    echo showPage("check_shop.php", $page, $pagecount, "../images");
    ?>
						<div class="clear"></div>
						</div>
					</div>
					<?php 
}
?>
					<br>
					<a href="check_mall.php">返回查看商场</a>
				</div>
			</div>	
		</div>
	</body>
</html>
<script>
开发者ID:htom78,项目名称:project,代码行数:31,代码来源:check_mall_shop.php

示例12: showImage

            echo "<div class='message clearfix'><a href='members.php?view=" . $row['auth'] . "'>" . showImage($row['auth']) . "<div class='message-text'>" . $row['auth'] . "</a>";
            // public messages
            if ($row['pm'] == 0) {
                echo " wrote: &quot;" . $row['message'] . "&quot;";
            } else {
                echo " whispered: <span class='whisper'><i>&quot;" . $row['message'] . "&quot;</i></span>";
            }
            if (strtolower($row['recip']) == strtolower($user)) {
                echo "<span class='action'>[<a href='messages.php?erase=" . $row['id'] . "'>erase</a>]</span>";
            }
            echo "<p class='date'>" . date('  M jS \'y g:ia', $row['time']) . "</p>";
            echo "</div></div>";
        }
    }
    echo "<p class='page'>page ";
    showPage($page, $pages, $href);
    echo "</p>";
} else {
    echo "<br><span class='info'>No messages yet</span><br><br>";
}
echo "</div><a class='button' href='messages.php?view={$view}'>Refresh messages</a></div>";
echo "</div>";
// message form
echo <<<_END
        <div class='display'>
        <form class='left' method="post" action="messages.php?view={$view}">
        Type here to leave a message:<br>
        <textarea name="text" cols="40" rows="3"></textarea><br>
        Public<input type="radio" name="pm" value="0" checked="checked">
        Private<input type="radio" name="pm" value="1">
        <input class="submit" type="submit" value="Post Message"></form>
开发者ID:njuliuyun,项目名称:studygroup,代码行数:31,代码来源:messages.php

示例13: showIndex

function showIndex()
{
    showPage(NULL, 'index', def_menu(), '', false);
}
开发者ID:ctubio,项目名称:ckpool,代码行数:4,代码来源:base.php

示例14: getUrlParameters

        <div class="logo"><img src="themes/<?php 
echo "{$theme}/logo.png";
?>
"></div>
      </div>
    </div>

<!-- MAIN -->

    <div id="main">

      <div class="content">
        <?php 
$urlParameters = getUrlParameters();
if ($urlParameters["namedpage"]) {
    showPage($urlParameters["namedpage"]);
} elseif ($urlParameters["blogentry"]) {
    showEntry($urlParameters["blogentry"], FALSE);
} else {
    $numEntriesPrinted = showOverview($urlParameters["blogpage"], $entriesPerPage);
}
?>
      </div>

      <div class="pagelink">
        <?php 
if (!$urlParameters["blogentry"] and !$urlParameters["namedpage"] and $numEntriesPrinted != 0 and $blogpage > 1 | $showNextPage) {
    if ($blogpage > 1) {
        echo "<a href=\"index.php?blogpage=" . ($blogpage - 1) . "\">&lt;&lt;</a>";
    }
    echo "page " . $blogpage;
开发者ID:BackupTheBerlios,项目名称:simplicissimus-svn,代码行数:31,代码来源:index.php

示例15: ceil

$totalPage = ceil($totleRows / $pageSize);
$page = $_REQUEST['page'] ? $_REQUEST['page'] : 1;
if ($page < 1 || $page == null || !is_numeric($page)) {
    $page = 1;
}
if ($page >= $totalPage) {
    $page = $totalPage;
}
$offset = ($page - 1) * $pageSize;
$sql = "select * from imooc_admin limit {$offset}, {$pageSize}";
$rows = fetchAll($sql);
foreach ($rows as $key => $row) {
    echo $row['id'] . '-----' . $row['username'];
    echo "<br>";
}
echo showPage($page, $totalPage, "cid=5&pid=6");
function showPage($page, $totalPage, $where = null, $sep = "&nbsp;")
{
    $where = $where == null ? null : "&" . $where;
    $url = $_SERVER['PHP_SELF'];
    $index = $page == 1 ? "首页" : "<a href='{$url}?page=1{$where}'>首页</a>";
    $last = $page == $totalPage ? "尾页" : "<a href='{$url}?page={$totalPage}{$where}'>尾页</a>";
    $prev = $page == 1 ? "上一页" : "<a href='{$url}?page=" . ($page - 1) . "{$where}'>上一页</a>";
    $next = $page == $totalPage ? "下一页" : "<a href='{$url}?page=" . ($page + 1) . "{$where}'>下一页</a>";
    $str = "总共{$totalPage}页/当前是{$page}页";
    for ($i = 1; $i < $totalPage; $i++) {
        var_dump($i);
        if ($i == $page) {
            $p .= "[{$page}]";
        } else {
            $p .= "<a href='{$url}?page={$i}{$where}'>[{$i}]</a>";
开发者ID:kevins1022,项目名称:shop,代码行数:31,代码来源:page.func.php


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