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


PHP HTML_Page2::setTitle方法代码示例

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


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

示例1:

 /**
  * Outputs the form.
  *
  * @param  object HTML_QuickForm_Page  the page being processed
  * @access public
  * @since  2.0.0RC1
  */
 function _renderForm(&$page)
 {
     $tab = '  ';
     $p = new HTML_Page2(array('lineend' => PHP_EOL, 'tab' => $tab, 'doctype' => 'XHTML 1.0 Strict', 'language' => 'en', 'cache' => 'false'));
     $p->disableXmlProlog();
     $p->setTitle('PEAR::HTML_Progress2 - Generator');
     $p->setMetaData('author', 'Laurent Laville');
     $formTemplate = "\n<form{attributes}>" . "\n<table class=\"maintable\">" . "\n<caption>HTML_Progress2 Generator</caption>" . "\n{content}" . "\n</table>" . "\n</form>";
     $headerTemplate = "\n<tr>" . "\n\t<th colspan=\"2\">" . "\n\t\t{header}" . "\n\t</th>" . "\n</tr>";
     $elementTemplate = "\n<tr valign=\"top\">" . "\n\t<td class=\"qfLabel\">&nbsp;" . "<!-- BEGIN required --><span class=\"required\">*</span><!-- END required -->" . "{label}</td>" . "\n\t<td class=\"qfElement\">" . "\n{element}" . "<!-- BEGIN label_2 -->&nbsp;" . "<span class=\"qfLabel2\">{label_2}</span>" . "<!-- END label_2 -->" . "\n\t</td>" . "\n</tr>";
     $groupTemplate = "\n\t\t<table class=\"group\">" . "\n\t\t<tr>" . "\n\t\t\t{content}" . "\n\t\t</tr>" . "\n\t\t</table>";
     $groupElementTemplate = "<td>{element}" . "<!-- BEGIN label --><br/>" . "<span class=\"qfLabel\">{label}</span>" . "<!-- END label -->" . "</td>";
     $renderer =& $page->defaultRenderer();
     $renderer->setFormTemplate($formTemplate);
     $renderer->setHeaderTemplate($headerTemplate);
     $renderer->setElementTemplate($elementTemplate);
     $renderer->setGroupTemplate($groupTemplate, 'name');
     $renderer->setGroupElementTemplate($groupElementTemplate, 'name');
     $styles = $this->getStyleSheet();
     $js = '';
     // on preview tab, add progress bar javascript and stylesheet
     if ($page->getAttribute('id') == 'Preview') {
         $pb = $page->controller->createProgressBar();
         $pb->setTab($tab);
         $styles .= $pb->getStyle();
         $js = $pb->getScript();
         $p->addStyleDeclaration($styles);
         $p->addScriptDeclaration($js);
         $pbElement =& $page->getElement('progressBar');
         $pbElement->setText($pb->toHtml() . '<br /><br />');
     } else {
         $p->addStyleDeclaration($styles);
     }
     $page->accept($renderer);
     $p->addBodyContent($renderer->toHtml());
     $p->display();
 }
开发者ID:alexzita,项目名称:alex_blog,代码行数:44,代码来源:HTMLPage2.php

示例2: date

$heading = '
<h1>' . $app["user_name"] . ' - ' . $app["type"] . '</h1>
<hr class="title" />
';
if ($app["allday"] == 'Yes') {
    $heading .= '<p>All day appointment</p>';
} else {
    $heading .= '<p>' . date('D jS F g:ia', strtotime($app["start"])) . '</p>';
}
if ($showMap) {
    $render .= '<img src="https://maps.googleapis.com/maps/api/staticmap?center=' . $lat . ',' . $lng . '&zoom=15&markers=color:blue|' . implode('|', $markers) . '&size=600x500&sensor=false" alt="maps" style="width:600px; height:500px">';
}
$render .= '
<div id="footer">
<h1>Confidentiality notice</h1>
<p>This document contains privileged information which must remain confidential. Under no circumstances should
this document be given to a client, left in a property or your car, or otherwise fall into anyone\'s hands other than a member
of the company. This document should be destroyed after use.</p>';
if ($printed_by) {
    $render .= '<p>Document printed on ' . date('d/m/Y h:ia') . ' by ' . $printed_by . '</p>';
}
$render .= '</div>';
$js_footer = '<script type="text/javascript">window.onLoad = window.focus(); window.print();</script>';
$page->setTitle($app["user_name"] . ' - ' . $app["type"]);
$page->addStyleSheet('css/print.css');
$page->addBodyContent('<div id="appointment">');
$page->addBodyContent($heading);
$page->addBodyContent($render);
$page->addBodyContent('</div>');
$page->addBodyContent($js_footer);
$page->display();
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:appointment_print.php

