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


PHP HTML_Page2::addScript方法代码示例

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


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

示例1: hideMsg

	<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) {
        $page->addBodyContent($msg);
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:company.php

示例2: function

			google.maps.event.addListener(map, "click", function (event)
			{
				marker.setPosition(event.latLng);
				document.getElementById("pro_latitude").value = event.latLng.lat();
				document.getElementById("pro_longitude").value = event.latLng.lng();
			});
}


</script>');
    $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 = new HTML_Page2($page_defaults);
    $page->setTitle("Edit Address");
    $page->addStyleSheet('../css/styles.css');
    $page->addScript('../js/global.js');
    $page->addBodyContent($header_and_menu);
    $page->addBodyContent('<div id="content_wide">');
    $page->addBodyContent($navbar);
    $page->addBodyContent($form->renderForm());
    $page->addBodyContent('</div>');
    $page->display();
} else {
    // update
    // if making a change to a property record, we should remove pcid and dump data as it will be incorrect
    $result = new Validate();
    $results = $result->process($formData1, $_GET);
    $db_data = $results['Results'];
    if ($db_data['pro_latitude'] && $db_data['pro_longitude']) {
        include_once dirname(__FILE__) . "/../../../../../htdocs/mapping/phpcoord-2.3.php";
        $latLng = new LatLng($db_data['pro_latitude'], $db_data['pro_longitude']);
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:edit_property.php

示例3: 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>';
    }
    $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");
');
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:deal_summary2.php

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

示例5: array

     /////////////////////////////////////////////////////////////////////////////////
     $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);
     $db_data = $results['Results'];
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:edit.php

示例6: 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();
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:cal.php

示例7: array

$(document).ready(function(){
	$("#cli_salestatus").parent().hide();
	});
	';
            } else {
                $additional_js .= '
$(document).ready(function(){
	$("#cli_letstatus").parent().hide();
	});
	';
            }
            $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $searchLink), 'search' => array('title' => 'Client Search', 'label' => 'Client Search', 'link' => 'client_search.php'), 'headline' => array('label' => $_SESSION["auth"]["use_fname"] . ', tell me what options you want to see here'));
            $navbar = navbar2($navbar_array);
            $page->setTitle("Client > Search");
            $page->addStyleSheet(getDefaultCss());
            $page->addScript('js/global.js');
            $page->addScript('js/jquery.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["scope"] == "sale") {
                $q[] = "cli_sales = 'Yes' AND";
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:client_search.php

示例8: 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' => '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));
    //,'onKeyPress'=>'keyPressShowDiv(event.keyCode)'
    $page->addBodyContent($header_and_menu);
    $page->addBodyContent('<div id="content">');
    $page->addBodyContent($navbar);
    $page->addBodyContent($form->renderForm());
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:client_edit.php

示例9: array

            $form->addHtml($form->addDiv($form->makeField("submit", "", "", "Search", array('class' => 'submit'))));
            $form->addHtml("</div>\n");
            $form->addHtml("</fieldset>\n");
            if (!$_GET["viewForm"]) {
                $viewForm = 1;
            }
            $additional_js = '
if (!previousID) {
	var previousID = "form' . $viewForm . '";
	}
';
            $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => urldecode($_GET["searchLink"])), 'search' => array('title' => 'Search Calendar', 'label' => 'Search Calendar', 'link' => 'appointment_search.php'));
            $navbar = navbar2($navbar_array);
            $page->setTitle("Search Calendar");
            $page->addStyleSheet(getDefaultCss());
            $page->addScript('js/global.js');
            $page->addScript('js/CalendarPopup.js');
            $page->addScriptDeclaration($additional_js);
            $page->setBodyAttributes(array('onLoad' => $onLoad));
            $page->addScriptDeclaration('document.write(getCalendarStyles());var popcaldate_from = new CalendarPopup("popCalDivdate_from");popcaldate_from.showYearNavigation();var popcaldate_to = new CalendarPopup("popCalDivdate_to");popcaldate_to.showYearNavigation(); ');
            $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["type"]) {
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:appointment_search.php

示例10: 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>';
    }
    $page->setTitle("Production > {$pro_addr}");
    $page->addStyleSheet(getDefaultCss());
    $page->addScript('js/global.js');
    $page->addScript('js/scriptaculous/prototype.js');
    $page->addScript('js/scriptaculous/scriptaculous.js');
    $page->addScript('/js/Popup.js');
    $page->addScript('/js/jquery-1.4.3.min.js');
    $page->addScriptDeclaration($additional_js);
    $page->addScriptDeclaration($ptype['js']);
    #$page->setBodyAttributes(array('onLoad'=>$ptype['onload']));
    $page->setBodyAttributes(array('onLoad' => $onLoad));
    $page->addBodyContent($header_and_menu);
    $page->addBodyContent('<div id="content">');
    $page->addBodyContent($navbar);
    $page->addBodyContent($form->renderForm());
    if ($msg) {
        $page->addBodyContent($msg);
    }
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:deal_production.php


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