本文整理汇总了PHP中getCSS函数的典型用法代码示例。如果您正苦于以下问题:PHP getCSS函数的具体用法?PHP getCSS怎么用?PHP getCSS使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getCSS函数的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: for_error
function for_error()
{
$css = getCSS();
echo "<br><br><form action=Modules.php?modname={$_REQUEST['modname']} method=post>";
echo '<BR><CENTER>' . SubmitButton('Try Again', '', 'class=btn_medium') . '</CENTER>';
echo "</form>";
echo "</div>";
echo "</td>\n </tr>\n </table></td>\n </tr>\n </table></td>\n </tr>\n </table></td>\n </tr>\n </table></td>\n </tr>\n </table></td>\n </tr>\n\n\t\t\t<tr>\n <td class=\"footer\">\n\t\t\t<table width=\"100%\" border=\"0\">\n <tr>\n <td valign=middle class=\"copyright\">Copyright © 2007-2008 Open Solutions for Education, Inc. (<a href='http://www.os4ed.com' target='_blank'>OS4Ed</a>).</td>\n\t<td valign=bottom class=\"credits\"><a href='http://www.os4ed.com' target='_blank'><img src=\"themes/" . $css . "/os4ed_logo.png\" /></a></td>\n </tr>\n</table>\n\t\t\t</td>\n \t</tr>\n </table></td>\n </tr>\n </table>\n</center>\n</body>\n</html>";
exit;
}
开发者ID:SoftScape,项目名称:opensis,代码行数:10,代码来源:custom_functions.fnc.php
示例2: getMainTemplate
function getMainTemplate()
{
global $settings, $sql;
// Haupt-Template
$template = '{..doctype..}
<html lang="' . $settings['language'] . '">
<head>
{..title..}{..meta..}{..link..}{..script..}
</head>
{..body..}
</html>';
// Dynamischen Titel laden
$template_title = getTitle();
// Metadaten laden
$template_meta = '
<meta name="title" content="' . $template_title . '">
<meta name="description" content="' . $settings['description'] . '">
<meta name="keywords" lang="' . $settings['language'] . '" content="' . $settings['keywords'] . '">
<meta name="robots" content="index,follow">
<meta name="Revisit-after" content="3 days">
<meta http-equiv="content-language" content="' . $settings['language'] . '">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="DC.Title" content="' . $template_title . '">
<meta name="DC.Description" content="' . $settings['description'] . '">
<meta name="DC.Language" content="' . $settings['language'] . '">
<meta name="DC.Format" content="text/html">
';
// link's + CSS einbinden
$template_link = '
<link rel="shortcut icon" href="style/icons/favicon.ico">' . getCSS();
// Platzhalter ersetzen
$template = str_replace("{..title..}", "<title>" . $template_title . "</title>", $template);
$template = str_replace("{..meta..}", $template_meta, $template);
$template = str_replace("{..link..}", $template_link, $template);
$template = str_replace("{..script..}", getJS(), $template);
// Haupt-Template zurückgeben
return $template;
}
开发者ID:rancor2k,项目名称:bierBill,代码行数:40,代码来源:inc_functions.php
示例3: getCSS
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<?php
echo getCSS();
?>
</head>
<body>
<header>
<div class="top">
</div>
<nav class="main-navigation">
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</nav>
</header>
开发者ID:austincollins,项目名称:myPersonalWebsite,代码行数:20,代码来源:header.php
示例4: for_error_sch
function for_error_sch()
{
$css = getCSS();
echo "<br><br><form action=Modules.php?modname=" . strip_tags(trim($_REQUEST[modname])) . " method=post>";
echo '<BR><CENTER>' . SubmitButton('Try Again', '', 'class=btn_medium') . '</CENTER>';
echo "</form>";
echo "</div>";
echo "</td>\r\n </tr>\r\n </table></td>\r\n </tr>\r\n </table></td>\r\n </tr>\r\n </table></td>\r\n </tr>\r\n </table></td>\r\n </tr>\r\n </table></td>\r\n </tr>\r\n\r\n </table></td>\r\n </tr>\r\n </table>\r\n</center>\r\n</body>\r\n</html>";
exit;
}
开发者ID:jicheng17,项目名称:fenghua,代码行数:10,代码来源:CustomFunctionsFnc.php
示例5: getJS
return $css;
}
function getJS()
{
$js = '';
$file = "js/flickr_photo_search-min.js";
if (file_exists($file)) {
$js = file_get_contents($file);
}
$scripts = <<<SCRIPTS
<script type="text/javascript" src="http://yui.yahooapis.com/2.8.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript">
{$js}
</script>
SCRIPTS;
return $scripts;
}
/* End of Functions */
/* Being Markup Preparetion */
$css = getCSS();
$js = getJS();
$html = <<<MARKUP
<head>
{$css}
</head>
<body>
{$result}
{$js}
</body>
MARKUP;
echo $html;
开发者ID:ravikiranj,项目名称:flickr-yap-demo,代码行数:31,代码来源:flickr_yap_fullview.php
示例6: ErrorMessage1
function ErrorMessage1($errors, $code = 'error')
{
if ($errors) {
$return = "<div style=text-align:left><table cellpadding=5 cellspacing=5 class=alert_box ><tr>";
if (count($errors) == 1) {
if ($code == 'error' || $code == 'fatal') {
$return .= '<td class=note></td><td class=note_msg >';
} else {
$return .= '<td class=alert></td><td class=alert_msg >';
}
$return .= $errors[0] ? $errors[0] : $errors[1];
} else {
if ($code == 'error' || $code == 'fatal') {
$return .= "<td class=note></td><td class=note_msg >";
} else {
$return .= '<td class=alert></td><td class=alert_msg >';
}
$return .= '<ul>';
foreach ($errors as $value) {
$return .= "<LI>{$value}</LI>\n";
}
$return .= '</ul>';
}
$return .= "</td></tr></table></div>";
if ($code == 'fatal') {
$css = getCSS();
$return .= "</td></tr></table>";
$return .= "</td></tr></table></div>";
$return .= "</td></tr></table>";
$return .= "</td></tr></table>";
$return .= "</td></tr></table>";
$return .= "</td></tr>";
$return .= "<tr>\r\n\t\t\t\t\t\t\t<td class=\"footer\">\r\n\t\t\t\t\t\t\t<table width=\"100%\" border=\"0\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td align='center' class='copyright'>\r\n\t\t\t\t\t\t\t\t <center>Copyright 2016@Feng Hua Language Studies Centre/丰华语言学习中心. All rights reserved.</center></td>\r\n\t\t\t\t\t\t\t </tr>\r\n\t\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t</table>";
$return .= "</td></tr></table></td></tr></table>";
if ($isajax == "") {
if (!$_REQUEST['_openSIS_PDF']) {
Warehouse('footer');
}
}
exit;
}
return $return;
}
}
开发者ID:jicheng17,项目名称:fenghua,代码行数:44,代码来源:ErrorMessageFnc.php
示例7: getStatusText
<div class="icono logo">
<img src="images/icons/Linea-H.png" alt="Estado subte linea H" />
</div>
<div class="icono estado"></div>
<div class="descripcion estado"><?php
echo getStatusText($data->H);
?>
</div>
<div class="descripcion detalle"><?php
echo getDescriptionText($data->H, 'H');
?>
</div>
</li>
<li class="divider"></li>
<li class="linea p<?php
echo getCSS($data->P);
?>
">
<div class="icono logo">
<img src="images/icons/Linea-P.png" alt="Estado subte linea premetro" />
</div>
<div class="icono estado"></div>
<div class="descripcion estado"><?php
echo getStatusText($data->P);
?>
</div>
<div class="descripcion detalle"><?php
echo getDescriptionText($data->P, 'P');
?>
</div>
</li>
开发者ID:HaySubtes,项目名称:hay-subtes-original,代码行数:31,代码来源:index.php
示例8: changeColors
}
}
echo "<script type='text/javascript'>\r\n\tfunction changeColors(){ \r\n \r\n var aTags = document.getElementsByTagName(\"a\"); \r\n\t\t\r\n\t\t\r\n for(i=0;i<aTags.length;i++){ \r\n \tif(document.getElementsByTagName('a')[i].id=='hm')\r\n document.getElementsByTagName('a')[i].className = 'submenuitem'; \r\n } \r\n\t} \r\n function init(param,param2) {\r\n \r\n calendar.set('date_'+param);\r\n if(param2==2)\r\n {\r\n document.getElementById('date_'+param).style.display ='block';\r\n document.getElementById('date_div_'+param).style.display ='none';\r\n }\r\n document.getElementById('date_'+param).click();\r\n }\r\n\t\t\r\n</script>";
error_reporting(1);
$start_time = time();
include 'Warehouse.php';
$old_school = UserSchool();
$old_syear = UserSyear();
if ((!$_SESSION['UserMP'] || optional_param('school', '', PARAM_SPCL) && optional_param('school', '', PARAM_SPCL) != $old_school || optional_param('syear', 0, PARAM_SPCL) && optional_param('syear', 0, PARAM_SPCL) != $old_syear) && User('PROFILE') != 'parent') {
$_SESSION['UserMP'] = GetCurrentMP('QTR', DBDate());
}
array_rwalk($_REQUEST, 'strip_tags');
//print_r($_REQUEST);
if (!isset($_REQUEST['_openSIS_PDF'])) {
Warehouse('header');
$css = trim(getCSS());
echo "<link rel='stylesheet' type='text/css' href='themes/" . trim(strtolower($css)) . "/" . trim(ucwords($css)) . ".css'>";
echo "<link rel='stylesheet' type='text/css' href='styles/Help.css'>";
echo "<link rel='stylesheet' type='text/css' href='styles/CalendarMod.css'>";
if (strpos($_REQUEST['modname'], 'miscellaneous/') === false) {
echo '<script language="JavaScript">if(window == top && (!window.opener || window.opener.location.href.substring(0,(window.opener.location.href.indexOf("&")!=-1?window.opener.location.href.indexOf("&"):window.opener.location.href.replace("#","").length))!=window.location.href.substring(0,(window.location.href.indexOf("&")!=-1?window.location.href.indexOf("&"):window.location.href.replace("#","").length)))) window.location.href = "index.php";</script>';
}
echo "<BODY onload='newLoad()' style='overflow-x:hidden; min-windth:900px;'>";
}
echo "\r\n<center>\r\n <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"wrapper\">\r\n <tr>\r\n <td ><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr>\r\n <td class=\"banner\" valign=\"top\"><table width='100%' border='0' cellspacing='0' cellpadding='0'>\r\n <tr>\r\n <td align=\"left\"> </td>\r\n <td align=\"right\"><div class=\"user_info\">" . date('l F j, Y') . " | " . User('NAME') . " | <a href='index.php?modfunc=logout' class='logout'>Log Out</a>";
/****************************************************************************************/
if (User('PROFILE') == 'teacher') {
echo "<br /><br />\r\n\t<table cellspacing=\"0\"><tr><td><FORM name=head_frm id=head_frm action=Side.php?modfunc=update&btnn={$btn}&nsc={$ns}&act=school method=POST><INPUT type=hidden name=modcat value='' id=modcat_input>";
$RET = DBGet(DBQuery('SELECT s.ID,s.TITLE FROM schools s,staff st INNER JOIN staff_school_relationship ssr USING(staff_id) WHERE s.id=ssr.school_id AND ssr.syear=\'' . UserSyear() . '\' AND st.staff_id=\'' . $_SESSION[STAFF_ID] . '\' AND (ssr.END_DATE>=curdate() OR ssr.END_DATE=\'0000-00-00\')'));
echo "<SELECT name=school onChange='this.form.submit();'>";
foreach ($RET as $school) {
开发者ID:jeffthestampede,项目名称:excelsior,代码行数:31,代码来源:Modules.php
示例9: displayDataTablesScripts
function displayDataTablesScripts($extensions = array())
{
$returnStr = "";
if (!isRegisteredScript("../js/datatables/datatables.js")) {
registerScript('../js/datatables/datatables.js');
$returnStr .= getScript("../js/datatables/datatables.js");
}
if (!isRegisteredScript("../js/datatables/extensions/date_sorting.js")) {
registerScript('../js/datatables/extensions/date_sorting.js');
$returnStr .= getScript("../js/datatables/extensions/date_sorting.js");
}
if (!isRegisteredScript("../js/datetimepicker/moment-min.js")) {
registerScript('../js/datetimepicker/moment-min.js');
$returnStr .= getScript("../js/datetimepicker/moment-min.js");
}
if (!isRegisteredScript("../js/datatables/datatables.css")) {
registerScript('../js/datatables/datatables.css');
$returnStr .= getCSS("../js/datatables/datatables.css");
}
foreach ($extensions as $ext) {
if (!isRegisteredScript("../js/datatables/extensions/' . {$ext} . '.js")) {
registerScript('../js/datatables/extensions/' . $ext . '.js');
$returnStr .= getScript("../js/datatables/extensions/' . {$ext} . '.js");
}
if (strtoupper($ext) != strtoupper('rowreorder')) {
// reorder has no associated css
if (!isRegisteredScript("../js/datatables/extensions/' . {$ext} . '.css")) {
registerScript('../js/datatables/extensions/' . $ext . '.css');
$returnStr .= getCSS("../js/datatables/extensions/' . {$ext} . '.css");
}
} else {
if (!isRegisteredScript("../js/jqueryui/sortable.js")) {
registerScript('../js/jqueryui/sortable.js');
$returnStr .= getScript("../js/jqueryui/sortable.js");
}
}
}
/* https://datatables.net/forums/discussion/10437/fixedheader-column-headers-not-changing-on-window-resize/p1 */
/* resize of header on window resize/empty/error */
$returnStr .= '<script type="text/javascript">
function resizeDataTables() {
$(\'div.dataTables_scrollBody table.dataTable\').each( function( index ) {
$(this).dataTable().fnAdjustColumnSizing();
});
}
$(window).on(\'resize\', function () {
resizeDataTables();
} );
</script>';
return $returnStr;
}
开发者ID:nubissurveying,项目名称:nubis,代码行数:52,代码来源:jumpback.php
示例10: ErrorMessage1
function ErrorMessage1($errors, $code = 'error')
{
if ($errors) {
$return = "<div style=text-align:left><table cellpadding=5 cellspacing=5 class=alert_box ><tr>";
if (count($errors) == 1) {
if ($code == 'error' || $code == 'fatal') {
$return .= '<td class=note></td><td class=note_msg >';
} else {
$return .= '<td class=alert></td><td class=alert_msg >';
}
$return .= $errors[0] ? $errors[0] : $errors[1];
} else {
if ($code == 'error' || $code == 'fatal') {
$return .= "<td class=note></td><td class=note_msg >";
} else {
$return .= '<td class=alert></td><td class=alert_msg >';
}
$return .= '<ul>';
foreach ($errors as $value) {
$return .= "<LI>{$value}</LI>\n";
}
$return .= '</ul>';
}
$return .= "</td></tr></table></div>";
if ($code == 'fatal') {
$css = getCSS();
$return .= "</td></tr></table>";
$return .= "</td></tr></table></div>";
$return .= "</td></tr></table>";
$return .= "</td></tr></table>";
$return .= "</td></tr></table>";
$return .= "</td></tr>";
$return .= "<tr>\n\t\t\t\t\t\t\t<td class=\"footer\">\n\t\t\t\t\t\t\t<table width=\"100%\" border=\"0\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td valign=middle class=\"copyright\">Copyright © 2007-2008 Open Solutions for Education, Inc. (<a href='http://www.os4ed.com' target='_blank'>OS4Ed</a>).</td>\n\t\t\t\t\t\t\t<td valign=bottom class=\"credits\"><a href='http://www.os4ed.com' target='_blank'><img src=\"themes/" . $css . "/os4ed_logo.png\" /></a></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>";
$return .= "</td></tr></table></td></tr></table>";
if ($isajax == "") {
// echo $return;
if (!$_REQUEST['_CENTRE_PDF']) {
Warehouse('footer');
}
}
exit;
}
return $return;
}
}
开发者ID:SoftScape,项目名称:opensis,代码行数:45,代码来源:ErrorMessage.fnc.php
示例11: addCSS
<?php
addCSS("assets/admin/css/bootstrap.min.css");
?>
<?php
addCSS("assets/global/plugins/slick/slick.css");
?>
<?php
addCSS("assets/global/plugins/slick/slick-theme.css");
?>
<?php
addCSS("assets/custom/css/custom.css");
?>
<?php
getCSS();
?>
</head>
<body>
<?php
echo $menu;
?>
<button class="icon-menu-top-open menu fa fa-bars fa-3"></button>
<div id="page-container" >
<section class="container-fluid header-container">
<div id="header" class="row">
<div id="img-back-header" class="col-md-12">
<!--<div class="triangulo_top_right"></div>
<div class="triangulo_top_left"></div>
<div class="triangulo_bottom_left"></div>
开发者ID:abadjanier,项目名称:myweb,代码行数:31,代码来源:home_view.php
示例12: startElement
function startElement($parser, $name, $attrs)
{
setCurrentTag(strtolower($name));
setEmpty(true);
//
// If we are currently processing a list (<ol> or <ul>), check if the next element is a
// block-level element (P, etc.). If so, then we must break out of the list by closing it (</ul> or </ol>)
// and start rendering the new element.
//
if (isInsideList() && $name == "P")
{
if (isOrderedList()) add2Doc("\n</ol>\n"); // check for ordered lists and preserve if present.
else add2Doc("</ul>\n");
setInsideList(false);
setDepth(getDepth()-1);
}
switch($name)
{
//////////////////////// TEXTFORMAT (some attrs add to <p>)
case "TEXTFORMAT":
foreach ($attrs as $aname => $avalue)
{
switch($aname)
{
case "INDENT":
addCSS("margin-left:".strtolower($avalue)."px;");
break;
}
}
break;
//////////////////////// PARAGRAPH
case "P":
add2Doc("\n<p style=\"margin:0;".getCSS());
setDepth(getDepth()+1);
foreach ($attrs as $aname => $avalue)
{
switch($aname)
{
case "ALIGN": add2Doc("text-align:".strtolower($avalue).";"); break;
}
}
add2Doc("\">");
break;
//////////////////////// ANCHORS (LINKS)
case "A":
add2Doc("<a ");
foreach ($attrs as $aname => $avalue)
{
switch($aname)
{
case "HREF": add2Doc("href=\"$avalue\" "); break;
case "TARGET": add2Doc("target=\"$avalue\" "); break;
}
}
add2Doc(">");
//////////////////////// FONT (converts to <span>)
case "FONT":
$stylevalue = "";
foreach ($attrs as $aname => $avalue)
{
switch($aname)
{
case "FACE":
if (getLastFont() != $avalue) $stylevalue .= "font-family:".filterFontNames($avalue).";";
setLastFont($avalue);
break;
case "SIZE":
$avalue = fontSizeToPx($avalue);
if (getLastSize() != $avalue) $stylevalue .= "font-size:".$avalue."px;";
setLastSize($avalue);
break;
case "COLOR":
if (getLastColor() != $avalue) $stylevalue .= "color:".strtolower($avalue).";";
setLastColor($avalue);
break;
}
}
if ($stylevalue != "")
{
add2Doc("<span style=\"$stylevalue\">");
setDepth(getDepth()+1);
}
break;
//////////////////////// Bold
case "B":
add2Doc("<strong>");
//.........这里部分代码省略.........
开发者ID:skoczen,项目名称:impact4-builder,代码行数:101,代码来源:obedit_html_filter.inc.php
示例13: displayComboBox
function displayComboBox()
{
$str = '';
if (!isRegisteredScript("js/bootstrap-select/bootstrap-select-min.js")) {
registerScript('js/bootstrap-select/bootstrap-select-min.js');
$str .= getScript("js/bootstrap-select/bootstrap-select-min.js");
}
if (!isRegisteredScript("css/bootstrap-select.css")) {
registerScript('css/bootstrap-select.css');
$str .= getCSS("css/bootstrap-select.css");
}
$str .= '<script type="text/javascript">
$(document).ready(function(){
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
$(".selectpicker").selectpicker({
mobile: true,
noneSelectedText : \'' . Language::labelDropdownNothing() . '\'}
);
}
else {
$(".selectpicker").selectpicker({
noneSelectedText : \'' . Language::labelDropdownNothing() . '\'}
);
}
});
</script>';
return $str;
}
开发者ID:nubissurveying,项目名称:nubis,代码行数:28,代码来源:install.php
示例14: ErrorMessage1
function ErrorMessage1($errors, $code = 'error')
{
if ($errors) {
$return = "<div style=text-align:left><table cellpadding=5 cellspacing=5 class=alert_box ><tr>";
if (count($errors) == 1) {
if ($code == 'error' || $code == 'fatal') {
$return .= '<td class=note></td><td class=note_msg >';
} else {
$return .= '<td class=alert></td><td class=alert_msg >';
}
$return .= $errors[0] ? $errors[0] : $errors[1];
} else {
if ($code == 'error' || $code == 'fatal') {
$return .= "<td class=note></td><td class=note_msg >";
} else {
$return .= '<td class=alert></td><td class=alert_msg >';
}
$return .= '<ul>';
foreach ($errors as $value) {
$return .= "<LI>{$value}</LI>\n";
}
$return .= '</ul>';
}
$return .= "</td></tr></table></div>";
if ($code == 'fatal') {
$css = getCSS();
$return .= "</td></tr></table>";
$return .= "</td></tr></table></div>";
$return .= "</td></tr></table>";
$return .= "</td></tr></table>";
$return .= "</td></tr></table>";
$return .= "</td></tr>";
$return .= "<tr>\r\n\t\t\t\t\t\t\t<td class=\"footer\">\r\n\t\t\t\t\t\t\t<table width=\"100%\" border=\"0\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td align='center' class='copyright'>\r\n\t\t\t\t\t\t\t\t <center>openSIS is a product of Open Solutions for Education, Inc. (<a href='http://www.os4ed.com' target='_blank'>OS4Ed</a>).\r\n\t\t\t\t\t\t\t\t\t\t\tand is licensed under the <a href='http://www.gnu.org/licenses/gpl.html' target='_blank'>GPL License</a>.\r\n\t\t\t\t\t\t\t\t\t\t\t</center></td>\r\n\t\t\t\t\t\t\t </tr>\r\n\t\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t</table>";
$return .= "</td></tr></table></td></tr></table>";
if ($isajax == "") {
if (!$_REQUEST['_openSIS_PDF']) {
Warehouse('footer');
}
}
exit;
}
return $return;
}
}
开发者ID:jicheng17,项目名称:fh,代码行数:44,代码来源:ErrorMessageFnc.php
示例15: mkdir
$csssrc = 'htdocs/commsy_print_css.php';
}
$csstarget = $directory.'/stylesheet.css';
mkdir($directory.'/css', 0777);
if (isset($params['view_mode'])){
$url_to_style = $c_commsy_domain.$c_commsy_url_path.'/css/commsy_pda_css.php?cid='.$environment->getCurrentContextID();
} else {
$url_to_style = $c_commsy_domain.$c_commsy_url_path.'/css/commsy_print_css.php?cid='.$environment->getCurrentContextID();
}
getCSS($directory.'/css/stylesheet.css',$url_to_style);
unset($url_to_style);
$url_to_style = $c_commsy_domain.$c_commsy_url_path.'/css/commsy_myarea_css.php?cid='.$environment->getCurrentContextID();
getCSS($directory.'/css/stylesheet2.css',$url_to_style);
unset($url_to_style);
//create ZIP File
if(isset($params['iid'])) {
$zipfile = $export_temp_folder.DIRECTORY_SEPARATOR.$environment->getCurrentModule().'_'.$params['iid'].'.zip';
}
else {
$zipfile = $export_temp_folder.DIRECTORY_SEPARATOR.$environment->getCurrentModule().'_'.$environment->getCurrentFunction().'.zip';
}
if(file_exists(realpath($zipfile))) {
unlink($zipfile);
}
if ( class_exists('ZipArchive') ) {
include_once('functions/misc_functions.php');
开发者ID:a2call,项目名称:commsy,代码行数:31,代码来源:rubric_download.php
示例16: getCodeMirror
function getCodeMirror($style = '')
{
if (!isRegisteredScript("js/codemirror/lib/codemirror.css")) {
registerScript('js/codemirror/lib/codemirror.css');
$returnStr = getCSS("js/codemirror/lib/codemirror.css");
}
if (!isRegisteredScript("js/codemirror/addon/dialog/dialog.css")) {
registerScript('js/codemirror/addon/dialog/dialog.css');
$returnStr .= getCSS("js/codemirror/addon/dialog/dialog.css");
}
if (!isRegisteredScript("js/codemirror/lib/codemirror.js")) {
registerScript('js/codemirror/lib/codemirror.js');
$returnStr .= getScript("js/codemirror/lib/codemirror.js");
}
if (!isRegisteredScript("js/codemirror/mode/xml/xml.js")) {
registerScript('js/codemirror/mode/xml/xml.js');
$returnStr .= getScript("js/codemirror/mode/xml/xml.js");
}
if (!isRegisteredScript("js/codemirror/addon/dialog/dialog.js")) {
registerScript('js/codemirror/addon/dialog/dialog.js');
$returnStr .= getScript("js/codemirror/addon/dialog/dialog.js");
}
if (!isRegisteredScript("js/codemirror/addon/search/searchcursor.js")) {
registerScript('js/codemirror/addon/search/searchcursor.js');
$returnStr .= getScript("js/codemirror/addon/search/searchcursor.js");
}
if (!isRegisteredScript("js/codemirror/addon/search/search.js")) {
registerScript('js/codemirror/addon/search/search.js');
$returnStr .= getScript("js/codemirror/addon/search/search.js");
}
if (!isRegisteredScript("js/codemirror/mode/nubis/nubis.js")) {
registerScript('js/codemirror/mode/nubis/nubis.js');
$returnStr .= getScript("js/codemirror/mode/nubis/nubis.js");
}
$returnStr .= '<style type="text/css">';
$returnStr .= ' .CodeMirror {' . $style . ' border-top: 1px solid black; border-bottom: 1px solid black;}
dt {font-family: monospace; color: #666;}
</style>';
return $returnStr;
}
开发者ID:nubissurveying,项目名称:nubis,代码行数:40,代码来源:display.php
注:本文中的getCSS函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论