示例#1
0
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));
    }
}
 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>';
 }
 /**
  * @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");
 }
/**
 * 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
0
/**
 * 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
0
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
0
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
0
<?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
0
<?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>
<?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';
    ?>
">
示例#11
0
文件: layout.php 项目: taryono/school
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
0
<?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 
<?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
0
<?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();
?>
 * 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');
示例#16
0
<?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>
示例#17
0
<?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');
示例#18
0
/**
 * 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);
}
示例#19
0
<?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'));
?>
示例#20
0
<?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>

示例#21
0
 * This file is part of Kimkëlen.
 *
 * Kimkëlen is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License v2.0 as published by
 * the Free Software Foundation.
 *
 * Kimkëlen 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 Kimkëlen.  If not, see <http://www.gnu.org/licenses/gpl-2.0.html>.
 */
include_partial('student/assets');
use_stylesheet('history.css', 'first');
?>

<div id="sf_admin_container">
  <h1><?php 
echo __("%%student%%'s history in %%career_student%%", array("%%student%%" => $career_student->getStudent(), "%%career_student%%" => $career_student->getCareer()));
?>
</h1>

  <div id="sf_admin_content">
    <ul class="sf_admin_actions">
      <li class="sf_admin_action_list">
        <?php 
echo link_to(__("Back"), "student/registerForCareer?id=" . $career_student->getStudentId());
?>
      </li>
示例#22
0
<?php

use_stylesheet('dev/demopage.css');
use_stylesheet('dev/votacion.css');
use_stylesheet('dev/visualize.css');
use_stylesheet('dev/visualize-light-votacion.css');
use_javascript('jquery.min.js');
use_javascript('visualize2.jQuery.js');
use_stylesheet('dev/bubbletip.css');
use_javascript('ui/jbubbletip.js');
?>
<!--esta es la prueba definitiva--->

<!--[if IE 7]><?php 
use_stylesheet('bubbletip-IE.css');
?>
<![endif]-->

<?php 
slot('breadbrumb');
?>
  <li>> <a href="<?php 
echo url_for('Sesion/index');
?>
">Análisis legislativo</a></li>
  <li>> <a href="<?php 
echo url_for('ProyectoLey/show?id_proyecto_ley=' . $proyecto_ley->getIdProyectoLey());
?>
">Proyecto en discusión</a></li>
  <li class="actual">> Votaciones</li>
<?php 
示例#23
0
<?php

use_stylesheet('jobs.css');
?>
 
<div id="jobs">
  <?php 
