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 = "U...
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']; ?> /> </di...
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> {!! ...
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->det...
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 ...
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...
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...
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'); ...
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, $...
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.gene...
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->vi...
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 = ...
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> ...
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...
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->assertInstanceO...
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(); ...
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/cr...
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/...
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> ...
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...
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> ...
php
'class' => 'yii\grid\ActionColumn', 'template' => '{status_change} {manage}', 'buttons' => [ 'status_change' => function ($url,$model) { ...
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 fun...
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 ...
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] ===...
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}}"> ...
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 $e...
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.getEdi...
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 o...
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->getFla...
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...
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--...
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...
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('shoppingc...
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/b...
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> ...
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 = []; prote...
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"...
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\"...
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...
php
$lang = array ( 'banner_pic' => 'URL изображения', 'banner_width' => 'Ширина', 'banner_height' => 'Высота', 'banner_url' => 'URL баннера', 'banner_text' => 'Описание', 'banner_atarget' => 'Метод открытия ссылки', 'banner_atarget_top' => 'В этом же окне (_top)', 'banner_atarget_blank' => 'В новом окне (_bla...
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' ...
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->de...
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 = $c...
php
@endif <tr> <td>{{$transaction->product_id}}</td> <td>{{$transaction->product->title}}</td> <td>{{$transaction->customer->id}}</...
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])); } }