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

PHP include_component函数代码示例

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

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



在下文中一共展示了include_component函数的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: executeUserBar

 public function executeUserBar()
 {
     if (!$this->getUser()->isAuthenticated()) {
         include_component('user', 'userBarLogIn');
     } else {
         include_component('user', 'userBarInfo');
     }
 }
开发者ID:robinkanters,项目名称:dnsleergemeenschap,代码行数:8,代码来源:components.class.php


示例3: executeUserBar

 public function executeUserBar(sfWebRequest $request)
 {
     if (!$this->getUser()->isAuthenticated()) {
         include_component('user', 'userBarLogIn');
     } else {
         include_partial('user/userBarInfo');
     }
 }
开发者ID:robinkanters,项目名称:dnsleergemeenschap,代码行数:8,代码来源:components.class.php


示例4: seo_admin_bar

/**
 * seo_admin_bar
 *
 * @return includes an SEO menu bar in your project to edit meta and sitemap data
 * @author Brent Shaffer
 */
function seo_admin_bar()
{
    if (has_slot('seo_admin_bar')) {
        include_slot('seo_admin_bar');
    } else {
        include_component('csSEO', 'seo_admin_bar');
    }
}
开发者ID:bshaffer,项目名称:Symplist,代码行数:14,代码来源:SeoHelper.php


示例5: loadModule

function loadModule($initial, $param = null, $show_error = true)
{
    $criteria = new Criteria();
    $criteria->add(WebModulePeer::INITIAL, $initial, Criteria::EQUAL);
    $requestModule = WebModulePeer::doSelectOne($criteria);
    if ($requestModule) {
        $module = 'mod_' . $requestModule->getWebModuleType()->getInitial();
        include_component($module, 'run', array('module' => $requestModule, 'param' => $param, 'initial' => $initial));
        return true;
    } else {
        if ($show_error) {
            echo '<h3 class="exception">Module ' . $initial . ' not found</h3>';
        }
        return false;
    }
}
开发者ID:taryono,项目名称:school,代码行数:16,代码来源:cmsHelper.php


示例6: a_slot_body

function a_slot_body($name, $type, $permid, $options, $validationData, $editorOpen, $updating = false)
{
    $page = aTools::getCurrentPage();
    $slot = $page->getSlot($name);
    $parameters = array("options" => $options);
    $parameters['name'] = $name;
    $parameters['type'] = $type;
    $parameters['permid'] = $permid;
    $parameters['validationData'] = $validationData;
    $parameters['showEditor'] = $editorOpen;
    $parameters['updating'] = $updating;
    $user = sfContext::getInstance()->getUser();
    $controller = sfContext::getInstance()->getController();
    $moduleName = $type . 'Slot';
    if ($controller->componentExists($moduleName, "executeSlot")) {
        include_component($moduleName, "slot", $parameters);
    } else {
        include_component("a", "slot", $parameters);
    }
}
开发者ID:hashir,项目名称:UoA,代码行数:20,代码来源:aHelper.php


示例7: isset

?>
"> :
                <input type="text" name="db_port" class="smallest" placeholder="default" id="db_port" value="<?php 
if (isset($port)) {
    echo $port;
}
?>
">
            </dd>
            <dt>
                <label for="db_name">Database name</label>
            </dt>
            <dd>
                <input type="text" name="db_name" class="small" id="db_name" value="<?php 
echo isset($db_name) ? $db_name : 'thebuggenie';
?>
">
                <span class="helptext">The database used to store the bug genie tables <i>(must already exist!)</i></span>
            </dd>
        </dl>
        <div style="padding-top: 20px; clear: both; text-align: center;">
            <label for="continue_button" style="font-size: 13px; margin-right: 10px;">Click this button to test the database connection details</label>
            <img src="iconsets/oxygen/spinning_30.gif" id="next_indicator" style="display: none; vertical-align: middle; margin-left: 10px;">
            <input type="submit" id="continue_button" onclick="$('continue_button').hide();$('next_indicator').show();" value="Continue">
        </div>
    </form>
    <p id="connection_status"></p>
</div>
<?php 
include_component('installation/footer');
开发者ID:pkdevboxy,项目名称:thebuggenie,代码行数:30,代码来源:installstep2.html.php


示例8: image_tag

<li style="vertical-align: middle; clear: both; height: 20px;">
	<?php 
echo image_tag('spinning_20.gif', array('id' => 'article_favourite_indicator_' . $article->getId() . '_' . $user->getID(), 'style' => 'display: none; float: left; margin-right: 5px;'));
?>
	<?php 
echo image_tag('star_faded_small.png', array('id' => 'article_favourite_faded_' . $article->getId() . '_' . $user->getID(), 'style' => 'cursor: pointer; display: none; float: left; margin-right: 5px;', 'onclick' => "TBG.Issues.toggleFavourite('" . make_url('toggle_favourite_article', array('article_id' => $article->getID(), 'user_id' => $user->getID())) . "', '" . $article->getID() . '_' . $user->getID() . "');"));
?>
	<?php 
echo image_tag('star_small.png', array('id' => 'article_favourite_normal_' . $article->getId() . '_' . $user->getID(), 'style' => 'cursor: pointer; float: left; margin-right: 5px;', 'onclick' => "TBG.Issues.toggleFavourite('" . make_url('toggle_favourite_article', array('article_id' => $article->getID(), 'user_id' => $user->getID())) . "', '" . $article->getID() . '_' . $user->getID() . "');"));
?>
	<?php 
include_component('main/userdropdown', compact('user'));
?>
</li>
开发者ID:oparoz,项目名称:thebuggenie,代码行数:14,代码来源:_articlesubscriber.inc.php


示例9: foreach

<div class="cpanel">
  <?php 
foreach ($items as $key => $item) {
    ?>
  <?php 
    if (sfAdminDash::hasPermission($item, $sf_user)) {
        ?>
  <div style="float: left">
    <?php 
        include_component('sfAdminDash', 'dash_item', array('item' => $item, 'key' => $key));
        ?>
  </div>
  <?php 
    }
    ?>
  <?php 
}
?>
  <div class="clear"></div>
</div>
开发者ID:auphau,项目名称:joyreactor,代码行数:20,代码来源:_dash_list.php


示例10: __

<div id="attach_file" class="backdrop_box large">
    <div class="backdrop_detail_header">
        <?php 
if ($mode == 'issue') {
    ?>
            <?php 
    echo __('Attach one or more file(s) to this issue');
    ?>
        <?php 
} elseif ($mode == 'article') {
    ?>
            <?php 
    echo __('Attach one or more file(s) to this article');
    ?>
        <?php 
}
?>
    </div>
    <?php 
include_component('main/' . $uploader . 'uploader', compact('mode', 'issue', 'article'));
?>
</div>
开发者ID:pkdevboxy,项目名称:thebuggenie,代码行数:22,代码来源:_uploader.inc.php


示例11: __

<div class="backdrop_box large">
	<div class="backdrop_detail_header">
		<?php 
echo __('Permission details for "%itemname"', array('%itemname' => $item_name));
?>
	</div>
	<div id="backdrop_detail_content" class="backdrop_detail_content">
		<?php 
echo __('Specify who can set this value for issues.');
?>
		<?php 
include_component('configuration/permissionsinfo', array('key' => $item_key, 'mode' => 'datatype', 'target_id' => $item_id, 'module' => 'core', 'access_level' => $access_level));
?>
	</div>
	<div class="backdrop_detail_footer">
		<a href="javascript:void(0);" onclick="TBG.Main.Helpers.Backdrop.reset();"><?php 
echo __('Close');
?>
</a>
	</div>
</div>
开发者ID:oparoz,项目名称:thebuggenie,代码行数:21,代码来源:_issuefieldpermissions.inc.php


示例12: include_component

    However, it seems JavaScript is either disabled or not supported by your
    browser. <br />
    To use Alumni Sangam, enable JavaScript by changing your browser options.<br />
  </div>
</center>
</noscript>
<div class="container">
  <div class="mainDiv">
  	<div class="globalheader">
    	<?php 
include_component('home', 'globalheader');
?>
    </div>
    <div class="header">
      <?php 
include_component('home', 'header');
?>
    </div>
    <div class="content">
      <div class="leftmenu">
        <div class="leftmenucontent">
          <?php 
if (has_slot('leftmenu')) {
    ?>
          	<?php 
    include_slot('leftmenu');
    ?>
          <?php 
}
?>
        </div>
开发者ID:Ayaan123,项目名称:alumnisangam,代码行数:31,代码来源:layout.php


示例13: include_component

<script type="text/javascript">
var step = '<?php 
echo $step;
?>
';
</script>

<div id="main" class="data-form <?php 
echo $step;
?>
">
	<div id="right" class="column column-40 column-right">
		<?php 
include_component('com_stepprogress', 'run', array('user' => $user));
?>
	</div>
	
	<div id="left" class="wrap-inside column column-60 column-right">
		<form id="form-data" action="" method="post">
			<h1 class="step-title">Payment Confirmation</h1>
			<div class="cat enquiry-type">
				<p class="cat-title">
				Please Select your Payment Method and Your Payment Date.<br />
				Your Payment will be process maximum 24 hours by our operator after you submit the form
				</p>
				<table class="table-form" border="0">
					<tr>
						<th>Payment Mehod</th>
						<td>
							<select name="payment_method" class="field-payment_method">
								<option select>-- Please Choose One --</option>
开发者ID:taryono,项目名称:school,代码行数:31,代码来源:paymentSuccess.php


示例14: include_component

<?php

include_component('project/recentactivities', array('id' => '10_recent_issues', 'issues' => $issues, 'empty' => __('No issues of this type has been posted yet'), 'default_displayed' => true));
开发者ID:founderio,项目名称:thebuggenie,代码行数:3,代码来源:_dashboardviewprojectrecentissues.inc.php


示例15: image_tag

TBGEvent::createNew('core', 'viewissue_left_after_attachments', $issue)->trigger();
?>
<fieldset id="viewissue_related_information_container">
	<legend>
		<?php 
echo image_tag('spinning_16.gif', array('style' => 'display: none;', 'id' => 'related_issues_indicator')) . __('Child issues (%count)', array('%count' => '<span id="viewissue_related_issues_count">' . count($issue->getChildIssues()) . '</span>'));
?>
	</legend>
	<div id="viewissue_related_information">
		<?php 
include_component('main/relatedissues', array('issue' => $issue));
?>
	</div>
</fieldset>
<fieldset id="viewissue_duplicate_issues_container">
	<legend>
		<?php 
echo image_tag('spinning_16.gif', array('style' => 'display: none;', 'id' => 'duplicate_issues_indicator')) . __('Duplicate issues (%count)', array('%count' => '<span id="viewissue_duplicate_issues_count">' . $issue->getNumberOfDuplicateIssues() . '</span>'));
?>
	</legend>
	<div id="viewissue_duplicate_issues">
		<?php 
include_component('main/duplicateissues', array('issue' => $issue));
?>
	</div>
</fieldset>
<?php 
TBGEvent::createNew('core', 'viewissue_left_bottom', $issue)->trigger();
?>
<div style="clear: both; margin-bottom: 5px;"> </div>
开发者ID:oparoz,项目名称:thebuggenie,代码行数:30,代码来源:_issuedetailslisteditable.inc.php


示例16: include_component

<div id="messagebar" class="messageBalloon_<?php 
echo $messageType;
?>
" >
    <span>
<?php 
if (!empty($messageType)) {
    echo $message;
}
?>
    </span>
</div>

<div id="mainDiv"> 
    <?php 
include_component('core', 'ohrmList');
?>
	
</div> 

<div id="deleteConfirmation" title="<?php 
echo __('OrangeHRM - Confirmation Required');
?>
" style="display: none;">
    <?php 
echo __(CommonMessages::DELETE_CONFIRMATION);
?>
    <div class="dialogButtons">
        <input type="button" id="dialogDeleteBtn" class="savebutton" value="<?php 
echo __('Ok');
?>
开发者ID:lahirwisada,项目名称:orangehrm,代码行数:31,代码来源:viewPerformanceTrackerListSuccess.php


示例17: include_component

<h1>Horario para el Docente: <?php 
echo $docente->getApellido() . " " . $docente->getNombre();
?>
</h1>
<?php 
include_component('cal', $view, array('archivo' => $archivo, 'date' => $date_component, 'verPorDia' => 'view/verPorDia', 'verPorSemana' => 'view/verPorSemana', 'verPorMes' => 'view/verPorMes', 'verPorAnio' => 'view/verPorAnio'));
?>

开发者ID:mediasadc,项目名称:alba,代码行数:7,代码来源:horarioSegunDocenteSuccess.php


示例18: include_component

$tbg_response->setTitle($article_name);
?>
<table style="margin-top: 0px; table-layout: fixed; width: 100%" cellpadding=0 cellspacing=0>
    <tr>
        <td class="side_bar">
            <?php 
include_component('leftmenu', compact('article', 'special'));
?>
        </td>
        <td class="main_area article">
            <a name="top"></a>
            <?php 
if ($component) {
    ?>
                <?php 
    include_component("publish/special{$component}", compact('projectnamespace'));
    ?>
            <?php 
} else {
    ?>
                <div class="redbox" style="margin: 15px;">
                    <?php 
    echo __('This special page does not exist');
    ?>
                </div>
            <?php 
}
?>
        </td>
    </tr>
</table>
开发者ID:founderio,项目名称:thebuggenie,代码行数:31,代码来源:specialarticle.html.php


示例19: array

    } else {
        ?>
                                <?php 
        $output = array();
        foreach ($step->getOutgoingTransitions() as $transition) {
            $output[] = get_component_html('configuration/workflowtransition', array('transition' => $transition, 'direction' => 'outgoing', 'step' => $step));
        }
        echo join($glue, $output);
        ?>
                            <?php 
    }
    ?>
                        </div>
                    </div>
                    <?php 
    include_component('configuration/workflowaddtransition', array('step' => $step));
    ?>
                    <div id="workflow_details_step">
                        <dl id="step_details_info">
                            <dt><?php 
    echo __('Name');
    ?>
</dt>
                            <dd><?php 
    echo $step->getName();
    ?>
</dd>
                            <dt><?php 
    echo __('Description');
    ?>
</dt>
开发者ID:founderio,项目名称:thebuggenie,代码行数:31,代码来源:configureworkflowstep.html.php


示例20: include_component

            <div class="help">
              <?php 
    echo $form["mark"]->renderHelp();
    ?>
            </div>
            <div style="clear: both; margin-top: 1px;"></div>
            <?php 
    echo $form["date"]->renderError();
    ?>
            <?php 
    echo $form["date"]->renderLabel();
    echo $form["date"];
    ?>

            <?php 
    include_component('course_student_mark', 'component_marks_info', array('course_subject_student' => $form->getObject()->getStudentRepprovedCourseSubject()->getCourseSubjectStudent()));
    ?>
          </div>

        <?php 
}
?>
      </fieldset>

      <ul class="sf_admin_actions">
        <li><?php 
echo link_to(__('Back'), '@examination_repproved_subject', array('class' => 'sf_admin_action_go_back'));
?>
</li>
        <?php 
if ($examination_repproved_subject->canEditCalifications()) {
开发者ID:nvidela,项目名称:kimkelen,代码行数:31,代码来源:calificationsSuccess.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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