コード例 #1
0
ファイル: opensearch.php プロジェクト: Br3nda/laconica
 /**
  * Class handler.
  *
  * @param array $args query arguments
  * 
  * @return boolean false if user doesn't exist
  */
 function handle($args)
 {
     parent::handle($args);
     $type = $this->trimmed('type');
     $short_name = '';
     if ($type == 'people') {
         $type = 'peoplesearch';
         $short_name = _('People Search');
     } else {
         $type = 'noticesearch';
         $short_name = _('Notice Search');
     }
     header('Content-Type: text/html');
     $this->startXML();
     $this->elementStart('OpenSearchDescription', array('xmlns' => 'http://a9.com/-/spec/opensearch/1.1/'));
     $short_name = common_config('site', 'name') . ' ' . $short_name;
     $this->element('ShortName', null, $short_name);
     $this->element('Contact', null, common_config('site', 'email'));
     $this->element('Url', array('type' => 'text/html', 'method' => 'get', 'template' => str_replace('---', '{searchTerms}', common_local_url($type, array('q' => '---')))));
     $this->element('Image', array('height' => 16, 'width' => 16, 'type' => 'image/vnd.microsoft.icon'), common_path('favicon.ico'));
     $this->element('Image', array('height' => 50, 'width' => 50, 'type' => 'image/png'), theme_path('logo.png'));
     $this->element('AdultContent', null, 'false');
     $this->element('Language', null, common_language());
     $this->element('OutputEncoding', null, 'UTF-8');
     $this->element('InputEncoding', null, 'UTF-8');
     $this->elementEnd('OpenSearchDescription');
     $this->endXML();
 }
コード例 #2
0
 public function __toString()
 {
     $name = $this->getPropertyValue('namePattern');
     $id = $this->getPropertyValue('namePattern');
     $imageHTML = tag('img', array('src' => theme_path('images/callout-left.png'), 'title' => 'Click here to edit', 'alt' => 'Edit', 'class' => 'callout dialogInvoker'));
     $placeholderGetters = $this->getPropertyValue('placeholderGetters');
     $id = $this->generateAttributeValue($placeholderGetters, $this->getPropertyValue('idPattern'));
     $name = $this->generateAttributeValue($placeholderGetters, $this->getPropertyValue('namePattern'));
     $comments = $this->getValue();
     $commentExtract = '';
     $allComments = '';
     // show last comment only
     if (count($comments) > 0) {
         foreach ($comments as $comment) {
             $created = new DateTime($comment->getCreated());
             $createdAt = set_datepicker_date_format($created->format('Y-m-d')) . ' ' . $created->format('H:i');
             $formatComment = $createdAt . ' ' . $comment->getCreatedByName() . "\n\n" . $comment->getComments();
             $allComments = $formatComment . "\n\n" . $allComments;
         }
         $lastComment = $comments->getLast();
         $commentExtract = $this->trimComment($lastComment->getComments());
     }
     $commentContainerHTML = content_tag('span', $commentExtract, array('id' => $this->generateAttributeValue($placeholderGetters, 'commentContainer-{id}')));
     $hiddenFieldHTML = tag('input', array('type' => 'hidden', 'id' => $id, 'name' => $name, 'value' => $allComments));
     $commentHTML = content_tag('span', $commentContainerHTML . $imageHTML . $hiddenFieldHTML, array('class' => 'commentContainerLong'));
     if ($this->isHiddenOnCallback()) {
         return ' ';
     }
     return $commentHTML . $this->getHiddenFieldHTML();
 }
コード例 #3
0
ファイル: helpers.php プロジェクト: lms-laravel/lms-laravel
function view_path($view, $theme = null)
{
    if (is_null($theme)) {
        $theme = ucfirst(config('themes.default'));
    } else {
        $theme = theme_path($theme);
    }
    return $theme . ".views." . $view;
}
コード例 #4
0
ファイル: facebookaction.php プロジェクト: Br3nda/laconica
 function showStylesheets()
 {
     // Add a timestamp to the file so Facebook cache wont ignore our changes
     $ts = filemtime(INSTALLDIR . '/theme/base/css/display.css');
     $this->element('link', array('rel' => 'stylesheet', 'type' => 'text/css', 'href' => theme_path('css/display.css', 'base') . '?ts=' . $ts));
     $theme = common_config('site', 'theme');
     $ts = filemtime(INSTALLDIR . '/theme/' . $theme . '/css/display.css');
     $this->element('link', array('rel' => 'stylesheet', 'type' => 'text/css', 'href' => theme_path('css/display.css', null) . '?ts=' . $ts));
     $ts = filemtime(INSTALLDIR . '/theme/base/css/facebookapp.css');
     $this->element('link', array('rel' => 'stylesheet', 'type' => 'text/css', 'href' => theme_path('css/facebookapp.css', 'base') . '?ts=' . $ts));
 }
