当前位置: 首页>>代码示例>>PHP>>正文


PHP include_component函数代码示例

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


在下文中一共展示了include_component函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


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