lang stringclasses 10
values | seed stringlengths 5 2.12k |
|---|---|
php | <td>Action</td>
</tr>
<?php
foreach($result as $row){
?>
|
php | 'normalRange' => $request->normalRange[$key],
// 'finalNormalValue' => $request->finalNormalValue[$key],
'firstCriticalValue' => $request->firstCriticalValue[$key],
'finalCriticalValue' => $request->finalCriticalValue[$key],
... |
php | 'http' => true,
'mailto' => true,
'tel' => true,
));
$rules = array();
$rules[] = new PhutilRemarkupEscapeRemarkupRule();
$rules[] = new PhutilRemarkupMonospaceRule();
$rules[] = new PhutilRemarkupDocumentLinkRule();
$rules[] = new PhutilRemarkupHyperlinkRule(); |
php | * @return OEmbed
*/
public function __invoke(ContainerInterface $services, $requestedName, array $options = null)
{
$config = $services->get('Config'); |
php | /**
* @param string|null $packageName
* @param string|null $name
* @param string $type
*
* @return string|bool
*/
public function getHtml(?string $packageName = null, ?string $name = null, string $type = 'all')
{
if (!in_array($type, [
self::RETRIEVE_AL... |
php | <button type="submit" class="btn-blue">Skapa</button>
</div>
</form>
</div>
<div>
<p>
@if ($errors->any())
<div class="text-red-600 bg-pink-200 mt-2 py-4 pl-2">
... |
php | </div>
<!-- END wrapper -->
@include('theme.scripts')
@if ($tabla)
@include('theme.scripts-tablas')
@endif
<script src="{{ asset('js/init.js') }}"></script>
@yield('scripts')
</body> |
php |
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
\App\Models\User::create([
'name' => '<NAME>', |
php | /**
* Builds configuration set into an array
*
* @return array
*/
public function toArray(): array;
|
php | <script src="/vendor/jquery/jquery.min.js"></script>
<script src="/vendor/bootstrap/js/bootstrap.bundle.min.js"></script> |
php |
$sms_code = M('sms_code');
$user = M('user');
/* $uid = "2255";
$passwd = "<PASSWORD>";
$url2 = "http://sms.bamikeji.com:8890/mtPort/account/info?uid=".$uid."&passwd=".$passwd;
$html = file_get_contents($url2);
$result1 = json_decode($html,true);
$sms_nu... |
php | {
//
public function __construct()
{
}
|
php | });
Schema::table('construction_impl', function (Blueprint $table) {
//
$table->string('uprg_text')->nullable();
$table->string('uprg_slug')->nullable();
$table->float('lat', 10, 6)->nullable();
$table->float('lng', 10, 6)->nullable();
... |
php | if($search_params['purpose_id']!='')
$this->db->like('c.purpose_id',$search_params['purpose_id']);
//$this->db->where('n.status',1);
$this->db->limit($per_page, $current_offset);
$res = $this->db->get();
//echo $this->db->last_query();exit;
return $res->result_array();
}
/* fetching rows ... |
php | <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<link rel="icon" type="image/png" href="{{asset('assets/login_front/images/icons/favicon.ico')}}"/>
<!--=================... |
php | map.data.loadGeoJson('../json/Kota Bima.geojson');
map.data.setStyle(function(feature) {
return {
fillColor: '#000000',
strokeColor: '#000000',
strokeWeight: 1
};
});
map.data.addListener('mouseover', function(event) { |
php |
protected function setUp()
{
$this->object = Type::getType(IssueStatusEnumType::TYPE_NAME);
}
/**
* @covers AppBundle\DBAL\IssueStatusEnumType::getName |
php | $args = new InputArgs(array_merge(['script'], $args));
$this->assertSame($expected, $args->interactive());
}
public function interactiveArgs(): array
{
return [
'command only' => [true, ['init']],
'no args' => [true, ['init', '-opt']],
'sho... |
php | <input type="hidden" name="thread_id" value="{{$thread->id}}">
<input type="text" name="body" class="form-control" placeholder="ここにテキストを入力">
<span class="input-group-btn">
<label>
<span class="btn btn-info">
... |
php | $.each(atividades, function(index, val) {
$('#'+val+'.atividade').delay(900).fadeIn();
});
var tipo = $(this).data('tipo');
if(tipo == "Modulo"){
$('button#criarAtividadeExtra').data('idmodulo', id);
... |
php | <td>{{ $item->quantity }}</td>
</tr>
@empty
<tr>
<td colspan="5">Product items is empty! <a href="{{ route('home') }}">Let's start shopping!</a></td> |
php |
/**
* Gets Currency.
*
* @return string|null |
php | protected $atEppContact=null;
function __construct(atEppContact $atEppContact, atEppExtensionChain $additionaEppExtension=null) {
if(!is_null($additionaEppExtension)) {
parent::__construct($additionaEppExtension);
}
$this->atEppContact = $atEppContact;
}
public fun... |
php |
echo '<div class="data"><pre>';
echo 'num entries: ' . count($profileFeed->getEntries());
eval($snippet2);
echo '</pre></div>';
// =============================================================================
// Return a user's medication from the entire CCR
// ========================================================... |
php | <label>邮箱</label>
<input type="email" class="form-control">
</div>
<div class="form-group">
<label>密码</label>
<input type="password" class="form-control">
</div> |
php | <div class="p-6">
<div class="text-2xl text-white">
<a href="{{route('vendedores.index')}}" class="shadow-lg shadow-yellow-500 rounded-md bg-transparent px-10">Ventas</a>
</div>
</div>
<div class="p-6">
<div class="text-2xl text-white">
<a href="#" class="shado... |
php | */
if (!defined('KCALTO_FILE')) {
define('KCALTO_FILE', __FILE__);
}
|
php | </div>
<div class="form-group">
<label for="nama_belakang" class="col-sm-3 control-label">Nama Belakang</label>
<div class="col-sm-9"> |
php | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<?php $this->load->view('template/header')?>
</head>
<body>
<?php //$this->load->view('template/languages')?>
<?php $this->... |
php |
public function failures(): array
{
return array_filter($this->tests, fn (TestResult $result) => !$result->isSuccessful());
}
public function countAll(): int |
php | <div class="form-group">
<label>Nomor Telepon</label>
<input type="text" name="nomor_telp" id="nomor_telp" class="form-control" value="{{$anggota->nomor_telp}}">
<div class="invalid-feedback">
... |
php | */
public function setCode(int $code): self;
/**
* Returns an array represents the payload.
*
* @return array
*/
public function toArray(): array;
/** |
php | * @param int $timeout_seconds
* @param callable $exclusive_code
*
* @return mixed the result of the provided callable
* @throws MutexTimedOutException
*/
public function withLock(string $name, int $timeout_seconds, callable $exclusive_code);
}
|
php | }
//add item to cart
public function addProductToCart(Request $request, Product $product)
{
\Cart::add(array(
"id" => $product->id,
"name" => $product->title,
"price" => $product->price,
"quantity" => $request->qty,
"attributes" => arr... |
php | <th>{{trans('messages.course')}}</th>
<th>{{trans('messages.group')}}</th>
<th>{{trans('messages.upload')}}</th>
<th>{{trans('messages.helpMaterials')}}</th>
... |
php | <?php
namespace raphaelbsr\billing\models;
use yii\base\Model;
/** |
php | */
public function testClassAutoConversionAsPartOfDataset(): void
{
// GIVEN model object with randomly set member value
$model_1_val = $this->getRandomString('model_1');
$model_1 = new TestModel($model_1_val);
$model_2_val = $this->getRandomString('model_2');
$mode... |
php | */
public function store(Request $request)
{
$file = $request -> file('file');
$extension = $file->getClientOriginalExtension();
Storage::disk('local')->put($file->getFilename() . '.' . $extension, File::get($file));
$entry = new \App\File();
$entry -> mine = $file ... |
php | * @see StripeType
*/
function it_should_be_a_symfony_form_type()
{
/** @noinspection PhpUndefinedMethodInspection */
$this->shouldBeAnInstanceOf(AbstractType::class);
}
/**
* @uses StripeType::getName()
*/
function it_should_return_name()
{ |
php | @extends('berichten.layout')
@section('content')
<div class="row">
<div class="col-lg-12 margin-tb">
<div class="pull-left">
<h2> bericht</h2>
</div> |
php | class AdminLTEAsset extends AssetBundle
{
public $sourcePath = '@vendor/almasaeed2010/adminlte';
public $baseUrl = '@web';
public $css = [
'dist/css/AdminLTE.min.css',
'dist/css/skins/_all-skins.min.css',
];
public $js = [
'plugins/slimScroll/jquery.slimscroll.min.js',
... |
php |
return $list;
}
public static function fromResponse($response): Handelsnaam
{
return new Handelsnaam(
self::pluckString('naam', $response),
self::pluckInteger('volgorde', $response)
);
} |
php | {
/**
* The console command name.
*
* @var string
*/
protected $name = 'data-migrate:uninstall';
/**
* The console command description.
* |
php | *
* This handles the save action.
*
* @see \Drupal\Core\Entity\EntityForm::build()
*/
function entityFormSave(array $form, FormStateInterface $form_state) {
if ($this->getSourceLangcode($form_state)) {
$entity = $form_state->getFormObject()->getEntity();
// We need a redirect here, othe... |
php | * @return object
* @todo implement return type Object
*/
public function getEntity()
{
return new class { |
php | $activity = new Activity();
$activity->setObjectives($objectives);
}
public function getObjectives()
{
$activity = new Activity();
return $activity->getObjectives();
}
public function toArray()
{
return [ |
php | @endforeach
<input type="hidden" name="name" form="brand-form" id="brand-name" >
<input type="hidden" name="active" form="brand-form" value="1" >
</div>
</div>
<div class="modal-footer">
... |
php | public function Tragedy() {
$this->load->model('Book_Model');
$data['books']=$this->Book_Model->get_books_in_category(5);
$data['category']="Tragedy";
$this->load->view('books.php', $data);
}
public function Comedy() {
$this->load->model('Book_Model'); |
php | }
public function presentation()
{
return $this->belongsTo(Presentation::class);
}
public function detailSale()
{
return $this->hasMany(SaleDetails::class);
}
|
php | 'nama' => $query->nama,
'password' => $query->password,
'tempatTinggal' => $query->tempatTinggal,
'statusPribadi' => $query->statusPribadi,
'donasi' => $query->donasi,
'salurdonasi' => $query->salurdonasi, |
php | <meta name="viewport" content="width=device-width">
<title>Cloudinary Image Upload</title>
<meta name="description" content="Prego is a project management app built for learning purposes">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel=... |
php | /**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
if(!$this->checkPermission())
return redirect('home');
$role = Role::all();
|
php |
protected $fillable = [ 'user_id', 'ujian_id', 'kecerdasan', 'kepribadian', 'kecermatan', 'status_ujian', ];
public function getSiswa()
{
return $this->belongsTo(User::class, 'user_id','id');
}
public function jawabanBenarKecerdasan()
{
return $this->hasMany(UjianSiswaJaw... |
php | use App\Models\Post;
use Livewire\Component;
use Livewire\WithPagination;
class PostsIndex extends Component
{
use WithPagination;
//cambiar de tailwind a bootstrap
protected $paginationTheme= "bootstrap";
public $search;
//este metdodo sirve para cuando si estamos en otra opaginat, la url se re... |
php | <?php
echo 'login error';
|
php | * @param string $type
*
* @return bool|string
*/
// public function createMiniQrcode($appid, $page, $width, $scene = '', $type = 'share_coterie')
// {
// |
php | class ReverseProxyUserProvider implements UserProviderInterface
{
/**
* Username
*
* @access protected
* @var string
*/
protected $username = '';
/**
* Constructor
*
* @access public
* @param string $username |
php | $description .= ' given';
return $description;
}
/**
* @return string
*/
public function toString()
{
return 'has header "Content-Type" and it\'s value is "application/json"'; |
php | <a href="{{URL::to('/',false)}}">
<img src="{{URL::asset('img/logo_big.png')}}" width="50px" height="50px"><span style="font-size:2em; vertical-align: top">HOME</span>
</a> |
php | <section class="container mt-3">
<h2><strong>FAQs</strong></h2>
<div class="hr mb-4"></div>
<h5><strong>1. How do I know that my order has been successfully submitted?</strong></h5>
<p class="text-secondary">You will receive an email confirmation containing the Order Number and deta... |
php | $orderList = $orderModel->orderList();
var_dump($orderList);
die();
$this->assign('orderList',$orderList);
return $this->fetch();
}
public function orderInfo() {
return $this->fetch();
}
|
php | $m = ERROR_BORRAR_PARAFISCALES;
if($r == TRUE){
$m = EXITO_BORRAR_PARAFISCALES;
}
echo $html->generaAviso($m, "?mod=" . $modulo . "&niv=1&task=list");
break;
/**
|
php | class Scribd extends \Embera\Adapters\Service
{
/** inline {@inheritdoc} */
protected $apiUrl = 'http://www.scribd.com/services/oembed/?format=json';
/** inline {@inheritdoc} */
protected function validateUrl()
{
$this->url->stripQueryString();
return (preg_match('~scribd\.com/doc/... |
php | <a id="reset" onClick="return resetfields();" class="btn btn-default" href="javascript:void(0)">
<b class="fa fa-refresh"></b> Reset
</a>
</div>
</div>
</div>
</Div>
</div> |
php |
namespace Cocorico\CoreBundle\Repository;
use Cocorico\UserBundle\Entity\User;
use Doctrine\ORM\EntityRepository;
class AnnouncementToUserRepository extends EntityRepository
{
public function getAnnouncementsWithCache(User $user)
{
$qb = $this->createQueryBuilder('au')
->leftJoin('au.anno... |
php | use Illuminate\Http\Request;
use App\User;
use Auth;
use libphonenumber\geocoding\PhoneNumberOfflineGeocoder;
use libphonenumber\NumberParseException;
use libphonenumber\PhoneNumberToCarrierMapper;
use libphonenumber\PhoneNumberToTimeZonesMapper;
use libphonenumber\PhoneNumberUtil;
use libphonenumber\ShortNumberInfo; |
php | public $filter;
/**
* @var string
*/
private $text;
public function fromFilename($filename)
{
$file = new TextFileReader($filename);
$this->text = $file->getText();
return $this; |
php | namespace Database\Seeders;
use Illuminate\Database\Seeder;
class EggSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{ |
php |
/*
* term_id category name description pid path status
*/
//自动验证
protected $_validate = array(
//array(验证字段,验证规则,错误提示,验证条件,附加规则,验证时间)
array('name', 'require', '分类名称不能为空!', 1, 'regex', 3),
);
protected function _after_insert($data,$options){
parent::_after_insert($data,$options); |
php | defined('BASEPATH') OR exit('No direct script access allowed');
class User_permission_model extends MY_Model {
public $tbl_name = "tbl_user_permission";
}
/* End of file User_permission_model.php */ |
php | 'quantity',
'composition'
];
protected $hidden = [
'password',
'remember_token',
'api_token'
];
} |
php | {
GPBUtil::checkMessage($var, \Io\Colors::class);
$this->colors = $var;
return $this;
}
/**
* Generated from protobuf field <code>.io.Barcode barcode = 14;</code> |
php |
use App\Contracts\ForgotPasswordContract;
use App\Repositories\ForgotPasswordRepository;
class ForgotPasswordController extends Controller
{
public function __construct(ForgotPasswordContract $ForgotPassword)
{
$this->ForgotPassword = $ForgotPassword;
}
// ----------------------------------Fo... |
php | ]
});
});
</script>
@endpush
{{-- @section('css')
<link rel="stylesheet" href="/css/admin_custom.css">
@stop --}}
{{-- @section('js') |
php | @foreach (config('app.import_fields_people') as $field)
<th>{{ $field }}</th>
@endforeach
</tr>
</thead>
<tbody>
... |
php | <span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="">
<div class="form-group row"> |
php | $arr[] = array(
'username' => $row['username'],
'phoneNumber' => $row['tel'],
'email' => $row['email'],
'department' => $row['department'],
'isManager' => $row['is_manager']
|
php |
// Make a request message for Watson API in json
$data['input']['text'] = $_POST['message'];
if(isset($_POST['context']) && $_POST['context']){
$data['context'] = json_decode($_POST['context'], JSON_UNESCAPED_UNICODE); // Encode multibyte Unicode characters literally (default is to escape as \uXX... |
php | * User: ayisun
* Date: 2016/10/2
* Time: 10:02
*/
class decrypt_data |
php | <img src="<?= get_template_directory_uri() ?>/dist/assets/images/man.jpg" alt="man">
<a href="/single-article"><button type="button" class="button">Подробнее о статье</button></a>
</div>
<p>MotorGuide Xi3 – первый в России</p>
</div>
|
php | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class WorkingHour extends Model
{
protected $fillable = ['day', 'start_time', 'finish_time', 'id', 'peried', 'periodOut','user_id'];
}
|
php | <li class="team-member team-member-sm"><img class="rounded-circle"
src="assets/img/users/user-3.png" alt="user" data-toggle="tooltip" title=""
data-original-title="<NAME>"></li>
<li class="team-member... |
php | 'delete' => ['POST'],
],
],
];
}
/** |
php | 'type' => 'Boolean',
],
'data_atualizacao' => [
'type' => 'Timestamp',
],
]);
|
php | $table->string('address');
$table->string('documentsTitle')->nullable();
$table->string('useOfProperty');
$table->string('bedrooms');
$table->string('bathrooms');
$table->string('toilets');
$table->bigInteger('price');
$tabl... |
php | </div>
<div class="col-md-10">
<div class="margiv-top-10">
<input type="hidden" name="agent_id" value="<?php echo $youtube->agent_id; ?>"/>
<input type="hidden" name="id" value="<?php echo $youtube->id; ?>"/>
<button type="submit" class="btn green uppercase">Update video</button>
</div>
... |
php | <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
</body>
</html> |
php | $no = 1;
foreach ($classrooms as $classroom) : ?>
<tr>
<td><?php echo $no++ ?></td>
<td><?php echo $classroom['name_classroom'] ?></td>
<td><?php echo $classroom['name_prody'] ?></td>
<td><?php echo $classroom['name_lecturer'] ?></td>
<td>... |
php | ORM::configure(
array(
'connection_string' => "mysql:host=" . DB_HOST . ";dbname=" . DB_NAME,
'username' => DB_USER,
'password' => <PASSWORD>,
'logging' => false,
... |
php | /**
* Provides twig functions for sitemap.
*/
interface SitemapTwigExtensionInterface extends \Twig_ExtensionInterface
{
/**
* Returns prefixed resourcelocator with the url and locale.
*/
public function sitemapUrlFunction($url, $locale = null, $webspaceKey = null);
/** |
php |
public static function get_gravatar( $email, $s = 80, $d = 'mm', $r = 'g', $img = false, $atts = array() ) {
$url = 'https://www.gravatar.com/avatar/';
$url .= md5( strtolower( trim( $email ) ) );
$url .= "?s=$s&d=$d&r=$r";
if ( $img ) {
$url = '<img src="' . $url . '"'... |
php | $this->interventioncomplement = $interventioncomplement;
return $this;
}
/**
* Get interventioncomplement |
php | </tr>
<?php
endforeach;
else:
echo '<tr><td colspan="9">No result found.</td></tr>';
endif;?>
</tbody>
</table>
</div> |
php | <div class="form-group mb-0">
<label class="form-control-label" for="example3cols2Input">{{__('common.status')}}</label>
<select class="form-control custom-form-control" name="status" id="stat... |
php | require($kuuTemplate->getFile('template_top.php'));
?>
<h2><i class="fa fa-home"></i> <a href="<?= KUUZU::link(FILENAME_DEFAULT); ?>"><?= STORE_NAME; ?></a></h2>
|
php | include_once "function.php";
include_once "database.php";
if(isset($_GET['option'])){
if($_GET['option'] == "upload_image")
echo "ok \n";
if($_FILES['photo']['name'])
echo "e pus";
}
?> |
php | * Register the application services.
*/
public function register()
{
$this->mergeConfigFrom(__DIR__.'/../config/initializer.php', 'initializer');
$this->app->bind('app.installer', \App\Install::class);
$this->app->bind('app.updater', \App\Update::class);
$this->app->b... |
php | </head>
<body <?php if($page['direction']) echo 'dir="rtl"' ?> >
<?php if(x($page,'banner')) echo $page['banner']; ?>
<header><?php if(x($page,'header')) echo $page['header']; ?></header>
<?php if(x($page,'nav')) echo $page['nav']; ?></nav>
<main>
<div class="content">
<div class="columns">
<aside id="regi... |
php | }
if(!isset($map_width))
{
$map_width=680;
}
if(!isset($map_height))
{
$map_height=280;
}
|
php | $form->addInput("prestige_out", new \Quantyl\Form\Fields\Percentage(\I18n::PRESTIGE_OUT()))
->setValue($this->prefecture->prestige_out);
}
public function onProceed($data) {
$this->prefecture->prestige_in = $data["prestige_in"] ;
$this->prefecture->... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.