コード例 #5
0
function load_lang($manage = false)
{
    $locale = get_locale();
    $langfiles = get_available_langs($manage);
    while ($langfile = array_pop($langfiles)) {
        if ($langfile == $locale || $langfile == substr($locale, 0, 2)) {
            return json_decode(file_get_contents(ABSPATH . '/' . ($manage ? 'manage/' : theme_path()) . 'lang/' . $langfile . '.json'), true);
        } else {
            if (substr_compare($langfile, $locale, 0, 2) == 0) {
                $remember = $langfile;
            }
        }
    }
    return isset($remember) ? json_decode(file_get_contents(ABSPATH . '/' . ($manage ? 'manage/' : theme_path()) . 'lang/' . $remember . '.json'), true) : false;
}
コード例 #6
0
ファイル: CommentCell.php プロジェクト: lahirwisada/orangehrm
 public function __toString()
 {
     $name = $this->getPropertyValue('namePattern');
     $id = $this->getPropertyValue('namePattern');
     $imageHTML = tag('img', array('src' => theme_path('images/callout-left.png'), 'title' => 'Click here to edit', 'alt' => 'Edit', 'class' => 'callout dialogInvoker'));
     $placeholderGetters = $this->getPropertyValue('placeholderGetters');
     $id = $this->generateAttributeValue($placeholderGetters, $this->getPropertyValue('idPattern'));
     $name = $this->generateAttributeValue($placeholderGetters, $this->getPropertyValue('namePattern'));
     $hiddenFieldHTML = tag('input', array('type' => 'hidden', 'id' => $id, 'name' => $name, 'value' => $this->getValue()));
     $commentContainerHTML = content_tag('span', $this->trimComment($this->getValue()), array('id' => $this->generateAttributeValue($placeholderGetters, 'commentContainer-{id}')));
     $commentHTML = content_tag('span', $commentContainerHTML . $imageHTML . $hiddenFieldHTML, array('class' => 'commentContainerLong'));
     if ($this->isHiddenOnCallback()) {
         return ' ';
     }
     return $commentHTML . $this->getHiddenFieldHTML();
 }
コード例 #7
0
ファイル: crunch.php プロジェクト: lekhangyahoo/gonline
 function crunch($dev = false)
 {
     $filename = md5(serialize($this->files)) . '.js';
     $buffer = "";
     if (!file_exists(theme_path() . 'assets/js/' . $filename)) {
         foreach ($this->files as $jsFile) {
             $buffer .= file_get_contents(theme_path() . 'assets/js/' . $jsFile . '.js');
             if ($dev) {
                 echo theme_js($jsFile . '.js', true);
                 continue;
             }
         }
         if ($dev) {
             return;
         }
         file_put_contents(theme_path() . 'assets/js/' . $filename, $buffer);
     }
     echo '<script type="text/javascript" src="' . theme_js($filename) . '"></script>';
     $this->files = [];
 }
コード例 #8
0
ファイル: routes.php プロジェクト: samimohs/wardrobe
<?php

