本文整理汇总了PHP中use_stylesheet函数的典型用法代码示例。如果您正苦于以下问题:PHP use_stylesheet函数的具体用法?PHP use_stylesheet怎么用?PHP use_stylesheet使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了use_stylesheet函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: include_editor_tools
function include_editor_tools($page)
{
if (sfContext::getInstance()->getRequest()->getParameter('edit') == 'true' && !sfConfig::get('app_sfSimpleCMS_disable_editor_toolbar', false)) {
use_stylesheet('/sfSimpleCMSPlugin/css/CMSEditorTools.css');
include_component('sfSimpleCMS', 'editorTools', array('page' => $page));
}
}
示例2: render
public function render($name, $value = array(), $attributes = array(), $errors = array())
{
$widget = array();
use_javascript('jquery.tooltip/jquery.tooltip.js');
use_stylesheet('../js/jquery.tooltip/jquery.tooltip.css');
$widget['%thumbnails%'] = '';
$widget['%thumbnails%'] .= '';
$j = 0;
foreach ($value as $j => $image) {
if (!isset($image['id'])) {
continue;
}
$fileIdInput = new sfWidgetFormInputHidden();
$fileNameInput = new sfWidgetFormInputHidden();
$commentInput = new sfWidgetFormInput(array(), array('maxlength' => 255));
$largeInput = new sfWidgetFormInputHidden();
$thumbnailInput = new sfWidgetFormInputHidden();
$widget['%thumbnails%'] .= '<div class="upload_item" style="margin-bottom: 10px;" >' . '<span style="display: inline; width: 260px; float: left; text-align: center; padding-top: 10px;">' . link_to($image['name'], strval($image['Large']), array('class' => 'preview', 'rel' => strval($image['Thumbnail']))) . '</span>' . ' ' . $thumbnailInput->render($name . "[" . $j . "][Thumbnail]", strval($image['Thumbnail']), array()) . $largeInput->render($name . "[" . $j . "][Large]", strval($image['Large']), array()) . $fileNameInput->render($name . "[" . $j . "][name]", $image['name'], array()) . $fileIdInput->render($name . "[" . $j . "][id]", $image['id'], array()) . '<span>Title:</span>' . $commentInput->render($name . "[" . $j . "][description]", $image['description'], array('class' => 'text input-mercha-account')) . ' <a href="#" class="del-photo"><img src="/images/cross.gif" style="vertical-align:middle;" /></a>' . '</div>';
}
$i = $j + 1;
$fileInput = new sfWidgetFormInputFile();
$commentInput = new sfWidgetFormInput();
$widget['%thumbnails%'] .= '<div class="upload_item" style="margin-bottom: 10px;" >' . $fileInput->render($name . "[" . $i . "][file]", null, array('class' => '', 'style' => "padding-left:0px; width: 260px; padding:0px; ")) . ' ' . '<span>Title:</span>' . $commentInput->render($name . "[" . $i . "][description]", null, array('class' => 'text input-mercha-account')) . ' <a href="#" class="del-photo" style="vertical-align:middle;"><img src="/images/cross.gif" /></a>' . '</div>' . '<div class=" add-another-location bottom_add_new_category_link" style="padding-top: 0px; padding-bottom: 15px;">' . '<div class="plus_category">' . '<div class="left margin1"><img src="/images/plus.gif" /></div>' . '<div class="left margin_top3"><a href="#" class="add-photo">Add Another Photo</a></div>' . '</div>' . '</div>';
$js = jq_javascript_tag("\r\n jQuery(document).ready(function(){\r\n i = jQuery('.upload_item').length + 1;\r\n \r\n jQuery('a.del-photo').live('click', function(e){\r\n e.preventDefault();\r\n jQuery(this).parents('.upload_item').remove();\r\n });\r\n \r\n jQuery('.preview').tooltip({ \r\n delay: 0, \r\n showURL: false, \r\n bodyHandler: function() { \r\n return jQuery('<img/>').attr('src', jQuery(this).attr('rel')); \r\n } \r\n });\r\n \r\n jQuery('a.add-photo').live('click', function(e){\r\n \r\n e.preventDefault();\r\n \r\n var already = jQuery('.upload_item');\r\n \r\n var newUpload = '';\r\n \r\n var maxCount = " . intval($this->getOption('max_count')) . ";\r\n \r\n if ((maxCount > 0 && already.length < maxCount) || maxCount == 0) {\r\n \r\n newUpload = \r\n '<div class=\\'upload_item\\' style=\\'margin-bottom: 10px;\\'><input type=\\'file\\' name=\\'" . $name . "[' + i + '][file]" . "\\' class=\"\" style=\"padding-left:0px; width: 260px; padding:0px; \" />' +\n ' <span>Title:</span>' +\r\n '<input type=\\'text\\' name=\\'" . $name . "[' + i + '][description]" . "\\' class=\\'text input-mercha-account\\' >';\r\n \r\n newUpload += \r\n ' <a href=\\'#\\' class=\\'del-photo\\'><img src=\\'/images/cross.gif\\' style=\\'vertical-align:middle;\\' /></a>';\r\n \r\n \r\n \r\n newUpload += '</div>';\r\n \r\n jQuery(newUpload).insertBefore(jQuery(this).parents('div.add-another-location'));\r\n i++;\r\n }\r\n })\r\n \r\n });\r\n ");
return $js . '<div id="uploader" style="width: 590px;">' . strtr($this->getOption('template'), $widget) . '</div>';
}
示例3: importAssets
/**
* @return mixed
*/
public function importAssets()
{
use_javascript("jstree/js/jstree.min.js");
use_javascript("treeManagement/jstree/common.js");
use_javascript("treeManagement/jstree/editMode/editMode.js");
use_stylesheet("jstree/themes/default/style.min.css");
use_stylesheet("jstree/custom/custom.css");
}
示例4: ncbt_menu
/**
* Get the HTML snippet for a Bootstrap Menu.
*
* @param string $config An optional path to the config file. Defaults to {sf_config_dir}/menu.yml
* @param array $options An optional array of options. Currently only 'secondary' is supported.
*
* @return string
*/
function ncbt_menu($config = null, $options = array())
{
use_stylesheet('/ncBootstrapMenuHelper/css/bootstrap.min.css');
use_javascript('/ncBootstrapMenuHelper/js/bootstrap-dropdown.css', 'last');
if (null === $config) {
$config = sfConfig::get('sf_config_dir') . '/menu.yml';
}
$config = new ncbtMenuConfigParser($config, $options);
return strval($config->getMenu());
}
示例5: use_plop_stylesheet
/**
* Add one or several stylesheet file(s) to the page
* @param Mixed $css String or array
*/
function use_plop_stylesheet($css)
{
$version = sfPlop::getVersion();
$suffix = 'v=' . $version;
if (is_array($css)) {
foreach ($css as $f) {
use_stylesheet($f . (strpos($f, '?') ? '&' : '?') . $suffix, '', array('media' => 'all'));
}
} else {
use_stylesheet($css . (strpos($css, '?') ? '&' : '?') . $suffix, '', array('media' => 'all'));
}
}
示例6: markdown_preview_link
function markdown_preview_link($field)
{
use_helper('JavascriptBase');
use_stylesheet('/csDoctrineMarkdownPlugin/css/markdown.css');
$submit = content_tag('a', 'Preview', array('href' => '#', 'onclick' => 'javascript:markdown_preview(this);return false'));
$js = javascript_tag(sprintf(<<<EOF
function markdown_preview (e) {
var markdown_text = \$('form *[name=%s]').val();
\$('#markdown_preview').load('%s', { 'markdown_value': markdown_text }, function() { \$(this).append("<a href='#' onclick='\$(\\"#markdown_preview\\").hide()'>hide</a>") } ).css('display', 'block');
}
EOF
, $field, url_for('csMarkdown/preview?markdown_field=' . $field)));
return $submit . $js;
}
示例7: _loadJsOamTools
function _loadJsOamTools()
{
$debug = sfContext::getInstance()->getRequest()->getParameter('debug', false);
$async_map = sfConfig::get('app_async_map', false);
$lang = sfContext::getInstance()->getUser()->getCulture();
if ($debug) {
include_partial('documents/map_lib_include_debug');
} else {
use_stylesheet('/static/css/carto_base.css', 'custom');
use_stylesheet('/static/css/popup.css', 'custom');
if (!$async_map) {
use_javascript('/static/js/carto/build/carto.min.js', 'maps');
}
}
use_stylesheet('/static/css/carto.css', 'custom');
if (!$async_map || $debug) {
use_javascript("/static/js/carto/build/lang-{$lang}.min.js", 'maps');
use_javascript('/static/js/popup.js', 'maps');
use_javascript('/static/js/carto/embedded.js', 'maps');
}
}
示例8: use_stylesheet
<?php
use_stylesheet('instr.css');
?>
<?php
include_partial('sectionfilterform', array('programs' => $programs, 'years' => $years, 'semesters' => $semesters, 'academicYears' => $academicYears, 'centers' => $centers));
?>
<div id='dropaddcontainer' style="width:100%;">
<div id='dropaddcontainer' style="width:100%;">
<h3 align="center"> Grade Submission </h3>
<div id='left' style="width:100%;border:none;" style="font-size: 11px;">
<table width="100%" class="table table-hover table-condensed ">
<thead>
<tr>
<td> <strong> <a href="<?php
echo url_for('programsection/index?sortBy=program');
?>
">Program </a></strong> </td>
<td> <strong> <a href="<?php
echo url_for('programsection/index?sortBy=center');
?>
"> Center </a></strong> </td>
<td> <strong> <a href="<?php
echo url_for('programsection/index?sortBy=academicYear');
示例9: use_stylesheets_for_form
<?php
use_stylesheets_for_form($filterform);
use_javascripts_for_form($filterform);
use_stylesheet('ins_up.css');
?>
<h5>Filter to Assign Courses </h5>
<form action="<?php
echo url_for('course/assigncourse');
?>
" method="post">
<?php
echo $filterform;
?>
<input type="submit" value="Assign courses"><br/>
<br/>
</form>
<table>
<thead>
<tr>
</tr>
</thead>
<tbody>
<tr>
</tr>
示例10: use_stylesheet
<?php
use_stylesheet('demopage.css');
?>
<table class="th_proyecto">
<tbody>
<tr class="titulos">
<td class="iconoproyectos"> </td>
<td class="fechaingreso"><?php
echo $var1 == 'Ingresados' ? 'Fecha Ingreso' : 'Fecha publicación';
?>
</td>
<td class="nroboletin">Nro boletín</td>
<td class="tituloley">Título</td>
<td class="etapa">Etapa</td>
</tr>
</tbody>
</table>
<div id="ls_proyectos">
<table id="tb_proyectos">
<tbody>
<?php
foreach ($pager->getResults() as $i => $proyecto_ley) {
?>
<tr class="<?php
echo fmod($i, 2) ? 'even' : 'odd';
?>
">
示例11: include_http_metas
echo include_http_metas();
?>
<?php
echo include_metas();
?>
<?php
echo include_title();
?>
<?php
$culture = $sf_user->getCulture();
$langFile = '/sf/calendar/lang/calendar-' . strtolower(substr($culture, 0, 2));
$jss = array('/sf/calendar/calendar', is_readable(sfConfig::get('sf_symfony_data_dir') . '/web/' . $langFile . '.js') ? $langFile : '/sf/calendar/lang/calendar-en', '/sf/calendar/calendar-setup');
foreach ($jss as $js) {
echo use_javascript($js);
}
echo use_stylesheet('/sf/calendar/skins/dark/theme');
#echo use_javascript(sfConfig::get('sf_prototype_pmb_dir').'/js/prototype');
#echo use_javascript(sfConfig::get('sf_prototype_pmb_dir').'/js/effects');
#echo use_javascript(sfConfig::get('sf_prototype_pmb_dir').'/js/controls');
echo use_javascript(sfConfig::get('sf_prototype_web_dir') . '/js/prototype');
echo use_javascript(sfConfig::get('sf_prototype_web_dir') . '/js/effects');
echo use_javascript(sfConfig::get('sf_prototype_web_dir') . '/js/controls');
?>
<link rel="shortcut icon" href=<?php
echo image_path('favicon.ico');
?>
/>
<style>
div.overlay {
position: absolute;
示例12: use_stylesheet
<?php
use_stylesheet('/sf/sf_admin/css/main');
use_helper('I18N', 'Date');
?>
<h1><?php
echo __('Asset edition', null, 'sfAsset');
?>
</h1>
<?php
include_partial('sfAsset/edit_header', array('sf_asset' => $sf_asset));
?>
<div id="sf_asset_bar">
<?php
include_partial('sfAsset/sidebar_edit', array('sf_asset' => $sf_asset));
?>
</div>
<div id="sf_asset_container">
<?php
include_partial('sfAsset/messages', array('sf_asset' => $sf_asset));
?>
<?php
include_partial('sfAsset/edit_form', array('sf_asset' => $sf_asset));
?>
</div>
<?php
示例13: stylesheet_tag
<?php
echo stylesheet_tag('orangehrm.datepicker.css');
echo javascript_include_tag('orangehrm.datepicker.js');
?>
<script type="text/javascript" src="<?php
echo public_path('../../scripts/jquery/ui/ui.draggable.js');
?>
"></script>
<script type="text/javascript" src="<?php
echo public_path('../../scripts/jquery/ui/ui.resizable.js');
?>
"></script>
<?php
use_stylesheet('../../../themes/orange/css/jquery/jquery.autocomplete.css');
use_stylesheet('../../../themes/orange/css/ui-lightness/jquery-ui-1.7.2.custom.css');
use_javascript('../../../scripts/jquery/ui/ui.core.js');
use_javascript('../../../scripts/jquery/ui/ui.dialog.js');
use_javascript('../../../scripts/jquery/jquery.autocomplete.js');
?>
<div id="validationMsg" style="margin-left: 16px; width: 470px"><?php
echo isset($messageData) ? templateMessage($messageData) : '';
?>
</div>
<div class="outerbox" style="width: 500px">
<div class="maincontent">
<div class="mainHeading">
<h2><?php
echo __('My Attendance Records');
?>
示例14: use_javascript
<?php
use_javascript('jquery.min.js');
use_javascript('ui/jquery.ui.core.min.js');
use_javascript('ui/jquery.ui.widget.min.js');
use_javascript('ui/jquery.ui.accordion.min.js');
use_javascript('jquery-accordion.js');
use_stylesheet('tweet.css');
use_stylesheet('perfilrelacion.css');
?>
<?php
slot('breadbrumb');
?>
<li>> <a href="<?php
echo url_for('Parlamentario/index');
?>
">Perfiles Parlamentarios</a></li>
<li class="actual">> <?php
echo $parlamentario->getNombre() . ' ' . $parlamentario->getApellidos();
?>
</li>
<?php
end_slot();
?>
<div id="top">
<div class="topperfil">
<img class="fotoperfil" src="/images/parlamentarios/<?php
echo $parlamentario->getIdParlamentario();
?>
示例15: use_stylesheet
* the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program;
* if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA
*
*/
?>
<?php
use_stylesheet(plugin_web_path('orangehrmRecruitmentPlugin', 'css/addJobVacancySuccess'));
use_javascript(plugin_web_path('orangehrmRecruitmentPlugin', 'js/addJobVacancySuccess'));
?>
<div class="box" id="addJobVacancy">
<div class="head">
<h1><?php
echo isset($vacancyId) ? __('Edit Job Vacancy') : __('Add Job Vacancy');
?>
</h1>
</div>
<div class="inner">
<?php
include_partial('global/flash_messages');