示例3: hideMsg

';
    if ($_GET["msg"]) {
        $onLoad .= 'javascript:hideMsg();';
        $msg = '
	<script type="text/javascript" language="javascript">
	<!--
	function hideMsg(){
		setTimeout("hideMsgDiv()",1500);
		}
	function hideMsgDiv() {
		new Effect.Fade("floating_message");
		}
	-->
	</script><div id="notify"><div id="floating_message">' . urldecode($_GET["msg"]) . '</div></div>';
    }
    $page->setTitle("{$pro_addr}");
    $page->addStyleSheet('css/styles.css');
    $page->addScript('js/global.js');
    $page->addScript('js/scriptaculous/prototype.js');
    $page->addScript('js/scriptaculous/scriptaculous.js');
    $page->addScript('js/CalendarPopup.js');
    if ($dea_type == 'Sales' && ($dea_status == 'Under Offer' || $dea_status == 'Exchanged' || $dea_status == 'Completed')) {
        $page->addScriptDeclaration('
document.write(getCalendarStyles());
var popcaldea_exchdate = new CalendarPopup("popCalDivdea_exchdate");
var popcaldea_compdate = new CalendarPopup("popCalDivdea_compdate");
');
    }
    if ($dea_type == 'Lettings') {
        $page->addScriptDeclaration('
document.write(getCalendarStyles());
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:deal_summary2.php

示例4: array

     $form->addField("hidden", "app_id", "", $_GET["app_id"]);
     $form->addField("hidden", "carry", "", $carry);
     $form->addHtml("<fieldset>\n");
     $form->addHtml('<div class="block-header">' . $form_title . '</div>');
     if ($vendors) {
         $form->addHtml($vendors);
     }
     $form->addData($formData1, $_GET);
     $form->addHtml($form->addDiv($form->makeField("submit", "", "", "  Proceed  ", array('class' => 'submit'))));
     if ($additional_info) {
         $form->addHtml('<div id="inset">' . $additional_info . '</div>');
     }
     $form->addHtml("</fieldset>\n");
     $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $_GET["searchLink"]), 'search' => array('title' => 'Client Search', 'label' => 'Client Search', 'link' => 'client_search.php'));
     $navbar = navbar2($navbar_array);
     $page->setTitle($page_title);
     $page->addStyleSheet(getDefaultCss());
     $page->addScript('js/global.js');
     $page->setBodyAttributes(array('onLoad' => 'document.forms[0].cli_name.focus();'));
     $page->addBodyContent('<div id="content">');
     $page->addBodyContent($navbar);
     $page->addBodyContent($form->renderForm());
     $page->addBodyContent('</div>');
     $page->display();
     exit;
     break;
     ###########################################################
     # stage 2 - show existing clients and add client form
     ###########################################################
 ###########################################################
 # stage 2 - show existing clients and add client form
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:client_lookupMYSQL.php

示例5: array

     $form->addData($formData1, $_POST);
     $form->addHtml("</fieldset>\n");
     /////////////////////////////////////////////////////////////////////////////////
     $form->addHtml("<fieldset>\n");
     $form->addLegend('Address');
     if (!$pro_pcid) {
         $form->ajaxPostcode("by_freetext", "pro");
     } else {
         $form->addData($formData2, $_POST);
         $form->addHtml($form->addDiv($form->makeField("submit", "", "", "Save Changes", array('class' => 'submit'))));
     }
     $form->addHtml("</fieldset>\n");
     $form->addHtml("</div>\n");
     // start a new page
     $page = new HTML_Page2($page_defaults);
     $page->setTitle("Directory > Edit");
     $page->addStyleSheet(GLOBAL_URL . 'css/styles.css');
     $page->addScript(GLOBAL_URL . 'js/global.js');
     $page->addScript(GLOBAL_URL . 'js/scriptaculous/prototype.js');
     $page->addScriptDeclaration($source['js']);
     $page->setBodyAttributes(array('onLoad' => $source['onload']));
     $page->addBodyContent('<div id="content">');
     $page->addBodyContent($menu);
     $page->addBodyContent('<p><a href="image.php?dir_id=' . $dir_id . '">Images</a></p>');
     $page->addBodyContent($form->renderForm());
     $page->addBodyContent('</div>');
     $page->display();
     exit;
 } else {
     // if the form has been submitted
     $result = new Validate();
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:edit.php

示例6: Date

	if (now - lastEvent > threshold){
		window.location.reload(true);
		}
	}
