本文整理汇总了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>
示例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);
示例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">
示例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>
示例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>
示例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>
示例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>
示例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)));
?>
">← 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>
示例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>
示例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>
示例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>
示例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>
示例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>
示例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>
示例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)));
?>