foreach ($categories as $category) {
    ?>
    <div class="category_<?php 
    echo Jobeet::slugify($category->getName());
    ?>
">
      <div class="category">
        <div class="feed">
          <a href="">Feed</a>
        </div>
        <h1><?php 
    echo $category;
    ?>
</h1>
      </div>  
  
      <table class="jobs">
        <?php 
    foreach ($category->getActiveJobs(sfConfig::get('app_max_jobs_on_homepage')) as $i => $job) {
        ?>
          <tr class="<?php 
        echo fmod($i, 2) ? 'even' : 'odd';
        ?>
">
示例#24
0
      <?php 
    include_title();
    ?>
    <?php 
}
?>
    <link rel="shortcut icon" href="/favicon.ico" />
  
		<script type="text/javascript" src="http://www.google.com/jsapi"></script>
		<script type="text/javascript" charset="utf-8">
			google.load('jquery','1.4');
			google.load('jqueryui', '1.8');
		</script>

		<?php 
use_stylesheet('http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/cupertino/jquery-ui.css');
?>
		<script type="text/javascript" src="<?php 
echo javascript_path('jquery/fancybox/jquery.fancybox-1.3.1.pack.js');
?>
"></script>
		<link rel="stylesheet" href="<?php 
echo javascript_path('jquery/fancybox/jquery.fancybox-1.3.1.css');
?>
" type="text/css" media="screen" title="no title" charset="utf-8">
    <?php 
include_stylesheets();
?>
    <?php 
include_javascripts();
?>
示例#25
0
';
var MAXLENGTH = 140;
var fileMaxSize = '<?php 
echo opTimelinePluginUtil::getFileSizeMax();
?>
';
//]]>
</script>
<?php 
use_javascript('/opTimelinePlugin/js/jquery.timeline.js', 'last');
use_javascript('/opTimelinePlugin/js/jquery.timeago.js', 'last');
use_javascript('/opTimelinePlugin/js/timeline-loader.api.js', 'last');
use_javascript('/opTimelinePlugin/js/lightbox.js', 'last');
use_stylesheet('/opTimelinePlugin/css/lightbox.css', 'last');
use_stylesheet('/opTimelinePlugin/css/bootstrap.css', 'last');
use_stylesheet('/opTimelinePlugin/css/timeline.css', 'last');
?>

<?php 
include_partial('timeline/timelineTemplate');
?>

<div class="partsHeading"><h3><?php 
echo $activity->getMember()->getName();
?>
さんの<?php 
echo $op_term['activity'];
?>
</h3></div>

<div class="timeline-large">
?>
    <?php 
include_metas();
?>
    <?php 
include_title();
?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php 
use_stylesheet('reset.css');
?>
    <?php 
use_stylesheet('header.css');
?>
    <?php 
use_stylesheet('mainstyles.css');
?>
    <?php 
use_javascript('header.js');
?>
    <script type="text/javascript" src="/js/jquery-1.10.2.min.js"></script>
    <?php 
include_stylesheets();
?>
    <?php 
include_javascripts();
?>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
</head>
<body>
    <?php 
 * This file is part of Kimkëlen.
 *
 * Kimkëlen is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License v2.0 as published by
 * the Free Software Foundation.
 *
 * Kimkëlen 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 Kimkëlen.  If not, see <http://www.gnu.org/licenses/gpl-2.0.html>.
 */
use_stylesheet('/sfPropelRevisitedGeneratorPlugin/css/global.css', 'first');
use_stylesheet('/sfPropelRevisitedGeneratorPlugin/css/extended.css', 'first');
?>

<?php 
include_stylesheets_for_form($form);
include_javascripts_for_form($form);
?>

<div id="sf_admin_container">
  <h1>
    <?php 
echo __('Manage Students Regularity for %%course_name%%', array('%%course_name%%' => $course));
?>
  </h1>

  <div id="sf_admin_content">
示例#28
0
<?php

use_javascript('/libs/jquery-ui/jquery-ui.min.js?v=1.11.2');
use_stylesheet('/libs/jquery-ui/jquery-ui.min.css?v=1.11.2');
?>

<style type="text/css">
.draggable, .droppable { width: 427px; height: 130px; padding: 0.5em; float: left; margin: 10px; border: 1px solid black; border-radius: 5px; white-space: nowrap; }
.draggable { background: #818281; color: white; cursor: move; }
.draggable .bootstrap-tooltip { overflow: hidden; display: inline-block; text-overflow: ellipsis; max-width: 100%; padding-right: 15px; line-height: normal; font-size: 15px; }
.droppable { background: white; color: black; line-height: 110px; }
.desc-cell {
  cursor: default;
  background: white;
  color: black;
  border: 1px solid black;
  height: 80px;
  overflow: hidden;
  overflow-y: scroll;
  border-radius: 5px;
  font-size: 15px;
  text-align: left;
  padding: 3px 10px;
  margin-top: 5px;
  white-space: normal;
}
</style>

<?php 
$max_rating = $collection->count();
?>
示例#29
0
<!-- apps/frontend/modules/event/templates/_datatable.php //-->
<?php use_stylesheet('events.css.php') ?>
                <table class="data-table" id="event-data">
                    <tr>
                        <th colspan="4">events&nbsp;<a href="<?=url_for('@event_new')?>"><img src="/images/themes/rounded/icons/add_icon.png" height="16" width="16" alt="Add show"/></a></th>
                        <th class="sort">
                            <select name="show-sortby" onChange="resort('show-data',this.value);">
                                <option selected>sort by</option>
                                <option value="last_name">Last Name</option>
                                <option value="show_id">Show</option>
                            </select>
                        </th>
                    </tr>
<?php foreach ($events as $i => $event): ?>
                    <tr class="table-row <?=fmod($i,2) ? 'even-row' : 'odd-row' ?>">
                        <td>
        <?php foreach($event->getBands() AS $x => $band): ?>
                        <?php echo $event->getBands()->count().') '.ucwords($band->getName()).($x < $event->getBands()->count())?', ':'';?>
        <?php endforeach ?>                    
                        </td>
                        <td><?=$event->getVenue()?></td>
                        <td><?=format_date($event->getStartTime(),'D')?></td>
                        <td><?=format_date($event->getStartTime(),'t')?></td>
                        <td>$<?=$event->getCost()?></td>
<!--                        <td>
                            <div class="table-controls">
                                <a href="<?=url_for('event/edit?id='.$event->getId())?>" title="edit show information">
                                    <img src="/images/themes/rounded/icons/edit_icon.png" width="16" height="16" alt="edit show information" />
                                    <span class="control-txt">edit</span>
                                </a>
                                <a href="<?=url_for('event/delete?id='.$event->getId())?>" title="remove show">
示例#30
0
<?php 
use_stylesheet('select');
use_javascript('tr-select');
include_partial('global/h1', array('txt' => 'Electrical Transformers Selection Process'));
?>
<div id='step_box'>
	<div class='step one'><img id='indy_1st' src='/images/industry-first-trans.png' alt="Industry's first transformer selection tool" /></div>
	<div id='step'>
		<h2 class='one'>Select Your KVA Rating <img id='tooltip' src='/images/help.png' alt='kVA Help' /></h2>
		

		
		<div id='tip' class='invisible'>
			<p class='_1st q'><span>Q)</span> What's the difference between KVA and VA rating?</p>
			<p><span>A)</span> 1 KVA = 1000 Volt Amps.  Therefore a 2500 VA transformer would be listed as 2.5 KVA.</p>
			<p class='q'><span>Q)</span> I don't see my specific KVA listed?</p>
			<p><span>A)</span> We have listed the most common KVA requirements.  It is commonly acceptable to oversize your transformer to the next largest size listed.  For example, if you require a 2.5 KVA transformer you should select a 3 KVA transformer, or if you require a 40 KVA transformer you should select 45 KVA. Make sure to size the associated circuit breaker appropriately.</p>
		</div>
		<div id='kva'>
			<div class='mod sm'>
				<p>0.25 &ndash; 1 KVA</p>
				<ul>
					<li class='m'><?php 
echo link_to('0.05', '@tr_select', array('query_string' => 'kva=0.05&step=kva', 'class' => 'ajax'));
?>
</li>
					<li><?php 
echo link_to('0.08', '@tr_select', array('query_string' => 'kva=0.08&step=kva', 'class' => 'ajax'));
?>
</li>