document.body.onmousemove=function(){
	lastEvent = (new Date()).getTime();
	};
window.setInterval(doReload, ' . $calendar_reload_delay . ');

window.onLoad = ' . $onLoad . '



// -->
</script>';
$page = new HTML_Page2($page_defaults);
$page->setTitle('Calendar');
$page->addStyleSheet(getDefaultCss());
$page->addScript(GLOBAL_URL . 'js/global.js');
$page->addScript(GLOBAL_URL . 'js/overlib/overlibmws.js');
$page->setBodyAttributes(array('style' => 'background-color: #' . $calendar_bg_colour . '; background-image: url(\'/images/sys/admin/calendar_bg.gif\');background-repeat: repeat'));
//'onLoad'=>$onLoad,
$page->addBodyContent('<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000"></div>');
#$page->addBodyContent('<div id="loading" style="width:100%; text-align:center; padding-top:200px"><h1><img src="/images/sys/admin/ajax-loader.gif" /> Loading</h1></div>');
$page->addBodyContent('<div id="calendar">');
//style="display: none;"
$page->addBodyContent('<div style="height:' . ($default_workingday_end - $default_workingday_start + 1) * (60 * $zoom) . 'px; width:50px; position: absolute">' . "\n" . $hourBar . '</div>' . "\n");
$page->addBodyContent('<div style="height:' . ($default_workingday_end - $default_workingday_start + 1) * (60 * $zoom) . 'px;">' . "\n" . $render . '</div>' . "\n");
$page->addBodyContent('</div>');
$page->addBodyContent($js_footer);
$page->display();
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:calendar_day.php

示例7: array

     } else {
         $form->addHtml('<p class="appInfo">You have chosen an existing client, but we do not have their address</p>');
     }
     $form->addRow('radio', 'p2c_type', 'Address Type', 'Home', '', db_enum("pro2cli", "p2c_type", "array"));
     if (!$_GET["pro_pro_id"]) {
         $form->ajaxPostcode("by_freetext", "pro");
     } else {
         $form->addData($formData, $_GET);
         $form->addHtml($form->addDiv($form->makeField("submit", "", "", "Save Changes", array('class' => 'submit'))));
     }
     $form->addHtml($form->addDiv($form->makeField("button", "", "", "Skip if Address Unknown", array('onClick' => 'document.location.href = \'?' . $_SERVER['QUERY_STRING'] . '&stage=viewing_address&skip=skip\'', 'class' => 'submit'))));
     $form->addHtml("</fieldset>\n");
     $form->addHtml("</div>\n");
     $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => urldecode($searchLink)), 'search' => array('title' => 'Property Search', 'label' => 'Property Search', 'link' => 'property_search.php'));
     $navbar = navbar2($navbar_array);
     $page->setTitle("Arrange Viewing");
     $page->addStyleSheet('css/styles.css');
     $page->addScript('js/global.js');
     $page->addScript('js/scriptaculous/prototype.js');
     $page->addScriptDeclaration($additional_js);
     $page->setBodyAttributes(array('onLoad' => $onLoad));
     $page->addBodyContent($header_and_menu);
     $page->addBodyContent('<div id="content">');
     $page->addBodyContent($navbar);
     $page->addBodyContent($form->renderForm());
     $page->addBodyContent('</div>');
     $page->display();
     exit;
 } else {
     // validate second form, but this is only required is posctcode lookup isnt used
     if (!$_GET["pro_pro_id"]) {
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:viewing_add.php

示例8: Form

     $form = new Form();
     $form->addHtml("<div id=\"standard_form\">\n");
     $form->addForm("", "get", $_SERVER['PHP_SELF']);
     $form->addField("hidden", "searchLink", "", $searchLink);
     $form->addHtml("<fieldset>\n");
     $form->addHtml('<div class="block-header">Users</div>');
     $form->addHtml('<div id="results_table">');
     $form->addHtml($header);
     $form->addHtml($results);
     $form->addHtml($footer);
     $form->addHtml('</div>');
     $form->addHtml("</fieldset>\n");
     $form->addHtml('</div>');
     $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $returnLink), 'print' => array('title' => 'Print', 'label' => 'Print', 'link' => 'javascript:windowPrint();'));
     $navbar = navbar2($navbar_array);
     $page->setTitle('Users');
     $page->addStyleSheet(getDefaultCss());
     $page->addScript('js/global.js');
     $page->addBodyContent($header_and_menu);
     $page->addBodyContent('<div id="content">');
     $page->addBodyContent($navbar);
     $page->addBodyContent($form->renderForm());
     $page->addBodyContent('</div>');
     $page->display();
     exit;
     ###########################################################
     # default
     ###########################################################
 ###########################################################
 # default
 ###########################################################
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:user_details.php