/*
|--------------------------------------------------------------------------
| Custom Theme Routes
|--------------------------------------------------------------------------
|
| In this file you can over ride any routes and add new ones based on your
| needs. For information on routing please see the following documentation:
| http://laravel.com/docs/routing
| http://laravel.com/docs/controllers
|
*/
Route::get('/about', function () {
    return View::make(theme_path('about'));
});
Route::get('/tags', function () {
    return View::make(theme_path('tags'));
});
コード例 #9
0
ファイル: helpers.php プロジェクト: mrcoco/LMS-Laravel
function view_path($view, $theme = 'default')
{
    return theme_path($theme) . ".views." . $view;
}
コード例 #10
0
ファイル: action.php プロジェクト: Br3nda/laconica
 /**
  * Show configured logo.
  *
  * @return nothing
  */
 function showLogo()
 {
     $this->elementStart('address', array('id' => 'site_contact', 'class' => 'vcard'));
     $this->elementStart('a', array('class' => 'url home bookmark', 'href' => common_local_url('public')));
     if (common_config('site', 'logo') || file_exists(theme_file('logo.png'))) {
         $this->element('img', array('class' => 'logo photo', 'src' => common_config('site', 'logo') ? common_config('site', 'logo') : theme_path('logo.png'), 'alt' => common_config('site', 'name')));
     }
     $this->element('span', array('class' => 'fn org'), common_config('site', 'name'));
     $this->elementEnd('a');
     $this->elementEnd('address');
 }
コード例 #11
0
ファイル: _header.php プロジェクト: lahirwisada/orangehrm
        <link href="<?php 
echo theme_path('css/tipTip.css');
?>
" rel="stylesheet" type="text/css"/>
        <link href="<?php 
echo theme_path('css/jquery/jquery-ui-1.8.21.custom.css');
?>
" rel="stylesheet" type="text/css"/>
        <link href="<?php 
echo theme_path('css/jquery/jquery.autocomplete.css');
?>
" rel="stylesheet" type="text/css"/>
        
        <!-- Custom CSS files -->
        <link href="<?php 
echo theme_path('css/main.css');
?>
" rel="stylesheet" type="text/css"/>
        
        <?php 
// Library JavaScript files
echo javascript_include_tag('jquery/jquery-1.7.2.min.js');
echo javascript_include_tag('jquery/validate/jquery.validate.js');
echo javascript_include_tag('jquery/jquery.ui.core.js');
echo javascript_include_tag('jquery/jquery.autocomplete.js');
echo javascript_include_tag('orangehrm.autocomplete.js');
echo javascript_include_tag('jquery/jquery.ui.datepicker.js');
echo javascript_include_tag('jquery/jquery.form.js');
echo javascript_include_tag('jquery/jquery.tipTip.minified.js');
echo javascript_include_tag('jquery/bootstrap-modal.js');
echo javascript_include_tag('jquery/jquery.clickoutside.js');
コード例 #12
0
ファイル: Avatar.php プロジェクト: Br3nda/laconica
 static function defaultImage($size)
 {
     static $sizenames = array(AVATAR_PROFILE_SIZE => 'profile', AVATAR_STREAM_SIZE => 'stream', AVATAR_MINI_SIZE => 'mini');
     return theme_path('default-avatar-' . $sizenames[$size] . '.png');
 }
コード例 #13
0
                            <?php 
        for ($j = 0; $j < $noOfDays; $j++) {
            ?>
                                <td class="center comments"> <!-- title="<?php 
            echo $row['projectId'] . "##" . $row['activityId'] . "##" . $currentWeekDates[$j] . "##" . $row['timesheetItems'][$currentWeekDates[$j]]->getComment();
            ?>
" -->
                                    <?php 
            echo $timesheetForm['initialRows'][$i][$j]->renderError();
            ?>
                                    <?php 
            echo $timesheetForm['initialRows'][$i][$j]->render(array("class" => $dltClassName . " " . 'timeBox'));
            ?>
<!--                                    <span class="" data-toggle="modal" href="#commentDialog">-->
                                        <?php 
            echo image_tag(theme_path('images/comment.png'), 'id=commentBtn_' . $j . '_' . $i . " class=commentIcon " . $dltClassName);
            ?>
<!--                                    </span>-->
                                    <?php 
            echo $timesheetForm['initialRows'][$i]['TimesheetItemId' . $j];
            ?>
                                </td>
                            <?php 
        }
        ?>
                        </tr>
                        <?php 
        $i++;
        $x++;
    }
}
コード例 #14
0
ファイル: footer.php プロジェクト: iamonuwa/ivote
		<script src="<?php 
theme_path('js/maplace-0.1.3.min.js');
?>
"></script>
		<script src="<?php 
theme_path('js/responsiveslides.min.js');
?>
"></script>

		<!-- COUNTDOWN
		================================= -->
		<script src="<?php 
theme_path('js/jquery.countdown.min.js');
?>
"></script>

		<!-- DEMO SWITCHER
		================================= -->
		<script src="<?php 
theme_path('js/switcher.js');
?>
"></script>

		<!-- MAIN SCRIPT
		================================= -->
		<script src="<?php 
theme_path('js/script.js');
?>
"></script>
</body>
</html>
コード例 #15
0
ファイル: functions.theme.php プロジェクト: lskstc/qchan-lite
function load_footer()
{
    require_once ABSPATH . '/' . theme_path() . 'footer.php';
}
コード例 #16
0
ファイル: main.php プロジェクト: lskstc/qchan-lite
</button>
				</div>
			</section>
		</div>
	</div>

</section>

<!-- File info section -->
<aside id="info_zone" class="hide">
</aside>

<script type="application/javascript" src="<?php 
echo get_url() . theme_path();
?>
js/zepto.min.js"></script>
<?php 
echo embed_script();
?>
<script type="application/javascript" src="<?php 
echo get_url() . theme_path();
?>
js/ui.js"></script>
<script type="application/javascript">
<?php 
echo $results != null ? format_script($results) : '';
?>
</script>

<?php 
load_footer();
コード例 #17
0
 public function printJavascript()
 {
     $this->addScriptContent("\n            \$('#ohrmTreeViewComponent_Tree').treeview({\n                collapsed: false,\n                control:'#ohrmTreeViewComponent_TreeController',\n                persist: 'location'\n            });\n\n            \$('#ohrmTreeViewComponent_Tree *').css('list-style', 'none'); // TODO: Move this to a stylesheet. Make sure to test in IE\n\n            \$('a[id^=\"treeLink_edit_\"]').click(function() {\n                loadNode(parseInt(\$(this).attr('id').replace('treeLink_edit_', '')));\n                _clearMessage();\n            });\n\n            \$('a[id^=\"treeLink_addChild_\"]').click(function() {\n                addChildToNode(parseInt(\$(this).attr('id').replace('treeLink_addChild_', '')));\n            });\n\n            \$('a[id^=\"treeLink_delete_\"]').click(function() {\n                deleteNode(parseInt(\$(this).attr('id').replace('treeLink_delete_', '')));\n            });\n\n            clearForm();\n");
     $this->addScriptFunction("\n            \$('form[id^=\"ohrmFormComponent_Form\"]').each(function() {\n                \$(this).parent().parent().show();\n            });\n            \$('.requirednotice').show();\n        ", 'showForm');
     $this->addScriptFunction("\n            \$('form[id^=\"ohrmFormComponent_Form\"]').each(function() {\n                \$(this).parent().parent().hide();\n            });\n            \$('.requirednotice').hide();\n        ", 'hideForm');
     $this->addScriptFunction("\n            \$('form[id^=\"ohrmFormComponent_Form\"] :input').filter(':not([type=\"button\"])').val('');\n            \$('.idValueLabel').html('');\n            \$('#lblParentNotice').remove();\n        ", 'clearForm');
     $html = '';
     $html .= javascript_include_tag('jquery/jquery.treeview.min.js');
     if ($this->type == null) {
         $html .= tag('link', array('rel' => 'stylesheet', 'href' => theme_path('css/jquery/jquery-treeview/jquery.treeview.css')));
     } else {
         $html .= tag('link', array('rel' => 'stylesheet', 'href' => theme_path('css/jquery/jquery-treeview/jquery.treeview_1.css')));
     }
     $this->addScriptContent(array('$(document).ready(function() {', '});'), 'wrap');
     $this->addScriptContent($this->getScriptFunctionsString());
     $this->addScriptContent(array('//<![CDATA[', '//]]>'), 'wrap');
     $html .= content_tag('script', $this->scriptContent, array('type' => 'text/javascript'));
     echo $html;
     return true;
 }
コード例 #18
0
ファイル: header.php プロジェクト: iamonuwa/ivote
?>
">
    <link rel="stylesheet" href="<?php 
theme_path('plugins/datepicker/datepicker3.css');
?>
">
    <link rel="stylesheet" href="<?php 
