本文整理汇总了PHP中Head::get方法的典型用法代码示例。如果您正苦于以下问题:PHP Head::get方法的具体用法?PHP Head::get怎么用?PHP Head::get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Head
的用法示例。
在下文中一共展示了Head::get方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: plug_pdf
function plug_pdf($p, $o)
{
$_SESSION['call'] = '';
if (!$_GET['nom']) {
Head::add('csslink', '../css/_admin.css');
Head::add('jslink', '../progb/ajx.js');
$ret = Head::get();
}
$ret .= arts_menus($dya, $dyb);
$ret .= divd('call', '');
$ret .= divd('pdf', '');
return $ret;
}
示例2: upim_h
Head::add('csslink', '../css/_admin.css');
//Head::add('jslink','../js/upload.js');
Head::add('csscode', '
.upload_form_cont {border:1px solid transparent; color:#000;}
.info {background:#eee; border:1px solid #ddd; font-weight:bold; margin:20px;}
.info > div {padding:10px 15px;}
.info > h2 {padding:0 15px;}
#dropArea {background:#ddd; border:3px dashed #000; font-size:32px; height:50px; line-height:50px; margin:10px; text-align:center;}
#dropArea.hover {background:#ccc;}
#result .success, #result .failure {font-size:12px; margin-bottom:10px; padding:5px; border-radius:5px;}
#result .success {background-color:#77fc9f;}
#result .failure {background-color:#fcc577;}
}');
}
upim_h();
echo Head::get();
function fsize_b($d)
{
$u = array('B', 'KB', 'MB');
return @round($d / pow(1024, $i = floor(log($d, 1024))), 1) . ' ' . $u[$i];
}
function upload_j()
{
//p($_FILES);
if (isset($_FILES['myfile']) && $_SESSION['uproot']) {
$tmp = $_FILES['myfile']['tmp_name'];
$t = $_FILES['myfile']['type'];
$s = fsize_b($_FILES['myfile']['size']);
$n = $_FILES['myfile']['name'];
$n = strtolower($n);
$f = $_SESSION['uproot'] . '/' . $n;
示例3: css_link
} else {
$ret .= css_link('/css/' . $meta["css"] . '.css' . $cst);
}
$ret .= js_code('cutat=' . $_SESSION['jbuffer'] . '; fixpop="' . $_SESSION['mobile'] . '";
fulpop="1"; read="' . $read . '"; flow="' . $flow . '";');
$ret .= js_link('/prog' . $g . '/ajx.js');
//ajax
$ret .= js_link('/prog' . $g . '/utils.js');
//js
if (rstr(100)) {
$ret .= js_link('http://code.jquery.com/jquery-1.9.1.min.js');
}
if ($_SESSION['desgn']) {
$ret .= js_link('/js/live.js#css');
}
$ret .= Head::get();
$ret .= '</head>' . "\n";
if ($_GET['admin']) {
$sp = ' spellcheck="false"';
}
$ret .= '<body' . atb('onload', $onload) . ' onclick="clpop(event)" onmousemove="popslide(event)"' . $sp . '>' . "\n";
//
$ret .= divd('clbub', '') . "\n";
$ret .= $madmin;
$ret .= divd('desktop', '') . "\n";
$ret .= '<div id="page">' . "\n";
if ($out) {
$ret .= implode('', $out);
}
//if($rout)$ret.=$rout;
$ret .= '</div>' . "\n";