• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP use_stylesheet函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中use_stylesheet函数的典型用法代码示例。如果您正苦于以下问题:PHP use_stylesheet函数的具体用法?PHP use_stylesheet怎么用?PHP use_stylesheet使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了use_stylesheet函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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));
    }
}
开发者ID:net7,项目名称:Talia-CMS,代码行数:7,代码来源:sfSimpleCMSHelper.php


示例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>' . '&nbsp;' . $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')) . '&nbsp;&nbsp;&nbsp;&nbsp;<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; ")) . '&nbsp;' . '<span>Title:</span>' . $commentInput->render($name . "[" . $i . "][description]", null, array('class' => 'text  input-mercha-account')) . '&nbsp;&nbsp;&nbsp;&nbsp;<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              '&nbsp;<span>Title:</span>' +\r\n              '<input type=\\'text\\' name=\\'" . $name . "[' + i + '][description]" . "\\' class=\\'text input-mercha-account\\' >';\r\n          \r\n            newUpload += \r\n              '&nbsp;&nbsp;&nbsp;&nbsp;<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>';
 }
开发者ID:rollmax,项目名称:read2read,代码行数:26,代码来源:tsWidgetFormUploadImageMany.class.php


示例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");
 }
开发者ID:lendji4000,项目名称:compose,代码行数:11,代码来源:ModeEditTreeStrategy.php


示例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());
}
开发者ID:ncuesta,项目名称:ncBootstrapMenuPlugin,代码行数:18,代码来源:BootstrapMenuHelper.php


示例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'));
    }
}
开发者ID:noreiller,项目名称:sfPlopPlugin,代码行数:16,代码来源:sfPlopHelper.php


示例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;
}
开发者ID:bshaffer,项目名称:Symplist,代码行数:14,代码来源:MarkdownHelper.php


示例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');
    }
}
开发者ID:snouhaud,项目名称:camptocamp.org,代码行数:21,代码来源:OamMapHelper.php


示例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');
开发者ID:eyumay,项目名称:srms.psco,代码行数:31,代码来源:indexSuccess.php


示例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>
开发者ID:eyumay,项目名称:srms.psco,代码行数:31,代码来源:indexSuccess_1.php


示例10: use_stylesheet

<?php

use_stylesheet('demopage.css');
?>

<table class="th_proyecto">
  <tbody>
    <tr class="titulos">
      <td class="iconoproyectos">&nbsp;</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';
    ?>
">
开发者ID:votainteligente,项目名称:legislativo,代码行数:31,代码来源:balancelistSuccess.php


示例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;
开发者ID:taryono,项目名称:school,代码行数:31,代码来源:layout.php


示例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 
开发者ID:rewrewby,项目名称:propertyx,代码行数:31,代码来源:editSuccess.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');
?>
开发者ID:THM068,项目名称:orangehrm,代码行数:31,代码来源:viewMyAttendanceRecordSuccess.php


示例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();
?>
开发者ID:rezzo,项目名称:legislativo,代码行数:31,代码来源:showSuccess_copy.php


示例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');
开发者ID:abdocmd,项目名称:orangehrm-3.0.1,代码行数:31,代码来源:addJobVacancySuccess.php


示例16: use_helper

<?php use_helper('JavascriptBase', 'I18N') ?>
<?php use_stylesheet('/vjCommentPlugin/css/reported.min.css') ?>
<div id="report-sent">
  <span><?php echo __('Report sent.', array(), 'vjComment') ?><br/><?php echo __('The moderation team has been notified.', array(), 'vjComment') ?></span><br /><br />
  <?php echo link_to_function(__('Close the popup', array(), 'vjComment'), 'window.close()') ?>
</div>
开发者ID:nacef,项目名称:ijani,代码行数:6,代码来源:reportedSuccess.php


示例17: foreach

<?php

/**
 * @var $decision Decision
 * @var $sf_request sfWebRequest
 * @var $sf_response sfWebResponse
 * @var $upload_widget laWidgetFileUpload
 */
foreach ($upload_widget->getStylesheets() as $stylesheet => $media) {
    use_stylesheet($stylesheet);
}
foreach ($upload_widget->getJavaScripts() as $script) {
    use_javascript($script);
}
decorate_with('steps_layout');
$sf_response->setTitle('Collaborate');
$form = new RoleForm();
use_stylesheets_for_form($form);
use_javascripts_for_form($form);
?>

<?php 
slot('sidebar');
?>
  <?php 
include_partial("global/leftSidebar", array('decision_id' => $decision->getId()));
end_slot();
?>

<?php 
slot('app_name');
开发者ID:sensorsix,项目名称:app,代码行数:31,代码来源:indexSuccess.php


示例18: use_dynamic_stylesheet

/**
 * Adds a dynamic stylesheet to the response object.
 *
 * The first argument is an internal URI.
 * The helper automatically adds the sf_format to the internal URI, so you don't have to.
 *
 * @see sfResponse->addStylesheet()
 */
function use_dynamic_stylesheet($css, $position = '', $options = array())
{
    $options['raw_name'] = true;
    return use_stylesheet(_dynamic_path($css, 'css'), $position, $options);
}
开发者ID:Esleelkartea,项目名称:legedia-ESLE,代码行数:13,代码来源:AssetHelper.php


示例19: use_stylesheet

<?php

use_stylesheet('cmp');
include_partial('global/h1', array('txt' => 'Circuit Breakers by LiveWire Supply'));
?>
<form class='basic' method='get' action='<?php 
echo url_for('@part_search');
?>
'>
	<h2 id='sh'>Enter your Circuit Breaker Catalog Number Here</h2>
	<p><input type='text' size='26' maxlength='50' value='' class='txt' name='q' /><input type='submit' value='' class='sbmt' /></p>
	<input type='hidden' name='section' value='cb' />
</form>
<div class='manuf_box'>
	<h3><span>OR</span> Select a Circuit Breaker Manufacturer</h3>
	<ul class='manufs'>
		<li class='top left bu'><?php 
echo link_to('BUI Circuit Breakers', '@cb_manuf?manuf_slug=bui', array('title' => 'Cirucit Breakers by BUI'));
?>
</li>
		<li class='top ce'><?php 
echo link_to('Connecticut Electric Circuit Breakers', '@cb_manuf?manuf_slug=connecticut-electric', array('title' => 'Cirucit Breakers by Connecticut Electric'));
?>
</li>
		<li class='top ch'><?php 
echo link_to('Cutler Hammer Circuit Breakers', '@cb_manuf?manuf_slug=cutler-hammer', array('title' => 'Cirucit Breakers by Cutler Hammer'));
?>
</li>
		<li class='left fp'><?php 
echo link_to('Federal Pacific Circuit Breakers', '@cb_manuf?manuf_slug=federal-pacific', array('title' => 'Cirucit Breakers by Federal Pacific'));
?>
开发者ID:morganney,项目名称:livewire,代码行数:31,代码来源:indexSuccess.php


示例20: use_stylesheet

<?php

use_stylesheet('search');
?>
<!-- <?php 
include_partial('global/h1', array('txt' => 'Search Parameter Missing', 'hide_phone_num' => true));
?>
 -->
<div id='srch_results'>
	<h3>You did not enter a part or catalog number. Please enter a valid part number</h3>
</div>

开发者ID:morganney,项目名称:livewire,代码行数:11,代码来源:searchError.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP use_stylesheets_for_form函数代码示例发布时间:2022-05-23
下一篇:
PHP use_soap_error_handler函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap