本文整理汇总了PHP中plugin_web_path函数的典型用法代码示例。如果您正苦于以下问题:PHP plugin_web_path函数的具体用法?PHP plugin_web_path怎么用?PHP plugin_web_path使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了plugin_web_path函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getStylesheets
/**
*
* @return array
*/
public function getStylesheets()
{
$styleSheets = parent::getStylesheets();
$styleSheets[plugin_web_path('orangehrmPerformancePlugin', 'css/reviewEvaluationSuccess.css')] = 'all';
$styleSheets[plugin_web_path('orangehrmPerformancePlugin', 'css/reviewEvaluateByAdminSuccess.css')] = 'all';
return $styleSheets;
}
示例2: printAssetPaths
function printAssetPaths($assets, $plugin = '')
{
if (count($assets) > 0) {
foreach ($assets as $key => $asset) {
$assetType = substr($asset, strrpos($asset, '.') + 1);
if ($plugin == '') {
echo javascript_include_tag($asset);
} elseif ($assetType == 'js') {
echo javascript_include_tag(plugin_web_path($plugin, 'js/' . $asset));
} elseif ($assetType == 'css') {
echo stylesheet_tag(plugin_web_path($plugin, 'css/' . $asset));
} else {
echo $assetType;
}
}
}
}
示例3: Array
?>
';
var fileModified = 0;
var havePassports = '<?php
echo $havePassports;
?>
';
var canUpdate = '<?php
echo $immigrationPermission->canUpdate();
?>
';
var recordsAsJSON = new Array();
//]]>
</script>
<?php
echo javascript_include_tag(plugin_web_path('orangehrmPimPlugin', 'js/viewImmigrationSuccess'));
?>
<div class="box pimPane">
<?php
echo include_component('pim', 'pimLeftMenu', array('empNumber' => $empNumber, 'form' => $form));
?>
<?php
if ($immigrationPermission->canCreate() || $havePassports && $immigrationPermission->canUpdate()) {
?>
<div id="immigrationDataPane" class="">
<div class="head">
<h1 id="immigrationHeading"><?php
echo __('Add Immigration');
示例4: javascript_include_tag
<?php
echo javascript_include_tag('jquery.tooltip.js');
use_javascript(plugin_web_path('orangehrmAdminPlugin', '/js/viewCompanyStructureSuccess'));
?>
<style type="text/css">
p {
margin-top: 10px;
}
</style>
<div class="box">
<div class="head">
<h1><?php
echo __("Organization Structure");
?>
</h1>
</div>
<div class="inner" >
<div id="messageDiv"></div>
<?php
if ($isOrganizationNameSet) {
?>
<?php
echo $listForm;
?>
<ol id="divCompanyStructureContainer">
<?php
$tree->render();
示例5: use_javascripts_for_form
<?php
use_javascripts_for_form($form);
use_stylesheets_for_form($form);
use_stylesheet(plugin_web_path('orangehrmLeavePlugin', 'css/viewLeaveBalanceReport'));
?>
<?php
if ($form->hasErrors()) {
?>
<div class="messagebar">
<?php
include_partial('global/form_errors', array('form' => $form));
?>
</div>
<?php
}
?>
<div class="box searchForm" id="leave-balance-report">
<div class="head">
<h1><?php
echo $mode == 'my' ? __("My Leave Entitlements and Usage Report") : __("Leave Entitlements and Usage Report");
?>
</h1>
</div>
<div class="inner">
<?php
include_partial('global/flash_messages');
?>
<?php
示例6: use_stylesheet
* 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('orangehrmAdminPlugin', 'css/viewEducationSuccess'));
use_javascript(plugin_web_path('orangehrmAdminPlugin', 'js/viewEducationSuccess'));
?>
<?php
echo isset($templateMessage) ? templateMessage($templateMessage) : '';
?>
<div class="box" id="saveFormDiv">
<div class="head">
<h1 id="saveFormHeading">Add Education</h1>
</div>
<div class="inner">
<form name="frmSave" id="frmSave" method="post" action="<?php
echo url_for('admin/viewEducation');
示例7: use_javascript
<?php
use_javascript(plugin_web_path('orangehrmAdminPlugin', 'js/membershipSuccess'));
?>
<div id="membership" class="box">
<div class="head"><h1 id="membershipHeading"><?php
echo __("Add Membership");
?>
</h1></div>
<div class="inner">
<form name="frmMembership" id="frmMembership" method="post" action="<?php
echo url_for('admin/membership');
?>
" >
<?php
echo $form['_csrf_token'];
?>
<?php
echo $form->renderHiddenFields();
?>
<fieldset>
<ol>
<li>
<?php
echo $form['name']->renderLabel(__('Name') . ' <em>*</em>');
?>
<?php
示例8: javascript_include_tag
* OrangeHRM is free software; you can redistribute it and/or modify it under the terms of
* 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
echo javascript_include_tag(plugin_web_path('orangehrmTimePlugin', 'js/viewTimesheet'));
?>
<?php
$noOfColumns = sizeof($sf_data->getRaw('rowDates'));
$width = 350 + $noOfColumns * 75;
$actionName = sfContext::getInstance()->getActionName();
?>
<style type="text/css">
#timeComment {
width: 365px;
margin-bottom: 5px;
}
</style>
<?php
示例9: use_stylesheets_for_form
<?php
use_stylesheets_for_form($form);
?>
<?php
use_stylesheet(plugin_web_path('orangehrmPerformancePlugin', 'css/myPerformanceReviewSuccess.css'));
?>
<div class="box searchForm toggableForm" id="performance-list-search">
<div class="head">
<h1><?php
echo __('Search Performance Reviews');
?>
</h1>
</div>
<div class="inner">
<form id="evaluatePerformanceReview360SearchForm" name="evaluatePerformanceReviewSearchForm" method="post" action="">
<fieldset>
<ol>
<?php
echo $form->render();
?>
<input type="hidden" name="pageNo" id="pageNo" value="" />
<input type="hidden" name="hdnAction" id="hdnAction" value="search" />
</ol>
<p>
<input type="button" class="applybutton" id="searchBtn" value="<?php
echo __('Search');
?>
示例10: use_javascript
* Licensed Materials are received. Title to the Licensed Materials and media shall remain
* vested in OrangeHRM Inc. For the avoidance of doubt title and all intellectual property
* rights to any design, new software, new protocol, new interface, enhancement, update,
* derivative works, revised screen text or any other items that OrangeHRM Inc creates for
* Customer shall remain vested in OrangeHRM Inc. Any rights not expressly granted herein are
* reserved to OrangeHRM Inc.
*
* You should have received a copy of the OrangeHRM Enterprise proprietary license file along
* with this program; if not, write to the OrangeHRM Inc. 538 Teal Plaza, Secaucus , NJ 0709
* to get the file.
*
*/
?>
<?php
use_javascript(plugin_web_path('orangehrmAdminPlugin', 'js/viewCustomersSuccess'));
?>
<div id="customerList">
<?php
include_component('core', 'ohrmList', $parmetersForListCompoment);
?>
</div>
<form name="frmHiddenParam" id="frmHiddenParam" method="post" action="<?php
echo url_for('admin/viewCustomers');
?>
">
<input type="hidden" name="pageNo" id="pageNo" value="<?php
//echo $form->pageNo;
?>
示例11: use_stylesheet
* 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('orangehrmAdminPlugin', 'css/degreeSuccess'));
use_javascript(plugin_web_path('orangehrmAdminPlugin', 'js/degreeSuccess'));
?>
<?php
echo isset($templateMessage) ? templateMessage($templateMessage) : '';
?>
<div class="box" id="saveFormDiv">
<div class="head">
<h1 id="saveFormHeading">Add Degree</h1>
</div>
<div class="inner">
<form name="frmSave" id="frmSave" method="post" action="<?php
echo url_for('admin/degree');
示例12: use_javascript
* 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_javascript(plugin_web_path('orangehrmPimPlugin', 'js/viewReportToDetailsSuccess'));
$numSupDetails = count($supDetails);
$hasSupDetails = $numSupDetails > 0;
$numSubDetails = count($subDetails);
$hasSubDetails = $numSubDetails > 0;
$allowDel = true;
$allowEdit = true;
?>
<div class="box pimPane">
<?php
include_partial('global/form_errors', array('form' => $form));
?>
<?php
示例13: use_javascript
?>
"/>
</p>
</fieldset>
</form>
</div>
</div> <!-- saveFormDiv -->
<?php
use_javascript(plugin_web_path('orangehrmAdminPlugin', 'js/viewModulesSuccess'));
?>
<script type="text/javascript">
//<![CDATA[
var lang_edit = "<?php
echo __('Edit');
?>
";
var lang_save = "<?php
echo __('Save');
?>
";
//]]>
示例14: getStylesheets
public function getStylesheets()
{
$styleSheets = parent::getStylesheets();
$styleSheets[plugin_web_path('orangehrmCorePlugin', 'css/ohrmWidgetCheckboxGroup.css')] = 'all';
return $styleSheets;
}
示例15: use_javascript
* Licensed Materials are received. Title to the Licensed Materials and media shall remain
* vested in OrangeHRM Inc. For the avoidance of doubt title and all intellectual property
* rights to any design, new software, new protocol, new interface, enhancement, update,
* derivative works, revised screen text or any other items that OrangeHRM Inc creates for
* Customer shall remain vested in OrangeHRM Inc. Any rights not expressly granted herein are
* reserved to OrangeHRM Inc.
*
* You should have received a copy of the OrangeHRM Enterprise proprietary license file along
* with this program; if not, write to the OrangeHRM Inc. 538 Teal Plaza, Secaucus , NJ 0709
* to get the file.
*
*/
?>
<?php
use_javascript(plugin_web_path('orangehrmAdminPlugin', 'js/viewSystemUserSuccess'));
?>
<div id="systemUser-information" class="box searchForm toggableForm">
<div class="head">
<h1><?php
echo __("System Users");
?>
</h1>
</div>
<?php
include_partial('global/form_errors', array('form' => $form));
?>
<div class="inner">