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


PHP Section::inject方法代码示例

本文整理汇总了PHP中Section::inject方法的典型用法代码示例。如果您正苦于以下问题:PHP Section::inject方法的具体用法?PHP Section::inject怎么用?PHP Section::inject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Section的用法示例。


在下文中一共展示了Section::inject方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

<div class="subheader"></div>
<div class="container inner-container">
  <?php 
Section::inject('page_title', 'Notifications');
?>
  <?php 
if (count($notifications->results) > 0) {
    ?>
    <table class="notifications-table table">
      <?php 
    foreach ($notifications->results as $notification) {
        ?>
        <?php 
        echo View::make('notifications.partials.notification')->with('notification', $notification);
        ?>
      <?php 
    }
    ?>
    </table>
    <div class="pagination-wrapper">
      <?php 
    echo $notifications->links();
    ?>
    </div>
  <?php 
} else {
    ?>
    <p><?php 
    echo e(__("r.notifications.index.no_notifications"));
    ?>
</p>
开发者ID:ajb,项目名称:rfpez,代码行数:31,代码来源:index.php

示例2: foreach

<?php

Section::inject('page_title', 'My Bids');
?>
<div class="subheader"></div>
<div class="container inner-container">
  <?php 
if ($bids) {
    ?>
    <table class="table my-bid-table">
      <thead>
        <tr>
          <th>Project</th>
          <th>Total Price</th>
          <th>Status</th>
        </tr>
      </thead>
      <tbody>
        <?php 
    foreach ($bids as $bid) {
        ?>
          <tr class="bid bid-<?php 
        echo e(str_replace(' ', '-', strtolower($bid->status)));
        ?>
">
            <td>
              <a href="<?php 
        echo e($bid->submitted_at ? route('bid', array($bid->project->id, $bid->id)) : route('new_bids', array($bid->project->id)));
        ?>
"><?php 
        echo e($bid->project->title);
开发者ID:ajb,项目名称:rfpez,代码行数:31,代码来源:mine.php

示例3: e

<?php

Section::inject('page_title', 'My Projects');
Section::start('inside_header');
?>
  <a class="officer-only toggle-my-all-projects" href="<?php 
echo e(route('projects'));
?>
">everybody's projects</a>
  <a class="btn btn-small btn-success new-project-btn pull-right" href="<?php 
echo e(route('new_projects'));
?>
">
    <i class="icon-plus-sign icon-white"></i>
    new project
  </a>
<?php 
Section::stop();
?>
<div class="subheader"></div>
<div class="container inner-container">
  <?php 
if ($projects) {
    ?>
    <table class="table my-project-table">
      <thead>
        <tr>
          <th class="type"></th>
          <th class="project-title">Project</th>
          <th class="status">Status</th>
          <th class="due">
开发者ID:ajb,项目名称:rfpez,代码行数:31,代码来源:mine.php

示例4:

<div class="subheader">
	<?php 
Section::inject('page_title', 'RFP-EZ FAQ');
?>
</div>
<div class="container inner-container">

	<h5>General</h5>

	<div class="question-wrapper well">
		<div class="question">
			Q: What is RFP-EZ?
		</div>
		<div class="answer">
			A: RFP-EZ is a web-based application that is comprised of five different systems, all meant to make it easier for small businesses to sell their services to government buyers, and for contracting officers to buy small dollar value services.
		</div>
	</div>  

	<div class="question-wrapper well">
		<div class="question">
			Q: Are there benefits to buyers and sellers in using RFP-EZ?
		</div>
		<div class="answer">
			A: Yes. We know that buying goods and services for the Government and selling them to the Government can be complicated and intimidating.  That shouldn’t be the case, especially for small dollar value purchases.  RFP-EZ helps streamline the contracting process for both the buyers and sellers.  It represents a unique opportunity for innovative startups to easily access the federal government marketplace and, in turn, enable the Federal government to secure better and less expensive products and services, saving taxpayers money and improving the results delivered. 
		</div>
	</div>

	<div class="question-wrapper well">
		<div class="question">
			Q: Is this a government-wide initiative? 
		</div>
开发者ID:ajb,项目名称:rfpez,代码行数:31,代码来源:faq.php

示例5: e

<div class="subheader"></div>
<div class="container inner-container">
  <?php 
Section::inject('page_title', 'Change Password');
?>
  <form id="change-password-form" class="form-horizontal" action="<?php 
echo e(route('change_password'));
?>
" method="post">
    <div class="control-group">
      <label class="control-label">Old Password</label>
      <div class="controls">
        <input type="password" name="old_password" />
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">New Password</label>
      <div class="controls">
        <input id="new-password-input" type="password" name="new_password" />
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">Confirm New Password</label>
      <div class="controls">
        <input type="password" name="confirm_new_password" />
      </div>
    </div>
    <div class="form-actions">
      <button class="btn btn-primary" type="submit">Submit</button>
    </div>
  </form>
开发者ID:ajb,项目名称:rfpez,代码行数:31,代码来源:change_password.php

示例6: e

<div class="subheader"></div>
<div class="container inner-container">
	<?php 
Section::inject('page_title', 'My Account');
?>
	<form action="<?php 
echo e(route('account'));
?>
" method="POST" class="account-form account-form-<?php 
echo e(Auth::user()->vendor ? 'vendor' : 'officer');
?>
">
	  <?php 
if (Auth::user()->vendor) {
    ?>
	    <?php 
    echo View::make('users.account_vendor_fields');
    ?>
	  <?php 
} else {
    ?>
	    <?php 
    echo View::make('users.account_officer_fields');
    ?>
	  <?php 
}
?>
	  <div class="form-actions">
	    <input class="btn btn-primary" type="submit" value="Save Changes" />
	  </div>
	</form>
开发者ID:ajb,项目名称:rfpez,代码行数:31,代码来源:account.php

示例7: e

<div class="subheader">
  <?php 
Section::inject('page_title', "Page not found");
?>
</div>
<div class="container inner-container">
  <p class="lead"><?php 
echo e(__("r.error.404_content.text"));
?>
</p>
</div>
开发者ID:ajb,项目名称:rfpez,代码行数:11,代码来源:404_content.php

示例8: e

<?php

Section::inject('page_title', $bid->project->title);
Section::inject('page_action', 'Show Bid');
?>
<div class="subheader">
  <div class="container">
    <a href="<?php 
echo e(route('project', array($project->id)));
?>
">&larr; Back to project page</a>
  </div>
</div>
<div class="container inner-container">
  <div class="row">
    <div class="span6">
      <?php 
echo View::make('projects.partials.full_sow')->with('project', $project);
?>
    </div>
    <div id="column-my-bid" class="span5 offset1">
      <h4>My Bid
</h4>
      <?php 
echo View::make('bids.partials.bid_details_vendors_view')->with('bid', $bid);
?>
    </div>
  </div>
</div>
开发者ID:ajb,项目名称:rfpez,代码行数:29,代码来源:show_vendors_view.php

示例9: e

<?php

Section::inject('page_title', 'New Company');
?>
<div class="subheader"></div>
<div class="container inner-container">
	<form id="new-vendor-form" action="<?php 
echo e(route('vendors'));
?>
" method="POST">
	  <?php 
echo View::make('users.account_vendor_fields')->with('vendor', Input::old('vendor'))->with('user', Input::old('user'))->with('services', Input::old('services'))->with('signup', true);
?>
	  <h5>How did you hear about RFP-EZ?</h5>
	  <div class="control-group">
	    <input class="input-xlarge" type="text" name="user[how_hear]" value="" placeholder="optional" />
	  </div>
	  <div class="form-actions">
	    <button class="btn btn-primary" type="submit">Create Profile</button>
	  </div>
	</form>
</div>
开发者ID:ajb,项目名称:rfpez,代码行数:22,代码来源:new.php

示例10:

<div class="subheader">
  <?php 
Section::inject('page_title', "{$project->title}");
?>
  <div class="subheader-secondline"><?php 
echo $project->agency;
?>
</div>
</div><!-- subheader -->

<div class="container inner-container inner-container-show-project">
	<p>
		Redirecting to 
		<a class="outbound" href="<?php 
echo $project->external_url;
?>
"><?php 
echo $project->external_url;
?>
</a> 
		...
	</p>
</div>
<script>
	window.location.href = "<?php 
echo $project->external_url;
?>
";
</script>
开发者ID:ajb,项目名称:rfpez,代码行数:29,代码来源:outbound.php

示例11: e

<?php

Section::inject('page_title', 'Change Email');
?>

<div class="subheader"></div>

<div class="container inner-container">
  <form class="form-horizontal" action="<?php 
echo e(route('change_email'));
?>
" method="post">
    <div class="control-group">
      <label class="control-label">New Email</label>
      <div class="controls">
        <input type="text" name="new_email" value="<?php 
echo e(Input::old('new_email'));
?>
" />
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">Verify Password</label>
      <div class="controls">
        <input type="password" name="password" />
      </div>
    </div>
    <div class="form-actions">
      <button class="btn btn-primary" type="submit">Submit</button>
    </div>
  </form>
开发者ID:ajb,项目名称:rfpez,代码行数:31,代码来源:change_email.php

示例12: e

<?php

if ($finish_signup) {
    ?>
  <?php 
    Section::inject('page_title', "Create password for {$user->email}");
} else {
    ?>
  <?php 
    Section::inject('page_title', "Reset password for {$user->email}");
}
?>
<div class="subheader"></div>
<div class="container inner-container">
  <form id="reset-password-form" class="form-horizontal" action="<?php 
echo e(route('reset_password', array($user->reset_password_token)));
?>
" method="POST">
    <div class="control-group">
      <label class="control-label">New Password</label>
      <div class="controls">
        <input type="password" name="password" />
      </div>
    </div>
    <div class="form-actions">
      <button class="btn btn-primary" type="submit">Submit</button>
    </div>
  </form>
</div>
开发者ID:ajb,项目名称:rfpez,代码行数:29,代码来源:get_reset_password.php

示例13: e

<?php

Section::inject('page_title', 'Sign In');
?>
<div class="subheader"></div>
<div class="container inner-container">
  <form class="form-horizontal" action="<?php 
echo e(route('signin'));
?>
" method="POST">
    <input type="hidden" name="redirect_to" value="<?php 
echo e(Input::old('redirect_to') ?: Session::get('redirect_to'));
?>
" />
    <div class="control-group">
      <label class="control-label">Email</label>
      <div class="controls">
        <input type="text" name="email" value="<?php 
echo e(Input::old('email'));
?>
" data-onload-focus="data-onload-focus" />
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">Password</label>
      <div class="controls">
        <input type="password" name="password" />
        <a class="forgot" href="<?php 
echo e(route('forgot_password'));
?>
">Forgot Password?</a>
开发者ID:ajb,项目名称:rfpez,代码行数:31,代码来源:signin.php

示例14: e

<div class="subheader"></div>
<div class="container inner-container">
	<?php 
Section::inject('page_title', 'Forgot Password');
?>
	<form class="form-horizontal" action="<?php 
echo e(route('forgot_password'));
?>
" method="POST">
	  <div class="control-group">
	    <label class="control-label">Email address</label>
	    <div class="controls">
	      <input type="text" name="email" value="<?php 
echo e(Input::old('email'));
?>
" />
	    </div>
	  </div>
	  <div class="form-actions">
	    <button class="btn btn-primary" type="submit">Submit</button>
	  </div>
	</form>
</div>
开发者ID:ajb,项目名称:rfpez,代码行数:23,代码来源:get_forgot_password.php

示例15: e

<?php

Section::inject('page_title', 'Vendors');
Section::inject('current_page', 'vendors-index');
?>
<div class="subheader"></div>
<div class="container inner-container">
  <div class="vendors-wrapper">
    <div class="vendors">
      <?php 
foreach ($vendors as $vendor) {
    ?>
        <div class="media vendor well">
          <div class="company-name pull-left">
            <a href="<?php 
    echo e(route('vendor', array($vendor->vendor_id)));
    ?>
"><?php 
    echo e($vendor->company_name);
    ?>
</a>
          </div>
          <div class="ballpark-price pull-right"><?php 
    echo e($vendor->ballpark_price_display());
    ?>
</div>
          <div class="clearfix"></div>
          <div class="vendor-image-preview-frame">
            <a href="<?php 
    echo e(route('vendor', array($vendor->vendor_id)));
    ?>
开发者ID:ajb,项目名称:rfpez,代码行数:31,代码来源:index.php


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