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


PHP GUI_Page::startPage方法代码示例

本文整理汇总了PHP中GUI_Page::startPage方法的典型用法代码示例。如果您正苦于以下问题:PHP GUI_Page::startPage方法的具体用法?PHP GUI_Page::startPage怎么用?PHP GUI_Page::startPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GUI_Page的用法示例。


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

示例1: setPrint

require './lib/cl_gui_dropdown.lib.php';
require './lib/cl_gui_menulist.lib.php';
require './lib/cl_gui_page.lib.php';
require './lib/common.lib.php';
if (AA_connectToDB() == FALSE) {
    // invalid DB connection
    return;
    // abort
}
if (AA_checkMeetingID() == FALSE) {
    // no meeting selected
    return;
    // abort
}
$page = new GUI_Page('meeting_entries_print');
$page->startPage();
$page->printPageTitle($strPrint);
?>
<script type="text/javascript">
<!--
	function setPrint()
	{
		document.printdialog.formaction.value = 'print'
		document.printdialog.target = '_blank';
	}

	function setView()
	{
		document.printdialog.formaction.value = 'view'
		document.printdialog.target = '';
	}
开发者ID:laiello,项目名称:athletica,代码行数:31,代码来源:meeting_entries_print.php

示例2: submitResult

    function AA_results_printHeader($category, $event, $round)
    {
        require './lib/cl_gui_menulist.lib.php';
        require './lib/cl_gui_page.lib.php';
        require './lib/common.lib.php';
        $page = new GUI_Page('event_results');
        $page->startPage();
        $page->printPageTitle($GLOBALS['strResults'] . ": " . $_COOKIE['meeting']);
        $helpfile = "doc/" . $_COOKIE['language'] . "/help/event/results.html";
        $menu = new GUI_Menulist();
        $menu->addButton($cfgURLDocumentation . $helpfile, $GLOBALS['strHelp'], '_blank');
        $menu->printMenu();
        ?>

<script type="text/javascript">
<!--
	function submitResult(perfForm, focus)
	{
		perfForm.submit();

		if(focus) {
			focus.perf.focus();
			focus.perf.select();
		}
	}

	function submitForm(form, focus)
	{
		form.submit();

		if(document.getElementById(focus)) {
			document.getElementById(focus).focus();
			document.getElementById(focus).select();
		}
	}

	function checkSubmit(perfForm, focus)
	{   
		if(perfForm.perf.value <= 0 || perfForm.perf.value == '-' || perfForm.perf.value == 'x' || perfForm.perf.value == 'X')
		{   
			if(perfForm.wind) {
				perfForm.wind.value = '';
			}
			else if(perfForm.attempts) {
				perfForm.attempts.value = '';
			}
			submitResult(perfForm, focus);
		}else{ 
             if(perfForm.wind && (perfForm.wind.value != '-' && perfForm.wind.value != '')){ 
                  submitResult(perfForm, focus);   
            }  
		}
	}

	// remove these functions after high jump is switched to architecture!
	function selectResult(result)
	{
		document.selection.result.value=result;
	}

	function selectAthlete(athlete)
	{
		document.selection.athlete.value=athlete;
		document.selection.submit();
	}
	
//-->
</script>

<form action='event_results.php' method='post'
	name='selection'>
	<input type='hidden' name='round' value='<?php 
        echo $round;
        ?>
' />
	<input type='hidden' name='athlete' value='' />
	<input type='hidden' name='result' value='' />
</form>

<table><tr>
	<td class='forms'>
		<?php 
        AA_printCategorySelection("event_results.php", $category);
        ?>
	</td>
	<td class='forms'>
		<?php 
        AA_printEventSelection("event_results.php", $category, $event, "post");
        ?>
	</td>

<?php 
        if ($event > 0) {
            printf("<td class='forms'>\n");
            AA_printRoundSelection("event_results.php", $category, $event, $round);
            printf("</td>\n");
        }
        if ($round > 0) {
            printf("<td class='forms'>\n");
            AA_printHeatSelection($round);
//.........这里部分代码省略.........
开发者ID:laiello,项目名称:athletica,代码行数:101,代码来源:results.lib.php


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