示例9: array

            $form->addHtml($form->addDiv($buttons));
            $form->addHtml("</div>\n");
            $form->addHtml("</fieldset>\n");
            if (!$_GET["viewForm"]) {
                $viewForm = 1;
            }
            $additional_js = '
if (!previousID) {
	var previousID = "form' . $viewForm . '";
	}

';
            $onLoad .= ' document.forms[0].keyword.focus();';
            $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $searchLink), 'search' => array('title' => 'Property Search', 'label' => 'Property Search', 'link' => 'property_search.php'));
            $navbar = navbar2($navbar_array);
            $page->setTitle("Property > Search");
            $page->addStyleSheet(getDefaultCss());
            $page->addScript('js/global.js');
            $page->addScriptDeclaration($additional_js);
            $page->setBodyAttributes(array('onLoad' => $onLoad));
            $page->addBodyContent($header_and_menu);
            $page->addBodyContent('<div id="content">');
            $page->addBodyContent($navbar);
            $page->addBodyContent($form->renderForm());
            $page->addBodyContent('</div>');
            $page->display();
            exit;
        } else {
            // if form is submitted
            // construct sql
            if ($_GET["orderby"]) {
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:property_search.php

示例10:

#content table, #content tr, #content td {
	margin:0; padding:0;
	}
#content td {
	margin:0; padding:5px;
	border-bottom:1px solid black;
	}
#content h1 {
	margin:10px 0 5px 0;
	font-size:20px;
	color:#666666;
	}
#content h2 {
	margin:20px 0 5px 0;
	font-size:16px;
	color:#999999;
	}
#content hr {
	margin:20px 0 20px 0;
	}
';
$page = new HTML_Page2($page_defaults);
$page->setTitle("Stats");
$page->addStyleSheet(getDefaultCss());
$page->addStyleDeclaration($css);
$page->addScript('js/global.js');
$page->addBodyContent($header_and_menu);
$page->addBodyContent('<div id="content">');
$page->addBodyContent($render);
$page->addBodyContent('</div>');
$page->display();
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:stats.php

