lang
stringclasses 10
values | seed
stringlengths 5
2.12k
|
---|---|
php |
$this
->post("/surveys/{$survey->id}/responses", [
'custom_fields' => [
'email' => '<EMAIL>',
],
])->assertOk();
}
/** @test */
public function invalid_data_throws_validation_exception()
{ |
php | @yield('modal')
@include('azinocase.layouts.scripts')
<script>locale = '{{ App::getLocale() }}'</script>
<script>
window._translations = {!! cache('translations' . App::getLocale()) !!};
</script> |
php | }
}
});
});
});
</script> |
php | $query2 = "SELECT*FROM `carwash` WHERE `car_no`='$num'";
$result = $db->query($query2);
$row = $result->fetch_object();
if (!$row) {
?> <p class="bg-danger" align="center"><?php
echo "not registerd";
?> </p> <?php
} elseif ($row->score > 100) {
$query4 = "UPDATE `carwash` SET `score`=score-100 WHERE `car_no`='$num'";
$result4 = $db->query($query4);
?> <p class="bg-success" align="center"><?php
echo "you won prize"; |
php | <url>{{ u('Property/edit',['id'=>$list_item['id']]) }}</url>
</attrs>
</action>
<action type="destroy" css="red"></action>
</actions>
</columns>
</table>
</yz:list>
@yizan_end
<script type="text/javascript">
$(function(){
})
</script>
@stop |
php | </div>
</div>
<div class="modal-body pb-0">
<div class="row justify-content-center">
<div class="col-9 shadow-sm p-4"> |
php | public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{ |
php | <?php /* Smarty version 2.6.1, created on 2014-04-01 12:07:15
compiled from modulo1.html */ ?>
<!-- Form Modulo 1 -->
<div>
<h1><?php echo $this->_tpl_vars['sbDato']; ?>
</h1>
<br>
<input id="btnScripts" name="Scripts" type="button" value=<?php echo $this->_tpl_vars['sbDato']; ?>
/>
</div>
<!-- Fin Form Modulo 1 -->
|
php | namespace App\Models\Common;
use Illuminate\Database\Eloquent\Model;
class Document extends Model
{
use \App\Traits\HandleImage;
protected $guarded = [];
protected static function boot()
{
parent::boot();
static::deleting(function($document){ |
php | <a href="{{ route('memberPoints.show', [$memberPoint->id]) }}" class='btn btn-ghost-success'><i class="fa fa-eye"></i></a>
<a href="{{ route('memberPoints.edit', [$memberPoint->id]) }}" class='btn btn-ghost-info'><i class="fa fa-edit"></i></a>
{!! Form::button('<i class="fa fa-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-ghost-danger', 'onclick' => "return confirm('Are you sure?')"]) !!}
</div>
{!! Form::close() !!}
</td>
</tr>
@endforeach
</tbody> |
php | if ($from['Unsub']['Allowed']) {
unset($from['Unsub']);
}
}
if ($row['EmailType'] == 'SquadMove') {
$from = [
"Email" => "noreply@" . getenv('EMAIL_DOMAIN'),
"Name" => app()->tenant->getKey('CLUB_NAME')
];
} else if ($row['EmailType'] == 'Notify-Audit') {
$from = [ |
php | * Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'id' => $this->id,
'title' => $this->title,
'details' => $this->details,
'start_from' => date("H:i", strtotime($this->meeting_from)), |
php | <?php
namespace BeholderWebClient\Eyes\Db\Redis;
use Redis;
use Exception; |
php | .box{width:300px;height:30px;background-color:white;}
.submit{
width:150px;
height:30px;
background-color:white;
color:#404040;
font-family:arial;
border:none;
|
php | }
$all_ids[$default_value[$delta]['target_type']][] = $default_value[$delta]['target_id'];
}
$entities = [];
foreach ($all_ids as $target_type => $ids) {
$entities[$target_type] = $manager
->getStorage($target_type)
->loadMultiple($ids);
} |
php | <td>{{ $attachment->name }}</td>
<td>{{ $attachment->student->user->full_name }}</td>
<td>{{ $attachment->created_at }}</td>
<td colspan="2">
<a class="btn btn-outline-success btn-sm"
href="{{ route('attachments.etudiant.view',['id' => $attachment->id]) }}"
role="button"><i class="fas fa-eye"></i>
Voir</a>
<a class="btn btn-outline-info btn-sm"
href="{{ route('attachments.etudiant.download',['id' => $attachment->id]) }}"
role="button"><i |
php | */
defined( 'ABSPATH' ) or exit;
$wizard = LP_Setup_Wizard::instance();
$payments = $wizard->get_payments();
?>
<h2><?php _e( 'Payment', 'learnpress' ); ?></h2>
<p class="large-text"><?php _e( 'LearnPress can accept both online and offline payments. Additional payment addons can be installed later.', 'learnpress' ); ?></p> |
php | }
public function delete($id)
{
$comment = Comment::where('id', $id)->where('user_id', Auth::id());
if ($comment) {
$comment->delete();
}
return back();
}
public function newComment(Request $request)
{
$comment = new Comment();
$comment->post_id = $request['post']; |
php | class APanelsServiceProvider extends ServiceProvider
{
public function boot()
{
$this->app->booted(function () {
$this->routes();
});
Event::listen(ServingNova::class, function () {
Nova::script('akka-panels', dirname(__DIR__) . '/dist/js/aPanels.js');
Nova::style('akka-panels', dirname(__DIR__) . '/dist/css/aPanels.css');
});
} |
php | use App\Entity\Task\TaskType;
class GetOutputIdsForErrorCommand extends Command
{
const RETURN_CODE_OK = 0;
const RETURN_CODE_MISSING_TASK_TYPE = 1;
const RETURN_CODE_INVALID_TASK_TYPE = 2;
const RETURN_CODE_MISSING_FRAGMENTS = 3;
private $taskTypeService; |
php | foreach ( $tags as $tag ) {
$arr[$i] = [
"link" => \Kiku\Util::base_path(get_tag_link($tag->term_id)),
"name" => $tag->name,
]; |
php | $targetW = self::intRound($image->width * $scale);
$targetH = self::intRound($image->height * $scale);
self::adjustDimensions($sourceX, $sourceW, $targetX, $targetW, $outputW, $scale, $options['pad'], $options['align-x']);
self::adjustDimensions($sourceY, $sourceH, $targetY, $targetH, $outputH, $scale, $options['pad'], $options['align-y']);
// create output image
$output = Image::blank($outputW, $outputH);
// enable transparency
if ($options['trans']) {
$output->enableAlpha();
} elseif ($options['bgcolor'] !== null) { |
php | {{trans('front.collections.select')}} {{GetParameter('size', $lang->id)}}:
</div>
<div class="selSizeOpen">
<div class="sizeDelivery">
<div class="sizeGuide" data-toggle="modal" data-target="#modalSize">{{trans('front.general.size')}}</div>
<div class="deliveryGuide" data-toggle="modal" data-target="#modalDelivery">{{trans('front.general.delivery')}}</div>
</div>
@foreach ($product->subproducts as $subKey => $subproduct) |
php | </select>
</div>
</div>
</div>
</div>
<div class="form-fields-wrapper">
<div class="form-steps-bottom"></div>
<input class="button btn-full push-top btn-primary" name="commit" type="submit" value="Register" id = "btn-submit" id = "btn-submit"> |
php | </tr>
@endforelse
<tr>
</tr>
</tbody>
<tfoot>
<tr colspan="7">
<ul class="pagination pull-right">
{{$user_list->links()}} |
php | $data['site_twitter'] = $result['site_twitter'];
$data['site_instagram'] = $result['site_instagram'];
$data['site_pinterest'] = $result['site_pinterest'];
$data['site_linkedin'] = $result['site_linkedin'];
$data['title'] = 'Pengaturan Utama';
$this->load->view('backend/nav/header', $data);
$this->load->view('backend/v_settings', $data);
}
function update()
{ |
php |
namespace App;
use Illuminate\Database\Eloquent\Model;
interface InvitationCodeGenerator
{
public function generate(); |
php |
namespace app\common\model;
/**
* Created by PhpStorm.
* User: shengwang.yang
* Date: 2018/6/28 0028
* Time: 下午 2:00
*/
trait Product
{
public function category(){ |
php |
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddSelectedColumnsToMenuOptionsTable extends Migration
{ |
php | * @param string $key the key of the value, under which it was saved
* @param string $default the default value to be returned if the value isn't set
* @return string the saved value
*/
public function getAppValue($appName, $key, $default = '');
/**
* Set a user defined value |
php | */
public function run()
{
DB::table('products')->truncate();
$faker = Faker\Factory::create();
for ($i = 0; $i < 30; $i++) {
DB::table('products')->insert([ //,
'name' => $faker->name,
'original_price' =>$faker->numberBetween($min = 1000, $max = 9000),
'price' =>$faker->numberBetween($min = 1000, $max = 9000),
'description' => $faker->text($maxNbChars = 200),
'category_id' => '1',
'vendor_id' => '1', |
php | /** @test */
public function only_authenticated_users_can_search_for_users()
{
$user = $this->user();
$this->get(route('admin.users.search'))
->assertRedirect(route('login'));
}
|
php | <th>Batas Tanggal Kembali</th>
<th>Tanggal Kembali</th>
<th>Nama anggota</th>
<th>id petugas</th>
<th>Action</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Kode</th>
<th>Tanggal Pinjam</th>
<th>Batas Tanggal Kembali</th>
<th>Tanggal Kembali</th>
<th>Nama anggota</th>
<th>id petugas</th> |
php |
$files = array(
'db-cache' => 'default' . $ds . 'schema' . $ds . 'cache.php',
'db-log' => 'default' . $ds . 'schema' . $ds . 'log.php',
'db-job' => 'default' . $ds . 'schema' . $ds . 'job.php',
'db-queue' => 'default' . $ds . 'schema' . $ds . 'queue.php', |
php | <label>Nama Tamu</label>
<div class="row">
<div class="col-sm-3">
<select class="form-control" name="prefix">
<option value="Mr">Mr</option>
<option value="Ms">Ms</option>
<option value="Mrs">Mrs</option>
</select> |
php | @section('content')
@include('shared.alert')
<h4>Recommend "{{ $article->title }}" by e-mail</h4>
<p>
{!! Form::open(['route' => ['articles.recommendations.store', $article->id]]) !!}
<div class='form-group'>
{!! Form::label('email', 'Email:') !!}
{!! Form::text('email', null, ['class' => 'form-control']) !!}
</div>
{!! Recaptcha::render() !!}
{!! Form::submit('Send Recommendation', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
</p>
@endsection
|
php | </div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
</div>
|
php | }
public function testYamlParser()
{
$fixtureFile = self::TESTS_FIXTURES_DIRECTORY . 'country.yml';
$fixture = $this->parserInstance->parse($fixtureFile);
$this->assertCount(247, $fixture);
$this->assertEquals('country', $fixture->getName());
$this->assertInstanceOf('TheIconic\Fixtures\Fixture\Fixture', $fixture); |
php | dann kriegt man als ergebnis den ersten Datensatz der auf die Suche uebereinstimmt
zurueck. Mit Next() kann man sich alle weiteren Ergebnisse abholen
**/
public function Find()
{
//TODO Suche mit den werten machen
} |
php | $table-> integer ('nomini_fathername');
$table-> string ('nomini_mothername');
$table-> string ('nomini_relation');
$table-> integer ('nomini_phone');
$table-> date('nomini_dob');
$table-> string('nomini_nid');
$table->timestamps();
});
}
/**
* Reverse the migrations.
* |
php | | routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/','Articlescontroller@index');
// Route::get('/',[Articlescontroller::class, 'index']);
Route::get('/articles', 'Articlescontroller@index');
Route::get('/articles/create', 'Articlescontroller@create');
Route::get('/articles/{article}', 'Articlescontroller@show')->name('articles.show');
Route::post('/articles', 'Articlescontroller@store');
Route::get('/articles/{article}/edit', 'Articlescontroller@edit'); |
php | </li>
<li><a href="{{url('admin/products/'.$product->id.'/attributes')}}"><i class="fa fa-pencil"></i> Product Attributes</a>
</li>
<li><a href="{{url('admin/products/'.$product->id.'/delete')}}"><i class="fa fa-remove"></i> Delete</a>
</li> |
php | use PHPUnit\Framework\TestCase;
class GGGGinoRecentyBundleTest extends TestCase
{
public function testCanBeInstantiated(): void
{
$bundle = new GGGGinoRecentyBundle(); |
php | * @ORM\Column(type="string", length=255, nullable=false)
* @Assert\NotNull()
* @Assert\NotBlank()
*/
private $generatedId;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $returnPath;
/** |
php | <?php
namespace App\Http\Middleware;
use Illuminate\Support\Facades\Auth;
use Closure;
class CheckUserUniqueAuth
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next |
php | public function edit()
{
$data['info'] = $this->dept_model->getinfo();
// var_dump($data['info']->phone);exit;
$data['pids'] = $this->dept_model->get_list();
// $data['rl'] = $this->dept_model->get_info($data['info']->phone); |
php | }
}
});
</script>
</div>
</div>
</div>
</div>
</div> |
php | <li><a href="#">»</a></li>
</ul>
<div class="form-inline">
<p class="form-control-static">跳转到:</p>
<div class="form-group"> |
php | <div id="inputNama" class="form-text">use your full name.</div>
</div>
<div class="mb-3">
<label for="inputNIM" class="form-label">NIM</label>
<input type="text" class="form-control" name="nim" aria-describedby="nim" value ="{{ $model->nim }}">
</div>
<div class="mb-3">
<label for="InputAlamat" class="form-label">Alamat</label>
<input type="text" class="form-control" name="alamat" aria-describedby="alamat" value ="{{ $model->alamat }}">
</div>
<div class="mb-3">
<label for="InputTTL" class="form-label">Tanggal Lahir</label> |
php | <tr>
<th style="width: 20%"> Friend ID </th>
<th style="width: 50%"> Friend Name </th>
<th style="width: 30%"> Messages </th>
</tr>
</thead>
<tbody>
@foreach ($all_friend_list as $friend)
<tr>
<td> {{ $friend->id }} </td>
<td> {{ $friend->name }} </td>
<td> <a href="{{ route('messages.seeMessage', [auth()->user()->id, $friend->id]) }}" class="btn btn-success pt-2 pb-2"> See Messages <span class="badge badge-light"> {{ $friend->msg_number }} </span> </a></td>
</tr>
@endforeach
</tbody> |
php | 'class' => 'yii\grid\ActionColumn',
'template' => '{status_change} {manage}',
'buttons' => [
'status_change' => function ($url,$model) {
return Html::a(
($model->status==1) ? '<i class="fa fa-dot-circle-o text-success"> </i>' : '<i class="fa fa-dot-circle-o text-red"> </i>',
['country/status', 'id' => $model->id, 'prevState'=>$model->status],
[
'title' => ($model->status==1) ? 'Inactivate' : 'Activate',
'data-pjax' => '1',
]
);
}, |
php | namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use FOS\RestBundle\Routing\ClassResourceInterface;
use FOS\RestBundle\Controller\Annotations as Rest;
class DefaultController extends Controller implements ClassResourceInterface
{
/**
* @Rest\Get("/")
*/
public function getAction()
{
return []; |
php | <p>In total, Bale played 1,260 minutes across 20 Real matches in all competitions - 27.5 per cent of the total the team played - scoring three goals and contributing two assists in another campaign plagued by injury.</p>
<p>He did manage to feature in two matches following the post-lockdown restart but the damage was done long before then as his relationship with Zidane continued to deteriorate.</p>
<p>But now, Zidane and the club have their wish as Bale looks set to complete a sensational return to former club Tottenham on a season-long loan, where Real will subsidise a part of his wages.</p>
<p>It remains unclear what will happen after his loan at Spurs comes to an end, considering that his 'deal for life' at Real runs out in 2022, but that is problem for another day as far as Real are concerned. </p>
<p>Zidane only handed Bale 1,260 minutes last season, which costed the club £21,631 per minute</p>
<p>Bale moved to the Spanish capital from Spurs for a then-world-record £86m in 2013 and had helped them to two of his four Champions League triumphs when he signed those new terms, scoring 50 league goals in 90 games for the club. </p>
|
php | * Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('prediksi');
} |
php |
public function push(PropertyMetadata $metadata): void
{
$this->stack->push($metadata);
$this->currentPath[] = $metadata->name;
}
public function pop(): ?PropertyMetadata
{
$metadata = $this->stack->pop();
array_pop($this->currentPath);
|
php | * Accepts strings of length 5 with the first letter being a '6'.
*/
class TestSWrapper6 extends AbstractSerializableValue
{
public static function isValid($test): bool
{
if ($test instanceof self) {
return true;
}
if (is_string($test) && strlen($test) === 5 && $test[0] === "6") {
return true;
} |
php |
public function logout_editor(){
$data = $this->session->userdata('pass_relawan');
if (empty($data)) {
# code...
$this->session->sess_destroy(); |
php | <input type="number" class="form-control" name="amount" id="product-name" value="{{$book->amount}}">
</div>
<div class="form-group">
<label for="product-name">次月目標</label>
<input type="number" class="form-control" name="nextamount" id="product-name" value="{{$book->nextamount}}">
</div>
<div class="form-group">
<label for="product-name">メモ</label>
<input type="text" name="memo" class="form-control" value="{{$book->memo}}">
</div>
<button type="submit" class="btn btn-primary">送信</button> |
php |
@if(strtoupper($info->day) == strtoupper('monday'))
<?php $time = $info->time; ?> |
php |
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Syslog;
class SyslogController extends Controller
{
/**
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
* operate log
*/
public function operateLog($content='',$start_time='',$end_time=''){ |
php | public function setTaxCategory(?TaxCategoryKeyReference $taxCategory): void;
/**
* @param ?TaxRate $taxRate
*/
public function setTaxRate(?TaxRate $taxRate): void;
/**
* @param ?ExternalTaxRateDraft $externalTaxRate
*/
public function setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate): void; |
php | </div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary btn-block">添加</button>
</div>
</div>
</form>
@endsection
@section('js')
<script type="text/javascript">
var ue = UE.getEditor('container');
ue.ready(function() {
ue.execCommand('serverparam', '_token', '{{ csrf_token() }}'); // 设置 CSRF token.
}); |
php | Post <?php
if($rec_employer_setting->free_trial_jobs_can_post!="unlimited"){
echo "<span class='text-danger'><b>Up to ".$rec_employer_setting->free_trial_jobs_can_post."</b></span>";
}else{
echo "<span class='text-danger'>Unlimited</span>";
} |
php | <?php
namespace AppVerk\Components\Doctrine;
interface LogEntryEntityInterface
{ |
php | <p>Flashcart is providing the shop owners the options of hiring employees and providing choices to the employees they can switch their work to other brands also in Flashcart. And shop owners can also be more than one person so no limit is defined. Employees will earn good amount which will be provided by the shop owners. </p>
</div>
<div class="question_content">
<h4>What are the benefits?</h4>
<p>Flashcart is indeed a new website with the aim to provide and deliver good service in Pakistan and to prosper in future. And be able to experiment with more options and choices in near future. And to satisfy their customers at every stage. </p>
</div> |
php | <div class="container-fluid">
<div id="pad-wrapper" class="users-list">
<div class="row-fluid header">
<h3>分类列表</h3>
<p>
<?php
if(Yii::$app->session->hasFlash('info')){
echo Yii::$app->session->getFlash('info');
}
?>
</p>
<div class="span10 pull-right">
<a href="<?= \yii\helpers\Url::to(['category/add']) ?>" class="btn-flat success pull-right">
<span>+</span>添加新分类</a></div>
</div> |
php |
$.each(data, function(i,key){
$('#newstitle').val(key.title);
$('.editor').jqteVal(key.content);
$('#imageCoverLama').val(key.banner_image);
$('#gmbr1').append('<img class="coverpage" src="../uploads/'+key.banner_image+'">');
|
php | ?>
<div class='row py-3'>
<div class="col-md-6" >
<h2>Si vous avez un compte</h2>
<p>Veuillez vous identifier</p>
<form method="POST" action="./connex.php">
<p> <label for="login">Adresse e-mail</label>
<input id="login" name="login" type="email" required autofocus />
|
php | }
/**
* Delete a given directory
* @param string $directory
*/
private function deleteDirectory($directory)
{
if ($this->doesExist($directory)) {
Storage::disk('integration_tests')->deleteDirectory($directory);
}
}
|
php | <?php
namespace backend\controllers;
/**
* EquipmentController implements the CRUD actions for Equipment model.
*/
class HelpController extends ZhkhController
{
/**
* Lists all Equipment models. |
php | */
protected $contact;
protected $fakeContact = 'person_9EAF39E4-9AEC-4134-964A-D9D8D54162E7';
protected $fakeList = 'contactlist_9EAF39E4-9AEC-4134';
/**
* @var array
*/ |
php | </div>
@endif
<div class="card-body">
@if(session('cart')) |
php | <?php
declare (strict_types=1);
namespace app\pay\controller;
class Index
{
public function index(): string
{
return '您好!这是一个[demo]示例应用';
} |
php | protected function tearDown()
{
}
//------------------------------------------------------------------------------------------
public function test__construct() {
$morphemes = array( 'aariaq/1n', 'it/tn-nom-p' );
$mot = new Word($morphemes);
}
public function test__surfaceFormOnOneStem_1_morpheme () {
$stem = 'aariaq';
$morpheme = LinguisticObjects::getObject('it/tn-nom-p');
|
php | )
);
return (!empty($popup)) ? $popup : false;
}
function get_gallery_by_url($url = "")
{
$t = &get_instance();
$gallery = $t->general_model->get(
"galleries",
null, |
php | </div>
</div>
</section>
@endsection
|
php | die('skip test relies Winsock\'s error code for WSAEWOULDBLOCK/EAGAIN');
--FILE--
<?php
$listenfd = socket_create(AF_INET6, SOCK_STREAM, SOL_TCP);
socket_bind($listenfd, "::1", 13579);
socket_listen($listenfd);
socket_set_nonblock($listenfd);
$connfd = @socket_accept($listenfd);
echo socket_last_error();
?>
--EXPECT--
10035 |
php | $MESS["CRM_JS_STATUS_ACTION_SUCCESS"] = "Success";
$MESS["CRM_JS_STATUS_ACTION_ERROR"] = "That's an error.";
$MESS["CRM_REQUISITE_PRESET_SELECTOR_TEXT"] = "Add new";
$MESS["CRM_REQUISITE_POPUP_TITLE_CONTACT"] = "Contact details";
$MESS["CRM_REQUISITE_POPUP_TITLE_COMPANY"] = "Company details";
$MESS["CRM_REQUISITE_SERCH_RESULT_NOT_FOUND"] = "Your search request returned no results.";
$MESS["CRM_REQUISITE_PRESET_SELECTOR_TITLE_COMPANY"] = "Add company details using template";
$MESS["CRM_REQUISITE_PRESET_SELECTOR_TITLE_CONTACT"] = "Add contact details using template";
$MESS["CRM_REQUISITE_POPUP_ERR_PRESET_NOT_SELECTED_COMPANY"] = "There are no existing templates available."; |
php | //'idCustomers'=>$this->input->post('idCustomers'),
'totalPrice'=>$this->input->post('price')
);
//$this->db->insert('shoppingcart', $data);
$this->shoppingcart_model->addItem($insert_data);
$this->session->set_flashdata('added', 'Product added successfully');
redirect('shoppingcart/index');
}
public function send_order(){
$this->shoppingcart_model->emptyCart(); |
php | $user = "root";
$pass = "";
try {
$conn = new PDO($dns, $user, $pass);
// echo "success connect!";
} |
php | <?= Html::cssFile('@web/css/bootstrap.min.css') ?>
<?= Html::cssFile('@web/css/bootstrap-datetimepicker.min.css') ?>
<?= Html::jsFile('@web/Js/jquery.js') ?>
<?= Html::jsFile('@web/Js/bootstrap.js') ?>
<?= Html::jsFile('@web/Js/bootstrap-datetimepicker.js') ?>
<?= Html::jsFile('@web/Js/locales/bootstrap-datetimepicker.zh-CN.js') ?>
</head>
<script> |
php | <label for="name">Name</label>
<input type="text" id="name" class="form-control @error('name') is-invalid @enderror" name="name">
@error('name')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
<div class="form-group col-md-6">
<label for="number">Phone Number</label>
<input id="number" class="form-control @error('number') is-invalid @enderror" name="number"></input> |
php | */
declare(strict_types=1);
namespace Mercatus\PaymentApi\Domain\Response\Getnet;
use Mercatus\PaymentApi\Domain\ResponseInterface;
class AbstractResponse implements ResponseInterface
{
protected int $code;
|
php | protected $allowCallbacks = true;
protected $beforeInsert = [];
protected $afterInsert = [];
protected $beforeUpdate = [];
protected $afterUpdate = [];
protected $beforeFind = [];
protected $afterFind = [];
protected $beforeDelete = [];
protected $afterDelete = [];
public function updateColom($status, $yearh, $month, $sum)
{ |
php | $("#authTrigger").removeAttr("disabled");//启用按钮
$("#authTrigger").val("获取短信");
}
else {
curCount--; |
php | </script>
<?php } ?>
<div class="ccm-faq-entry well ccm-faq-entry-template"style="display: none;">
<i class="fa-sort-asc fa"></i>
<i class="fa-sort-desc fa"></i>
<div class="form-group">
<label><?php echo t('Navigation Link Text') ?></label>
<input type="text" name="linkTitle[]" value="" />
</div> |
php | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Artikel;
use App\Barcode;
use \GuzzleHttp\Client;
use \GuzzleHttp\Exception\RequestException; |
php | echo " <td valign=\"top\"><span class=\"style2\"><center>".$rbmurid["KELAS"]."</center></span></td>\n";
echo " <td valign=\"top\"><span class=\"style2\">".$rbmurid["NAMA"]."</span></td>\n";
echo " <td valign=\"top\"><span class=\"style2\">".$rbmurid["NOKP"]."</span></td>\n";
echo " <td valign=\"top\"><span class=\"style2\"><center>".$rbmurid[$kodmp]."</center></span></td>\n";
echo " <td><center>".$rbmurid['G'.$kodmp]."</center></td>\n";
echo " </tr>\n";
}
}
|
php | */
public function SetMaintenancePolicy(\Google\Cloud\Container\V1\SetMaintenancePolicyRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/google.container.v1.ClusterManager/SetMaintenancePolicy',
$argument, |
php | class Email extends Input
{
//shamelessly taken from http://emailregex.com/ because why reinvent the wheel?
const REGEX = '/^(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){255,})(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){65,}@)(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|'.
'(?:\x5C[\x00-\x7F]))*\x22))(?:\.(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-[a-z0-9]+)*\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)'.
'|(?:(?:xn--)[a-z0-9]+))(?:-[a-z0-9]+)*)|(?:\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|'.
'(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))(?:\.(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))){3}))\]))$/iD';
public function __construct(string $label, string $name=null, FieldInterface $parent=null) |
php | $lang = array
(
'banner_pic' => 'URL изображения',
'banner_width' => 'Ширина',
'banner_height' => 'Высота',
'banner_url' => 'URL баннера',
'banner_text' => 'Описание',
'banner_atarget' => 'Метод открытия ссылки',
'banner_atarget_top' => 'В этом же окне (_top)',
'banner_atarget_blank' => 'В новом окне (_blank)',
'banner_atarget_self' => 'В этом же фрейме (_self)', |
php | <?php
if (empty($_SESSION['pseudo'])) {
header ('Location:deconnection.php');
}else {
include_once ('connection_sql.php') ; |
php | * @return \Illuminate\Http\Response
*/
public function store(QuestionsRequest $request, Document $documents, $id)
{
$document = (new DocumentUpload($request, $documents))->handle();
$question = $this->questions->create([
'product_id' => $id,
'document_id' => $document ? $document->id : null,
'faq_category_id' => $request->input('category'),
'title' => $request->input('title'),
'answer' => $request->input('answer'),
'featured' => $request->input('featured'), |
php | | Please provide the models used in jlourenco comments package.
|
*/
'comments' => [
|
php | <?php
return [
'adminEmail' => '<EMAIL>',
'uploadDirectoryArticle' => 'uploads\article_file',
'icon-framework' => \kartik\icons\Icon::FAS,
];
|
php |
Sabor 1: <select name="sabor1_id">
@foreach($sabores as $tipo)
<option value="{{$tipo->id}}">{{$tipo->titulo}} - {{$tipo->descricao}}</option>
@endforeach
</select><br>
Sabor 2: <select name="sabor2_id">
@foreach($sabores as $tipo)
<option value="{{$tipo->id}}">{{$tipo->titulo}} - {{$tipo->descricao}}</option>
@endforeach
</select><br>
|
php | return [
'adminEmail' => '<EMAIL>',
'supportEmail' => '<EMAIL>',
'senderEmail' => '<EMAIL>',
'senderName' => 'saviv.site mailer',
'user.passwordResetTokenExpire' => 3600,
'storagePath' => '@frontend/web/uploads/',
'storageUri' => 'https://yiinstagram.saviv.site/uploads/',
|
php |
use Cxsquared\HowzatCricketLeague\Update\Search\UpdateSearch;
use flarum\Search\SearchCriteria;
class Searching
{
public $search;
public $criteria;
public function __construct(UpdateSearch $search, SearchCriteria $criteria)
{
$this->search = $search;
$this->criteria = $criteria;
}
|
php | @endif
<tr>
<td>{{$transaction->product_id}}</td>
<td>{{$transaction->product->title}}</td>
<td>{{$transaction->customer->id}}</td>
<td>{{$transaction->customer->first_name}} {{$transaction->customer->last_name}}</td>
<td>{{$transaction->product->buy_price}}</td>
<td>{{$transaction->product->price}}</td> |
php |
use App\Entity\Project;
class ProjectRepoTest extends BaseKernelTestCase
{
public function testProjectAll(): void
{
$project = $this->entityManager
->getRepository(Project::class)
->findAll();
$this->assertSame(gettype(new Project()), gettype($project[0]));
}
} |
Subsets and Splits