本文整理汇总了PHP中HTML_Page2::addStyleSheet方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML_Page2::addStyleSheet方法的具体用法?PHP HTML_Page2::addStyleSheet怎么用?PHP HTML_Page2::addStyleSheet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTML_Page2
的用法示例。
在下文中一共展示了HTML_Page2::addStyleSheet方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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' => '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) {
示例2: array
$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();
$results = $result->process($formData1, $_POST);
示例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());
var popcaldea_available = new CalendarPopup("popCalDivdea_available");
示例4: unset
// set current appointment's column value, this is used in subsequent apps to determine positioning
$divs[$div_id]["column"] = $column;
if ($column > $max_column) {
$max_column = $column;
}
// write the div
$render .= ' <div id="app' . $div["id"] . '" class="calEntryDiv" style="position: absolute; height: ' . $div["app_height"] . 'px; left: ' . $left . 'px; top:' . $div["start_pixel"] . 'px; width:' . ($width - 3) . 'px; border: 1px solid #' . $div["colour"] . '; border-left: 10px solid #' . $div["colour"] . '; z-index:1; overflow: hidden; " onClick="javascript:document.location.href=\'appointment_edit.php?app_id=' . $div["id"] . '\'" onMouseOver="calEventOver(this,' . $div["app_height"] . ')" onMouseOut="calEventOut(this,' . $div["app_height"] . ')">' . "\n";
$render .= ' <strong>' . $div["type"] . '</strong> ' . $div["start"] . '<br>' . $div["client"] . '<!--<br><br>' . $div["addr"] . "-->\n" . ' </div>' . "\n";
}
// the current appointment ends in this interval
if ($div["end_stamp"] >= $interval && $div["end_stamp"] < $interval + $default_calendar_interval) {
// remove column reference from master array
unset($divs[$div_id]["column"]);
}
}
}
unset($left, $column);
$counter++;
}
$js = "\n\nvar theDiv = null;\nvar theHeight = null;\n\nfunction calEventOver(lnk,newHeight) {\n\ttheDiv = lnk;\n\ttheHeight = newHeight;\n\twindow.setTimeout(\"calEventOver2()\", 1000);\n\t}\nfunction calEventOver2() {\n\ttheDiv.style.overflow = 'visible';\n\ttheDiv.style.zIndex = '1000';\n\ttheDiv.style.height = theHeight;\n\t}\n\n\n\t";
$page = new HTML_Page2($page_defaults);
$page->setTitle('Calendar');
$page->addStyleSheet(getDefaultCss());
$page->addStyleSheet(GLOBAL_URL . 'css/balloons.css');
$page->addScript(GLOBAL_URL . 'js/global.js');
$page->setBodyAttributes(array('style' => 'background-color: #' . $calendar_bg_colour . '; background-image: url(\'/images/sys/admin/calendar_bg.gif\');background-repeat: repeat'));
$page->addBodyContent('<div id="content_wide">');
$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->display();
示例5: intval
</div>
';
$render_right .= '</div>';
$render = '
<div id="calRight">' . $render_right . '</div>
<div id="calLeft">' . $render_left . '</div>
';
$onLoad = 'writeCalHeight(\'cal_iframe\',\'' . intval($allDayDivHeight) . '\');';
$onResize = 'writeCalHeight(\'cal_iframe\',\'' . intval($allDayDivHeight) . '\');';
$js = '
// fix for calendar in IE6 only
if (document.all&&document.getElementById&&navigator.appVersion.indexOf(\'MSIE 6\')>=0) {
document.write(\'<link rel="stylesheet" href="css/ie6.css" type="text/css" />\');
}
';
$page = new HTML_Page2($page_defaults);
$page->setTitle("Calendar");
$page->addStyleSheet(getDefaultCss());
$page->addStyleSheet(getCalendarCss());
$page->addScriptDeclaration($js);
$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->addBodyContent('<!--'.print_r($alldayarray,true));
$page->display();
示例6: date
<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 .= '</div>';
// write the calendar iframe
$render .= '
<div id="calContainer">
<script type="text/javascript">writeCal(\'' . $calendar_url . '\');</script>
</div>
';
$onLoad = 'writeCalHeight(\'cal_iframe\',\'' . $allDayDivHeight . '\');';
$onResize = 'writeCalHeight(\'cal_iframe\',\'' . $allDayDivHeight . '\');';
$page = new HTML_Page2($page_defaults);
$page->setTitle("Calendar");
$page->addStyleSheet('css/cal.css');
$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();
示例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('&', '%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('
示例8: 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']);
$page->setBodyAttributes(array('onLoad' => $onLoad));