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


PHP HTML_Page2::setBodyAttributes方法代码示例

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


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

示例1: array

     $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
 ###########################################################
 case 2:
     $terms = array();
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:client_lookupMYSQL.php

示例2: hideMsgDiv

		}
	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' => 'Contact Search', 'label' => 'Client Search', 'link' => 'client_search.php'));
    $navbar = navbar2($navbar_array);
    $page->setTitle("Contact > {$con_fname} {$con_sname}");
    $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));
    //,'onKeyPress'=>'keyPressShowDiv(event.keyCode)'
    $page->addBodyContent($header_and_menu);
    $page->addBodyContent('<div id="content">');
    $page->addBodyContent($navbar);
    $page->addBodyContent($form->renderForm());
    $page->addBodyContent('</div>');
    $page->addBodyContent('<div id="hint" style="background-color:#FFFFFF"></div><script type="text/javascript">
new Ajax.Autocompleter("con_company","hint","ajax_contact.php");
</script>');
    if ($msg) {
        $page->addBodyContent($msg);
    }
    $page->display();
    /*
    echo '
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:company.php

示例3: array

     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();
     $results = $result->process($formData1, $_POST);
     $db_data = $results['Results'];
     $result2 = new Validate();
     $results2 = $result2->process($formData2, $_POST);
     $db_data2 = $results2['Results'];
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:edit.php

示例4: array

     $form->addField("hidden", "pro_id", "", $pro_id);
     $form->addField("hidden", "dea_id", "", $dea_id);
     $form->addHtml("<fieldset>\n");
     $form->addLegend('Property Particulars');
     $form->addData($formDataArea, $_GET);
     $form->addData($formData, $_GET);
     $form->addHtml($form->addDiv($form->makeField("submit", "", "", "Save Changes", array('class' => 'submit'))));
     $form->addHtml("</fieldset>\n");
     $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("New Instruction");
     $page->addStyleSheet('css/styles.css');
     $page->addScript('js/global.js');
     $page->addScript('js/scriptaculous/prototype.js');
     $page->addScriptDeclaration($ptype['js']);
     $page->setBodyAttributes(array('onLoad' => $ptype['onload']));
     $page->addBodyContent($header_and_menu);
     $page->addBodyContent('<div id="content">');
     $page->addBodyContent($navbar);
     $page->addBodyContent($render);
     $page->addBodyContent($form->renderForm());
     $page->addBodyContent('</div>');
     $page->display();
 } else {
     // if form is submitted
     // validate (dea)
     $result = new Validate();
     $results = $result->process($formData, $_GET);
     $db_data = $results['Results'];
     // build return link
     $return = $_SERVER['SCRIPT_NAME'] . '?stage=valuation_address&';
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:instruction_add.php

示例5: 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

示例6: date

	  </tr>
	  <tr>
		<td><a href="appointment_search.php?action=advanced_search&status=Active&branch=' . $to_pass["branch"] . '&date_from=' . date('d/m/Y') . '&date_to=' . date('d/m/Y') . '&searchLink=' . $_SERVER['PHP_SELF'] . urlencode('?' . $_SERVER['QUERY_STRING']) . '">Active: ' . $countActive . '</a></td>
	  </tr>
	  <tr>
		<td><a href="appointment_search.php?action=advanced_search&status=Cancelled&branch=' . $to_pass["branch"] . '&date_from=' . date('d/m/Y') . '&date_to=' . date('d/m/Y') . '&searchLink=' . $_SERVER['PHP_SELF'] . urlencode('?' . $_SERVER['QUERY_STRING']) . '">Cancelled: ' . $countCancelled . '</a></td>
	  </tr>
	  <tr>
		<td><a href="appointment_search.php?action=advanced_search&status=Deleted&branch=' . $to_pass["branch"] . '&date_from=' . date('d/m/Y') . '&date_to=' . date('d/m/Y') . '&searchLink=' . $_SERVER['PHP_SELF'] . urlencode('?' . $_SERVER['QUERY_STRING']) . '">Deleted: ' . $countDeleted . '</a></td>
	  </tr>
	</table>
	</div>
	';
$render .= '</td>
</tr>
</table>';
$onLoad = 'writeCalHeight(\'cal_iframe\',\'' . $allDayDivHeight . '\');';
$onResize = 'writeCalHeight(\'cal_iframe\',\'' . $allDayDivHeight . '\');';
$page = new HTML_Page2($page_defaults);
$page->setTitle("Calendar");
$page->addStyleSheet(getDefaultCss());
$page->addScript('js/global.js');
$page->addScript(GLOBAL_URL . 'js/overlib/overlibmws.js');
$page->setBodyAttributes(array('onResize' => $onResize));
//'onLoad'=>$onLoad,
$page->addBodyContent($header_and_menu);
$page->addBodyContent('<div id="content_cal">');
$page->addBodyContent($render);
$page->addBodyContent('</div>');
$page->addBodyContent('<script type="text/javascript"> window.onLoad = ' . $onLoad . ' </script>');
$page->display();
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:calendar_tables.php

示例7: 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>';
}
$page->addBodyContent('
<div id="hidePrint">
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:deal_print.php


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