theme_path('plugins/daterangepicker/daterangepicker-bs3.css');
?>
">
    <link rel="stylesheet" href="<?php 
theme_path('plugins/select2/select2.min.css');
?>
">
    <link rel="stylesheet" href="<?php 
theme_path('plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css');
?>
">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
      <script>
  var BASE_URL = '<?php 
echo base_url();
?>
';
  </script>
コード例 #19
0
ファイル: header.php プロジェクト: lskstc/qchan-lite
		(function() {
		if (! 
		/*@cc_on!@*/
		0) return;
		var e = "abbr, article, aside, audio, canvas, datalist, details, dialog, eventsource, figure, footer, header, hgroup, mark, menu, meter, nav, output, progress, section, time, video".split(', ');
		var i= e.length;
		while (i=i-1){
			document.createElement(e[i])
		} 
		})();
	</script>
	<![endif]-->
	
	<style>
		#result_zone {background-image: url('<?php 
echo theme_path();
?>
images/tip.<?php 
echo get_locale(true);
?>
.png');}
	</style>
</head>

<body>
<header id="main_header">
	<div id="logo"></div>
	<?php 
if (!is_page()) {
    ?>
	<div id="upload_button_wrap">
コード例 #20
0
ファイル: _addRow.php プロジェクト: lahirwisada/orangehrm
?>
            <?php 
echo $form['initialRows'][$num]['projectActivityName']->render(array("class" => "projectActivity"));
?>
            <?php 
echo $form['initialRows'][$num]['projectActivityId'];
?>
        </td>
        <?php 
for ($j = 0; $j < $noOfDays; $j++) {
    ?>
            <td class="center comments">
                <?php 
    echo $form['initialRows'][$num][$j]->renderError();
    ?>
                <?php 
    echo $form['initialRows'][$num][$j]->render(array("class" => "timeBox"));
    ?>
                <?php 
    echo image_tag(theme_path('images/comment.png'), 'id=commentBtn_' . $j . '_' . $num . " class=commentIcon ");
    ?>
                <?php 
    echo $form['initialRows'][$num]['TimesheetItemId' . $j];
    ?>
            </td>
        <?php 
}
?>
    </tr>
</table>
コード例 #21
0
<?php

echo stylesheet_tag(theme_path('css/orangehrm.datepicker.css'));
use_javascript('orangehrm.datepicker.js');
?>

<div class="box single">
   
    <div class="head">
        <h1><?php 
echo __("Define Report");
?>
</h1>
    </div>
    <div class="inner">
        <?php 
include_partial('global/flash_messages');
?>
        
        <?php 
if ($reportPermissions->canCreate() && empty($reportId) || $reportPermissions->canUpdate() && $reportId > 0) {
    ?>
        <?php 
    echo $form->renderFormTag(url_for('core/definePredefinedReport'), array('id' => 'defineReportForm'));
    ?>
        <fieldset id="name_fieldset">
            <?php 
    $form->getWidgetSchema()->setFormFormatterName('list');
    echo $form['_csrf_token'];
    echo $form['report_id']->render();
    ?>
コード例 #22
0
            echo "attendanceNote_1_4" . "_" . $record->getId();
            ?>
" value="<?php 
            echo $record->getPunchOutNote();
            ?>
">
                                    <span id="<?php 
            echo "commentLable_1_4" . "_" . $record->getId();
            ?>
">
                                        <?php 
            echo htmlspecialchars($comments);
            ?>
                                    </span> 
                                    <?php 
            echo image_tag(theme_path('images/comment.png'), 'id=' . $record->getId() . "_1" . "_4" . " class=icon");
            ?>
                                </td>
                            <?php 
        } else {
            ?>
                                <?php 
            if ($record->getPunchOutUtcTime() == null) {
                ?>
                                    <td>
                                        <?php 
                echo $editAttendanceForm['punchOutDate_' . $i]->render(array("class" => "nonEditable"));
                ?>
                                        <?php 
                echo $editAttendanceForm['punchOutTime_' . $i]->render(array("class" => "timeBox nonEditable"));
                ?>
コード例 #23
0
ファイル: freshorange.php プロジェクト: EFForg/lemonhrm
<?php

// Allow header partial to be overridden in individual actions
// Can be overridden by: slot('header', get_partial('module/partial'));
include_slot('header', get_partial('global/header'));
?>

    </head>
    <body>
      
        <div id="wrapper">
            
            <div id="branding">
                <a href="https://hr.eff.org/symfony/web/index.php/directory/viewDirectory/reset/1" target="_blank"><img src="<?php 
echo theme_path('images/logo.png');
?>
" width="568" height="66" alt="Human Resource Management"/></a>
                <!--<a href="http://www.orangehrm.com/user-survey-registration.php" class="subscribe" target="_blank"><?php 
echo __('Join OrangeHRM Community');
?>
</a>-->
                <a href="#" id="welcome" class="panelTrigger"><?php 
echo __("Welcome %username%", array("%username%" => $sf_user->getAttribute('auth.firstName')));
?>
</a>
                <div id="welcome-menu" class="panelContainer">
                    <ul>
                        <li><?php 
include_component('communication', 'beaconAbout');
?>
</li>
コード例 #24
0
ファイル: layout.php プロジェクト: abdocmd/spmillen
?>
">
  <head>
    <!-- Mimic Internet Explorer 8 -->  
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >  
    <?php 
include_http_metas();
?>
    <?php 
include_metas();
?>
    <?php 
include_title();
?>
        <link href="<?php 
echo theme_path('images/favicon.ico');
?>
" rel="icon" type="image/gif"/>
        
	<link href="<?php 
echo public_path('../../themes/orange/css/style.css');
?>
" rel="stylesheet" type="text/css"/>
        <link href="<?php 
echo public_path('../../themes/orange/css/layout.css');
?>
" rel="stylesheet" type="text/css"/>
	<link href="<?php 
echo public_path('../../themes/orange/css/message.css');
?>
" rel="stylesheet" type="text/css"/>
コード例 #25
0
ファイル: index.php プロジェクト: iamonuwa/ivote
}
?>
  </div>

				<div class="section-background">
					<ul class="section-background-slideshow rslides parallax" data-stellar-ratio="0.4" data-speed="800" data-timeout="4000">
						<li><img src="<?php 
theme_path('images/backgrounds/hero-bg-slideshow-1.jpg');
?>
" alt="" style="opacity: 0.25;"></li>
						<li><img src="<?php 
theme_path('images/backgrounds/hero-bg-slideshow-2.jpg');
?>
" alt="" style="opacity: 0.25;"></li>
						<li><img src="<?php 
theme_path('images/backgrounds/hero-bg-slideshow-3.jpg');
?>
" alt="" style="opacity: 0.2;"></li>
					</ul>

				</div>

				<div class="container">

					<div class="hero-content">
						<div class="hero-content-inner">

							<div class="row">
							<?php 
if (isset($election)) {
    ?>
コード例 #26
0
    public function render($name, $value = null, $attributes = array(), $errors = array())
    {
        if (array_key_exists('class', $attributes)) {
            $attributes['class'] .= ' calendar';
        } else {
            $attributes['class'] = 'calendar';
        }
        if (!isset($attributes['id']) && isset($this->attributes['id'])) {
            $attributes['id'] = $this->attributes['id'];
        }
        $html = parent::render($name, $value, $attributes, $errors);
        $javaScript = sprintf(<<<EOF
 <script type="text/javascript">

    var datepickerDateFormat = '%s';
    var displayDateFormat = datepickerDateFormat.replace('yy', 'yyyy');

    \$(document).ready(function(){
        
        var dateFieldValue = \$.trim(\$("#%s").val());
        if (dateFieldValue == '') {
            \$("#%s").val(displayDateFormat);
        }

        daymarker.bindElement("#%s",
        {
            showOn: "both",
            dateFormat: datepickerDateFormat,
            buttonImage: "%s",
            buttonText:"",
            buttonImageOnly: true,
            changeMonth: true,
            changeYear: true,
            yearRange: "-100:+100",
            firstDay: 1,
            onClose: function() {
                \$("#%s").trigger('blur');
            }            
        });
        
        //\$("img.ui-datepicker-trigger").addClass("editable");
        
        \$("#%s").click(function(){
            daymarker.show("#%s");
            if (\$(this).val() == displayDateFormat) {
                \$(this).val('');
            }
        });
    
    });

</script>
EOF
, get_datepicker_date_format(sfContext::getInstance()->getUser()->getDateFormat()), $this->attributes['id'], $this->attributes['id'], $this->attributes['id'], theme_path('images/calendar.png'), $this->attributes['id'], $this->attributes['id'], $this->attributes['id']);
        return $html . $javaScript;
    }
コード例 #27
0
                                                    </span>                                
                                                </td>
                                            <?php 
                    }
                    ?>

                                                <?php 
                    if ($format == '2') {
                        ?>
                                                <td class="right"><?php 
                        echo $timesheetItemObjects->getDuration() == null ? "0.00" : $timesheetItemObjects->getConvertTime();
                        ?>
<span class="commentIcon" data-toggle="modal" href="#commentDialog">
                                                    <?php 
                        if ($timesheetItemObjects->getComment() != null) {
                            echo image_tag(theme_path('images/comment.png'), array('id' => 'callout_' . $timesheetItemObjects->getTimesheetItemId(), 'class' => 'icon'));
                        }
                        ?>
                                                    </span>                                    
                                                </td>
                                            <?php 
                    }
                    ?>

                                            <?php 
                    if ($format == '1') {
                        $total += $timesheetItemObjects->getDuration();
                    }
                    if ($format == '2') {
                        $total += $timesheetItemObjects->getConvertTime();
                    }
コード例 #28
0
ファイル: header.php プロジェクト: iamonuwa/ivote
?>
">
		<link rel="stylesheet" href="<?php 
theme_path('css/font-awesome.min.css');
?>
">
		<link rel="stylesheet" href="<?php 
theme_path('css/animate.min.css');
?>
">
		<link rel="stylesheet" href="<?php 
theme_path('css/style.css');
?>
">
		<link id="color-css" rel="stylesheet" href="<?php 
theme_path('css/colors/orange.css');
?>
">
	</head>
<body>
<div id="document" class="document">
			<header id="header" class="header-section section section-dark navbar navbar-default navbar-fixed-top">
				<div class="container-fluid">
					<div class="navbar-header navbar-left">
						<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigation">
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>
						<a class="navbar-logo navbar-brand" href="<?php 
コード例 #29
0
<?php

$imagePath = theme_path("images/login");
?>
<div id="footer" >
    <div>
    <?php 
include_partial('global/copyright');
?>
    </div>
    <div id="social-icons">
        <a href="http://www.linkedin.com/groups?home=&amp;gid=891077" target="_blank">
            <img src="<?php 
echo "{$imagePath}/linkedin.png";
?>
" alt="LinkedIn OrangeHRM group"/></a>&nbsp;
        <a href="http://www.facebook.com/OrangeHRM" target="_blank">
            <img src="<?php 
echo "{$imagePath}/facebook.png";
?>
" alt="OrangeHRM on Facebook"/></a>&nbsp;
        <a href="http://twitter.com/orangehrm" target="_blank">
            <img src="<?php 
echo "{$imagePath}/twiter.png";
?>
" alt="OrangeHRM on twitter"/></a>&nbsp;
        <a href="http://www.youtube.com/orangehrm" target="_blank">
            <img src="<?php 
echo "{$imagePath}/youtube.png";
?>
" alt="OrangeHRM on youtube"/></a>&nbsp;
コード例 #30
0
<style type="text/css">
    h1{
        padding-left: auto;
        padding-right: auto;
        font-size: 20px;
    }

    #sidenav{
        margin: 2px 0 0 !important;
    }

    .pimPane #authType h1 {
        background: #f3f3f3 url('<?php 
echo theme_path('images/h1-bg.png');
?>
') left bottom repeat-x;
        font-size:14px;
        color:#5d5d5d;
        padding:9px 15px;
        line-height:20px;
        border:1px solid #dedede;
        -moz-border-radius-topleft: 3px;
        -webkit-border-top-left-radius: 3px;
        border-top-left-radius: 3px;
        -moz-border-radius-topright: 3px;
        -webkit-border-top-right-radius: 3px;
        border-top-right-radius: 3px;
    }
</style>

<div id="sidebar">