示例11: array

     $form->addField("hidden", "action", "", "save");
     $formName = 'form1';
     $form->addHtml("<fieldset>\n");
     $form->addHtml('<div class="block-header">Assistance</div>');
     $form->addHtml('<div id="' . $formName . '">');
     $form->addData($formData1, $_GET);
     $buttons = $form->makeField("submit", "", "", "Submit", array('class' => 'submit'));
     $buttons .= $form->makeField("button", "", "", "Cancel", array('class' => 'button', 'onClick' => 'document.location.href = \'' . urldecode($_GET["bug_page"]) . '\''));
     $form->addHtml($form->addDiv($buttons));
     $form->addHtml("</div>\n");
     $form->addHtml("</fieldset>\n");
     $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => urldecode($_GET["bug_page"])), 'search' => array('title' => 'Search', 'label' => 'Search', 'link' => 'search.php'));
     $navbar = navbar2($navbar_array);
     // start a new page
     $page = new HTML_Page2($page_defaults);
     $page->setTitle("Assistance");
     $page->addStyleSheet(getDefaultCss());
     $page->addScript('js/global.js');
     $page->addBodyContent($header_and_menu);
     $page->addBodyContent('<div id="content">');
     $page->addBodyContent($navbar);
     $page->addBodyContent($form->renderForm());
     $page->addBodyContent('</div>');
     $page->display();
     exit;
 } else {
     // if form is submitted
     $result = new Validate();
     $results = $result->process($formData1, $_GET);
     $db_data = $results['Results'];
     // build return link
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:bug.php

示例12: foreach

    }
}
if ($epc) {
    // make sure there is a break before epc
    //$render .= '<br clear=all class="break" />';
    foreach ($epc as $epc_title => $epc_image) {
        $render .= '<br clear=all class="break" />';
        $render .= '<img src="' . IMAGE_URL_PROPERTY . $dea_id . '/' . str_replace('.gif', '_large.gif', $epc_image["file"]) . '" alt="' . $epc_image["title"] . '" />' . "\n";
        if ($counter % 2 == 0) {
        }
        $counter++;
        unset($dims, $height);
    }
}
$render .= '<br clear=all class="break" />';
$page->setTitle($title);
$page->addStyleSheet('css/print.css');
$page->setBodyAttributes(array('onLoad' => 'self.focus();'));
$email_subject = $title . ' ' . str_replace('&', '%26', $are_title) . ' ' . $pro_postcode . ' - Wooster %26 Stock';
if ($dea_type == 'Sales') {
    $email_body = 'Dear CLIENT,%0D%0A%0D%0A' . $strap . '%0D%0A' . $title . ' ' . $postcode . '%0D%0A' . number_format($dea_marketprice) . ' (GBP)%0D%0Ahttp://www.woosterstock.co.uk/Detail.php?id=' . $dea_id . '%0D%0A%0D%0ARegards,%0D%0A%0D%0A' . $_SESSION["auth"]["use_fname"] . ' ' . $_SESSION["auth"]["use_sname"];
} elseif ($dea_type == 'Lettings') {
    $email_body = 'Dear CLIENT,%0D%0A%0D%0A' . $strap . '%0D%0A' . $title . ' ' . $postcode . '%0D%0A' . number_format($dea_marketprice) . ' per week (GBP)%0D%0Ahttp://www.woosterstock.co.uk/DetailLet.php?id=' . $dea_id . '%0D%0A%0D%0ARegards,%0D%0A%0D%0A' . $_SESSION["auth"]["use_fname"] . ' ' . $_SESSION["auth"]["use_sname"];
    //	$email_body = "Dear CLIENT,\n\n" . $strap . "\n" . $title . ' ' . $postcode . "\n" .
    //			number_format($dea_marketprice) . " per week (GBP)\nhttp://www.woosterstock.co.uk/DetailLet.php?id=" . $dea_id .
    //			"\n\nRegards,\n\n" . $_SESSION["auth"]["use_fname"] . ' ' . $_SESSION["auth"]["use_sname"];
}
$email_body = str_replace('&amp;', '%26', $email_body);
if ($dea_status == 'Available' || $dea_status == 'Under Offer' || $dea_status == 'Under Offer with Other' || $dea_status == 'Exchanged') {
    $mailto = '<a href="mailto:?subject=' . $email_subject . '&body=' . $email_body . '"><img src="/images/sys/admin/icons/mail-icon.png">Email</a>';
}
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:deal_print.php

示例13: array

     $form->addField("hidden", "dea_id", "", $dea_id);
     $form->addField("hidden", "cli_id", "", $_GET["cli_id"]);
     $form->addField("hidden", "app_id", "", $_GET["app_id"]);
     $form->addField("hidden", "return", "", $return);
     $form->addHtml("<fieldset>\n");
     $form->addHtml('<div class="block-header">Submit Offer</div>');
     $form->addHtml($form->addHtml($deal_table));
     $form->addData($formData0, $_GET);
     $form->addData($formData1, $_GET);
     //$form->addRow("radio","send","Send to Vendor","Yes",array(),array('Yes'=>'Yes','No'=>'No'),'Send letter or email to vendor');
     $form->addHtml($form->addDiv($form->makeField("submit", $formName, "", "Save Changes", array('class' => 'submit'))));
     $form->addHtml("</fieldset>\n");
     $form->addHtml("</div>\n");
     $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $_GET["return"]), 'search' => array('title' => 'Property Search', 'label' => 'Property Search', 'link' => 'property_search.php'));
     $navbar = navbar2($navbar_array);
     $page->setTitle("Submit Offer");
     $page->addStyleSheet(getDefaultCss());
     $page->addScript('js/global.js');
     #$page->addScriptDeclaration($additional_js);
     #$page->setBodyAttributes(array('onLoad'=>$onLoad));
     $page->addBodyContent($header_and_menu);
     $page->addBodyContent('<div id="content">');
     $page->addBodyContent($navbar);
     $page->addBodyContent($form->renderForm());
     #$page->addBodyContent($render);
     $page->addBodyContent('</div>');
     $page->display();
 } else {
     // if form is submitted
     // first deal with the client status. if mulitple clients are linked to deal, update all
     if ($dea_type == 'Sales') {
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:offer_submit.php

示例14: array

     $form->addHtml("<div id=\"standard_form\">\n");
     $form->addField("hidden", "action", "", 'update');
     $form->addField("hidden", "stage", "", "3");
     /////////////////////////////////////////////////////////////////////////////////
     $formName = 'form1';
     $form->addHtml("<fieldset>\n");
     $form->addHtml('<div class="block-header">User</div>');
     $form->addData(${$formName}, $_POST);
     $form->addHtml($form->addDiv($form->makeField("submit", $formName, "", "Save Changes", array('class' => 'submit'))));
     $form->addHtml("</fieldset>\n");
     /////////////////////////////////////////////////////////////////////////////////
     // start a new page
     $page = new HTML_Page2($page_defaults);
     $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => 'user_admin.php'));
     $navbar = navbar2($navbar_array);
     $page->setTitle("User");
     $page->addStyleSheet(getDefaultCss());
     $page->addScript('js/global.js');
     $page->addScript('js/scriptaculous/prototype.js');
     $page->addScript('js/scriptaculous/scriptaculous.js');
     $page->addScriptDeclaration($additional_js);
     $page->setBodyAttributes(array('onLoad' => $onLoad));
     $page->addBodyContent($header_and_menu);
     $page->addBodyContent('<div id="content">');
     $page->addBodyContent($navbar);
     $page->addBodyContent($form->renderForm());
     $page->addBodyContent('</div>');
     $page->display();
     exit;
 } else {
     // if form is submitted
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:branch.php

示例15: hideMsg

        $onLoad .= 'javascript:hideMsg();';
        $msg = '
	<script type="text/javascript" language="javascript">
	<!--
	function hideMsg(){
		setTimeout("hideMsgDiv()",1500);
		}
	function hideMsgDiv() {
		new Effect.Fade("floating_message");
		}
	-->
	</script><div id="notify"><div id="floating_message">' . urldecode($_GET["msg"]) . '</div></div>';
    }
    $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $searchLink), 'search' => array('title' => 'Client Search', 'label' => 'Client Search', 'link' => 'client_search.php'));
    $navbar = navbar2($navbar_array);
    $page->setTitle("Client > {$cli_fname} {$cli_sname}");
    $page->addStyleSheet(getDefaultCss());
    //	$page->addStyleSheet('/css/gray/default.css');
    $page->addStyleSheet('/css/public/jquery-ui-1.9.2.custom.min.css');
    //	$page->addScript('js/scriptaculous/prototype.js');
    //	$page->addScript('js/scriptaculous/scriptaculous.js');
    $page->addScript('/js/jquery.latest.js');
    $page->addScript('/js/jquery-ui.min.js');
    $page->addScript('js/global.js');
    $page->addScript('js/thickbox.js');
    $page->addScript('/js/functions.js');
    $page->addScript('/js/Popup.js');
    $page->addScript('/js/AddressTools.js');
    //	$page->addScriptDeclaration('jQuery.noConflict();');
    $page->addScriptDeclaration($additional_js);
    $page->addScriptDeclaration($source['js']);
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:client_edit.php


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