text
stringlengths 2
1.03M
|
|---|
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMenusTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('menus', function (Blueprint $table) {
$table->bigIncrements('id');
$table->integer('parent_id');
$table->string('title');
$table->integer('display_order')->nullable();
$table->string('link')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('menus');
}
}
|
<?php
namespace Modules\Admin\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;
use App\User;
class AdminUserController extends Controller
{
public function index(Request $request)
{
$users = User::whereRaw(1);
$users = $users->orderBy('id','ASC')->paginate(10);
$viewData = [
'users' => $users
];
return view('admin::user.index',$viewData);
}
public function action($action,$id)
{
$users = User::find($id);
if($action)
{
switch ($action) {
case 'delete':
$users->delete();
break;
}
}
return redirect()->back()->with('danger','Xóa dữ liệu thành công');
}
}
|
<?php
use yii\bootstrap4\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\AutoresSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Autores';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="autores-index">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Añadir Autor', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
'nombre',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
|
<?php
namespace PhpParser;
class ErrorTest extends \PHPUnit_Framework_TestCase
{
public function testConstruct() {
$attributes = array(
'startLine' => 10,
'endLine' => 11,
);
$error = new Error('Some error', $attributes);
$this->assertSame('Some error', $error->getRawMessage());
$this->assertSame($attributes, $error->getAttributes());
$this->assertSame(10, $error->getStartLine());
$this->assertSame(11, $error->getEndLine());
$this->assertSame(10, $error->getRawLine());
$this->assertSame('Some error on line 10', $error->getMessage());
return $error;
}
/**
* @depends testConstruct
*/
public function testSetMessageAndLine(Error $error) {
$error->setRawMessage('Some other error');
$this->assertSame('Some other error', $error->getRawMessage());
$error->setStartLine(15);
$this->assertSame(15, $error->getStartLine());
$this->assertSame('Some other error on line 15', $error->getMessage());
$error->setRawLine(17);
$this->assertSame(17, $error->getRawLine());
$this->assertSame('Some other error on line 17', $error->getMessage());
}
public function testUnknownLine() {
$error = new Error('Some error');
$this->assertSame(-1, $error->getStartLine());
$this->assertSame(-1, $error->getEndLine());
$this->assertSame(-1, $error->getRawLine());
$this->assertSame('Some error on unknown line', $error->getMessage());
}
/** @dataProvider provideTestColumnInfo */
public function testColumnInfo($code, $startPos, $endPos, $startColumn, $endColumn) {
$error = new Error('Some error', array(
'startFilePos' => $startPos,
'endFilePos' => $endPos,
));
$this->assertSame(true, $error->hasColumnInfo());
$this->assertSame($startColumn, $error->getStartColumn($code));
$this->assertSame($endColumn, $error->getEndColumn($code));
}
public function provideTestColumnInfo() {
return array(
// Error at "bar"
array("<?php foo bar baz", 10, 12, 11, 13),
array("<?php\nfoo bar baz", 10, 12, 5, 7),
array("<?php foo\nbar baz", 10, 12, 1, 3),
array("<?php foo bar\nbaz", 10, 12, 11, 13),
array("<?php\r\nfoo bar baz", 11, 13, 5, 7),
// Error at "baz"
array("<?php foo bar baz", 14, 16, 15, 17),
array("<?php foo bar\nbaz", 14, 16, 1, 3),
// Error at string literal
array("<?php foo 'bar\nbaz' xyz", 10, 18, 11, 4),
array("<?php\nfoo 'bar\nbaz' xyz", 10, 18, 5, 4),
array("<?php foo\n'\nbarbaz\n'\nxyz", 10, 19, 1, 1),
// Error over full string
array("<?php", 0, 4, 1, 5),
array("<?\nphp", 0, 5, 1, 3),
);
}
public function testNoColumnInfo() {
$error = new Error('Some error', 3);
$this->assertSame(false, $error->hasColumnInfo());
try {
$error->getStartColumn('');
$this->fail('Expected RuntimeException');
} catch (\RuntimeException $e) {
$this->assertSame('Error does not have column information', $e->getMessage());
}
try {
$error->getEndColumn('');
$this->fail('Expected RuntimeException');
} catch (\RuntimeException $e) {
$this->assertSame('Error does not have column information', $e->getMessage());
}
}
/**
* @expectedException \RuntimeException
* @expectedExceptionMessage Invalid position information
*/
public function testInvalidPosInfo() {
$error = new Error('Some error', array(
'startFilePos' => 10,
'endFilePos' => 11,
));
$error->getStartColumn('code');
}
}
|
<x-frontend-layout>
{!! $content !!}
</x-frontend-layout>
|
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\response;
use think\Response;
class Jump extends Response
{
protected $contentType = 'text/html';
/**
* 处理数据
* @access protected
* @param mixed $data 要处理的数据
* @return mixed
* @throws \Exception
*/
protected function output($data)
{
$data = $this->app['view']->fetch($this->options['jump_template'], $data);
return $data;
}
}
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\response;
use think\Response;
class Jump extends Response
{
protected $contentType = 'text/html';
/**
* 处理数据
* @access protected
* @param mixed $data 要处理的数据
* @return mixed
* @throws \Exception
*/
protected function output($data)
{
$data = $this->app['view']->fetch($this->options['jump_template'], $data);
return $data;
}
}
|
<?php
namespace Nylas\Messages;
use Nylas\Utilities\Abs as AbsTrait;
/**
* ----------------------------------------------------------------------------------
* Nylas Abs
* ----------------------------------------------------------------------------------
*
* @method Smart Smart()
* @method Search Search()
* @method Message Message()
* @method Sending Sending()
*
* @author lanlin
* @change 2020/04/26
*/
class Abs
{
// ------------------------------------------------------------------------------
use AbsTrait;
// ------------------------------------------------------------------------------
}
|
<?= $this->extend($config->viewLayout) ?>
<?= $this->section('main') ?>
<section class="section-header bg-soft">
<div class="container">
<div class="row">
<div class="col-sm-6 offset-sm-3">
<div class="card">
<h2 class="card-header"><?=lang('Auth.resetYourPassword')?></h2>
<div class="card-body">
<?= view('App\Auth\_message_block') ?>
<p><?=lang('Auth.enterCodeEmailPassword')?></p>
<form action="<?= route_to('reset-password') ?>" method="post">
<?= csrf_field() ?>
<div class="form-group">
<label for="token"><?=lang('Auth.token')?></label>
<input type="text" class="form-control <?php if(session('errors.token')) : ?>is-invalid<?php endif ?>"
name="token" placeholder="<?=lang('Auth.token')?>" value="<?= old('token', $token ?? '') ?>">
<div class="invalid-feedback">
<?= session('errors.token') ?>
</div>
</div>
<div class="form-group">
<label for="email"><?=lang('Auth.email')?></label>
<input type="email" class="form-control <?php if(session('errors.email')) : ?>is-invalid<?php endif ?>"
name="email" aria-describedby="emailHelp" placeholder="<?=lang('Auth.email')?>" value="<?= old('email') ?>">
<div class="invalid-feedback">
<?= session('errors.email') ?>
</div>
</div>
<br>
<div class="form-group">
<label for="password"><?=lang('Auth.newPassword')?></label>
<input type="password" class="form-control <?php if(session('errors.password')) : ?>is-invalid<?php endif ?>"
name="password">
<div class="invalid-feedback">
<?= session('errors.password') ?>
</div>
</div>
<div class="form-group">
<label for="pass_confirm"><?=lang('Auth.newPasswordRepeat')?></label>
<input type="password" class="form-control <?php if(session('errors.pass_confirm')) : ?>is-invalid<?php endif ?>"
name="pass_confirm">
<div class="invalid-feedback">
<?= session('errors.pass_confirm') ?>
</div>
</div>
<br>
<button type="submit" class="btn btn-warning btn-block"><?=lang('Auth.resetPassword')?></button>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<?= $this->endSection() ?>
|
@extends('layouts/app')
@section('content')
<nav class="flex items-center justify-between flex-wrap bg-gray-900 mx-5 mt-3">
<div class="flex items-center flex-shrink-0 text-teal-200 mr-6">
<a href="/home" id="nav-home"
class="bg-gray-900 border-t-2 border-green-500 hover:bg-teal-900 hover:text-white ml-2 p-2 font-semibold text-xl tracking-tight">
{{ config('app.name', 'Laravel') }}
</a>
</div>
<div class="w-full block flex-grow lg:flex lg:w-auto">
<div class="lg:flex-grow">
<a href="/goals" id="nav-goals"
class="lg:inline-block lg:mt-0 text-teal-500 border-t-2 border-green-500 hover:bg-gray-800 hover:text-teal-600 text-xl mx-1 p-2">
<i class="fas fa-map-marker-alt mr-1"></i>
<span class="mr-1 no-underline">Goals </span>
</a>
<a href="/tags" id="nav-tags"
class="block lg:inline-block lg:mt-0 text-teal-500 border-t-2 border-green-500 hover:bg-gray-800 hover:text-teal-600 text-xl mx-1 px-2">
<i class="fas fa-tags mr-1"></i>
<span class="mr-1 no-underline">Tags </span>
</a>
<a class="border-t-2 border-green-500 text-white">
<i class="fas fa-tags mr-1"></i>
<span class="mr-1 no-underline">Tags </span>
</a>
{{$request_uri = "$_SERVER[REQUEST_URI]"}};
</div>
<div>
<div class="nav-item dropdown">
<a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false" v-pre>
<i class="text-green-700 fas fa-user"></i>
<span class="text-white ml-2">{{ Auth::user()->name }}</span> <span class="caret"></span>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<a class="dropdown-item">
</a>
</div>
</div>
</div>
</div>
</nav>
<nav class="bg-white w-full flex">
<div class="bg-gray-500 flex-grow">
flex grow
</div>
<div class="bg-gray-200">
Test
</div>
</nav>
@endsection
|
<?php
namespace Database\Seeders;
use App\Rol;
use App\User;
use App\Permiso;
use Illuminate\Database\Seeder;
class rolTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$rol= Rol::create([
'nombre' => 'Administrador-Main',
'slug' => 'administrador-main',
'estado' => '1',
]);
$rol->permissions()->attach("1");
$rol->save();
$rol2=Rol::create([
'nombre' => 'Administrador',
'slug' => 'administrador',
'estado' => '1',
]);
$rol2->permissions()->attach("2");
$rol2->save();
$rol3=Rol::create([
'nombre' => 'Usuario',
'slug' => 'usuario',
'estado' => '1',
]);
$rol3->permissions()->attach("3");
$rol3->save();
$rol4=Rol::create([
'nombre' => 'Contador',
'slug' => 'contador',
'estado' => '1',
]);
$rol4->permissions()->attach("9");
$rol4->save();
}
}
|
<?php
namespace Database\Seeders;
use App\Models\Admin;
use App\Models\HoroContent;
use App\Models\Price;
use Database\Factories\AdminFactory;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
// \App\Models\User::factory(10)->create();
HoroContent::create([
'content'=>'Content One',
'section'=>'section-one'
]);
HoroContent::create([
'content'=>'Content Two',
'section'=>'section-two'
]);
Price::create([
'cancelPrice'=>'80,000',
'price'=>'40,000'
]);
Admin::factory(1)->create();
}
}
|
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateHelloTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('hello', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('str_1');
$table->string('str_2');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('hello');
}
}
|
<!--Catalog Grid-->
<section class="catalog-grid">
<div class="container">
<h2 class="dark-color">Catalog picks</h2>
<div class="row">
<!--Tile-->
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="tile">
<div class="badges">
<span class="sale">Sale</span>
</div>
<div class="price-label">715,00 $</div>
<a href="#">
<img src="img/catalog/1.png" alt="1"/>
<span class="tile-overlay"></span>
</a>
<div class="footer">
<a href="#">Smart Backpack</a>
<span>by David Banks</span>
<button class="btn btn-primary">Add to Cart</button>
</div>
</div>
</div>
<!--Tile-->
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="tile">
<div class="badges">
<span class="out">Out</span>
</div>
<div class="price-label">715,00 $</div>
<div class="price-label old-price">920,00 $</div>
<a href="#">
<img src="img/catalog/1.png" alt="1"/>
<span class="tile-overlay"></span>
</a>
<div class="footer">
<a href="#">Two-tone leather shopper</a>
<span>by Andy Shooter</span>
<button class="btn btn-primary">Add to Cart</button>
</div>
</div>
</div>
<!--Tile-->
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="tile">
<div class="badges">
<span class="best-seller">Best Seller</span>
</div>
<div class="price-label">715,00 $</div>
<a href="#">
<img src="img/catalog/1.png" alt="1"/>
<span class="tile-overlay"></span>
</a>
<div class="footer">
<a href="#">Gussetted shopper bag</a>
<span>by Choper Bar</span>
<button class="btn btn-primary">Add to Cart</button>
</div>
</div>
</div>
<!--Tile-->
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="tile">
<div class="price-label">715,00 $</div>
<a href="#">
<img src="img/catalog/1.png" alt="1"/>
<span class="tile-overlay"></span>
</a>
<div class="footer">
<a href="#">Mini shopper</a>
<span>by David Choper</span>
<button class="btn btn-primary">Add to Cart</button>
</div>
</div>
</div>
<!--Tile-->
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="tile">
<div class="price-label">715,00 $</div>
<a href="#">
<img src="img/catalog/1.png" alt="1"/>
<span class="tile-overlay"></span>
</a>
<div class="footer">
<a href="#">Shopper with buckle</a>
<span>by Ivan Tookle</span>
<button class="btn btn-primary">Add to Cart</button>
</div>
</div>
</div>
<!--Tile-->
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="tile">
<div class="price-label">715,00 $</div>
<div class="price-label old-price">920,00 $</div>
<a href="#">
<img src="img/catalog/1.png" alt="1"/>
<span class="tile-overlay"></span>
</a>
<div class="footer">
<a href="#">City bag</a>
<span>by Carol Flag</span>
<button class="btn btn-primary">Add to Cart</button>
</div>
</div>
</div>
<!--Tile-->
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="tile">
<div class="price-label">715,00 $</div>
<a href="#">
<img src="img/catalog/1.png" alt="1"/>
<span class="tile-overlay"></span>
</a>
<div class="footer">
<a href="#">Cheap Zip Bag</a>
<span>by Aron Tag</span>
<button class="btn btn-primary">Add to Cart</button>
</div>
</div>
</div>
<!--Tile-->
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="tile">
<div class="price-label">715,00 $</div>
<a href="#">
<img src="img/catalog/1.png" alt="1"/>
<span class="tile-overlay"></span>
</a>
<div class="footer">
<a href="#">Leather bag with side pocket</a>
<span>by Anna Canara</span>
<button class="btn btn-primary">Add to Cart</button>
</div>
</div>
</div>
</div>
</div>
</section><!--Catalog Grid Close-->
|
<?php declare(strict_types=1);
namespace One\Test\Unit;
use function One\createUriFromString;
use One\Http\FnStream;
use One\Http\Request;
use function One\stream_for;
use One\Uri;
class RequestTest extends \PHPUnit\Framework\TestCase
{
public function testRequestUriMayBeString(): void
{
$r = new Request('GET', 'http://localhost/');
$this->assertSame('http://localhost/', (string) $r->getUri());
}
public function testRequestUriMayBeUri(): void
{
$uri = createUriFromString('http://localhost/');
$r = new Request('GET', $uri);
$this->assertInstanceOf(Uri::class, $r->getUri());
}
public function testCanConstructWithBody(): void
{
$r = new Request('GET', '/', [], 'baz');
$this->assertInstanceOf('\Psr\Http\Message\StreamInterface', $r->getBody());
$this->assertSame('baz', (string) $r->getBody());
}
public function testNullBody(): void
{
$r = new Request('GET', '/', [], null);
$this->assertInstanceOf('\Psr\Http\Message\StreamInterface', $r->getBody());
$this->assertSame('', (string) $r->getBody());
}
public function testFalseyBody(): void
{
$r = new Request('GET', '/', [], '0');
$this->assertInstanceOf('\Psr\Http\Message\StreamInterface', $r->getBody());
$this->assertSame('0', (string) $r->getBody());
}
public function testConstructorDoesNotReadStreamBody(): void
{
$streamIsRead = false;
$body = FnStream::decorate(stream_for(''), [
'__toString' => function () use (&$streamIsRead) {
$streamIsRead = false;
return '';
},
]);
$r = new Request('GET', '/', [], $body);
$this->assertFalse($streamIsRead);
$this->assertInstanceOf('\Psr\Http\Message\StreamInterface', $r->getBody());
}
public function testCapitalizesMethod(): void
{
$r = new Request('get', '/');
$this->assertSame('GET', $r->getMethod());
}
public function testCapitalizesWithMethod(): void
{
$r = new Request('GET', '/');
$this->assertSame('PUT', $r->withMethod('put')->getMethod());
}
public function testWithUri(): void
{
$r1 = new Request('GET', '/');
$u1 = $r1->getUri();
$u2 = createUriFromString('http://www.example.com');
$r2 = $r1->withUri($u2);
$this->assertNotSame($r1, $r2);
$this->assertSame($u2, $r2->getUri());
$this->assertSame($u1, $r1->getUri());
}
public function testSameInstanceWhenSameUri(): void
{
$r1 = new Request('GET', 'http://foo.com');
$r2 = $r1->withUri($r1->getUri());
$this->assertSame($r1, $r2);
}
public function testWithRequestTarget(): void
{
$r1 = new Request('GET', '/');
$r2 = $r1->withRequestTarget('*');
$this->assertSame('*', $r2->getRequestTarget());
$this->assertSame('/', $r1->getRequestTarget());
}
/**
* @expectedException \InvalidArgumentException
*/
public function testRequestTargetDoesNotAllowSpaces(): void
{
$r1 = new Request('GET', '/');
$r1->withRequestTarget('/foo bar');
}
public function testRequestTargetDefaultsToSlash(): void
{
$r1 = new Request('GET', '');
$this->assertSame('/', $r1->getRequestTarget());
// $r2 = new Request('GET', '*');
// $this->assertEquals('%2A', $r2->getRequestTarget());
// $r3 = new Request('GET', 'http://foo.com/bar baz/');
// $this->assertEquals('/bar%20baz/', $r3->getRequestTarget());
}
public function testBuildsRequestTarget(): void
{
$r1 = new Request('GET', 'http://foo.com/baz?bar=bam');
$this->assertSame('/baz?bar=bam', $r1->getRequestTarget());
}
public function testBuildsRequestTargetWithFalseyQuery(): void
{
$r1 = new Request('GET', 'http://foo.com/baz?0');
$this->assertSame('/baz?0', $r1->getRequestTarget());
}
public function testHostIsAddedFirst(): void
{
$r = new Request('GET', 'http://foo.com/baz?bar=bam', ['Foo' => 'Bar']);
$this->assertSame([
'Host' => ['foo.com'],
'Foo' => ['Bar'],
], $r->getHeaders());
}
public function testCanGetHeaderAsCsv(): void
{
$r = new Request('GET', 'http://foo.com/baz?bar=bam', [
'Foo' => ['a', 'b', 'c'],
]);
$this->assertSame('a, b, c', $r->getHeaderLine('Foo'));
$this->assertSame('', $r->getHeaderLine('Bar'));
}
public function testHostIsNotOverwrittenWhenPreservingHost(): void
{
$r = new Request('GET', 'http://foo.com/baz?bar=bam', ['Host' => 'a.com']);
$this->assertSame(['Host' => ['a.com']], $r->getHeaders());
$r2 = $r->withUri(createUriFromString('http://www.foo.com/bar'), true);
$this->assertSame('a.com', $r2->getHeaderLine('Host'));
}
public function testOverridesHostWithUri(): void
{
$r = new Request('GET', 'http://foo.com/baz?bar=bam');
$this->assertSame(['Host' => ['foo.com']], $r->getHeaders());
$r2 = $r->withUri(createUriFromString('http://www.baz.com/bar'));
$this->assertSame('www.baz.com', $r2->getHeaderLine('Host'));
}
public function testAggregatesHeaders(): void
{
$r = new Request('GET', '', [
'ZOO' => 'zoobar',
'zoo' => ['foobar', 'zoobar'],
]);
$this->assertSame(['ZOO' => ['zoobar', 'foobar', 'zoobar']], $r->getHeaders());
$this->assertSame('zoobar, foobar, zoobar', $r->getHeaderLine('zoo'));
}
public function testAddsPortToHeader(): void
{
$r = new Request('GET', 'http://foo.com:8124/bar');
$this->assertSame('foo.com:8124', $r->getHeaderLine('host'));
}
public function testAddsPortToHeaderAndReplacePreviousPort(): void
{
$r = new Request('GET', 'http://foo.com:8124/bar');
$r = $r->withUri(createUriFromString('http://foo.com:8125/bar'));
$this->assertSame('foo.com:8125', $r->getHeaderLine('host'));
}
}
|
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateJabatanTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('jabatan', function (Blueprint $table) {
$table->id();
$table->string('jabatan_karyawan');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('jabatan');
}
}
|
<?php
namespace Tests;
use Laravel\Dusk\TestCase as BaseTestCase;
use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use App\Models\User;
abstract class DuskTestCase extends BaseTestCase
{
use CreatesApplication;
protected $admin, $user;
/**
* Override function setUp() for make user login
*
* @return void
*/
public function setUp()
{
parent::setUp();
$this->admin = factory('App\Models\User')->create([
'full_name' => 'nam hoang tran',
'email' => 'taylor@laravel.com',
'password' => bcrypt('12345'),
'role' => User::ROLE_ADMIN,
'remember_token' => str_random(10),
]);
}
/**
* Prepare for Dusk test execution.
*
* @beforeClass
* @return void
*/
public static function prepare()
{
static::startChromeDriver();
}
/**
* Create the RemoteWebDriver instance.
*
* @return \Facebook\WebDriver\Remote\RemoteWebDriver
*/
protected function driver()
{
$options = (new ChromeOptions)->addArguments([
'--disable-gpu',
'--headless'
]);
return RemoteWebDriver::create(
'http://localhost:9515', DesiredCapabilities::chrome()->setCapability(
ChromeOptions::CAPABILITY, $options
)
);
}
}
|
<?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/*
* Authors:
* - Ash
* - François B
* - Marco Perrando
* - Massimiliano Caniparoli
* - JD Isaacks
* - Andrea Martini
* - Francesco Marasco
* - Tizianoz93
* - Davide Casiraghi (davide-casiraghi)
*/
return [
'year' => ':count anno|:count anni',
'a_year' => 'un anno|:count anni',
'y' => ':count anno|:count anni',
'month' => ':count mese|:count mesi',
'a_month' => 'un mese|:count mesi',
'm' => ':count mese|:count mesi',
'week' => ':count settimana|:count settimane',
'a_week' => 'una settimana|:count settimane',
'w' => ':count set.',
'day' => ':count giorno|:count giorni',
'a_day' => 'un giorno|:count giorni',
'd' => ':count g|:count gg',
'hour' => ':count ora|:count ore',
'a_hour' => 'un\'ora|:count ore',
'h' => ':count h',
'minute' => ':count minuto|:count minuti',
'a_minute' => 'un minuto|:count minuti',
'min' => ':count min.',
'second' => ':count secondo|:count secondi',
'a_second' => 'alcuni secondi|:count secondi',
's' => ':count sec.',
'ago' => ':time fa',
'from_now' => function ($time) {
return (preg_match('/^[0-9].+$/', $time) ? 'tra' : 'in')." $time";
},
'after' => ':time dopo',
'before' => ':time prima',
'diff_now' => 'proprio ora',
'diff_yesterday' => 'ieri',
'diff_tomorrow' => 'domani',
'diff_before_yesterday' => 'l\'altro ieri',
'diff_after_tomorrow' => 'dopodomani',
'period_interval' => 'ogni :interval',
'period_start_date' => 'dal :date',
'period_end_date' => 'al :date',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'DD/MM/YYYY',
'LL' => 'D MMMM YYYY',
'LLL' => 'D MMMM YYYY HH:mm',
'LLLL' => 'dddd D MMMM YYYY HH:mm',
],
'calendar' => [
'sameDay' => '[Oggi alle] LT',
'nextDay' => '[Domani alle] LT',
'nextWeek' => 'dddd [alle] LT',
'lastDay' => '[Ieri alle] LT',
'lastWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
return '[la scorsa] dddd [alle] LT';
default:
return '[lo scorso] dddd [alle] LT';
}
},
'sameElse' => 'L',
],
'ordinal' => ':numberº',
'months' => ['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre'],
'months_short' => ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'],
'weekdays' => ['domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato'],
'weekdays_short' => ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'],
'weekdays_min' => ['do', 'lu', 'ma', 'me', 'gi', 've', 'sa'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' e '],
];
|
<?php
declare(strict_types=1);
namespace Symplify\CodingStandard\Tests\Rules\NoDefaultParameterValueRule;
use Iterator;
use PHPStan\Rules\Rule;
use PHPStan\Testing\RuleTestCase;
use Symplify\CodingStandard\Rules\NoDefaultParameterValueRule;
final class NoDefaultParameterValueRuleTest extends RuleTestCase
{
/**
* @dataProvider provideData()
*/
public function testRule(string $filePath, array $expectedErrorMessagesWithLines): void
{
$this->analyse([$filePath], $expectedErrorMessagesWithLines);
}
public function provideData(): Iterator
{
$errorMessage = sprintf(NoDefaultParameterValueRule::ERROR_MESSAGE, 'value');
yield [__DIR__ . '/Fixture/MethodWithDefaultParamValue.php', [[$errorMessage, 9]]];
}
protected function getRule(): Rule
{
return new NoDefaultParameterValueRule();
}
}
|
<?php
namespace ABASTV2\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\DB;
class CecCentroCostoModel extends Model
{
//
use SoftDeletes; //para evitar la eliminación de registros y solo deshabilitarlos
protected $table = 'cec_centroscostos';
protected $primaryKey = 'id_centrocosto';
protected $fillable = [
"cod_centrocosto",
"descripcion_centrocosto",
"fechainicio_centrocosto",
"fechafinal_centrocosto",
"fkid_centrocosto",
"id_session",
"created_at",
"updated_at",
"deleted_at"
];
protected $dates = ['deleted_at'];
/**
*
* Obtención de los menus para el respectivo usuario
* @param int $id_usuario
* @return object
*/
public function getCentrosCostos() {
$resultado = DB::select(
'SELECT id_centrocosto, cod_centrocosto, descripcion_centrocosto, DATE_FORMAT(fechainicio_centrocosto, "%d/%m/%Y") as fechainicio_centrocosto,
DATE_FORMAT(fechafinal_centrocosto, "%d/%m/%Y") as fechafinal_centrocosto, fkid_centrocosto, id_session, created_at, updated_at, deleted_at
FROM cec_centroscostos;');
return $resultado;
}
/**
* Crea un centro de costo
* @param string $centrocosto
* @param int $sesion
* @param timestamp $fecha
* @return bool
*/
public function insertCentroCosto($centrocosto, $descripcion, $fechainicio, $fechafinal, $codcentro, $sesion, $fecha)
{
try {
DB::insert('INSERT INTO cec_centroscostos(cod_centrocosto,
descripcion_centrocosto, fechainicio_centrocosto, fechafinal_centrocosto, fkid_centrocosto, id_session,
created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?) ' , array($centrocosto, $descripcion, $fechainicio, $fechafinal, $codcentro, $sesion, $fecha, $fecha));
return true;
}catch (Exception $e) {
return false;
}
}
/**
* Modifica un centro de costo
* @param int $id
* @param string $centro de costo
* @param int $sesion
* @param timestamp $fecha
* @return bool
*/
public function updateCentroCosto($centrocosto, $descripcion, $fechainicio, $fechafinal, $codcentro, $sesion, $fecha, $id) {
try {
DB::update('UPDATE cec_centroscostos SET id_session=?, updated_at=?, cod_centrocosto=?, descripcion_centrocosto=?, fechainicio_centrocosto=?, fechafinal_centrocosto=?, fkid_centrocosto=? WHERE id_centrocosto=?' , array($sesion, $fecha, $centrocosto, $descripcion, $fechainicio, $fechafinal, $codcentro, $id));
return true;
}catch (Exception $e) {
return false;
}
}
/**
* Habilita o bloquea un centrocosto específico en base de datos
* @param int $id
* @param int $sesion
* @param timestamp $fecha
* @return bool
*/
public function deleteCentroCosto($id, $sesion, $fecha) {
$condicion = DB::select('SELECT deleted_at FROM cec_centroscostos WHERE id_centrocosto=?' , array($id));
$validacion = $condicion[0];
if($validacion->deleted_at){
try {
DB::update('UPDATE cec_centroscostos SET id_session=?, updated_at=?, deleted_at=null WHERE id_centrocosto=?' , array($sesion, $fecha, $id));
return true;
} catch (Exception $e) {
return false;
}
}
else{
try {
DB::update('UPDATE cec_centroscostos SET id_session=?, updated_at=?, deleted_at=? WHERE id_centrocosto=?' , array($sesion, $fecha, $fecha, $id));
return true;
} catch (Exception $e) {
return false;
}
}
}
}
|
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| Aauth Config
| -------------------------------------------------------------------
| A library Basic Authorization for CodeIgniter 2.x and 3.x
|
| -------------------------------------------------------------------
| EXPLANATION
| -------------------------------------------------------------------
|
| ['no_permission'] If user don't have permisssion to see the page he will be redirected the page spesificed.
|
| ['admin_group'] Name of admin group
| ['default_group'] Name of default group, the new user is added in it
| ['public_group'] Name of Public group , people who not logged in
|
| ['db_profile'] The configuration database profile (definied in config/database.php)
|
| ['users'] The table which contains users
| ['groups'] The table which contains groups
| ['user_to_group'] The table which contains join of users and groups
| ['perms'] The table which contains permissions
| ['perm_to_group'] The table which contains permissions for groups
| ['perm_to_user'] The table which contains permissions for users
| ['pms'] The table which contains private messages
| ['user_variables'] The table which contains users variables
| ['login_attempts'] The table which contains login attempts
|
| ['remember'] Remember time (in relative format) elapsed after connecting and automatic LogOut for usage with Cookies
| Relative Format (e.g. '+ 1 week', '+ 1 month', '+ first day of next month')
| for details see http://php.net/manual/de/datetime.formats.relative.php
|
| ['max'] Maximum char long for Password
| ['min'] Minimum char long for Password
|
| ['additional_valid_chars'] Additional valid chars for username. Non alphanumeric characters that are allowed by default
|
| ['ddos_protection'] Enables the DDoS Protection, user will be banned temporary when he exceed the login 'try'
|
| ['recaptcha_active'] Enables reCAPTCHA (for details see www.google.com/recaptcha/admin)
| ['recaptcha_login_attempts'] Login Attempts to display reCAPTCHA
| ['recaptcha_siteKey'] The reCAPTCHA siteKey
| ['recaptcha_secret'] The reCAPTCHA secretKey
|
| ['totp_active'] Enables the Time-based One-time Password Algorithm
| ['totp_only_on_ip_change'] TOTP only on IP Change
| ['totp_reset_over_reset_password'] TOTP reset over reset Password
| ['totp_two_step_login'] Enables TOTP two step login
| ['totp_two_step_login_redirect'] Redirect path to TOTP Verification page used by control() & is_allowed()
|
| ['max_login_attempt'] Login attempts time interval (default 10 times in one hour)
| ['max_login_attempt_time_period'] Period of time for max login attempts (default "5 minutes")
| ['remove_successful_attempts'] Enables removing login attempt after successful login
|
| ['login_with_name'] Login Identificator, if TRUE username needed to login else email address.
|
| ['email'] Sender email address, used for remind_password, send_verification and reset_password
| ['name'] Sender name, used for remind_password, send_verification and reset_password
| ['email_config'] Array of Config for CI's Email Library
|
| ['verification'] User Verification, if TRUE sends a verification email on account creation.
| ['verification_link'] Link for verification without site_url or base_url
| ['reset_password_link'] Link for reset_password without site_url or base_url
|
| ['hash'] Name of selected hashing algorithm (e.g. "md5", "sha256", "haval160,4", etc..)
| Please, run hash_algos() for know your all supported algorithms
| ['use_password_hash'] Enables to use PHP's own password_hash() function with BCrypt, needs PHP5.5 or higher
| ['password_hash_algo'] password_hash algorithm (PASSWORD_DEFAULT, PASSWORD_BCRYPT)
| for details see http://php.net/manual/de/password.constants.php
| ['password_hash_options'] password_hash options array
| for details see http://php.net/manual/en/function.password-hash.php
|
| ['pm_encryption'] Enables PM Encryption, needs configured CI Encryption Class.
| for details see: http://www.codeigniter.com/userguide2/libraries/encryption.html
| ['pm_cleanup_max_age'] PM Cleanup max age (in relative format), PM's are older than max age get deleted with 'cleanup_pms()'
| Relative Format (e.g. '2 week', '1 month')
| for details see http://php.net/manual/de/datetime.formats.relative.php
|
*/
$config_aauth = array();
$config_aauth["default"] = array(
'no_permission' => 'auth/login',
'admin_group' => 'admin',
'default_group' => 'anggota angkatan',
'public_group' => 'public',
'db_profile' => 'default',
'users' => 'users',
'groups' => 'groups',
'group_to_group' => 'group_to_group',
'user_to_group' => 'user_to_group',
'perms' => 'perms',
'perm_to_group' => 'perm_to_group',
'perm_to_user' => 'perm_to_user',
'pms' => 'pms',
'user_variables' => 'user_variables',
'login_attempts' => 'login_attempts',
'remember' => ' +3 days',
'max' => 13,
'min' => 5,
'additional_valid_chars' => array(),
'ddos_protection' => true,
'recaptcha_active' => false,
'recaptcha_login_attempts' => 4,
'recaptcha_siteKey' => '',
'recaptcha_secret' => '',
'totp_active' => false,
'totp_only_on_ip_change' => false,
'totp_reset_over_reset_password' => false,
'totp_two_step_login_active' => false,
'totp_two_step_login_redirect' => '/account/twofactor_verification/',
'max_login_attempt' => 10,
'max_login_attempt_time_period' => "5 minutes",
'remove_successful_attempts' => true,
'login_with_name' => false,
'email' => 'admin@admin.com',
'name' => 'Emre Akay',
'email_config' => false,
'verification' => false,
'verification_link' => '/account/verification/',
'reset_password_link' => '/account/reset_password/',
'hash' => 'sha256',
'use_password_hash' => true,
'password_hash_algo' => PASSWORD_DEFAULT,
'password_hash_options' => array(),
'pm_encryption' => false,
'pm_cleanup_max_age' => "3 months",
);
$config['aauth'] = $config_aauth['default'];
/* End of file aauth.php */
/* Location: ./application/config/aauth.php */
|
24 75 1 6 6450
0 1 2607.00
0 2 549.000
0 3 2009.00
0 4 1368.00
0 5 2233.00
0 6 1131.00
0 7 581.000
0 8 515.000
0 9 582.000
0 10 722.000
0 11 263.000
0 12 2790.00
0 13 2301.00
0 14 2490.00
0 15 2439.00
0 16 2949.00
0 17 2589.00
0 18 3008.00
0 19 783.000
0 20 258.000
0 21 1980.00
0 22 1988.00
0 23 2459.00
0 24 527.000
1 2 3154.00
1 3 1013.00
1 4 3183.00
1 5 932.000
1 6 1480.00
1 7 3056.00
1 8 2097.00
1 9 2886.00
1 10 3328.00
1 11 2435.00
1 12 184.000
1 13 412.000
1 14 882.000
1 15 236.000
1 16 511.000
1 17 523.000
1 18 882.000
1 19 2274.00
1 20 2578.00
1 21 1244.00
1 22 1287.00
1 23 608.000
1 24 2091.00
2 3 2515.00
2 4 1413.00
2 5 2739.00
2 6 1679.00
2 7 369.000
2 8 1064.00
2 9 665.000
2 10 190.000
2 11 739.000
2 12 3337.00
2 13 2841.00
2 14 2996.00
2 15 2987.00
2 16 3497.00
2 17 3135.00
2 18 3548.00
2 19 1203.00
2 20 661.000
2 21 2497.00
2 22 2500.00
2 23 3003.00
2 24 1074.00
3 4 2976.00
3 5 224.000
3 6 1079.00
3 7 2325.00
3 8 1572.00
3 9 2449.00
3 10 2703.00
3 11 1778.00
3 12 1161.00
3 13 605.000
3 14 481.000
3 15 1029.00
3 16 1521.00
3 17 1390.00
3 18 1843.00
3 19 1991.00
3 20 2076.00
3 21 1622.00
3 22 1667.00
3 23 1375.00
3 24 1581.00
4 5 3180.00
4 6 1899.00
4 7 1742.00
4 8 1500.00
4 9 805.000
4 10 1386.00
4 11 1599.00
4 12 3344.00
4 13 3024.00
4 14 3411.00
4 15 2959.00
4 16 3335.00
4 17 2934.00
4 18 3209.00
4 19 986.000
4 20 1131.00
4 21 2084.00
4 22 2060.00
4 23 2781.00
4 24 1479.00
5 6 1282.00
5 7 2545.00
5 8 1793.00
5 9 2668.00
5 10 2927.00
5 11 2002.00
5 12 1055.00
5 13 554.000
5 14 258.000
5 15 998.000
5 16 1442.00
5 17 1369.00
5 18 1799.00
5 19 2196.00
5 20 2298.00
5 21 1721.00
5 22 1767.00
5 23 1380.00
5 24 1801.00
6 7 1620.00
6 8 618.000
6 9 1437.00
6 10 1850.00
6 11 984.000
6 12 1663.00
6 13 1203.00
6 14 1516.00
6 15 1308.00
6 16 1824.00
6 17 1479.00
6 18 1921.00
6 19 914.000
6 20 1104.00
6 21 1053.00
6 22 1081.00
6 23 1360.00
6 24 611.000
7 8 1043.00
7 9 953.000
7 10 517.000
7 11 636.000
7 12 3240.00
7 13 2714.00
7 14 2802.00
7 15 2911.00
7 16 3439.00
7 17 3098.00
7 18 3535.00
7 19 1355.00
7 20 801.000
7 21 2544.00
7 22 2554.00
7 23 2977.00
7 24 1062.00
8 9 877.000
8 10 1233.00
8 11 420.000
8 12 2280.00
8 13 1805.00
8 14 2044.00
8 15 1925.00
8 16 2434.00
8 17 2076.00
8 18 2500.00
8 19 596.000
8 20 507.000
8 21 1507.00
8 22 1520.00
8 23 1948.00
8 24 30.0000
9 10 709.000
9 11 834.000
9 12 3064.00
9 13 2638.00
9 14 2918.00
9 15 2689.00
9 16 3153.00
9 17 2766.00
9 18 3133.00
9 19 669.000
9 20 389.000
9 21 2023.00
9 22 2017.00
9 23 2622.00
9 24 868.000
10 11 926.000
10 12 3511.00
10 13 3021.00
10 14 3184.00
10 15 3158.00
10 16 3662.00
10 17 3295.00
10 18 3700.00
10 19 1312.00
10 20 796.000
10 21 2633.00
10 22 2634.00
10 23 3161.00
10 24 1241.00
11 12 2619.00
11 13 2109.00
11 14 2259.00
11 15 2282.00
11 16 2806.00
11 17 2462.00
11 18 2899.00
11 19 884.000
11 20 468.000
11 21 1927.00
11 22 1940.00
11 23 2341.00
11 24 444.000
12 13 573.000
12 14 965.000
12 15 386.000
12 16 410.000
12 17 564.000
12 18 828.000
12 19 2446.00
12 20 2760.00
12 21 1367.00
12 22 1407.00
12 23 683.000
12 24 2274.00
13 14 585.000
13 15 444.000
13 16 917.000
13 17 816.000
13 18 1250.00
13 19 2070.00
13 20 2304.00
13 21 1283.00
13 22 1330.00
13 23 835.000
13 24 1804.00
14 15 1006.00
14 16 1372.00
14 17 1373.00
14 18 1764.00
14 19 2429.00
14 20 2550.00
14 21 1847.00
14 22 1894.00
14 23 1412.00
14 24 2051.00
15 16 544.000
15 17 372.000
15 18 815.000
15 19 2064.00
15 20 2394.00
15 21 1009.00
15 22 1052.00
15 23 411.000
15 24 1917.00
16 17 401.000
16 18 434.000
16 19 2504.00
16 20 2884.00
16 21 1268.00
16 22 1300.00
16 23 554.000
16 24 2423.00
17 18 475.000
17 19 2112.00
17 20 2510.00
17 21 871.000
17 22 905.000
17 23 153.000
17 24 2063.00
18 19 2466.00
18 20 2907.00
18 21 1133.00
18 22 1152.00
18 23 564.000
18 24 2484.00
19 20 558.000
19 21 1354.00
19 22 1348.00
19 23 1965.00
19 24 568.000
20 21 1839.00
20 22 1841.00
20 23 2372.00
20 24 503.000
21 22 47.0000
21 23 719.000
21 24 1485.00
22 23 754.000
22 24 1497.00
23 24 1934.00
1 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 1 1 1 0 1 0 0 1 0 1 1 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0
2 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 0 1 0 1 0 1 1 1 0
3 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0
4 1 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 0 1 1 1 1 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1
5 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0
6 0 1 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 1 0 0 1 0 0 0 1 0 1 0 1 1 0 1 1 0 1 1 0 0 0 1 1 0 0 0 0 1 1 0 1 0 0 0 0 0 1 0 0 0 1 0 0 1 1 1 0 0 0 0 1 0 0 0 0 0 0
7 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 1 0 1 0 1 1 1 0
8 0 1 0 1 1 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 1 0 0 1 1 1 1 1 0 0 0 1 0 0 1 0 0 1 1 0 1 1 0 0 0 0 1 0 0 0 1 0 1 0 0 0 1 0 0 0 1 1 0 0 1 0 0
9 1 0 0 1 1 0 1 0 0 0 0 0 1 1 1 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 0 1 1 1 1 1 0 1 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 1 0 0 1 0 1 0 0 1 0 1
10 0 0 1 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 1 0 1 0 1 1 1 0
11 0 1 1 1 0 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 1 1 0 1 1 1 0 1 1 1 0
12 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 1 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0
13 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 1 0 1 0 0 1 0 1 1 0 0 0 1 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 0 0 1 1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0
14 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0
15 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 1 1 1 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0
16 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0
17 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 1 1 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0
18 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0
19 1 1 0 0 1 0 0 0 1 0 0 1 1 0 1 0 0 0 0 0 1 1 0 1 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 1 0 0 1 1 0 1 1 0 0 1 0 0 0 1 1 1 0 0 1 0 1 0 0 0 1 0 0 0 0 1 0 0 1 0 1
20 1 1 1 1 1 0 1 0 1 0 0 1 1 1 1 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 1 0 1 1 1 0 1 1 0 0 0 1 0 0 0 0 1 1 0 0 0 1 1 0 1 0 1 0 1 1 1 0
21 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
22 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 1 0 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
23 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0
24 0 1 0 1 1 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 0 1 0 0 1 0 0 1 1 0 1 1 0 0 0 0 1 0 0 0 1 0 1 0 0 0 1 0 0 0 1 1 0 0 1 0 0
|
<div class="container">
<h4>Tambah Lowongan</h4>
<br>
<div class="card">
<div id="test1" class="col s12" style="padding: 24px">
<form class="row" id="form1" method="POST" action="<?= site_url('perusahaan-s/Lowongan/submitCreate') ?>">
<div class="input-field col s12 m6">
<select name="kategori" id="kategori">
<?php foreach ($kategori as $i => $k) : ?>
<option value="<?= $k->kategori ?>"><?= $k->kategori ?></option>
<?php endforeach ?>
</select>
<label for="kategori">Kategori</label>
</div>
<div class="input-field col s12 m6">
<select name="status_pekerjaan" id="status_pekerjaan">
<option value="WAKTU TERTENTU" selected>Waktu Tertentu</option>
<option value="WAKTU TIDAK TERTENTU">Waktu Tidak Tertentu</option>
<option value="LAINNYA">Lainnya</option>
</select>
<label for="bidang_perusahaan">Status Pekerjaan</label>
</div>
<div class="input-field col s12">
<textarea id="low_deskripsi" name="low_deskripsi" class="materialize-textarea" required style="height: 200px;"></textarea>
<label for="low_deskripsi">Deskripsi</label>
</div>
<div class="input-field col s12 m6">
<select name="range_gaji" id="range_gaji">
<option value="0 - 1000000" selected>Rp. 0 - Rp. 1.000.000</option>
<option value="1000000 - 2500000">Rp. 1.000.000 - Rp. 2.500.000</option>
<option value="2500000 - 5000000">Rp. 2.500.000 - Rp. 5.000.000</option>
<option value="5000000 - 10000000">Rp. 5.000.000 - Rp. 10.000.000</option>
</select>
<label for="range_gaji">Range Gaji</label>
</div>
<div class="input-field col s12 m6">
<select name="jenis_gaji" id="jenis_gaji">
<option value="HARIAN">Harian</option>
<option value="MINGGUAN">Mingguan</option>
<option value="BULANAN" selected>Bulanan</option>
</select>
<label for="jenis_gaji">Jenis Gaji</label>
</div>
<div class="input-field col s12 m6">
<select name="pendidikan_minimal" id="pendidikan_minimal">
<option value="SD" selected>SD</option>
<option value="SMP">SMP</option>
<option value="SMA/SMK">SMA/SMK</option>
<option value="Diploma I">Diploma I</option>
<option value="Diploma II">Diploma II</option>
<option value="Diploma III">Diploma III</option>
<option value="Diploma IV">Diploma IV/S1</option>
</select>
<label for="pendidikan_minimal">Pendidikan Minimal</label>
</div>
<div class="input-field col s12 m6">
<input id="low_jurusan" type="text" name="low_jurusan" required disabled>
<label for="low_jurusan">Jurusan</label>
</div>
<div class="input-field col s12 m6 l6">
<select name="low_status_gender" id="low_status_gender">
<option value="tanpa_gender" selected>Tanpa Gender</option>
<option value="dengan_gender">Dengan Gender</option>
</select>
<label for="low_status_gender">Status Gender</label>
</div>
<div class="input-field col s12 m6 l2">
<input id="low_jumlah_tenaga" type="number" name="low_jumlah_tenaga" required>
<label for="low_jumlah_tenaga">Jumlah Tenaga</label>
</div>
<div class="input-field col s12 m6 l2">
<input id="low_jumlah_tenaga_laki" type="number" name="low_jumlah_tenaga_laki" required>
<label for="low_jumlah_tenaga_laki">Tenaga Pria</label>
</div>
<div class="input-field col s12 m6 l2">
<input id="low_jumlah_tenaga_perempuan" type="number" name="low_jumlah_tenaga_perempuan" required>
<label for="low_jumlah_tenaga_perempuan">Tenaga Wanita</label>
</div>
<div class="input-field col s12 m6">
<select name="low_lokasi" id="low_lokasi">
<option value="LUAR NEGERI">Luar Negeri</option>
<option value="DALAM NEGERI(WILAYAH LAIN)">Dalam Negeri (Wilayah Lain)</option>
<option value="DALAM NEGERI(TEMPAT TINGGAL)" selected>Dalam Negeri (Tempat Tinggal)</option>
</select>
<label for="low_lokasi">Lokasi</label>
</div>
<div class="input-field col s12 m6">
<input id="low_tanggal_berakhir" type="date" name="low_tanggal_berakhir" required>
<label for="low_tanggal_berakhir">Tanggal Berakhir</label>
</div>
<div class="col s12 form-group">
<div>Keterampilan</div>
<div class="row">
<?php foreach ($pendidikanNonFormal as $i => $item) : ?>
<div class="col s12 m3">
<label>
<input name="keterampilan[<?= $i ?>]" class="filled-in" type="checkbox" value="<?= $i ?>" />
<span><?= $item->nama_pendidikan ?></span>
</label>
</div>
<?php endforeach ?>
</div>
</div>
<div class="col s12 right-align">
<input type="submit" value="Tambah" class="btn blue darken-3">
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
$('#low_jumlah_tenaga_laki').prop('disabled', true)
$('#low_jumlah_tenaga_perempuan').prop('disabled', true)
$('#low_status_gender').change(function(event) {
if (event.target.value == 'dengan_gender') {
$('#low_jumlah_tenaga').prop('disabled', true)
$('#low_jumlah_tenaga_laki').prop('disabled', false)
$('#low_jumlah_tenaga_perempuan').prop('disabled', false)
} else {
$('#low_jumlah_tenaga').prop('disabled', false)
$('#low_jumlah_tenaga_laki').prop('disabled', true)
$('#low_jumlah_tenaga_perempuan').prop('disabled', true)
}
});
$('#pendidikan_minimal').change(function(event) {
if (
event.target.value == 'Diploma I' ||
event.target.value == 'Diploma II' ||
event.target.value == 'Diploma III' ||
event.target.value == 'Diploma IV' ||
event.target.value == 'SMA/SMK'
) $('#low_jurusan').prop('disabled', false)
else $('#low_jurusan').prop('disabled', true)
});
});
</script>
|
<?php
declare (strict_types = 1);
namespace app\admin\controller;
use app\admin\facade\Menu;
use app\Request;
use liliuwei\think\Jump;
use think\App;
use think\facade\Session;
use think\facade\View;
use app\admin\utils\Utils;
class Index
{
use Jump;
/**
* @return string
* 显示主页
*/
public function index(Request $request)
{
event('UserLogout');
//获取左侧菜单
if ($request->isPost()){
$menu = Menu::getMenu();
return $this->success('获取成功','',$menu);
}
if (is_null(get_admin_session())){
return $this->error('请重新登录','./login');
}
View::assign('userDate',get_admin_session());
// var_dump(Session::get('name'));
return View::fetch();
}
/**
* 欢迎界面
*/
public function welcome(){
return View::fetch();
}
public function test(){
return Menu::userTest();
}
}
|
<?php
function foo() {
echo "4";
}
function bar() {
try {
echo "2";
throw new Exception();
echo "x";
} catch (MyEx $ex) {
echo "x";
} finally {
echo "3";
foo();
echo "5";
}
}
try {
echo "1";
bar();
echo "x";
} catch (Exception $ex) {
echo "6";
}
echo "\n";
|
<?php
declare(strict_types = 1);
namespace Com\Incoders\SampleMSTest\Infrastructure\Service;
use PHPUnit\Framework\TestCase;
use Com\Incoders\Cqrs\Infrastructure\Persistence\EventStore\PDOEventStore;
use Google\Cloud\Storage\StorageClient;
use Com\Incoders\SampleMS\Infrastructure\Service\CloudStorage\BucketService;
class BucketServiceTest extends TestCase
{
protected $service;
protected function setUp()
{
$pdo = $this->createMock(PDOEventStore::class);
$mockFunction=new class{
function upload(){return true;}
function objects(){
return [
new class{function name(){return 'test/file.txt';}},
new class{function name(){return 'test/file2.txt';}}
];
}
function object(){
return new class{
function delete(){return true;}
function downloadAsStream(){return new class{function getContents(){return true;}};}
};
}
};
$client = $this->createMock(StorageClient::class);
$client->method('bucket')->willReturn($mockFunction);
$this->service=new BucketService($client, 'bucketName',$pdo);
$mockErrorFunction=new class{
function upload(){throw new \Exception('Show error');}
function objects(){
return [
new class{function name(){return 'test/file.txt';}},
new class{function name(){return 'test/file2.txt';}}
];
}
function object(){
return new class{
function delete(){return true;}
function downloadAsStream(){return new class{function getContents(){return true;}};}
};
}
};
$clientError = $this->createMock(StorageClient::class);
$clientError->method('bucket')->willReturn($mockErrorFunction);
$this->serviceError=new BucketService($clientError, 'bucketName',$pdo);
}
public function testUpload()
{
$this->assertEquals($this->service->upload('content','test/file.txt'),'test/file.txt');
$this->assertEquals($this->serviceError->upload('content','test/file.txt'),'_ERROR_:Show error');
}
public function testDelete()
{
$this->assertEquals(
$this->service->delete('test/file.txt'),
'Deleted gs://bucketName/test/file.txt'
);
}
public function testGetList()
{
$this->assertEquals(
count($this->service->getFileList('prefix')),2);
}
public function testDownload()
{
$this->assertTrue($this->service->downloadFile('test/file.txt'));
}
}
|
<div template-id="wpfc-modal-lazyload" style="top: 10.5px; left: 226px; position: absolute; padding: 6px; height: auto; width: 560px; z-index: 10001;display:none;">
<div style="height: 100%; width: 100%; background: none repeat scroll 0% 0% rgb(0, 0, 0); position: absolute; top: 0px; left: 0px; z-index: -1; opacity: 0.5; border-radius: 8px;">
</div>
<div style="z-index: 600; border-radius: 3px;">
<div style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:12px;background: none repeat scroll 0px 0px rgb(255, 161, 0); z-index: 1000; position: relative; padding: 2px; border-bottom: 1px solid rgb(194, 122, 0); height: 35px; border-radius: 3px 3px 0px 0px;">
<table width="100%" height="100%">
<tbody>
<tr>
<td valign="middle" style="vertical-align: middle; font-weight: bold; color: rgb(255, 255, 255); text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5); padding-left: 10px; font-size: 13px; cursor: move;">Lazy Load Settings</td>
<td width="20" align="center" style="vertical-align: middle;"></td>
<td width="20" align="center" style="vertical-align: middle; font-family: Arial,Helvetica,sans-serif; color: rgb(170, 170, 170); cursor: default;">
<div title="Close Window" class="close-wiz"></div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="window-content-wrapper" style="padding: 8px;">
<div style="z-index: 1000; height: auto; position: relative; display: inline-block; width: 100%;" class="window-content">
<?php
$wpFastestCacheLazyLoad_type_exceptcontent = "";
$wpFastestCacheLazyLoad_type_all = "";
if(isset($this->options->wpFastestCacheLazyLoad_type)){
if($this->options->wpFastestCacheLazyLoad_type == "exceptcontent"){
$wpFastestCacheLazyLoad_type_exceptcontent = 'checked="checked"';
}else if($this->options->wpFastestCacheLazyLoad_type == "all"){
$wpFastestCacheLazyLoad_type_all = 'checked="checked"';
}
}else{
$wpFastestCacheLazyLoad_type_exceptcontent = 'checked="checked"';
}
?>
<div class="wpfc-cdn-pages-container">
<div wpfc-cdn-page="1" class="wiz-cont" style="">
<h1>Choose Images</h1>
<p>Please choose which images are loaded via Lazy Load.</p>
<div class="wiz-input-cont">
<label class="mc-input-label" style="margin-right: 5px;"><input type="radio" <?php echo $wpFastestCacheLazyLoad_type_all; ?> action-id="wpFastestCacheLazyLoad_type_all" id="wpFastestCacheLazyLoad_type_all" name="wpFastestCacheLazyLoad_type" value="all"></label>
<label for="wpFastestCacheLazyLoad_type_all">All Images</label>
</div>
<div class="wiz-input-cont" style="margin-top:10px !important;">
<label class="mc-input-label" style="margin-right: 5px;"><input type="radio" <?php echo $wpFastestCacheLazyLoad_type_exceptcontent; ?> action-id="wpFastestCacheLazyLoad_type_exceptcontent" id="wpFastestCacheLazyLoad_type_exceptcontent" name="wpFastestCacheLazyLoad_type" value="exceptcontent"></label>
<label for="wpFastestCacheLazyLoad_type_exceptcontent">All Images except images in content</label>
</div>
</div>
</div>
</div>
</div>
<?php include WPFC_MAIN_PATH."templates/buttons.html"; ?>
</div>
</div>
<script type="text/javascript">
jQuery("#wpFastestCacheLazyLoad").click(function(){
if(typeof jQuery(this).attr("checked") != "undefined"){
if(jQuery("div[id^='wpfc-modal-lazyload-']").length === 0){
Wpfc_New_Dialog.dialog("wpfc-modal-lazyload", {close: function(){
Wpfc_New_Dialog.clone.find("div.window-content input").each(function(){
if(jQuery(this).attr("checked")){
var id = jQuery(this).attr("action-id");
jQuery("div.tab1 div[template-id='wpfc-modal-lazyload'] div.window-content input#" + id).attr("checked", true);
}
//.attr("checked"
});
Wpfc_New_Dialog.clone.remove();
}});
Wpfc_New_Dialog.show_button("close");
}
}
});
</script>
|
@extends('layouts.admin')
@section('content')
<div class="app-content content">
<div class="content-overlay"></div>
<div class="header-navbar-shadow"></div>
<div class="content-wrapper">
<div class="content-header row">
<div class="content-header-left col-md-9 col-12 mb-2">
<div class="row breadcrumbs-top">
<div class="col-12">
<h2 class="content-header-title float-left mb-0">البانرات</h2>
<div class="breadcrumb-wrapper col-12">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">{{__('public.home')}}</a>
</li>
<li class="breadcrumb-item"><a href="{{route('banners')}}">البانرات</a>
</li>
</ol>
</div>
</div>
</div>
</div>
<div class="content-header-right text-md-right col-md-3 col-12 d-md-block d-none">
<div class="form-group breadcrum-right">
<div class="dropdown">
<a class="btn btn-success" href="{{route('add-banner')}}">{{__('public.add')}}</a>
</div>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h4 class="card-title">البانرات</h4>
</div>
@if(session()->has('success'))
<div class="alert alert-success">
{{ session()->get('success') }}
</div>
@endif
@if(session()->has('error'))
<div class="alert alert-error">
{{ session()->get('error') }}
</div>
@endif
<div class="card-content">
<div class="card-body">
<section id="data-list-view" class="data-list-view-header">
<div class="table-responsive">
<table class="table data-list-view">
<thead>
<tr>
<th scope="col">#{{__('public.id')}}</th>
<th scope="col">{{__('public.name')}}</th>
<th scope="col">{{__('public.edit')}}</th>
</tr>
</thead>
<tbody>
@if($banners)
@foreach($banners as $banner)
<tr>
<th scope="row">{{$banner->id}}</th>
<td>{{$banner->name}}</td>
<td><a href="{{route('edit-banner', ['id' =>$banner->id ])}}">{{__("public.edit")}}</a></td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
</section>
</div>
</div>
</div>
</div>
</div>
@endsection
|
<div class="main-menu menu-fixed menu-dark menu-accordion menu-shadow" data-scroll-to-active="true">
<div class="main-menu-content">
<ul class="navigation navigation-main" id="main-menu-navigation" data-menu="menu-navigation">
<li class=" navigation-header"><span>Tienda</span>
</li>
<li class="nav-item"><a href="{{route('productos.index')}}"><i class="fa fa-gift"></i><span class="menu-title" data-i18n="Productos">Productos</span></a>
<ul class="menu-content">
<li><a href="{{route('categorias.index')}}"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Categorias">Categorias</span></a>
</li>
<li><a href="{{route('productos.index')}}"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Productos">Productos</span></a>
</li>
</ul>
</li>
<li class="nav-item" id="venta_noti"><a href="{{route('admin-ventas.index')}}" ><i class="fa fa-opencart"></i><span class="menu-title" data-i18n="Productos">Ventas</span>
<span id="venta_n"></span>
</a>
</li>
<li class="nav-item"><a ><i class="fa fa-tag"></i><span class="menu-title" data-i18n="Productos">Planes y Beneficios</span></a>
<ul class="menu-content">
<li><a href="{{route('admin-paquetes.index')}}"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Categorias">Planes</span></a>
</li>
<li><a href="{{route('admin-kits.index')}}"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Productos">Extensiones</span></a>
</li>
</ul>
</li>
<li class="nav-item"><a ><i class="fa fa-users"></i><span class="menu-title" data-i18n="Productos">Clientes<span id="cliente_n"></span></span>
</a>
<ul class="menu-content">
<li id="clienteN"><a href="{{route('admin-clientes.index')}}"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Categorias">Registrados</span><span id="cli_r_n"></span></a>
</li>
<li id="cliente_no_re"><a href="{{route('admin-clientes-no-registrados.index')}}"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Categorias">No Registrados</span><span id="cli_n_n"></span></a>
</li>
<li><a href="{{route('admin-carga.index')}}"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Categorias">Carga Masiva</span></a>
</li>
</ul>
</li>
<li class="nav-item" id="suscripcs"><a ><i class="fa fa-user-plus"></i><span class="menu-title" data-i18n="Productos">Suscripciones</span>
<span id="sus_n"></span>
</a>
<ul class="menu-content">
<li><a href="{{route('admin-new-suscripcion.index')}}"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Categorias">Crear</span></a>
</li>
<li><a href="{{route('admin-suscripciones.index')}}"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Categorias">Activas</span></a>
</li>
<li><a href="{{route('admin-no-pagados.index')}}"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Categorias">Inactivas</span></a>
</li>
</ul>
</li>
<li class=" navigation-header"><span>Administracion</span>
</li>
<li class=" nav-item"><a href="{{route('admin-banner.index')}}"><i class="fa fa-file-image-o"></i><span class="menu-title" data-i18n="Form Layout">Banners</span></a>
<li class=" nav-item"><a id="mens" href="{{route('admin-mensajes.index')}}"><i class="fa fa-envelope-o"></i><span class="menu-title" data-i18n="Form Layout">Mensajes</span><span id="mensaje_n"></span></a>
<li class="nav-item"><a ><i class="feather icon-layout"></i><span class="menu-title" data-i18n="Productos">Secciones</span></a>
<ul class="menu-content">
<li><a href="{{route('admin-seccion-home.index')}}"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Categorias">Seccion 1</span></a>
</li>
<li><a href="{{route('admin-comunas.index')}}"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Categorias">Comunas</span></a>
</li>
<li><a href="{{route('admin-cajas.index')}}"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Categorias">Cajas</span></a>
</li>
<li><a href="{{route('admin-cuotas.index')}}"><i class="feather icon-circle"></i><span class="menu-item" data-i18n="Categorias">Texto Cuotas</span></a>
</li>
</ul>
</li>
<li class=" nav-item"><a href="{{route('admin-empleados.index')}}"><i class="fa fa-user-circle"></i><span class="menu-title" data-i18n="Form Layout">Empleados</span></a>
<li class=" nav-item"><a href="{{route('admin-marcas.index')}}"><i class="fa fa-file-image-o"></i><span class="menu-title" data-i18n="Form Layout">Marcas</span></a>
</ul>
</div>
</div>
|
<?php
declare(strict_types=1);
/**
* This file has been auto generated
* Do not change it.
*/
namespace Commercetools\Api\Models\ShoppingList;
use Commercetools\Api\Models\ShoppingList\ShoppingListUpdateActionCollection;
use Commercetools\Exception\InvalidArgumentException;
use stdClass;
/**
* @extends ShoppingListUpdateActionCollection<ShoppingListRemoveLineItemAction>
* @method ShoppingListRemoveLineItemAction current()
* @method ShoppingListRemoveLineItemAction at($offset)
*/
class ShoppingListRemoveLineItemActionCollection extends ShoppingListUpdateActionCollection
{
/**
* @psalm-assert ShoppingListRemoveLineItemAction $value
* @psalm-param ShoppingListRemoveLineItemAction|stdClass $value
* @throws InvalidArgumentException
*
* @return ShoppingListRemoveLineItemActionCollection
*/
public function add($value)
{
if (!$value instanceof ShoppingListRemoveLineItemAction) {
throw new InvalidArgumentException();
}
$this->store($value);
return $this;
}
/**
* @psalm-return callable(int):?ShoppingListRemoveLineItemAction
*/
protected function mapper()
{
return function (int $index): ?ShoppingListRemoveLineItemAction {
$data = $this->get($index);
if ($data instanceof stdClass) {
/** @var ShoppingListRemoveLineItemAction $data */
$data = ShoppingListRemoveLineItemActionModel::of($data);
$this->set($data, $index);
}
return $data;
};
}
}
|
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as your default connection for all database work. Of course
| you may use many connections at once using the Database library.
|
*/
'default' => env('DB_CONNECTION', 'mysql'),
/*
|--------------------------------------------------------------------------
| Database Connections
|--------------------------------------------------------------------------
|
| Here are each of the database connections setup for your application.
| Of course, examples of configuring each database platform that is
| supported by Laravel is shown below to make development simple.
|
|
| All database work in Laravel is done through the PHP PDO facilities
| so make sure you have the driver for your particular database of
| choice installed on your machine before you begin development.
|
*/
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
],
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'schoolapi'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => false,
'engine' => null,
],
'pgsql' => [
'driver' => 'pgsql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
'sslmode' => 'prefer',
],
'sqlsrv' => [
'driver' => 'sqlsrv',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
],
],
/*
|--------------------------------------------------------------------------
| Migration Repository Table
|--------------------------------------------------------------------------
|
| This table keeps track of all the migrations that have already run for
| your application. Using this information, we can determine which of
| the migrations on disk haven't actually been run in the database.
|
*/
'migrations' => 'migrations',
/*
|--------------------------------------------------------------------------
| Redis Databases
|--------------------------------------------------------------------------
|
| Redis is an open source, fast, and advanced key-value store that also
| provides a richer set of commands than a typical key-value systems
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
*/
'redis' => [
'client' => 'predis',
'default' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => 0,
],
],
];
|
<!-- Sidebar -->
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php echo base_url();?>"><i class="fa fa-bar-chart-o fa-fw"></i> SIMA OFFICE</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav side-nav">
<li class="sidebar-search">
<a href="<?php echo base_url();?>">
<img src="<?php echo base_url();?>assets/images/new-logo.png" height="35">
</a>
</li>
<?php if($this->general->privilege_check(PRODUK,'view')){ ?>
<li class="<?php echo ($this->session->userdata('menu')=='product') ? 'active' : '';?> dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-dashboard"></i> Product <b class="caret"></b></a>
<ul class="dropdown-menu">
<?php if($this->general->privilege_check(LAMPU,'view')){ ?>
<li><a href="<?php echo base_url();?>product/lampu">Lampu</a></li>
<?php } ?>
<?php if($this->general->privilege_check(FIXTURE,'view')){ ?>
<li><a href="<?php echo base_url();?>product/fixture">Fixture</a></li>
<?php } ?>
<?php if($this->general->privilege_check(ACCESORIES,'view')){ ?>
<li><a href="<?php echo base_url();?>product/accesories">Accesories</a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
<?php if($this->general->privilege_check(KATALOG,'view')){ ?>
<li class="<?php echo ($this->session->userdata('menu')=='katalog') ? 'active' : '';?>"><a href="<?php echo base_url();?>katalog"><i class="fa fa-glass"></i> Katalog</a></li>
<?php } ?>
<?php if($this->general->privilege_check(CLIENT,'view')){ ?>
<li class="dropdown <?php echo ($this->session->userdata('menu')=='client') ? 'active' : '';?>">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-users"></i> Client <b class="caret"></b> </a>
<ul class="dropdown-menu">
<?php if($this->general->privilege_check(CLIST,'view')){ ?>
<li><a href="<?php echo base_url();?>client/listc">List Client</a></li>
<?php } ?>
<?php if($this->general->privilege_check(CPROJECT,'view')){ ?>
<li><a href="<?php echo base_url();?>client/project">Project</a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
<?php if($this->general->privilege_check(JOBDESK,'view')){ ?>
<li class="dropdown <?php echo ($this->session->userdata('menu')=='quotation') ? 'active' : '';?>">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-book"></i> Job Desk <b class="caret"></b> </a>
<ul class="dropdown-menu">
<?php if($this->general->privilege_check(QUOTATION,'view')){ ?>
<li><a href="<?php echo base_url();?>quotation">Quotation</a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
<?php if($this->general->privilege_check(REPORT,'view')){ ?>
<li class="<?php echo ($this->session->userdata('menu')=='report') ? 'active' : '';?>"><a href="<?php echo base_url();?>report"><i class="fa fa-bar-chart-o"></i> Report</a></li>
<?php } ?>
<?php if($this->general->privilege_check(USER_MANAGEMENT,'view')){ ?>
<li class="dropdown <?php echo ($this->session->userdata('menu')=='user_management') ? 'active' : '';?>">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-sitemap"></i> User Management <b class="caret"></b></a>
<ul class="dropdown-menu">
<?php if($this->general->privilege_check(USER,'view')){ ?>
<li><a href="<?php echo base_url();?>user">User</a></li>
<?php } ?>
<?php if($this->general->privilege_check(JABATAN,'view')){ ?>
<li><a href="<?php echo base_url();?>jabatan">Jabatan</a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
</ul>
<ul class="nav navbar-top-links navbar-right">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-user fa-fw"></i> <?php echo $this->session->userdata('nama');?> <i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="<?php echo base_url();?>user/profile"><i class="fa fa-user fa-fw"></i>Profile</a>
<li class="divider"></li>
<li><a href="<?php echo base_url();?>logout"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</li>
</ul>
<!-- /.dropdown-user -->
</li>
<!-- /.dropdown -->
</ul>
</div><!-- /.navbar-collapse -->
</nav>
|
<?php
namespace Payum2\Bridge\Spl;
use Payum2\Exception\InvalidArgumentException;
use Payum2\Exception\LogicException;
class ArrayObject extends \ArrayObject
{
protected $input;
/**
* {@inheritdoc}
*/
public function __construct($input = array(), $flags = 0, $iterator_class = "ArrayIterator")
{
if ($input instanceof \ArrayAccess && false == $input instanceof \ArrayObject) {
$this->input = $input;
if (false ==$input instanceof \Traversable) {
throw new LogicException('Traversable interface must be implemented in case custom ArrayAccess instance given. It is becase some php limitations.');
}
$input = iterator_to_array($input);
}
parent::__construct($input, $flags, $iterator_class);
}
/**
* @param array|\Traversable $input
*
* @throws \Payum2\Exception\InvalidArgumentException
*
* @return void
*/
public function replace($input)
{
if (false == (is_array($input) || $input instanceof \Traversable)) {
throw new InvalidArgumentException('Invalid input given. Should be an array or instance of \Traversable');
}
foreach ($input as $index => $value) {
$this[$index] = $value;
}
}
/**
* @param array $required
* @param boolean $throwOnInvalid
*
* @throws LogicException when one of the required fields is empty
*
* @return void
*/
public function validatedNotEmpty($required, $throwOnInvalid = true)
{
$required = is_array($required) ? $required : array($required);
foreach ($required as $required) {
$value = $this[$required];
if (empty($value)) {
if ($throwOnInvalid) {
throw new LogicException(sprintf('The %s fields is required.', $required));
}
return false;
}
}
return true;
}
/**
* @param array $required
* @param boolean $throwOnInvalid
*
* @throws LogicException when one of the required fields present
*
* @return void
*/
public function validatedKeysSet($required, $throwOnInvalid = true)
{
$required = is_array($required) ? $required : array($required);
foreach ($required as $required) {
if (false == $this->offsetExists($required)) {
if ($throwOnInvalid) {
throw new LogicException(sprintf('The %s fields is not set.', $required));
}
return false;
}
}
return true;
}
/**
* {@inheritdoc}
*/
public function offsetSet($index, $value)
{
if ($this->input) {
$this->input[$index] = $value;
}
return parent::offsetSet($index, $value);
}
/**
* {@inheritdoc}
*/
public function offsetUnset($index)
{
if ($this->input) {
unset($this->input[$index]);
}
return parent::offsetUnset($index);
}
/**
* This simply returns NULL when an array does not have this index.
* It allows us not to do isset all the time we want to access something.
*
* {@inheritdoc}
*/
public function offsetGet($index)
{
if ($this->offsetExists($index)) {
return parent::offsetGet($index);
}
return null;
}
/**
* @param mixed $input
*
* @return ArrayObject
*/
public static function ensureArrayObject($input)
{
return $input instanceof static ? $input : new static($input);
}
}
|
<div data-widget-group="group1">
<div class="panel panel-default" data-widget='{"draggable": "false"}'>
<div class="panel-heading">
<h2>{{ $second_breadcrumb }}</h2>
<div class="panel-ctrls"
data-actions-container=""
data-action-collapse='{"target": ".panel-body"}'
data-action-expand=''
data-action-colorpicker=''
>
</div>
</div>
<div class="panel-editbox" data-widget-controls=""></div>
<div class="panel-body">
@foreach($blogCat as $item)
<form action="{{ route('admin-blogCat-edit', $item->id ) }}" class="form-horizontal row-border" method="post" enctype="multipart/form-data">
@csrf
<div class="form-group">
<label for="cat_name" class="col-sm-2 control-label">Название категории</label>
<div class="col-sm-8">
<input type="text" name="cat_name" class="form-control" placeholder="Название категории" value="{{ $item->cat_name }}">
</div>
</div>
<div class="panel-footer">
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<button type="submit" class="btn-success btn">Изменить</button>
<a href="{{ route('admin-blogCat') }}"><button class="btn-default btn">Отменить редактирование</button></a>
<a href="{{ route('admin-blogCat-delete', $item->id) }}"><button class="btn-danger btn">Удалить тег</button></a>
</div>
</div>
</div>
</form>
@endforeach
</div>
</div>
</div>
|
<?php
/******************************************************
* @package Pen Blog
* @author http://www.pencms.com
* @copyright Copyright (C) January 2015 www.pencms.com. All rights reserved.
* @license GNU General Public License version 2
*******************************************************/
class ModelPenBlogCategory extends Model {
public function getCategory($category_id) {
$query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "penblog_category c LEFT JOIN " . DB_PREFIX . "penblog_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN " . DB_PREFIX . "penblog_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.category_id = '" . (int)$category_id . "' AND cd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND c2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND c.status = '1'");
return $query->row;
}
public function getCategories($parent_id = 0) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "penblog_category c LEFT JOIN " . DB_PREFIX . "penblog_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN " . DB_PREFIX . "penblog_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '" . (int)$parent_id . "' AND cd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND c2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)");
return $query->rows;
}
public function getCategoryLayoutId($category_id) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "penblog_category_to_layout WHERE category_id = '" . (int)$category_id . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "'");
if ($query->num_rows) {
return $query->row['layout_id'];
} else {
return false;
}
}
public function getTotalCategoriesByCategoryId($parent_id = 0) {
$query = $this->db->query("SELECT COUNT(*) AS total FROM " . DB_PREFIX . "penblog_category c LEFT JOIN " . DB_PREFIX . "penblog_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '" . (int)$parent_id . "' AND c2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND c.status = '1'");
return $query->row['total'];
}
public function getCategoriesByParentId($category_id) {
$category_data = array();
$category_query = $this->db->query("SELECT category_id FROM " . DB_PREFIX . "penblog_category WHERE parent_id = '" . (int)$category_id . "'");
foreach ($category_query->rows as $category) {
$category_data[] = $category['category_id'];
$children = $this->getCategoriesByParentId($category['category_id']);
if ($children) {
$category_data = array_merge($children, $category_data);
}
}
return $category_data;
}
}
?>
|
<?php
use VK\API\Builders\MsgBuilder;
function withIncorrectParam(int $s, $i) {
}
/**
* @param int ...$ints
*/
function withVarargParam1(int $s, ...$ints) {
}
/**
* @param int[] $ints
*/
function withVarargParam2(int $s, ...$ints) {
}
/**
* @param int|false $i_f
*/
function withDuplicatingParam1(int $s, $i_f) {
}
function withDuplicatingParam2(int $s, int $i_f, string $s_n) {
}
/**
* @param int[] $arr
*/
function withDuplicatingParam3(int $s, array $arr) {
}
/**
* @param int $i comment
* @param string $s comment
*/
function withDuplicatingParam4(int $i, string $s) {
}
function withDuplicatingParam5(int $i, ?string $s) {
}
/**
* before
* @param string $s
* this is treated as comment for $s
*/
function withDuplicatingParam6(int $i, string $s) {
}
/**
* @param ?A $a
*/
function withDuplicatingParam7(A $a) {
}
/**
* @param int[] $i_arr
* @param int|false $i_f
*/
function withTransformToTypeHints1(int $i, string $s, $i_arr, $i_f) {
}
/**
* @param int[] $i_arr
* @param int|false $i_f
*/
function withTransformToTypeHints2(int $i, string $s, $i_arr, $i_f) {
}
/**
* @param int $i comment
* @param string $s comment
* @param int[] $i_arr comment
* @param int|false $i_f comment
*/
function withNoTransformToTypeHints3($i, $s, $i_arr, $i_f) {
}
/**
* @param ?int[] $i_arr_null
* @param int|string $complex
* @param int|false $i_f
*/
function withTransformToTypeHints4(A $a, ?A $a_null, MsgBuilder $builder, ?MsgBuilder $builder_full, \VK\API\Builders\AnotherBuilder $builder_another, ?string $s_null, $i_arr_null, $complex, $i_f) {
}
/**
* comment
* @param MsgBuilder $builder comment
*/
function withTransformToTypeHints5(int $i, ?string $s_null, $builder) {
}
function withTransformToTypeHints6(int $i, ?string $s_null) {
}
/**
* todo this works wrong: suggests to convert future to int, should be corrected massively somewhen
*/
function withTransformToTypeHints7(int $fs) {
}
/**
* @param int ...$ints
*/
function withTransformToTypeHints8(...$ints) {
}
function lambdaInside() {
/**
* @param int $s
*/
$f1 = function($s, $i) {
};
$f2 = /**
* @param int $s
*/
function($s, $i) {
};
/**
* @param int $s
*/
function($s, $i) {
};
}
|
<?php
namespace Zenstruck\Porpaginas;
/**
* @author Kevin Bond <kevinbond@gmail.com>
*/
trait ResultPaginator
{
public function paginate(int $page = 1, int $limit = Pager::DEFAULT_LIMIT): Pager
{
return new Pager($this, $page, $limit);
}
}
|
<?php
use App\Models\Post;
use App\Models\Category;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
// \Illuminate\Support\Facades\DB::listen(function ($query) {
// logger($query->sql, $query->bindings);
// });
// ^ logs sql queries
return view('posts', [
'posts' => Post::with('category')->get() // only 2 queries; 1. get posts 2. get categories these posts belong to
]);
});
Route::get('posts/{post:slug}', function(Post $post) {
return view('post', [
'post' => $post
]);
});
// })->where('post', '[A-z_\-]+');
// })->whereAlpha('post');
// })->whereNumber('post');
// })->whereAlphaNumberic('post');
Route::get('categories/{category:slug}', function (Category $category) {
return view('posts ', [
'posts' => $category->posts
]);
});
|
<?php
namespace App\Filters;
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;
class Slug extends AbstractExtension
{
public function getFilters(): array
{
return [
new TwigFilter('slug', [$this, 'slug']),
];
}
public function slug($title, $id = 0): string
{
// replace non letter or digits by -
$title = preg_replace('~[^\pL\d]+~u', '-', $title);
// transliterate
$title = iconv('UTF-8', 'ASCII//TRANSLIT', $title);
// remove unwanted characters
$title = preg_replace('~[^-\w]+~', '', $title);
// trim
$title = trim($title, '-');
// remove duplicate -
$title = preg_replace('~-+~', '-', $title);
// lowercase
$title = strtolower($title);
if (empty($title)) {
return "n-a-{$id}";
}
return "{$title}-{$id}";
}
}
|
<?php
namespace Dvsa\Olcs\Api\Entity\Doc;
use Doctrine\ORM\Mapping as ORM;
use Dvsa\Olcs\Api\Entity\OrganisationProviderInterface;
/**
* Document Entity
*
* @ORM\Entity
* @ORM\Table(name="document",
* indexes={
* @ORM\Index(name="ix_document_traffic_area_id", columns={"traffic_area_id"}),
* @ORM\Index(name="ix_document_category_id", columns={"category_id"}),
* @ORM\Index(name="ix_document_sub_category_id", columns={"sub_category_id"}),
* @ORM\Index(name="ix_document_licence_id", columns={"licence_id"}),
* @ORM\Index(name="ix_document_application_id", columns={"application_id"}),
* @ORM\Index(name="ix_document_case_id", columns={"case_id"}),
* @ORM\Index(name="ix_document_transport_manager_id", columns={"transport_manager_id"}),
* @ORM\Index(name="ix_document_operating_centre_id", columns={"operating_centre_id"}),
* @ORM\Index(name="ix_document_created_by", columns={"created_by"}),
* @ORM\Index(name="ix_document_last_modified_by", columns={"last_modified_by"}),
* @ORM\Index(name="ix_document_bus_reg_id", columns={"bus_reg_id"}),
* @ORM\Index(name="ix_document_irfo_organisation_id", columns={"irfo_organisation_id"})
* },
* uniqueConstraints={
* @ORM\UniqueConstraint(name="uk_document_olbs_key_olbs_type", columns={"olbs_key","olbs_type"})
* }
* )
*/
class Document extends AbstractDocument implements OrganisationProviderInterface
{
const GV_CONTINUATION_CHECKLIST = 'GVChecklist';
const GV_CONTINUATION_CHECKLIST_NI = 'GVChecklist';
const PSV_CONTINUATION_CHECKLIST = 'PSVChecklist';
const PSV_CONTINUATION_CHECKLIST_SR = 'PSVSRChecklist';
const GV_LICENCE_GB = 'GV_LICENCE_V1';
const PSV_LICENCE_GB = 'PSV_LICENCE_V1';
const PSR_SR_LICENCE_GB = 'PSVSRLicence';
const GV_LICENCE_NI = 'GV_LICENCE_V1';
const PSV_LICENCE_NI = 'PSV_LICENCE_V1';
const PSR_SR_LICENCE_NI = 'PSVSRLicence';
const BUS_REG_NEW = 'BUS_REG_NEW_REGISTRATION_TAN21';
const BUS_REG_VARIATION = 'BUS_REG_VARIATION_TAN21';
const BUS_REG_CANCELLATION = 'BUS_REG_CANCELLATION';
const BUS_REG_NEW_REFUSE_SHORT_NOTICE = 'BUS_REG_NEW_REGISTRATION_REFUSE_SHORT_NOTICE';
const BUS_REG_VARIATION_REFUSE_SHORT_NOTICE = 'BUS_REG_VARIATION_REFUSE_SHORT_NOTICE';
const BUS_REG_CANCELLATION_REFUSE_SHORT_NOTICE = 'BUS_REG_CANCELLATION_REFUSE_SHORT_NOTICE';
const GV_DISC_LETTER_GB = 'GVDiscLetter';
const GV_DISC_LETTER_NI = 'GVDiscLetter';
const GV_VEHICLE_LIST_GB = 'GVVehiclesList';
const GV_VEHICLE_LIST_NI = 'GVVehiclesList';
const LICENCE_TERMINATED_CONT_FEE_NOT_PAID_GB = 'LICENCE_TERMINATED_CONT_FEE_NOT_PAID';
const LICENCE_TERMINATED_CONT_FEE_NOT_PAID_NI = 'LICENCE_TERMINATED_CONT_FEE_NOT_PAID';
const GV_UK_COMMUNITY_LICENCE_GB = 'UK_licence_for_the_Community_GV_GB';
const GV_UK_COMMUNITY_LICENCE_GB_COVER_LETTER = 'UK_licence_for_the_Community_Cover_Letter_GV_GB';
const GV_UK_COMMUNITY_LICENCE_NI = 'UK_licence_for_the_Community_GV_NI';
const GV_UK_COMMUNITY_LICENCE_NI_COVER_LETTER = 'UK_licence_for_the_Community_Cover_Letter_GV_NI';
const GV_UK_COMMUNITY_LICENCE_PSV = 'PSV_certified_copy';
const IRHP_PERMIT_ECMT = 'IRHP_PERMIT_ECMT';
const IRHP_PERMIT_ECMT_COVER_LETTER = 'IRHP_PERMIT_ECMT_COVERING_LETTER';
const IRHP_PERMIT_SHORT_TERM_ECMT = 'IRHP_PERMIT_SHORT_TERM_ECMT';
const IRHP_PERMIT_SHORT_TERM_ECMT_COVER_LETTER = 'IRHP_PERMIT_SHORT_TERM_ECMT_COVER_LETTER';
const IRHP_PERMIT_ECMT_REMOVAL = 'IRHP_PERMIT_ECMT_REMOVALS';
const IRHP_PERMIT_ECMT_REMOVAL_COVERING_LETTER = 'IRHP_PERMIT_ECMT_REMOVALS_COVERING_LETTER';
const IRHP_PERMIT_ANN_BILAT_AUSTRIA = 'IRHP_PERMIT_ANN_BILAT_AUSTRIA';
const IRHP_PERMIT_ANN_BILAT_BELARUS = 'IRHP_PERMIT_ANN_BILAT_BELARUS';
const IRHP_PERMIT_ANN_BILAT_BELGIUM = 'IRHP_PERMIT_ANN_BILAT_BELGIUM';
const IRHP_PERMIT_ANN_BILAT_BULGARIA = 'IRHP_PERMIT_ANN_BILAT_BULGARIA';
const IRHP_PERMIT_ANN_BILAT_CROATIA = 'IRHP_PERMIT_ANN_BILAT_CROATIA';
const IRHP_PERMIT_ANN_BILAT_CYPRUS = 'IRHP_PERMIT_ANN_BILAT_CYPRUS';
const IRHP_PERMIT_ANN_BILAT_CZECH_REPUBLIC = 'IRHP_PERMIT_ANN_BILAT_CZECH_REPUBLIC';
const IRHP_PERMIT_ANN_BILAT_DENMARK = 'IRHP_PERMIT_ANN_BILAT_DENMARK';
const IRHP_PERMIT_ANN_BILAT_ESTONIA = 'IRHP_PERMIT_ANN_BILAT_ESTONIA';
const IRHP_PERMIT_ANN_BILAT_FINLAND = 'IRHP_PERMIT_ANN_BILAT_FINLAND';
const IRHP_PERMIT_ANN_BILAT_FRANCE = 'IRHP_PERMIT_ANN_BILAT_FRANCE';
const IRHP_PERMIT_ANN_BILAT_GEORGIA = 'IRHP_PERMIT_ANN_BILAT_GEORGIA';
const IRHP_PERMIT_ANN_BILAT_GERMANY = 'IRHP_PERMIT_ANN_BILAT_GERMANY';
const IRHP_PERMIT_ANN_BILAT_GREECE = 'IRHP_PERMIT_ANN_BILAT_GREECE';
const IRHP_PERMIT_ANN_BILAT_HUNGARY = 'IRHP_PERMIT_ANN_BILAT_HUNGARY';
const IRHP_PERMIT_ANN_BILAT_ICELAND = 'IRHP_PERMIT_ANN_BILAT_ICELAND';
const IRHP_PERMIT_ANN_BILAT_IRELAND = 'IRHP_PERMIT_ANN_BILAT_IRELAND';
const IRHP_PERMIT_ANN_BILAT_ITALY = 'IRHP_PERMIT_ANN_BILAT_ITALY';
const IRHP_PERMIT_ANN_BILAT_KAZAKHSTAN = 'IRHP_PERMIT_ANN_BILAT_KAZAKHSTAN';
const IRHP_PERMIT_ANN_BILAT_LATVIA = 'IRHP_PERMIT_ANN_BILAT_LATVIA';
const IRHP_PERMIT_ANN_BILAT_LIECHTENSTEIN = 'IRHP_PERMIT_ANN_BILAT_LIECHTENSTEIN';
const IRHP_PERMIT_ANN_BILAT_LITHUANIA = 'IRHP_PERMIT_ANN_BILAT_LITHUANIA';
const IRHP_PERMIT_ANN_BILAT_LUXEMBOURG = 'IRHP_PERMIT_ANN_BILAT_LUXEMBOURG';
const IRHP_PERMIT_ANN_BILAT_MALTA = 'IRHP_PERMIT_ANN_BILAT_MALTA';
const IRHP_PERMIT_ANN_BILAT_MOROCCO_EMPTY_ENTRY = 'IRHP_PERMIT_MOROCCO_EMPTY_ENTRY';
const IRHP_PERMIT_ANN_BILAT_MOROCCO_HORS_CONTINGENT = 'IRHP_PERMIT_MOROCCO_HORS_CONTINGENT';
const IRHP_PERMIT_ANN_BILAT_MOROCCO_MULTI = 'IRHP_PERMIT_MOROCCO_MULTI';
const IRHP_PERMIT_ANN_BILAT_MOROCCO_SINGLE = 'IRHP_PERMIT_MOROCCO_SINGLE';
const IRHP_PERMIT_ANN_BILAT_NETHERLANDS = 'IRHP_PERMIT_ANN_BILAT_NETHERLANDS';
const IRHP_PERMIT_ANN_BILAT_NORWAY = 'IRHP_PERMIT_ANN_BILAT_NORWAY';
const IRHP_PERMIT_ANN_BILAT_POLAND = 'IRHP_PERMIT_ANN_BILAT_POLAND';
const IRHP_PERMIT_ANN_BILAT_PORTUGAL = 'IRHP_PERMIT_ANN_BILAT_PORTUGAL';
const IRHP_PERMIT_ANN_BILAT_ROMANIA = 'IRHP_PERMIT_ANN_BILAT_ROMANIA';
const IRHP_PERMIT_ANN_BILAT_RUSSIA = 'IRHP_PERMIT_ANN_BILAT_RUSSIA';
const IRHP_PERMIT_ANN_BILAT_SLOVAKIA = 'IRHP_PERMIT_ANN_BILAT_SLOVAKIA';
const IRHP_PERMIT_ANN_BILAT_SLOVENIA = 'IRHP_PERMIT_ANN_BILAT_SLOVENIA';
const IRHP_PERMIT_ANN_BILAT_SPAIN = 'IRHP_PERMIT_ANN_BILAT_SPAIN';
const IRHP_PERMIT_ANN_BILAT_SWEDEN = 'IRHP_PERMIT_ANN_BILAT_SWEDEN';
const IRHP_PERMIT_ANN_BILAT_TUNISIA = 'IRHP_PERMIT_ANN_BILAT_TUNISIA';
const IRHP_PERMIT_ANN_BILAT_TURKEY = 'IRHP_PERMIT_ANN_BILAT_TURKEY';
const IRHP_PERMIT_ANN_BILAT_UKRAINE = 'IRHP_PERMIT_ANN_BILAT_UKRAINE';
const IRHP_PERMIT_ANN_BILAT_COVERING_LETTER = 'IRHP_PERMIT_ANN_BILAT_COVERING_LETTER';
const IRHP_PERMIT_ANN_MULTILAT = 'IRHP_PERMIT_ANN_MULTILATERAL';
const IRHP_PERMIT_ANN_MULTILAT_COVERING_LETTER = 'IRHP_PERMIT_ANN_MULTILAT_COVERING_LETTER';
/**
* Document constructor.
*
* @param string $identifier document identifier
*
* @return void
*/
public function __construct($identifier)
{
parent::__construct();
$this->setIdentifier($identifier);
}
/**
* Set the createdOn field on persist
*
* @ORM\PrePersist
*
* @return void
*/
public function setCreatedOnBeforePersist()
{
parent::setCreatedOnBeforePersist();
if ($this->getIssuedDate() === null) {
$this->setIssuedDate(new \DateTime());
}
}
/**
* Get organisations this entity is linked to
*
* @return \Dvsa\Olcs\Api\Entity\Organisation\Organisation|\Dvsa\Olcs\Api\Entity\Organisation\Organisation[]|null
*/
public function getRelatedOrganisation()
{
if ($this->getLicence()) {
return $this->getLicence()->getRelatedOrganisation();
}
if ($this->getApplication()) {
return $this->getApplication()->getRelatedOrganisation();
}
if ($this->getTransportManager()) {
return $this->getTransportManager()->getRelatedOrganisation();
}
if ($this->getCase()) {
return $this->getCase()->getRelatedOrganisation();
}
if ($this->getOperatingCentre()) {
return $this->getOperatingCentre()->getRelatedOrganisation();
}
if ($this->getBusReg()) {
return $this->getBusReg()->getRelatedOrganisation();
}
if ($this->getIrfoOrganisation()) {
return $this->getIrfoOrganisation()->getRelatedOrganisation();
}
if ($this->getSubmission()) {
return $this->getSubmission()->getRelatedOrganisation();
}
if ($this->getStatement()) {
return $this->getStatement()->getRelatedOrganisation();
}
if ($this->getEbsrSubmission()) {
return $this->getEbsrSubmission()->getRelatedOrganisation();
}
if ($this->getContinuationDetail()) {
return $this->getContinuationDetail()->getRelatedOrganisation();
}
if ($this->getIrhpApplication()) {
return $this->getIrhpApplication()->getRelatedOrganisation();
}
return null;
}
/**
* Return licence
*
* @return \Dvsa\Olcs\Api\Entity\Licence\Licence|null
*/
public function getRelatedLicence()
{
if ($this->getLicence() !== null) {
return $this->getLicence();
}
$application = $this->getApplication();
if ($application !== null) {
return $application->getLicence();
}
$case = $this->getCase();
if ($case !== null) {
return $case->getLicence();
}
$busReg = $this->getBusReg();
if ($busReg !== null) {
return $busReg->getLicence();
}
$irhpApplication = $this->getIrhpApplication();
if ($irhpApplication !== null) {
return $irhpApplication->getLicence();
}
return null;
}
}
|
<?php
/**
* Template for blurbs
* Copyright (c) 2013 Marshall Farrier
* http://www.opensource.org/licenses/mit-license.php
*
* @author Marshall Farrier
* @edited 2013-12-05
*
* To create a new blurb:
* 1) Copy this file to a file of the form `_<yyyymmdd><00>.php`
* in the current directory
* 2) Edit the content of the blurb
* 3) Delete or edit the `More` link at the bottom if
* there is no link to a corresponding article or
* the reference should link elsewhere
*/
?>
<h2>Title <small><?php echo $date; ?></small></h2>
<p>Experiences with require.js
<?php
echo "<a href='$details'>More</a>";
?>
</p>
|
<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::resource('/users', 'UserController');
Route::resource('/directories', 'DirectoryController');
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});
|
<section class="parallax-exhibit hidden xl:block text-white bg-gray-900 bg-bottom bg-cover md:bg-fixed h-64"></section>
|
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Auth;
use DB;
use Session;
class CekAkses
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
//DB::beginTransaction();
$nextRequest = $next($request);
$routeMenu = DB::table('menu')->pluck('route');
$routeName = $request->route()->getName();
$routeNameArray = explode('.', $request->route()->getName());
if(count($routeNameArray) == 3){
$routeGroup = $routeNameArray[0].".".$routeNameArray[1];
$routeAccess = "is_".$routeNameArray[2];
if(in_array($routeGroup, $routeMenu)){
$checkAksesPage = DB::table('kewenangan_menu')
->leftJoin('kewenangan_user', 'kewenangan_menu.id_peran', '=', 'kewenangan_user.id_peran')
->leftJoin('users', 'users.id', '=', 'kewenangan_user.id_user')
->leftJoin('menu', 'kewenangan_menu.id_menu', '=', 'menu.id_menu')
->where('users.id', Auth::user()->id)
->where('menu.route', $routeNameArray[0].'.'.$routeNameArray[1])
->where($routeAccess, 1)
->first();
if (empty($checkAksesPage)) {
return redirect(route('home'))
->with('message', 'Anda Tidak Berhak Mengakses Halaman Ini');
}else{
Session::flash('message_success', 'Boleh Akses');
}
return $nextRequest;
}else{
return $nextRequest;
}
}else{
return $nextRequest;
}
}
}
|
<?php
/*
* This file is part of the guillaumeloulier project.
*
* (c) Guillaume Loulier <guillaume.loulier@hotmail.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace AppBundle\Form\Type\Add;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Validator\Constraints\Length;
use Symfony\Component\Validator\Constraints\NotBlank;
class CategoryType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('title', TextType::class, array(
'placeholder' => 'Veuillez entrer un titre',
'required' => true,
'constraints' => array(
new NotBlank(),
new Length(array('min' => 4, 'max' => 50)),
),
))
;
}
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'AppBundle\Entity\Category',
));
}
public function getName()
{
return 'app_category_type';
}
}
|
<?php
namespace Fastponto\LaravelFormBuilder\Filters\Collection;
use Fastponto\LaravelFormBuilder\Filters\FilterInterface;
/**
* Class PregReplace
*
* @package Fastponto\LaravelFormBuilder\Filters\Collection
* @author Djordje Stojiljkovic <djordjestojilljkovic@gmail.com>
*/
class PregReplace implements FilterInterface
{
/**
* Pattern to match
*
* @var mixed $pattern
*/
protected $pattern = null;
/**
* Replacement against matches.
*
* @var mixed $replacement
*/
protected $replacement = '';
/**
* PregReplace constructor.
*
* @param array $options
*/
public function __construct($options = [])
{
if (array_key_exists('pattern', $options)) {
$this->setPattern($options['pattern']);
}
if (array_key_exists('replace', $options)) {
$this->setReplacement($options['replace']);
}
}
/**
* Set the match pattern for the regex being called within filter().
*
* @param mixed $pattern - first arg of preg_replace
*
* @return \Fastponto\LaravelFormBuilder\Filters\Collection\PregReplace
*/
public function setPattern($pattern)
{
$this->pattern = $pattern;
return $this;
}
/**
* Get currently set match pattern.
*
* @return string
*/
public function getPattern()
{
return $this->pattern;
}
/**
* Set the Replacement pattern/string for the preg_replace called in filter.
*
* @param mixed $replacement - same as the second argument of preg_replace
*
* @return \Fastponto\LaravelFormBuilder\Filters\Collection\PregReplace
*/
public function setReplacement($replacement)
{
$this->replacement = $replacement;
return $this;
}
/**
* Get currently set replacement value.
*
* @return string
*/
public function getReplacement()
{
return $this->replacement;
}
/**
* @param mixed $value
* @param array $options
*
* @return mixed
*
* @throws \Exception
*/
public function filter($value, $options = [])
{
if ($this->getPattern() == null) {
$ex = new \Exception(get_class($this) . ' does not have a valid MatchPattern set.');
throw $ex;
}
return preg_replace($this->getPattern(), $this->getReplacement(), $value);
}
/**
* @return string
*/
public function getName()
{
return 'PregReplace';
}
}
|
<?php
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Facades\Schema;
use Log;
class User extends Authenticatable
{
use HasFactory, Notifiable;
protected $table = 'persona';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'nombre',
'apellido1',
'apellido2',
'resumen',
'telefono',
'email',
'foto_perfil',
];
public $timestamps = false;
public function experiencias(){
return $this->hasMany(Experiencia::class, "persona", "id");
}
public function estudios(){
return $this->hasMany(Estudios::class, "persona", "id");
}
public function skills(){
return $this->hasMany(Skills::class, "persona", "id");
}
static function getUsr($id){
$info_data = self::select('nombre', 'apellido1','apellido2','resumen','telefono','email')->find($id);
return $info_data;
}
}
|
<?php
namespace AppBundle\Entity\Translation;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Translatable\Entity\MappedSuperclass\AbstractPersonalTranslation;
/**
* @ORM\Entity
* @ORM\Table(name="university_translations",
* uniqueConstraints={@ORM\UniqueConstraint(name="UNIQ_UNIVERSITY_TRANSLATION", columns={
* "locale", "object_id", "field"
* })}
* )
*/
class University extends AbstractPersonalTranslation
{
/**
* Convenient constructor
*
* @param string $locale
* @param string $field
* @param string $value
*/
public function __construct($locale, $field, $value)
{
$this->setLocale($locale);
$this->setField($field);
$this->setContent($value);
}
/**
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\University", inversedBy="translations")
* @ORM\JoinColumn(name="object_id", referencedColumnName="id", onDelete="CASCADE")
*/
protected $object;
}
|
<?php
namespace MQ\Responses;
use MQ\Common\XMLParser;
use MQ\Constants;
use MQ\Exception\InvalidArgumentException;
use MQ\Exception\MalformedXMLException;
use MQ\Exception\MQException;
use MQ\Exception\TopicNotExistException;
use MQ\Model\Message;
use MQ\Model\TopicMessage;
class PublishMessageResponse extends BaseResponse
{
public function __construct()
{
}
public function parseResponse($statusCode, $content): TopicMessage
{
$this->statusCode = $statusCode;
if ($statusCode == 201) {
$this->succeed = TRUE;
} else {
$this->parseErrorResponse($statusCode, $content);
}
$xmlReader = $this->loadXmlContent($content);
try {
return $this->readMessageIdAndMD5XML($xmlReader);
} catch (\Exception $e) {
throw new MQException($statusCode, $e->getMessage(), $e);
} catch (\Throwable $t) {
throw new MQException($statusCode, $t->getMessage());
}
}
public function readMessageIdAndMD5XML(\XMLReader $xmlReader)
{
$message = Message::fromXML($xmlReader, TRUE);
$topicMessage = new TopicMessage(NULL);
$topicMessage->setMessageId($message->getMessageId());
$topicMessage->setMessageBodyMD5($message->getMessageBodyMD5());
$topicMessage->setReceiptHandle($message->getReceiptHandle());
return $topicMessage;
}
public function parseErrorResponse($statusCode, $content, MQException $exception = NULL)
{
$this->succeed = FALSE;
$xmlReader = $this->loadXmlContent($content);
try {
$result = XMLParser::parseNormalError($xmlReader);
if ($result['Code'] == Constants::TOPIC_NOT_EXIST)
{
throw new TopicNotExistException($statusCode, $result['Message'], $exception, $result['Code'], $result['RequestId'], $result['HostId']);
}
if ($result['Code'] == Constants::INVALID_ARGUMENT)
{
throw new InvalidArgumentException($statusCode, $result['Message'], $exception, $result['Code'], $result['RequestId'], $result['HostId']);
}
if ($result['Code'] == Constants::MALFORMED_XML)
{
throw new MalformedXMLException($statusCode, $result['Message'], $exception, $result['Code'], $result['RequestId'], $result['HostId']);
}
throw new MQException($statusCode, $result['Message'], $exception, $result['Code'], $result['RequestId'], $result['HostId']);
} catch (\Exception $e) {
if ($exception != NULL) {
throw $exception;
} elseif($e instanceof MQException) {
throw $e;
} else {
throw new MQException($statusCode, $e->getMessage());
}
} catch (\Throwable $t) {
throw new MQException($statusCode, $t->getMessage());
}
}
}
|
@extends('admin.layouts.index')
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
لوحه التحكم
/ {{$new->name}}
</h1>
<hr style="border-color:#aaa"/>
</section>
@include('layouts.msgs')
<!-- Main content -->
<section class="content">
<div class="text-r modal-content">
<div class="modal-body">
<h4>عنوان الخبر</h4>
<h5>{{$new->title}}.</h5>
<hr />
<h4>صوره الخبر</h4>
<h5>
<img src="{{asset('public/storage/imgs/'.$new->image)}}"
style="width:60px;height:60px;border-radius:50%" />
.</h5>
<hr />
<h4>وصف قصير</h4>
<h5>{{$new->description}}.</h5>
<hr />
<h4>المحتوي</h4>
{!! $new->content !!}
</div>
</div>
@endsection
|
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
return [
// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------
// 应用调试模式
'app_debug' => true,
// 应用Trace
'app_trace' => false,
// 应用模式状态
'app_status' => '',
// 是否支持多模块
'app_multi_module' => true,
// 入口自动绑定模块
'auto_bind_module' => false,
// 注册的根命名空间
'root_namespace' => [],
// 扩展函数文件
'extra_file_list' => [THINK_PATH . 'helper' . EXT],
// 默认输出类型
'default_return_type' => 'html',
// 默认AJAX 数据返回格式,可选json xml ...
'default_ajax_return' => 'json',
// 默认JSONP格式返回的处理方法
'default_jsonp_handler' => 'jsonpReturn',
// 默认JSONP处理方法
'var_jsonp_handler' => 'callback',
// 默认时区
'default_timezone' => 'PRC',
// 是否开启多语言
'lang_switch_on' => false,
// 默认全局过滤方法 用逗号分隔多个
'default_filter' => '',
// 默认语言
'default_lang' => 'zh-cn',
// 应用类库后缀
'class_suffix' => false,
// 控制器类后缀
'controller_suffix' => false,
// +----------------------------------------------------------------------
// | 模块设置
// +----------------------------------------------------------------------
// 默认模块名
'default_module' => 'api',
// 禁止访问模块
'deny_module_list' => ['common'],
// 默认控制器名
'default_controller' => 'Index',
// 默认操作名
'default_action' => 'index',
// 默认验证器
'default_validate' => '',
// 默认的空控制器名
'empty_controller' => 'Error',
// 操作方法后缀
'action_suffix' => '',
// 自动搜索控制器
'controller_auto_search' => false,
// +----------------------------------------------------------------------
// | URL设置
// +----------------------------------------------------------------------
// PATHINFO变量名 用于兼容模式
'var_pathinfo' => 's',
// 兼容PATH_INFO获取
'pathinfo_fetch' => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL'],
// pathinfo分隔符
'pathinfo_depr' => '/',
// URL伪静态后缀
'url_html_suffix' => 'html',
// URL普通方式参数 用于自动生成
'url_common_param' => false,
// URL参数方式 0 按名称成对解析 1 按顺序解析
'url_param_type' => 0,
// 是否开启路由
'url_route_on' => true,
// 路由使用完整匹配
'route_complete_match' => false,
// 路由配置文件(支持配置多个)
'route_config_file' => ['route'],
// 是否开启路由解析缓存
'route_check_cache' => false,
// 是否强制使用路由
'url_route_must' => false,
// 域名部署
'url_domain_deploy' => false,
// 域名根,如thinkphp.cn
'url_domain_root' => '',
// 是否自动转换URL中的控制器和操作名
'url_convert' => true,
// 默认的访问控制器层
'url_controller_layer' => 'controller',
// 表单请求类型伪装变量
'var_method' => '_method',
// 表单ajax伪装变量
'var_ajax' => '_ajax',
// 表单pjax伪装变量
'var_pjax' => '_pjax',
// 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
'request_cache' => false,
// 请求缓存有效期
'request_cache_expire' => null,
// 全局请求缓存排除规则
'request_cache_except' => [],
// +----------------------------------------------------------------------
// | 模板设置
// +----------------------------------------------------------------------
'template' => [
// 模板引擎类型 支持 php think 支持扩展
'type' => 'Think',
// 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写
'auto_rule' => 1,
// 模板路径
'view_path' => '',
// 模板后缀
'view_suffix' => 'html',
// 模板文件名分隔符
'view_depr' => DS,
// 模板引擎普通标签开始标记
'tpl_begin' => '{',
// 模板引擎普通标签结束标记
'tpl_end' => '}',
// 标签库标签开始标记
'taglib_begin' => '{',
// 标签库标签结束标记
'taglib_end' => '}',
],
// 视图输出字符串内容替换
'view_replace_str' => [],
// 默认跳转页面对应的模板文件
'dispatch_success_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
'dispatch_error_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
// +----------------------------------------------------------------------
// | 异常及错误设置
// +----------------------------------------------------------------------
// 异常页面的模板文件
'exception_tmpl' => THINK_PATH . 'tpl' . DS . 'think_exception.tpl',
'http_exception_template' => [
// 定义404错误的重定向页面地址
404 => '../public/404.html',
],
// 错误显示信息,非调试模式有效
'error_message' => '页面错误!请稍后再试~',
// 显示错误信息
'show_error_msg' => false,
// 异常处理handle类 留空使用 \think\exception\Handle
'exception_handle' => '',
// +----------------------------------------------------------------------
// | 日志设置
// +----------------------------------------------------------------------
'log' => [
// 日志记录方式,内置 file socket 支持扩展
'type' => 'File',
// 日志保存目录
'path' => LOG_PATH,
// 日志记录级别
'level' => [],
//日志文件最大数量 自动清理
'max_files' => 30,
],
// +----------------------------------------------------------------------
// | Trace设置 开启 app_trace 后 有效
// +----------------------------------------------------------------------
'trace' => [
// 内置Html Console 支持扩展
'type' => 'Html',
],
// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------
'cache' => [
// 驱动方式
'type' => 'File',
// 缓存保存目录
'path' => CACHE_PATH,
// 缓存前缀
'prefix' => '',
// 缓存有效期 0表示永久缓存
'expire' => 0,
],
// +----------------------------------------------------------------------
// | 会话设置
// +----------------------------------------------------------------------
'session' => [
'id' => '',
// SESSION_ID的提交变量,解决flash上传跨域
'var_session_id' => '',
// SESSION 前缀
'prefix' => 'think',
// 驱动方式 支持redis memcache memcached
'type' => '',
// 是否自动开启 SESSION
'auto_start' => true,
],
// +----------------------------------------------------------------------
// | Cookie设置
// +----------------------------------------------------------------------
'cookie' => [
// cookie 名称前缀
'prefix' => '',
// cookie 保存时间
'expire' => 0,
// cookie 保存路径
'path' => '/',
// cookie 有效域名
'domain' => '',
// cookie 启用安全传输
'secure' => false,
// httponly设置
'httponly' => '',
// 是否使用 setcookie
'setcookie' => true,
],
//分页配置
'paginate' => [
'type' => 'bootstrap',
'var_page' => 'page',
'list_rows' => 15,
],
];
|
<?php
// autoload_files.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php',
'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php',
'e40631d46120a9c38ea139981f8dab26' => $vendorDir . '/ircmaxell/password-compat/lib/password.php',
'2c102faa651ef8ea5874edb585946bce' => $vendorDir . '/swiftmailer/swiftmailer/lib/swift_required.php',
);
|
<?php
/*
* This file is part of Psy Shell.
*
* (c) 2012-2018 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Psy\TabCompletion\Matcher;
use ReflectionException;
use ReflectionFunction;
use function array_pop;
use function function_exists;
class FunctionDefaultParametersMatcher extends AbstractDefaultParametersMatcher
{
public function getMatches(array $tokens, array $info = [])
{
array_pop($tokens); // open bracket
$functionName = array_pop($tokens);
try {
$reflection = new ReflectionFunction($functionName[1]);
} catch (ReflectionException $e) {
return [];
}
$parameters = $reflection->getParameters();
return $this->getDefaultParameterCompletion($parameters);
}
public function hasMatched(array $tokens)
{
$openBracket = array_pop($tokens);
if ($openBracket !== '(') {
return false;
}
$functionName = array_pop($tokens);
if (!self::tokenIs($functionName, self::T_STRING)) {
return false;
}
if (!function_exists($functionName[1])) {
return false;
}
return true;
}
}
|
<?php
/*
* This file is part of the symfony package.
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require_once(dirname(__FILE__).'/../../bootstrap/unit.php');
$t = new lime_test(15);
$v = new sfValidatorInteger();
// ->clean()
$t->diag('->clean()');
$t->is($v->clean(12), 12, '->clean() returns the numbers unmodified');
$t->is($v->clean('12'), 12, '->clean() converts strings to integers');
try
{
$v->clean('not an integer');
$t->fail('->clean() throws a sfValidatorError if the value is not an integer');
$t->skip('', 1);
}
catch (sfValidatorError $e)
{
$t->pass('->clean() throws a sfValidatorError if the value is not an integer');
$t->is($e->getCode(), 'invalid', '->clean() throws a sfValidatorError');
}
try
{
$v->clean(12.3);
$t->fail('->clean() throws a sfValidatorError if the value is not an integer');
$t->skip('', 1);
}
catch (sfValidatorError $e)
{
$t->pass('->clean() throws a sfValidatorError if the value is not an integer');
$t->is($e->getCode(), 'invalid', '->clean() throws a sfValidatorError');
}
$v->setOption('required', false);
$t->ok($v->clean(null) === null, '->clean() returns null for null values');
$v->setOption('max', 2);
$t->is($v->clean(1), 1, '->clean() checks the maximum number allowed');
try
{
$v->clean(3);
$t->fail('"max" option set the maximum number allowed');
$t->skip('', 1);
}
catch (sfValidatorError $e)
{
$t->pass('"max" option set the maximum number allowed');
$t->is($e->getCode(), 'max', '->clean() throws a sfValidatorError');
}
$v->setMessage('max', 'Too large');
try
{
$v->clean(5);
$t->fail('"max" error message customization');
}
catch (sfValidatorError $e)
{
$t->is($e->getMessage(), 'Too large', '"max" error message customization');
}
$v->setOption('max', null);
$v->setOption('min', 3);
$t->is($v->clean(5), 5, '->clean() checks the minimum number allowed');
try
{
$v->clean('1');
$t->fail('"min" option set the minimum number allowed');
$t->skip('', 1);
}
catch (sfValidatorError $e)
{
$t->pass('"min" option set the minimum number allowed');
$t->is($e->getCode(), 'min', '->clean() throws a sfValidatorError');
}
$v->setMessage('min', 'Too small');
try
{
$v->clean(1);
$t->fail('"min" error message customization');
}
catch (sfValidatorError $e)
{
$t->is($e->getMessage(), 'Too small', '"min" error message customization');
}
$v->setOption('min', null);
|
<?php
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=royalteams.com',
'username' => 'root',
'password' => '126126',
'charset' => 'utf8',
];
|
<?php
namespace Arrow\Contracts\Http\Response;
interface ResponseHeadersInterface
{
public function sendStatus();
public function getStatus();
public function getProtocol();
public function getStatusText();
public function setStatus($status);
public function setProtocol($protocol);
public function setStatusText($text);
/*
*@return ResponseHeaderValuesInterface
*/
public function get($key, $default = null);
/*
*@return ResponseHeaderValuesInterface
*/
public function set($key, $value);
}
|
<?php
error_reporting( E_ALL & ~E_NOTICE );
unset( $l );
session_start( );
session_register( $l );
if ( !isset( $l ) )
{
header( "Location: /lobby/login.php" );
exit( );
}
session_start( );
$HTTP_SESSION_VARS['vl'] = $dur;
?>
<html>
<head>
<title>markopolo</title>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" src="pages/swfobject.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" src="pages/main.js"></SCRIPT>
</head>
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#003300">
<center>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="100%" height="100%" id="loader" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="movie" value="slots/slotmenu.swf?game=markopolo&min=1&user=real&cur=RUR&denoms=1|2|3|4|5|10|15|20|30|40|50|100&loadpath=/slots/" />
<param name="quality" value="high" />
<param name="bgcolor" value="#3c3c3c" />
<embed src="slots/slotmenu.swf?game=markopolo&min=1&user=real&cur=RUR&denoms=1|2|3|4|5|10|15|20|30|40|50|100&loadpath=/slots/" quality="high" bgcolor="#3c3c3c" width="100%" height="100%" name="loader" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</center></body></html>
|
<?php
/*
* Interface for objects that are deleted by saving them
*/
namespace Moneybird;
/**
* DeleteBySaving
*/
interface DeleteBySaving
{
/**
* Mark deleted
*/
public function setDeleted();
/**
* Get delete status
* @return bool
*/
public function isDeleted();
}
|
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap">
<!-- Styles -->
<link rel="stylesheet" href="{{ mix('css/app.css') }}">
<!-- Scripts -->
<script src="{{ mix('js/app.js') }}" defer></script>
</head>
<body>
<div class="font-sans text-gray-900 antialiased bg-gray-100">
{{ $slot }}
</div>
</body>
</html>
|
<?php
require_once 'Notificore/SmsApiClient.php';
require_once 'Notificore/HLRApiClient.php';
require_once 'Notificore/ViberApiClient.php';
class Notificore
{
private $apiKey;
private $sender;
private $tariff;
private $viberSender;
private $apiSource;
public function __construct($apiKey, $sender = null, $viberSender = null, $tariff = null, $apiSource = null) {
$this->apiKey = $apiKey;
$this->sender = $sender;
$this->tariff = $tariff;
$this->viberSender = $viberSender;
$this->apiSource = $apiSource;
}
/**
* @return SmsApiClient
*/
public function getSmsClient() {
return new SmsApiClient($this->apiKey, $this->sender, $this->tariff, $this->apiSource);
}
/**
* @return HLRApiClient
*/
public function getHLRClient() {
return new HLRApiClient($this->apiKey, $this->tariff, $this->apiSource);
}
/**
* @return ViberApiClient
*/
public function getViberClient() {
return new ViberApiClient($this->apiKey, $this->viberSender, $this->apiSource);
}
}
|
<?php
namespace App\Http\Controllers\API\Images;
use App\Http\Controllers\Controller;
use App\Http\Requests\ImageSaveRequest;
use App\Http\Resources\ImageResource;
use App\Models\TempFile;
use Illuminate\Support\Facades\Storage;
class SaveController extends Controller
{
/**
* Handle the incoming request.
*
* @param App\Http\Requests\ImageSaveRequest $request
* @return \Illuminate\Http\Response
*/
public function __invoke(ImageSaveRequest $request)
{
$images = TempFile::where('hash', $request->input('hash'))->get();
if (!TempFile::where('hash', $request->input('hash'))->delete()) {
return response()->json(['message' => 'Ошибка сохранения изображений.'], 500);
}
$images = $images->map(function ($item) {
return ['path' => (config('app.url') . Storage::url($item['path']))];
});
return response()->json(['images' => $images], 200);
}
}
|
<?php
namespace wptelegrampro;
if (!defined('ABSPATH')) exit;
global $CalderaFormsWPTP;
class CalderaFormsWPTP extends WPTelegramPro
{
public static $instance = null;
public function __construct()
{
parent::__construct();
add_action('wptelegrampro_plugins_settings_content', [$this, 'settings_content']);
if ($this->get_option('calderaforms_new_message_notification', false)) {
add_action('caldera_forms_submit_complete', [$this, 'form_submit'], 10, 4);
}
}
function settings_content()
{
$this->options = get_option($this->plugin_key);
?>
<tr>
<th colspan="2" class="title-with-icon">
<div class="dashicons-before dashicons-cf-logo wp-menu-image"><br></div>
<span>Caldera Forms</span>
</th>
</tr>
<tr>
<td>
<label for="calderaforms_new_message_notification"><?php _e('Notification for new message', $this->plugin_key) ?></label>
</td>
<td>
<label><input type="checkbox" value="1" id="calderaforms_new_message_notification"
name="calderaforms_new_message_notification" <?php checked($this->get_option('calderaforms_new_message_notification', 0), 1) ?>> <?php _e('Active', $this->plugin_key) ?>
</label>
</td>
</tr>
<tr>
<td>
<label for="calderaforms_forms_select"><?php _e('Notification from this forms', $this->plugin_key) ?></label>
</td>
<td>
<?php
self::forms_select(
'calderaforms_forms_select[]',
array(
'blank' => __('All', $this->plugin_key),
'field_id' => 'calderaforms_forms_select',
'multiple' => 'multiple',
'selected' => $this->get_option('calderaforms_forms_select', []),
'class' => 'multi_select_none_wptp',
)
);
?>
</td>
</tr>
<?php
}
/**
* Send notification to admin users when new message from Caldera Forms
*
* @param array $form Form config
* @param array $referrer URL form was submitted via -- is passed through parse_url() before this point.
* @param string $process_id Unique ID for this processing
* @param int|false $entryid Current entry ID or false if not set or being saved.
*/
function form_submit($form, $referrer, $process_id, $entryid)
{
$forms_select = $this->get_option('calderaforms_forms_select', []);
if (count($forms_select) && $forms_select[0] != '' && !in_array($form['ID'], $forms_select))
return;
$users = $this->get_users();
if (!$users) return;
$text = "*" . __('New message', $this->plugin_key) . "*\n\n";
$valid_type = array(
'text', 'email', 'paragraph', 'hidden', 'number', 'phone',
'phone_better', 'url', 'dropdown', 'checkbox', 'radio', 'filtered_select2',
'date_picker', 'toggle_switch', 'color_picker', 'states', 'range', 'star_rating'
);
foreach ($form['fields'] as $field_id => $field) {
if (!in_array($field['type'], $valid_type))
continue;
$value = \Caldera_Forms::get_field_data($field_id, $form);
if ($field['type'] == 'checkbox' && is_array($value) && !empty($field['config']['option'])) {
$options = [];
foreach ($field['config']['option'] as $opt => $option) {
if (in_array($opt, array_keys($value)))
$options[] = $option['label'];
}
$value = (count($options) > 1 ? "\n" : '') . "▫️ " . implode("\n▫️ ", $options);
} elseif ($field['type'] == 'star_rating') {
$value = intval($value);
$star = '';
if ($value > 0)
for ($i = 1; $i <= $value; $i++)
$star .= "⭐️"; // star ✰
$value = $star;
}
$text .= $field['label'] . ': ' . $value . "\n";
}
$text .= __('Date', $this->plugin_key) . ': ' . HelpersWPTP::localeDate() . "\n";
$text = apply_filters('wptelegrampro_calderaforms_message_notification_text', $text, $form);
if ($text) {
$keyboard = array(array(
array(
'text' => '📂',
'url' => admin_url('admin.php?page=caldera-forms')
)
));
$keyboards = $this->telegram->keyboard($keyboard, 'inline_keyboard');
foreach ($users as $user) {
$this->telegram->sendMessage($text, $keyboards, $user['user_id'], 'Markdown');
}
}
}
private static function forms_select($field_name, $args = array())
{
$items = [];
$forms = \Caldera_Forms::get_forms();
if ($forms && count($forms))
foreach ($forms as $form) {
$items[$form['ID']] = $form['name'];
}
HelpersWPTP::forms_select($field_name, $items, $args);
}
/**
* Returns an instance of class
* @return CalderaFormsWPTP
*/
static function getInstance()
{
if (self::$instance == null)
self::$instance = new CalderaFormsWPTP();
return self::$instance;
}
}
$CalderaFormsWPTP = CalderaFormsWPTP::getInstance();
|
<?php
declare(strict_types=1);
namespace App\Solvers\Y2020\Day14;
class MaskInstruction extends Instruction
{
public function __construct(
private readonly string $mask
) {
}
public function execute(Emulator $emulator): void
{
$emulator->updateBitmask($this->mask);
}
}
|
<?php if(!isset($Translation)) die('No direct access allowed.'); ?>
<?php $current_table = 'personal_details'; ?>
<?php
$cleaner = new CI_Input();
$cleaner->charset = datalist_db_encoding;
?>
<script>
<?php echo $current_table; ?>GetChildrenRecordsList = function(command){
var param = {
ChildTable: "<?php echo $parameters['ChildTable']; ?>",
ChildLookupField: "<?php echo $parameters['ChildLookupField']; ?>",
SelectedID: "<?php echo addslashes($parameters['SelectedID']); ?>",
Page: <?php echo addslashes($parameters['Page']); ?>,
SortBy: <?php echo ($parameters['SortBy'] === false ? '""' : $parameters['SortBy']); ?>,
SortDirection: '<?php echo $parameters['SortDirection']; ?>',
AutoClose: <?php echo ($config['auto-close'] ? 'true' : 'false'); ?>
};
var panelID = "panel_<?php echo "{$parameters['ChildTable']}-{$parameters['ChildLookupField']}"; ?>";
var mbWidth = window.innerWidth * 0.9;
var mbHeight = window.innerHeight * 0.8;
if(mbWidth > 1000){ mbWidth = 1000; }
if(mbHeight > 800){ mbHeight = 800; }
switch(command.Verb){
case 'sort': /* order by given field index in 'SortBy' */
post("parent-children.php", {
ChildTable: param.ChildTable,
ChildLookupField: param.ChildLookupField,
SelectedID: param.SelectedID,
Page: param.Page,
SortBy: command.SortBy,
SortDirection: command.SortDirection,
Operation: 'get-records-printable'
}, panelID, undefined, 'pc-loading');
break;
case 'page': /* next or previous page as provided by 'Page' */
if(command.Page.toLowerCase() == 'next'){ command.Page = param.Page + 1; }
else if(command.Page.toLowerCase() == 'previous'){ command.Page = param.Page - 1; }
if(command.Page < 1 || command.Page > <?php echo ceil($totalMatches / $config['records-per-page']); ?>){ return; }
post("parent-children.php", {
ChildTable: param.ChildTable,
ChildLookupField: param.ChildLookupField,
SelectedID: param.SelectedID,
Page: command.Page,
SortBy: param.SortBy,
SortDirection: param.SortDirection,
Operation: 'get-records-printable'
}, panelID, undefined, 'pc-loading');
break;
case 'reload': /* just a way of refreshing children, retaining sorting and pagination & without reloading the whole page */
post("parent-children.php", {
ChildTable: param.ChildTable,
ChildLookupField: param.ChildLookupField,
SelectedID: param.SelectedID,
Page: param.Page,
SortBy: param.SortBy,
SortDirection: param.SortDirection,
Operation: 'get-records-printable'
}, panelID, undefined, 'pc-loading');
break;
}
};
</script>
<div class="row">
<div class="col-xs-12 col-md-12">
<div class="page-header"><h1>
<?php echo ($config['table-icon'] ? '<img src="' . $config['table-icon'] . '">' : ''); ?>
<?php echo $config['tab-label']; ?>
</h1></div>
<div class="table-responsive">
<table class="table table-striped table-hover table-condensed table-bordered">
<thead>
<tr>
<?php if(is_array($config['display-fields'])) foreach($config['display-fields'] as $fieldIndex => $fieldLabel){ ?>
<th
<?php if($config['sortable-fields'][$fieldIndex]){ ?>
onclick="<?php echo $current_table; ?>GetChildrenRecordsList({
Verb: 'sort',
SortBy: <?php echo $fieldIndex; ?>,
SortDirection: '<?php echo ($parameters['SortBy'] == $fieldIndex && $parameters['SortDirection'] == 'asc' ? 'desc' : 'asc'); ?>'
});"
style="cursor: pointer;"
<?php } ?>
class="<?php echo "{$current_table}-{$config['display-field-names'][$fieldIndex]}"; ?>">
<?php echo $fieldLabel; ?>
<?php if($parameters['SortBy'] == $fieldIndex && $parameters['SortDirection'] == 'desc'){ ?>
<i class="glyphicon glyphicon-sort-by-attributes-alt text-warning"></i>
<?php }elseif($parameters['SortBy'] == $fieldIndex && $parameters['SortDirection'] == 'asc'){ ?>
<i class="glyphicon glyphicon-sort-by-attributes text-warning"></i>
<?php } ?>
</th>
<?php } ?>
</tr>
</thead>
<tbody>
<?php if(is_array($records)) foreach($records as $pkValue => $record){ ?>
<tr>
<td class="<?php echo "{$parameters['ChildTable']}-{$config['display-field-names'][1]}"; ?>" id="<?php echo "{$parameters['ChildTable']}-{$config['display-field-names'][1]}-" . html_attr($record[$config['child-primary-key-index']]); ?>"><?php echo safe_html($record[1]); ?></td>
<td class="<?php echo "{$parameters['ChildTable']}-{$config['display-field-names'][2]}"; ?>" id="<?php echo "{$parameters['ChildTable']}-{$config['display-field-names'][2]}-" . html_attr($record[$config['child-primary-key-index']]); ?>"><?php echo safe_html($record[2]); ?></td>
<td class="<?php echo "{$parameters['ChildTable']}-{$config['display-field-names'][3]}"; ?>" id="<?php echo "{$parameters['ChildTable']}-{$config['display-field-names'][3]}-" . html_attr($record[$config['child-primary-key-index']]); ?>"><?php echo safe_html($record[3]); ?></td>
<td class="<?php echo "{$parameters['ChildTable']}-{$config['display-field-names'][4]}"; ?>" id="<?php echo "{$parameters['ChildTable']}-{$config['display-field-names'][4]}-" . html_attr($record[$config['child-primary-key-index']]); ?>"><?php echo safe_html($record[4]); ?></td>
</tr>
<?php } ?>
</tbody>
<tfoot>
<tr>
<td colspan="<?php echo count($config['display-fields']); ?>">
<?php if($totalMatches){ ?>
<?php if($config['show-page-progress']){ ?>
<span style="margin: 10px;">
<?php $firstRecord = ($parameters['Page'] - 1) * $config['records-per-page'] + 1; ?>
<?php echo str_replace(array('<FirstRecord>', '<LastRecord>', '<RecordCount>'), array($firstRecord, $firstRecord + count($records) - 1, $totalMatches), $Translation['records x to y of z']); ?>
</span>
<?php } ?>
<?php }else{ ?>
<span class="text-danger" style="margin: 10px;"><?php echo $Translation['No matches found!']; ?></span>
<?php } ?>
</td>
</tr>
</tfoot>
</table>
</div>
<?php if($totalMatches){ ?>
<div class="row hidden-print">
<div class="col-xs-12">
<button type="button" class="btn btn-default" onclick="<?php echo $current_table; ?>GetChildrenRecordsList({ Verb: 'page', Page: 'previous' });"><i class="glyphicon glyphicon-chevron-left"></i></button>
<button type="button" class="btn btn-default" onclick="<?php echo $current_table; ?>GetChildrenRecordsList({ Verb: 'page', Page: 'next' });"><i class="glyphicon glyphicon-chevron-right"></i></button>
</div>
</div>
<?php } ?>
</div>
</div>
<script>$j(function(){ /* */ $j('img[src^="thumbnail.php?i=&"').parent().hide(); });</script>
|
<?php
/*
* Copyright 2013 Benoit Duffez
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
include "html.php";
include "mysql.php";
include "crashes.php";
echo "
<center>
<a href=\"?status=".STATE_NEW."\">New reports</a> | <a href=\"?status=".STATE_FIXED."\">Fixed reports</a> | <a href=\"?status=".STATE_INVALID."\">Invalid reports</a>
</center>";
if (!isset($_GET["status"])) {
$status = STATE_NEW;
} else {
$status = $_GET["status"];
}
display_versions_table();
if (isset($_GET["v"])) {
display_crashes($status);
} else {
display_versions_pie_chart();
display_crashes_vs_date_per_version($_GET["package"]);
}
mysql_close();
?>
<p> </p>
|
<?php
namespace Database\Factories;
use App\Models\Product;
use Illuminate\Database\Eloquent\Factories\Factory;
class ProductFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Product::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'name' => $this->faker->name(),
'description' => $this->faker->unique()->safeEmail(),
'price' => $this->faker->numberBetween(1000, 1000000),
'quantity' => $this->faker->numberBetween(1, 100)
];
}
}
|
<?php
namespace App\Services;
use App\Models\Cat;
use App\Models\CatPhoto;
use Illuminate\Support\Str;
use Image;
use Storage;
class CatPhotoService
{
const PATH_ROOT = 'muce/slike/';
const INDICES = [0, 1, 2, 3];
public static function getPlaceholderImage(): string
{
return asset('img/placeholder.png');
}
public static function isBase64ImageString(string $string): bool
{
return Str::startsWith($string, 'data:image');
}
public function createImageFromBase64(string $base64): string
{
$image = Image::make($base64)->encode('jpg', 90);
$filename = md5($base64 . time()) . '.jpg';
self::storeToDisk($filename, $image->stream());
return $filename;
}
public static function storeToDisk(string $filename, $contents)
{
Storage::disk('public')->put(CatPhotoService::getFullPath($filename), $contents);
}
public static function getFullPath(string $filename): string
{
return self::PATH_ROOT . $filename;
}
public function create(Cat $cat, string $filename, int $index): CatPhoto
{
$photo = new CatPhoto;
$photo->cat_id = $cat->id;
$photo->filename = $filename;
$photo->index = $index;
$photo->save();
return $photo;
}
public function deleteFromDisk(string $filename)
{
Storage::disk('public')->delete(self::getFullPath($filename));
}
}
|
<?php
namespace Popov\ZfcMail\Service;
use Popov\Agere\Service\AbstractEntityService;
class MailOptionService extends AbstractEntityService {
protected $_repositoryName = 'mailOption';
public function getItemsByFieldToString($items, $field)
{
$emails = '';
$method = 'get'.ucfirst($field);
foreach ($items as $item)
{
if ($emails != '')
{
$emails .= ', ';
}
$emails .= $item->$method();
}
return $emails;
}
/**
* @param int $mailId
* @param string $emailTo
* @return mixed
*/
public function getOneItemByEmailTo($mailId, $emailTo)
{
/** @var \Popov\ZfcMail\Model\Repository\MailOptionRepository $repository */
$repository = $this->getRepository($this->_repositoryName);
return $repository->findOneItemByEmailTo($mailId, $emailTo);
}
/**
* @param int $mailId
* @return mixed
*/
public function getItemsByMailId($mailId)
{
/** @var \Popov\ZfcMail\Model\Repository\MailOptionRepository $repository */
$repository = $this->getRepository($this->_repositoryName);
return $repository->findItemsByMailId($mailId);
}
/**
* @param int $id
* @param string $field
* @return mixed
*/
public function getOneItem($id, $field = 'id')
{
/** @var \Popov\ZfcMail\Model\Repository\MailOptionRepository $repository */
$repository = $this->getRepository($this->_repositoryName);
return $repository->findOneItem($id, $field);
}
/**
* @param \Popov\ZfcMail\Model\Mail $oneItem
* @param array $data
* @param string $emails, separator ,
*/
public function saveData(\Popov\ZfcMail\Model\Mail $oneItem, $data, $emails)
{
/** @var \Popov\ZfcMail\Model\Repository\MailOptionRepository $repository */
$repository = $this->getRepository($this->_repositoryName);
$explodeData = array_diff(explode(',', $emails), [null]);
$optionIds = [];
if ($explodeData)
{
foreach ($explodeData as $val)
{
$emailTo = trim($val);
$oneOption = $this->getOneItemByEmailTo($oneItem->getId(), $emailTo);
$oneOption->setPeriod($data['period']);
$oneOption->setEmailTo($emailTo);
$oneOption->setMail($oneItem);
$oneOption->setStep($data['step']);
$repository->addItem($oneOption);
if ($oneOption->getId())
{
$optionIds[$oneOption->getId()] = '';
}
}
if ($optionIds)
{
$this->deleteData($oneItem->getId(), $optionIds);
}
if (isset($oneOption))
{
$repository->saveData();
}
}
else
{
$this->deleteData($oneItem->getId());
}
}
/**
* @param int $mailId
* @param array $notDelete
*/
public function deleteData($mailId, array $notDelete = [])
{
/** @var \Popov\ZfcMail\Model\Repository\MailOptionRepository $repository */
$repository = $this->getRepository($this->_repositoryName);
$options = $this->getItemsByMailId($mailId);
foreach ($options as $item)
{
if (! isset($notDelete[$item->getId()]))
{
$repository->addRemove($item);
}
}
if (isset($item))
{
$repository->saveData();
}
}
}
|
<?php
/**
* PHP LDAP CLASS FOR MANIPULATING ACTIVE DIRECTORY
* Version 4.0.2
*
* PHP Version 5 with SSL and LDAP support
*
* Written by Scott Barnett, Richard Hyland
* email: scott@wiggumworld.com, adldap@richardhyland.com
* http://adldap.sourceforge.net/
*
* Copyright (c) 2006-2011 Scott Barnett, Richard Hyland
*
* We'd appreciate any improvements or additions to be submitted back
* to benefit the entire community :)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* @category ToolsAndUtilities
* @package adLDAP
* @subpackage UserCollection
* @author Scott Barnett, Richard Hyland
* @copyright (c) 2006-2011 Scott Barnett, Richard Hyland
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html LGPLv2.1
* @revision $Revision: 97 $
* @version 4.0.2
* @link http://adldap.sourceforge.net/
*/
class adLDAPUserCollection extends adLDAPCollection
{
public function __set($attribute, $value)
{
}
}
?>
|
<?php
namespace App\Models;
use Jenssegers\Mongodb\Eloquent\Model;
class Writing extends Model
{
protected $collection = 'writings';
protected $primaryKey = '_id';
// protected $connection = 'laravelMongo';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'title'
];
protected $hidden = ['user_ids'];
public function users()
{
return $this->belongsToMany(User::class, 'user_ids', 'writing_ids');
}
public static function withRelationships(Writing $writing = null)
{
if ($writing == null) {
$writings = Writing::all();
foreach ($writings as $writing) {
$users = [];
foreach ($writing->user_ids as $userId) {
$user = User::find($userId);
array_push($users, $user);
}
$writing->users = $users;
}
return $writings;
}
$users = [];
foreach ($writing->user_ids as $userId) {
$user = User::find($userId);
array_push($users, $user);
}
$writing->users = $users;
return $writing;
}
}
|
<?php
declare(strict_types=1);
namespace Dflydev\FiniteStateMachine\State;
class State
{
const INITIAL = 'initial';
const NORMAL = 'normal';
const FINAL = 'final';
private string $type;
private string $name;
private array $metadata;
private function __construct(string $type, string $name, array $metadata = [])
{
$this->type = $type;
$this->name = $name;
$this->metadata = $metadata;
}
public function name(): string
{
return $this->name;
}
public function metadata(): array
{
return $this->metadata;
}
public static function initialTyped(string $name, array $metadata): self
{
return new static(static::INITIAL, $name, $metadata);
}
public static function normalTyped(string $name, array $metadata): self
{
return new static(static::NORMAL, $name, $metadata);
}
public static function finalTyped(string $name, array $metadata): self
{
return new static(static::FINAL, $name, $metadata);
}
}
|
<title>detail agenda kegiatan</title>
<!--begin::Entry-->
<div class="d-flex flex-column-fluid">
<!--begin::Container-->
<div class=" container">
<!--begin::Row-->
<div class="row">
<div class="col-xl-9">
<div class="card card-custom gutter-b">
<div class="card-header">
<div class="card-title">
<h3 class="card-label">
Detail Agenda Kegiatan
</h3>
</div>
</div>
<div class="card-body">
<div class="h1 text-center">Membandel, Pabrik Tahu Tempe Disegel Satpol PP</div>
</div>
<!--begin::Footer-->
<div class="card-body" style="
padding-top: 0px;
padding-bottom: 0px;
">
<!--begin::Container-->
<div
class=" container d-flex flex-column flex-md-row align-items-center justify-content-between">
<!--begin::Copyright-->
<div class="text-dark order-2 order-md-1">
<span class="text-dark font-weight-bold mr-2">Jumat, 20 Juli 2020</span>
</div>
<!--end::Copyright-->
<!--begin::Nav-->
<div class="nav nav-dark order-1 order-md-2">
<a href="#" class="btn btn-icon btn-light-facebook mr-2"><i
class="socicon-facebook"></i></a>
<a href="#" class="btn btn-icon btn-light-linkedin mr-2"><i
class="socicon-linkedin"></i></a>
<a href="#" class="btn btn-icon btn-light-twitter mr-2"><i
class="socicon-twitter"></i></a>
<a href="#" class="btn btn-icon btn-light-youtube mr-2"><i
class="socicon-googleplus"></i></a>
<a href="#" class="btn btn-icon btn-light-success mr-2"><i
class="socicon-whatsapp"></i></a>
</div>
<!--end::Nav-->
</div>
<!--end::Container-->
</div>
<!--end::Footer-->
<!--begin::Engage Widget 4-->
<div class="card-body" style="
padding-top: 0px;
padding-bottom: 0px;
">
<!--end::Engage Widget 4-->
</div>
<div class="card-body">
<p>
asddddddddddddddddddddddddddddddddddddddd
</p>
</div>
</div>
</div>
<?php $this->load->view('layouts/partials/side.php'); ?>
</div>
<!--end::Row-->
</div>
<!--end::Container-->
</div>
<!--end::Entry-->
|
<?php
namespace App\Managers;
use App\Utils\Constant\Database;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use App\Entities\TopicMocks;
class TopicMocksManager {
public function fetchDatatableList($columns,$request) {
$listQuery = DB::table('master_topic_mocks as u')
->join('master_topic_mocks_details as ud','u.id','=','ud.topic_mocks')
->join('student_class as c','c.id','=','u.class_id')
->join('student_subject as s','s.id','=','u.subject_id')
->join('chapters as chp','chp.id','=','u.chapter_id')
->where('u.type',$request->type)
->select($columns);
if($request->class_id != null){
$listQuery=$listQuery->where('c.id',$request->class_id);
}
if($request->subject_id != null){
$listQuery=$listQuery->where('s.id',$request->subject_id);
}
if($request->chapter_id != null){
$listQuery=$listQuery->where('chp.id',$request->chapter_id);
}
return $listQuery;
}
}
|
<?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitaed18b5e3ce417e776e83987f8ca1e53
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
}
public static function getLoader()
{
if (null !== self::$loader) {
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitaed18b5e3ce417e776e83987f8ca1e53', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInitaed18b5e3ce417e776e83987f8ca1e53', 'loadClassLoader'));
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
$loader->set($namespace, $path);
}
$map = require __DIR__ . '/autoload_psr4.php';
foreach ($map as $namespace => $path) {
$loader->setPsr4($namespace, $path);
}
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
$loader->addClassMap($classMap);
}
$loader->register(true);
return $loader;
}
}
function composerRequireaed18b5e3ce417e776e83987f8ca1e53($file)
{
require $file;
}
|
<?php $this->load->view('layout3/header2') ?>
<?php $this->load->view('layout3/navbar') ?>
<div class="col-sm-12 main">
<div class="row" style="margin-bottom: -50px;">
<div class="col-lg-9">
<h3>Soal Latihan</h3>
</div>
<div class="col-lg-3">
<h4 style="margin-top: 35px" align="right">Waktu latihan <span id="time"></span> detik</h4>
</div>
</div><!--/.row-->
<!--
<iframe style="margin-top: -60px;" id="frame" src="<?php echo base_url('Pelamar/Ujian/frame_latihan_cfit/') ?>" width="100%" onload="this.style.height=this.contentDocument.body.scrollHeight +'px';" frameborder="0">Browser Anda Tidak Mendukung Iframe, Silahkan Perbaharui Browser Anda.</iframe>
-->
<div class="col-sm-12" style="background-color: #f9243f; padding: 30px; border-radius: 5px; margin-bottom: 20px;">
<h4 style="color: #fff;"><b>Petunjuk Pengerjaan Subtes 8</b></h4>
<li style="color: #fff;">Ditentukan 5 buah kubus, yaitu kubus a,b,c,d,e . Pada tiap-tiap kubus terdapat enam tanda yang berlainan pada setiap sisinya. Tiga dari tanda itu dapat dilihat.</li>
<li style="color: #fff;">Kubus-kubus yang ditentukan itu (a,b,c,d,e) ialah kubus-kubus yang berbeda, artinua kubus-kubus itu dapat mempunyai tanda-tanda yang sama, akan tetapi susunannya berlainan. Setiap soal memperlihatkan salah satu kubus yang ditentukan di dalam kedudukan yang berbeda.</li>
<li style="color: #fff;">Carilah kubus yang dimaksudkan itu dan pilihlah jawaban yang menurut anda paling benar.</li>
<li style="color: #fff;">Kubus itu dapat diputar, dapat digulingkan atau dapat diputar dan digulingkan dalam pikiran anda. Oleh karena itu mungkin akan terlihat suatu tanda yang baru.</li>
<p style="color: #fff;">Contoh soal:</p>
<!-- CONTOH 1 -->
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/soal1.jpg') ?>" class="img-responsive" alt="" style="width: 200px; margin: 10px; border-radius: 5px;">
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/a_coret.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_A.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/b.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_B.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/c.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_C.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/d.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_D.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/e.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_E.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<p class="col-sm-12" style="color: #fff; margin: 10px;">Jawaban: (a) karena mendapatkannya adalah dengan cara menggulingkan lebih dahulu kubus itu ke kiri satu kali dan kemudian diputar ke kiri satu kali, sehingga sisi kubus yang bertanda dua segiempat hitam terletak di depan, seperti kubus (a).</p>
</div>
<div class="col-sm-12" style="background-color: #fff; padding: 30px; border-radius: 5px;">
<strong><p>Contoh Berikutnya :</p></strong>
<!-- CONTOH 2 -->
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/soal2.jpg') ?>" class="img-responsive" alt="" style="width: 150px; margin: 10px; border-radius: 5px;">
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/a.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_A.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/b.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_B.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/c.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_C.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/d.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_D.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/e_coret.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_E.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<strong><p class="col-sm-12" style=" margin: 10px;">Jawaban : (e) Mendapatkannya adalah dengan digulingkan ke kiri satu kali dan diputar ke kiri satu kali, sehingga sisi kubus yang bertanda garis silang terletak di depan, seperti kubus (e)</p></strong>
<!-- CONTOH 3 -->
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/soal3.jpg') ?>" class="img-responsive" alt="" style="width: 150px; margin: 10px; border-radius: 5px;">
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/a.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_A.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/b_coret.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_B.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/c.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_C.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/d.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_D.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<div class="form-check col-sm-1 text-center" style="margin: 5px;">
<center>
<img src="<?php echo base_url('assets3/images/abcd/e.jpg') ?>" class="img-responsive" alt="" style="width: 18px; border-radius: 15px; margin-bottom: 5px">
<img src="<?php echo base_url('assets3/images/soalist/subtes8/contoh/contoh_E.jpg') ?>" class="img-responsive" alt="" style="width: 50px; border-radius: 5px;">
</center>
</div>
<strong><strong><p class="col-sm-12" style=" margin: 10px;">Jawaban: (b) Mendapatkannya adalah dengan mengulingkan ke kiri satu kali, sehingga dasar kubus yang tadinya tidak terlihat memunculkan tanda baru ( dalam hal ini adalah tanda dua segiempat hitam ) dan tanda silang pada sisi atau kubus itu menjadi tak terlihat lagi.</p></strong>
<div class="col-sm-12">
<?php $idUjian = $this->session->userdata('ses_ujian');
$id_pelamar = $this->session->userdata('ses_id');
$ujian = $this->db->query("SELECT * FROM tb_ujian_ist WHERE id_ujian = $idUjian");
foreach ($ujian->result() as $key ) {
$end_lat8 = $key->end_lat_sub8;
}
?>
<form method="post" action="<?php echo base_url('Pelamar/Ujian/start_ujian_ist8/'.$idUjian.'/137') ?>">
</div>
</div>
<div class="col-sm-12">
</div>
</div><!--/.row-->
</div> <!--/.main-->
<div class="col-sm-12 button-lm-tittle justify-content-center text-center" style="margin-top: 20px; margin-bottom: 20px">
<button type="submit" class="btn btn-primary mr-2 mb-2">Mulai Ujian</button>
</form>
</div>
<script type="text/javascript">
var countDownDate = new Date("<?php echo $end_lat8 ?>").getTime();
// Update the count down every 1 second
var x = setInterval(function() {
// Get today's date and time
var now = new Date().getTime();
// Find the distance between now and the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
document.getElementById("time").innerHTML = minutes + " : " + seconds + " ";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
// document.getElementById("time").innerHTML = "EXPIRED";
alert('Waktu latian subtes 8 sudah berakhir, selamat mengerjakan subtes 8');
window.location.href = '<?php echo base_url('Pelamar/Ujian/start_ujian_ist8/'.$idUjian.'/137'); ?>';
// document.getElementById('hentikan').click();
}
}, 1000);
</script>
<?php $this->load->view('layout3/footer') ?>
|
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<title>Week 2</title>
<style>
body{
background-color: #C6DBEC;
font-family: Helvetica;
text-align: center;
text-color: blue;
}
</style>
<h1>Week 3 examples</h1>
<p>This is my work.</p>
<p>
<?php
#Speeding!
#$_GET
#$_POST
$myspeed = 85;
$mybd = "0630";
do {
echo "You are going $myspeed";
--$myspeed;
} while ($myspeed > 60);
# Creating a Loop that goes one time.
$knownsuser = true;
while ($knownsuser){
$knownsuser = false;
}
# Incrementing up to 10 which is below 11
for ($c = 1; $c < 11; ++$c){
echo "$c is $c";
}
echo date("md");
if ($mybd == date("md")){
# get to go 5 faster!
echo "Happy Birthday!";
$myspeed = $myspeed - 5;
}
# 60 or less
if ($myspeed < 61) {
echo "<div>No ticket!</div>";
# big ticket
}else if ($myspeed > 81){
echo "<div>Big Ticket!</div>";
#everyone else
}else {
echo "<div>Small ticket!</div>";
}
?>
</p>
<h2>Fun Class</h2>
<p>So much to learn.</p>
</body>
</html>
|
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap">
<!-- Styles -->
<link rel="stylesheet" href="{{ asset('css/app.css') }}">
{{-- Favicon --}}
<link rel="shortcut icon" href="{{ asset('images/favicon.ico') }}" />
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}" defer></script>
@include('admin.includes.head')
</head>
<body>
<div x-data="{ sidebarOpen: false }" class="relative flex h-screen bg-gray-100 font-cairo"
dir="{{app()->getLocale() == 'en' ? 'ltr' : 'rtl' }}">
@include('admin.includes.sidebar')
<div class="flex flex-col flex-1 overflow-hidden">
@include('admin.includes.header')
<main class="flex-1 overflow-x-hidden overflow-y-auto bg-gray-100 ">
<div class="container px-6 py-8 mx-auto">
@yield('body')
</div>
</main>
</div>
</div>
<!-- Scripts -->
@include('admin.includes.scripts')
@include('admin.includes.messages')
</body>
</html>
|
a:194:{i:0;a:12:{s:2:"id";s:1:"1";s:8:"parentid";s:1:"0";s:3:"app";s:5:"Admin";s:5:"model";s:7:"Content";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"0";s:6:"status";s:1:"1";s:4:"name";s:12:"内容管理";s:4:"icon";s:2:"th";s:6:"remark";s:0:"";s:9:"listorder";s:2:"30";}i:1;a:12:{s:2:"id";s:1:"2";s:8:"parentid";s:1:"1";s:3:"app";s:3:"Api";s:5:"model";s:14:"Guestbookadmin";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"所有留言";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:2;a:12:{s:2:"id";s:1:"3";s:8:"parentid";s:1:"2";s:3:"app";s:3:"Api";s:5:"model";s:14:"Guestbookadmin";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"删除网站留言";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:3;a:12:{s:2:"id";s:1:"4";s:8:"parentid";s:1:"1";s:3:"app";s:7:"Comment";s:5:"model";s:12:"Commentadmin";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"评论管理";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:4;a:12:{s:2:"id";s:1:"5";s:8:"parentid";s:1:"4";s:3:"app";s:7:"Comment";s:5:"model";s:12:"Commentadmin";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"删除评论";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:5;a:12:{s:2:"id";s:1:"6";s:8:"parentid";s:1:"4";s:3:"app";s:7:"Comment";s:5:"model";s:12:"Commentadmin";s:6:"action";s:5:"check";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"评论审核";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:6;a:12:{s:2:"id";s:1:"7";s:8:"parentid";s:1:"1";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"文章管理";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"1";}i:7;a:12:{s:2:"id";s:1:"8";s:8:"parentid";s:1:"7";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:10:"listorders";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"文章排序";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:8;a:12:{s:2:"id";s:1:"9";s:8:"parentid";s:1:"7";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:3:"top";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"文章置顶";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:9;a:12:{s:2:"id";s:2:"10";s:8:"parentid";s:1:"7";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:9:"recommend";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"文章推荐";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:10;a:12:{s:2:"id";s:2:"11";s:8:"parentid";s:1:"7";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:4:"move";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"批量移动";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:11;a:12:{s:2:"id";s:2:"12";s:8:"parentid";s:1:"7";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:5:"check";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"文章审核";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:12;a:12:{s:2:"id";s:2:"13";s:8:"parentid";s:1:"7";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"删除文章";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:13;a:12:{s:2:"id";s:2:"14";s:8:"parentid";s:1:"7";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:4:"edit";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"编辑文章";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:14;a:12:{s:2:"id";s:2:"15";s:8:"parentid";s:2:"14";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:9:"edit_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交编辑";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:15;a:12:{s:2:"id";s:2:"16";s:8:"parentid";s:1:"7";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:3:"add";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"添加文章";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:16;a:12:{s:2:"id";s:2:"17";s:8:"parentid";s:2:"16";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:8:"add_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交添加";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:17;a:12:{s:2:"id";s:2:"18";s:8:"parentid";s:1:"1";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminTerm";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"0";s:6:"status";s:1:"1";s:4:"name";s:12:"分类管理";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"2";}i:18;a:12:{s:2:"id";s:2:"19";s:8:"parentid";s:2:"18";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminTerm";s:6:"action";s:10:"listorders";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"文章分类排序";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:19;a:12:{s:2:"id";s:2:"20";s:8:"parentid";s:2:"18";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminTerm";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"删除分类";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:20;a:12:{s:2:"id";s:2:"21";s:8:"parentid";s:2:"18";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminTerm";s:6:"action";s:4:"edit";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"编辑分类";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:21;a:12:{s:2:"id";s:2:"22";s:8:"parentid";s:2:"21";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminTerm";s:6:"action";s:9:"edit_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交编辑";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:22;a:12:{s:2:"id";s:2:"23";s:8:"parentid";s:2:"18";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminTerm";s:6:"action";s:3:"add";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"添加分类";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:23;a:12:{s:2:"id";s:2:"24";s:8:"parentid";s:2:"23";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminTerm";s:6:"action";s:8:"add_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交添加";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:24;a:12:{s:2:"id";s:2:"25";s:8:"parentid";s:1:"1";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPage";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"页面管理";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"3";}i:25;a:12:{s:2:"id";s:2:"26";s:8:"parentid";s:2:"25";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPage";s:6:"action";s:10:"listorders";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"页面排序";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:26;a:12:{s:2:"id";s:2:"27";s:8:"parentid";s:2:"25";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPage";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"删除页面";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:27;a:12:{s:2:"id";s:2:"28";s:8:"parentid";s:2:"25";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPage";s:6:"action";s:4:"edit";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"编辑页面";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:28;a:12:{s:2:"id";s:2:"29";s:8:"parentid";s:2:"28";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPage";s:6:"action";s:9:"edit_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交编辑";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:29;a:12:{s:2:"id";s:2:"30";s:8:"parentid";s:2:"25";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPage";s:6:"action";s:3:"add";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"添加页面";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:30;a:12:{s:2:"id";s:2:"31";s:8:"parentid";s:2:"30";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPage";s:6:"action";s:8:"add_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交添加";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:31;a:12:{s:2:"id";s:2:"32";s:8:"parentid";s:1:"1";s:3:"app";s:5:"Admin";s:5:"model";s:7:"Recycle";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:9:"回收站";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"4";}i:32;a:12:{s:2:"id";s:2:"33";s:8:"parentid";s:2:"32";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:10:"recyclebin";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"文章回收";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:33;a:12:{s:2:"id";s:2:"34";s:8:"parentid";s:2:"33";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:7:"restore";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"文章还原";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:34;a:12:{s:2:"id";s:2:"35";s:8:"parentid";s:2:"33";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:5:"clean";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"彻底删除";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:35;a:12:{s:2:"id";s:2:"36";s:8:"parentid";s:2:"32";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPage";s:6:"action";s:10:"recyclebin";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"页面回收";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"1";}i:36;a:12:{s:2:"id";s:2:"37";s:8:"parentid";s:2:"36";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPage";s:6:"action";s:5:"clean";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"彻底删除";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:37;a:12:{s:2:"id";s:2:"38";s:8:"parentid";s:2:"36";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPage";s:6:"action";s:7:"restore";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"页面还原";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:38;a:12:{s:2:"id";s:2:"39";s:8:"parentid";s:1:"0";s:3:"app";s:5:"Admin";s:5:"model";s:9:"Extension";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"0";s:6:"status";s:1:"1";s:4:"name";s:12:"扩展工具";s:4:"icon";s:5:"cloud";s:6:"remark";s:0:"";s:9:"listorder";s:2:"40";}i:39;a:12:{s:2:"id";s:2:"40";s:8:"parentid";s:2:"39";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Backup";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"备份管理";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:40;a:12:{s:2:"id";s:2:"41";s:8:"parentid";s:2:"40";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Backup";s:6:"action";s:7:"restore";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"数据还原";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:41;a:12:{s:2:"id";s:2:"42";s:8:"parentid";s:2:"40";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Backup";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"数据备份";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:42;a:12:{s:2:"id";s:2:"43";s:8:"parentid";s:2:"42";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Backup";s:6:"action";s:10:"index_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"提交数据备份";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:43;a:12:{s:2:"id";s:2:"44";s:8:"parentid";s:2:"40";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Backup";s:6:"action";s:8:"download";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"下载备份";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:44;a:12:{s:2:"id";s:2:"45";s:8:"parentid";s:2:"40";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Backup";s:6:"action";s:10:"del_backup";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"删除备份";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:45;a:12:{s:2:"id";s:2:"46";s:8:"parentid";s:2:"40";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Backup";s:6:"action";s:6:"import";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"数据备份导入";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:46;a:12:{s:2:"id";s:2:"47";s:8:"parentid";s:2:"39";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Plugin";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"插件管理";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:47;a:12:{s:2:"id";s:2:"48";s:8:"parentid";s:2:"47";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Plugin";s:6:"action";s:6:"toggle";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"插件启用切换";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:48;a:12:{s:2:"id";s:2:"49";s:8:"parentid";s:2:"47";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Plugin";s:6:"action";s:7:"setting";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"插件设置";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:49;a:12:{s:2:"id";s:2:"50";s:8:"parentid";s:2:"49";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Plugin";s:6:"action";s:12:"setting_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"插件设置提交";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:50;a:12:{s:2:"id";s:2:"51";s:8:"parentid";s:2:"47";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Plugin";s:6:"action";s:7:"install";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"插件安装";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:51;a:12:{s:2:"id";s:2:"52";s:8:"parentid";s:2:"47";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Plugin";s:6:"action";s:9:"uninstall";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"插件卸载";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:52;a:12:{s:2:"id";s:2:"53";s:8:"parentid";s:2:"39";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Slide";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:9:"幻灯片";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"1";}i:53;a:12:{s:2:"id";s:2:"54";s:8:"parentid";s:2:"53";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Slide";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:15:"幻灯片管理";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:54;a:12:{s:2:"id";s:2:"55";s:8:"parentid";s:2:"54";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Slide";s:6:"action";s:10:"listorders";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:15:"幻灯片排序";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:55;a:12:{s:2:"id";s:2:"56";s:8:"parentid";s:2:"54";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Slide";s:6:"action";s:6:"toggle";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:21:"幻灯片显示切换";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:56;a:12:{s:2:"id";s:2:"57";s:8:"parentid";s:2:"54";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Slide";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:15:"删除幻灯片";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:57;a:12:{s:2:"id";s:2:"58";s:8:"parentid";s:2:"54";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Slide";s:6:"action";s:4:"edit";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:15:"编辑幻灯片";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:58;a:12:{s:2:"id";s:2:"59";s:8:"parentid";s:2:"58";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Slide";s:6:"action";s:9:"edit_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交编辑";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:59;a:12:{s:2:"id";s:2:"60";s:8:"parentid";s:2:"54";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Slide";s:6:"action";s:3:"add";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:15:"添加幻灯片";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:60;a:12:{s:2:"id";s:2:"61";s:8:"parentid";s:2:"60";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Slide";s:6:"action";s:8:"add_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交添加";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:61;a:12:{s:2:"id";s:2:"62";s:8:"parentid";s:2:"53";s:3:"app";s:5:"Admin";s:5:"model";s:8:"Slidecat";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:15:"幻灯片分类";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:62;a:12:{s:2:"id";s:2:"63";s:8:"parentid";s:2:"62";s:3:"app";s:5:"Admin";s:5:"model";s:8:"Slidecat";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"删除分类";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:63;a:12:{s:2:"id";s:2:"64";s:8:"parentid";s:2:"62";s:3:"app";s:5:"Admin";s:5:"model";s:8:"Slidecat";s:6:"action";s:4:"edit";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"编辑分类";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:64;a:12:{s:2:"id";s:2:"65";s:8:"parentid";s:2:"64";s:3:"app";s:5:"Admin";s:5:"model";s:8:"Slidecat";s:6:"action";s:9:"edit_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交编辑";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:65;a:12:{s:2:"id";s:2:"66";s:8:"parentid";s:2:"62";s:3:"app";s:5:"Admin";s:5:"model";s:8:"Slidecat";s:6:"action";s:3:"add";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"添加分类";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:66;a:12:{s:2:"id";s:2:"67";s:8:"parentid";s:2:"66";s:3:"app";s:5:"Admin";s:5:"model";s:8:"Slidecat";s:6:"action";s:8:"add_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交添加";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:67;a:12:{s:2:"id";s:2:"68";s:8:"parentid";s:2:"39";s:3:"app";s:5:"Admin";s:5:"model";s:2:"Ad";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"网站广告";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"2";}i:68;a:12:{s:2:"id";s:2:"69";s:8:"parentid";s:2:"68";s:3:"app";s:5:"Admin";s:5:"model";s:2:"Ad";s:6:"action";s:6:"toggle";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"广告显示切换";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:69;a:12:{s:2:"id";s:2:"70";s:8:"parentid";s:2:"68";s:3:"app";s:5:"Admin";s:5:"model";s:2:"Ad";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"删除广告";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:70;a:12:{s:2:"id";s:2:"71";s:8:"parentid";s:2:"68";s:3:"app";s:5:"Admin";s:5:"model";s:2:"Ad";s:6:"action";s:4:"edit";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"编辑广告";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:71;a:12:{s:2:"id";s:2:"72";s:8:"parentid";s:2:"71";s:3:"app";s:5:"Admin";s:5:"model";s:2:"Ad";s:6:"action";s:9:"edit_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交编辑";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:72;a:12:{s:2:"id";s:2:"73";s:8:"parentid";s:2:"68";s:3:"app";s:5:"Admin";s:5:"model";s:2:"Ad";s:6:"action";s:3:"add";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"添加广告";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:73;a:12:{s:2:"id";s:2:"74";s:8:"parentid";s:2:"73";s:3:"app";s:5:"Admin";s:5:"model";s:2:"Ad";s:6:"action";s:8:"add_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交添加";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:74;a:12:{s:2:"id";s:2:"75";s:8:"parentid";s:2:"39";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Link";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"0";s:6:"status";s:1:"1";s:4:"name";s:12:"友情链接";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"3";}i:75;a:12:{s:2:"id";s:2:"76";s:8:"parentid";s:2:"75";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Link";s:6:"action";s:10:"listorders";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"友情链接排序";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:76;a:12:{s:2:"id";s:2:"77";s:8:"parentid";s:2:"75";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Link";s:6:"action";s:6:"toggle";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"友链显示切换";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:77;a:12:{s:2:"id";s:2:"78";s:8:"parentid";s:2:"75";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Link";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"删除友情链接";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:78;a:12:{s:2:"id";s:2:"79";s:8:"parentid";s:2:"75";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Link";s:6:"action";s:4:"edit";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"编辑友情链接";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:79;a:12:{s:2:"id";s:2:"80";s:8:"parentid";s:2:"79";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Link";s:6:"action";s:9:"edit_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交编辑";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:80;a:12:{s:2:"id";s:2:"81";s:8:"parentid";s:2:"75";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Link";s:6:"action";s:3:"add";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"添加友情链接";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:81;a:12:{s:2:"id";s:2:"82";s:8:"parentid";s:2:"81";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Link";s:6:"action";s:8:"add_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交添加";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:82;a:12:{s:2:"id";s:2:"83";s:8:"parentid";s:2:"39";s:3:"app";s:3:"Api";s:5:"model";s:10:"Oauthadmin";s:6:"action";s:7:"setting";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:15:"第三方登陆";s:4:"icon";s:4:"leaf";s:6:"remark";s:0:"";s:9:"listorder";s:1:"4";}i:83;a:12:{s:2:"id";s:2:"84";s:8:"parentid";s:2:"83";s:3:"app";s:3:"Api";s:5:"model";s:10:"Oauthadmin";s:6:"action";s:12:"setting_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交设置";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:84;a:12:{s:2:"id";s:2:"85";s:8:"parentid";s:1:"0";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Menu";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"菜单管理";s:4:"icon";s:4:"list";s:6:"remark";s:0:"";s:9:"listorder";s:2:"20";}i:85;a:12:{s:2:"id";s:2:"86";s:8:"parentid";s:2:"85";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Navcat";s:6:"action";s:8:"default1";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"前台菜单";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:86;a:12:{s:2:"id";s:2:"87";s:8:"parentid";s:2:"86";s:3:"app";s:5:"Admin";s:5:"model";s:3:"Nav";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"菜单管理";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:87;a:12:{s:2:"id";s:2:"88";s:8:"parentid";s:2:"87";s:3:"app";s:5:"Admin";s:5:"model";s:3:"Nav";s:6:"action";s:10:"listorders";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"前台导航排序";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:88;a:12:{s:2:"id";s:2:"89";s:8:"parentid";s:2:"87";s:3:"app";s:5:"Admin";s:5:"model";s:3:"Nav";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"删除菜单";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:89;a:12:{s:2:"id";s:2:"90";s:8:"parentid";s:2:"87";s:3:"app";s:5:"Admin";s:5:"model";s:3:"Nav";s:6:"action";s:4:"edit";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"编辑菜单";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:90;a:12:{s:2:"id";s:2:"91";s:8:"parentid";s:2:"90";s:3:"app";s:5:"Admin";s:5:"model";s:3:"Nav";s:6:"action";s:9:"edit_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交编辑";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:91;a:12:{s:2:"id";s:2:"92";s:8:"parentid";s:2:"87";s:3:"app";s:5:"Admin";s:5:"model";s:3:"Nav";s:6:"action";s:3:"add";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"添加菜单";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:92;a:12:{s:2:"id";s:2:"93";s:8:"parentid";s:2:"92";s:3:"app";s:5:"Admin";s:5:"model";s:3:"Nav";s:6:"action";s:8:"add_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交添加";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:93;a:12:{s:2:"id";s:2:"94";s:8:"parentid";s:2:"86";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Navcat";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"菜单分类";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:94;a:12:{s:2:"id";s:2:"95";s:8:"parentid";s:2:"94";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Navcat";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"删除分类";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:95;a:12:{s:2:"id";s:2:"96";s:8:"parentid";s:2:"94";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Navcat";s:6:"action";s:4:"edit";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"编辑分类";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:96;a:12:{s:2:"id";s:2:"97";s:8:"parentid";s:2:"96";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Navcat";s:6:"action";s:9:"edit_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交编辑";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:97;a:12:{s:2:"id";s:2:"98";s:8:"parentid";s:2:"94";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Navcat";s:6:"action";s:3:"add";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"添加分类";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:98;a:12:{s:2:"id";s:2:"99";s:8:"parentid";s:2:"98";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Navcat";s:6:"action";s:8:"add_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交添加";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:99;a:12:{s:2:"id";s:3:"100";s:8:"parentid";s:2:"85";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Menu";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"后台菜单";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:100;a:12:{s:2:"id";s:3:"101";s:8:"parentid";s:3:"100";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Menu";s:6:"action";s:3:"add";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"添加菜单";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:101;a:12:{s:2:"id";s:3:"102";s:8:"parentid";s:3:"101";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Menu";s:6:"action";s:8:"add_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交添加";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:102;a:12:{s:2:"id";s:3:"103";s:8:"parentid";s:3:"100";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Menu";s:6:"action";s:10:"listorders";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"后台菜单排序";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:103;a:12:{s:2:"id";s:3:"104";s:8:"parentid";s:3:"100";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Menu";s:6:"action";s:11:"export_menu";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"菜单备份";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:104;a:12:{s:2:"id";s:3:"105";s:8:"parentid";s:3:"100";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Menu";s:6:"action";s:4:"edit";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"编辑菜单";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:105;a:12:{s:2:"id";s:3:"106";s:8:"parentid";s:3:"105";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Menu";s:6:"action";s:9:"edit_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交编辑";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:106;a:12:{s:2:"id";s:3:"107";s:8:"parentid";s:3:"100";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Menu";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"删除菜单";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:107;a:12:{s:2:"id";s:3:"108";s:8:"parentid";s:3:"100";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Menu";s:6:"action";s:5:"lists";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"所有菜单";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:108;a:12:{s:2:"id";s:3:"109";s:8:"parentid";s:1:"0";s:3:"app";s:5:"Admin";s:5:"model";s:7:"Setting";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"0";s:6:"status";s:1:"1";s:4:"name";s:6:"设置";s:4:"icon";s:4:"cogs";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:109;a:12:{s:2:"id";s:3:"110";s:8:"parentid";s:3:"109";s:3:"app";s:5:"Admin";s:5:"model";s:7:"Setting";s:6:"action";s:11:"userdefault";s:4:"data";s:0:"";s:4:"type";s:1:"0";s:6:"status";s:1:"1";s:4:"name";s:12:"个人信息";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:110;a:12:{s:2:"id";s:3:"111";s:8:"parentid";s:3:"110";s:3:"app";s:5:"Admin";s:5:"model";s:4:"User";s:6:"action";s:8:"userinfo";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"修改信息";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:111;a:12:{s:2:"id";s:3:"112";s:8:"parentid";s:3:"111";s:3:"app";s:5:"Admin";s:5:"model";s:4:"User";s:6:"action";s:13:"userinfo_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"修改信息提交";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:112;a:12:{s:2:"id";s:3:"113";s:8:"parentid";s:3:"110";s:3:"app";s:5:"Admin";s:5:"model";s:7:"Setting";s:6:"action";s:8:"password";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"修改密码";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:113;a:12:{s:2:"id";s:3:"114";s:8:"parentid";s:3:"113";s:3:"app";s:5:"Admin";s:5:"model";s:7:"Setting";s:6:"action";s:13:"password_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交修改";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:114;a:12:{s:2:"id";s:3:"115";s:8:"parentid";s:3:"109";s:3:"app";s:5:"Admin";s:5:"model";s:7:"Setting";s:6:"action";s:4:"site";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"网站信息";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:115;a:12:{s:2:"id";s:3:"116";s:8:"parentid";s:3:"115";s:3:"app";s:5:"Admin";s:5:"model";s:7:"Setting";s:6:"action";s:9:"site_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交修改";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:116;a:12:{s:2:"id";s:3:"117";s:8:"parentid";s:3:"115";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Route";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"路由列表";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:117;a:12:{s:2:"id";s:3:"118";s:8:"parentid";s:3:"115";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Route";s:6:"action";s:3:"add";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"路由添加";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:118;a:12:{s:2:"id";s:3:"119";s:8:"parentid";s:3:"118";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Route";s:6:"action";s:8:"add_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"路由添加提交";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:119;a:12:{s:2:"id";s:3:"120";s:8:"parentid";s:3:"115";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Route";s:6:"action";s:4:"edit";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"路由编辑";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:120;a:12:{s:2:"id";s:3:"121";s:8:"parentid";s:3:"120";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Route";s:6:"action";s:9:"edit_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"路由编辑提交";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:121;a:12:{s:2:"id";s:3:"122";s:8:"parentid";s:3:"115";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Route";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"路由删除";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:122;a:12:{s:2:"id";s:3:"123";s:8:"parentid";s:3:"115";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Route";s:6:"action";s:3:"ban";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"路由禁止";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:123;a:12:{s:2:"id";s:3:"124";s:8:"parentid";s:3:"115";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Route";s:6:"action";s:4:"open";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"路由启用";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:124;a:12:{s:2:"id";s:3:"125";s:8:"parentid";s:3:"115";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Route";s:6:"action";s:10:"listorders";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"路由排序";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:125;a:12:{s:2:"id";s:3:"126";s:8:"parentid";s:3:"109";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Mailer";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"邮箱配置";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:126;a:12:{s:2:"id";s:3:"127";s:8:"parentid";s:3:"126";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Mailer";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:10:"SMTP配置";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:127;a:12:{s:2:"id";s:3:"128";s:8:"parentid";s:3:"127";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Mailer";s:6:"action";s:10:"index_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交配置";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:128;a:12:{s:2:"id";s:3:"129";s:8:"parentid";s:3:"126";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Mailer";s:6:"action";s:6:"active";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:18:"注册邮件模板";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:129;a:12:{s:2:"id";s:3:"130";s:8:"parentid";s:3:"129";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Mailer";s:6:"action";s:11:"active_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交模板";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:130;a:12:{s:2:"id";s:3:"131";s:8:"parentid";s:3:"109";s:3:"app";s:5:"Admin";s:5:"model";s:7:"Setting";s:6:"action";s:10:"clearcache";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"清除缓存";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"1";}i:131;a:12:{s:2:"id";s:3:"132";s:8:"parentid";s:1:"0";s:3:"app";s:4:"User";s:5:"model";s:10:"Indexadmin";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"用户管理";s:4:"icon";s:5:"group";s:6:"remark";s:0:"";s:9:"listorder";s:2:"10";}i:132;a:12:{s:2:"id";s:3:"133";s:8:"parentid";s:3:"132";s:3:"app";s:4:"User";s:5:"model";s:10:"Indexadmin";s:6:"action";s:8:"default1";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:9:"用户组";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:133;a:12:{s:2:"id";s:3:"134";s:8:"parentid";s:3:"133";s:3:"app";s:4:"User";s:5:"model";s:10:"Indexadmin";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"本站用户";s:4:"icon";s:4:"leaf";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:134;a:12:{s:2:"id";s:3:"135";s:8:"parentid";s:3:"134";s:3:"app";s:4:"User";s:5:"model";s:10:"Indexadmin";s:6:"action";s:3:"ban";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"拉黑会员";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:135;a:12:{s:2:"id";s:3:"136";s:8:"parentid";s:3:"134";s:3:"app";s:4:"User";s:5:"model";s:10:"Indexadmin";s:6:"action";s:9:"cancelban";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"启用会员";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:136;a:12:{s:2:"id";s:3:"137";s:8:"parentid";s:3:"133";s:3:"app";s:4:"User";s:5:"model";s:10:"Oauthadmin";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:15:"第三方用户";s:4:"icon";s:4:"leaf";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:137;a:12:{s:2:"id";s:3:"138";s:8:"parentid";s:3:"137";s:3:"app";s:4:"User";s:5:"model";s:10:"Oauthadmin";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:21:"第三方用户解绑";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:138;a:12:{s:2:"id";s:3:"139";s:8:"parentid";s:3:"132";s:3:"app";s:4:"User";s:5:"model";s:10:"Indexadmin";s:6:"action";s:8:"default3";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:9:"管理组";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:139;a:12:{s:2:"id";s:3:"140";s:8:"parentid";s:3:"139";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Rbac";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"角色管理";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:140;a:12:{s:2:"id";s:3:"141";s:8:"parentid";s:3:"140";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Rbac";s:6:"action";s:6:"member";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"成员管理";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:141;a:12:{s:2:"id";s:3:"142";s:8:"parentid";s:3:"140";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Rbac";s:6:"action";s:9:"authorize";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"权限设置";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:142;a:12:{s:2:"id";s:3:"143";s:8:"parentid";s:3:"142";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Rbac";s:6:"action";s:14:"authorize_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交设置";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:143;a:12:{s:2:"id";s:3:"144";s:8:"parentid";s:3:"140";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Rbac";s:6:"action";s:8:"roleedit";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"编辑角色";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:144;a:12:{s:2:"id";s:3:"145";s:8:"parentid";s:3:"144";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Rbac";s:6:"action";s:13:"roleedit_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交编辑";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:145;a:12:{s:2:"id";s:3:"146";s:8:"parentid";s:3:"140";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Rbac";s:6:"action";s:10:"roledelete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"删除角色";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:146;a:12:{s:2:"id";s:3:"147";s:8:"parentid";s:3:"140";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Rbac";s:6:"action";s:7:"roleadd";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"添加角色";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:147;a:12:{s:2:"id";s:3:"148";s:8:"parentid";s:3:"147";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Rbac";s:6:"action";s:12:"roleadd_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"提交添加";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:148;a:12:{s:2:"id";s:3:"149";s:8:"parentid";s:3:"139";s:3:"app";s:5:"Admin";s:5:"model";s:4:"User";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:9:"管理员";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:149;a:12:{s:2:"id";s:3:"150";s:8:"parentid";s:3:"149";s:3:"app";s:5:"Admin";s:5:"model";s:4:"User";s:6:"action";s:6:"delete";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:15:"删除管理员";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:150;a:12:{s:2:"id";s:3:"151";s:8:"parentid";s:3:"149";s:3:"app";s:5:"Admin";s:5:"model";s:4:"User";s:6:"action";s:4:"edit";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:15:"管理员编辑";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:151;a:12:{s:2:"id";s:3:"152";s:8:"parentid";s:3:"151";s:3:"app";s:5:"Admin";s:5:"model";s:4:"User";s:6:"action";s:9:"edit_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"编辑提交";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:152;a:12:{s:2:"id";s:3:"153";s:8:"parentid";s:3:"149";s:3:"app";s:5:"Admin";s:5:"model";s:4:"User";s:6:"action";s:3:"add";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:15:"管理员添加";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:4:"1000";}i:153;a:12:{s:2:"id";s:3:"154";s:8:"parentid";s:3:"153";s:3:"app";s:5:"Admin";s:5:"model";s:4:"User";s:6:"action";s:8:"add_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"添加提交";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:154;a:12:{s:2:"id";s:3:"155";s:8:"parentid";s:2:"47";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Plugin";s:6:"action";s:6:"update";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"插件更新";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:155;a:12:{s:2:"id";s:3:"156";s:8:"parentid";s:3:"109";s:3:"app";s:5:"Admin";s:5:"model";s:7:"Storage";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"文件存储";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:156;a:12:{s:2:"id";s:3:"157";s:8:"parentid";s:3:"156";s:3:"app";s:5:"Admin";s:5:"model";s:7:"Storage";s:6:"action";s:12:"setting_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:24:"文件存储设置提交";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:157;a:12:{s:2:"id";s:3:"158";s:8:"parentid";s:2:"54";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Slide";s:6:"action";s:3:"ban";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:15:"禁用幻灯片";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:158;a:12:{s:2:"id";s:3:"159";s:8:"parentid";s:2:"54";s:3:"app";s:5:"Admin";s:5:"model";s:5:"Slide";s:6:"action";s:9:"cancelban";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:15:"启用幻灯片";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:159;a:12:{s:2:"id";s:3:"160";s:8:"parentid";s:3:"149";s:3:"app";s:5:"Admin";s:5:"model";s:4:"User";s:6:"action";s:3:"ban";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:15:"禁用管理员";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:160;a:12:{s:2:"id";s:3:"161";s:8:"parentid";s:3:"149";s:3:"app";s:5:"Admin";s:5:"model";s:4:"User";s:6:"action";s:9:"cancelban";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:15:"启用管理员";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:161;a:12:{s:2:"id";s:3:"166";s:8:"parentid";s:3:"127";s:3:"app";s:5:"Admin";s:5:"model";s:6:"Mailer";s:6:"action";s:4:"test";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"测试邮件";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:162;a:12:{s:2:"id";s:3:"167";s:8:"parentid";s:3:"109";s:3:"app";s:5:"Admin";s:5:"model";s:7:"Setting";s:6:"action";s:6:"upload";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"上传设置";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:163;a:12:{s:2:"id";s:3:"168";s:8:"parentid";s:3:"167";s:3:"app";s:5:"Admin";s:5:"model";s:7:"Setting";s:6:"action";s:11:"upload_post";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"上传设置提交";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:164;a:12:{s:2:"id";s:3:"169";s:8:"parentid";s:1:"7";s:3:"app";s:6:"Portal";s:5:"model";s:9:"AdminPost";s:6:"action";s:4:"copy";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:18:"文章批量复制";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:165;a:12:{s:2:"id";s:3:"174";s:8:"parentid";s:3:"100";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Menu";s:6:"action";s:11:"backup_menu";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"备份菜单";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:166;a:12:{s:2:"id";s:3:"175";s:8:"parentid";s:3:"100";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Menu";s:6:"action";s:16:"export_menu_lang";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:30:"导出后台菜单多语言包";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:167;a:12:{s:2:"id";s:3:"176";s:8:"parentid";s:3:"100";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Menu";s:6:"action";s:12:"restore_menu";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:12:"还原菜单";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:168;a:12:{s:2:"id";s:3:"177";s:8:"parentid";s:3:"100";s:3:"app";s:5:"Admin";s:5:"model";s:4:"Menu";s:6:"action";s:10:"getactions";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"0";s:4:"name";s:15:"导入新菜单";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:169;a:12:{s:2:"id";s:3:"187";s:8:"parentid";s:3:"133";s:3:"app";s:5:"Admin";s:5:"model";s:7:"Actuser";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"微信用户";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:170;a:12:{s:2:"id";s:3:"188";s:8:"parentid";s:1:"0";s:3:"app";s:5:"Admin";s:5:"model";s:11:"Actquestion";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"炒股测评";s:4:"icon";s:15:"question-circle";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:171;a:12:{s:2:"id";s:3:"189";s:8:"parentid";s:3:"188";s:3:"app";s:5:"Admin";s:5:"model";s:11:"Actquestion";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"问题列表";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:172;a:12:{s:2:"id";s:3:"190";s:8:"parentid";s:3:"188";s:3:"app";s:5:"Admin";s:5:"model";s:10:"Actsubject";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"题目列表";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:173;a:12:{s:2:"id";s:3:"191";s:8:"parentid";s:3:"188";s:3:"app";s:5:"Admin";s:5:"model";s:11:"Actanswerer";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"回答列表";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:174;a:12:{s:2:"id";s:3:"192";s:8:"parentid";s:3:"188";s:3:"app";s:5:"Admin";s:5:"model";s:9:"Actresult";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"测评结果";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:175;a:12:{s:2:"id";s:3:"193";s:8:"parentid";s:1:"0";s:3:"app";s:5:"Admin";s:5:"model";s:7:"SyhJoin";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"悦华专区";s:4:"icon";s:7:"archive";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:176;a:12:{s:2:"id";s:3:"194";s:8:"parentid";s:3:"193";s:3:"app";s:5:"Admin";s:5:"model";s:7:"SyhJoin";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"报名列表";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:177;a:12:{s:2:"id";s:3:"195";s:8:"parentid";s:3:"193";s:3:"app";s:5:"Admin";s:5:"model";s:10:"SyhTeacher";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"老师列表";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:178;a:12:{s:2:"id";s:3:"196";s:8:"parentid";s:3:"193";s:3:"app";s:5:"Admin";s:5:"model";s:9:"SyhCourse";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"课程列表";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:179;a:12:{s:2:"id";s:3:"197";s:8:"parentid";s:1:"0";s:3:"app";s:5:"Admin";s:5:"model";s:8:"DykUsers";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"老师代言";s:4:"icon";s:5:"heart";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:180;a:12:{s:2:"id";s:3:"198";s:8:"parentid";s:3:"197";s:3:"app";s:5:"Admin";s:5:"model";s:8:"DykUsers";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"参与人员";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:181;a:12:{s:2:"id";s:3:"199";s:8:"parentid";s:1:"0";s:3:"app";s:5:"Admin";s:5:"model";s:12:"WuweiTeacher";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"无为专区";s:4:"icon";s:6:"adjust";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:182;a:12:{s:2:"id";s:3:"200";s:8:"parentid";s:3:"199";s:3:"app";s:5:"Admin";s:5:"model";s:12:"WuweiTeacher";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"老师管理";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:183;a:12:{s:2:"id";s:3:"201";s:8:"parentid";s:3:"199";s:3:"app";s:5:"Admin";s:5:"model";s:9:"WuweiJoin";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"报名列表";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:184;a:12:{s:2:"id";s:3:"202";s:8:"parentid";s:3:"199";s:3:"app";s:5:"Admin";s:5:"model";s:12:"WuweiArticle";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"评论列表";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:185;a:12:{s:2:"id";s:3:"203";s:8:"parentid";s:1:"0";s:3:"app";s:5:"Admin";s:5:"model";s:10:"FscContact";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"金融服务";s:4:"icon";s:3:"jpy";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:186;a:12:{s:2:"id";s:3:"204";s:8:"parentid";s:3:"203";s:3:"app";s:5:"Admin";s:5:"model";s:10:"FscContact";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:9:"开户人";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:187;a:12:{s:2:"id";s:3:"205";s:8:"parentid";s:1:"0";s:3:"app";s:5:"Admin";s:5:"model";s:11:"TianyiOrder";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"天翼阅读";s:4:"icon";s:4:"book";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:188;a:12:{s:2:"id";s:3:"206";s:8:"parentid";s:3:"205";s:3:"app";s:5:"Admin";s:5:"model";s:11:"TianyiOrder";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"订单列表";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:189;a:12:{s:2:"id";s:3:"207";s:8:"parentid";s:1:"0";s:3:"app";s:5:"Admin";s:5:"model";s:10:"MiguTicket";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"咪咕阅读";s:4:"icon";s:4:"book";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:190;a:12:{s:2:"id";s:3:"208";s:8:"parentid";s:3:"207";s:3:"app";s:5:"Admin";s:5:"model";s:10:"MiguTicket";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:9:"优惠券";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:191;a:12:{s:2:"id";s:3:"210";s:8:"parentid";s:1:"0";s:3:"app";s:5:"Admin";s:5:"model";s:12:"RuidaAppoint";s:6:"action";s:7:"default";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"瑞达期货";s:4:"icon";s:3:"jpy";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:192;a:12:{s:2:"id";s:3:"211";s:8:"parentid";s:3:"210";s:3:"app";s:5:"Admin";s:5:"model";s:12:"RuidaAppoint";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"申请列表";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}i:193;a:12:{s:2:"id";s:3:"212";s:8:"parentid";s:3:"207";s:3:"app";s:5:"Admin";s:5:"model";s:13:"MiguSubscribe";s:6:"action";s:5:"index";s:4:"data";s:0:"";s:4:"type";s:1:"1";s:6:"status";s:1:"1";s:4:"name";s:12:"订阅列表";s:4:"icon";s:0:"";s:6:"remark";s:0:"";s:9:"listorder";s:1:"0";}}
|
<!-- FOOTER -->
<footer id="footer">
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<div class="col-md-3">
<div class="footer-widget">
<div class="footer-logo">
<a href="index.html" class="logo"><img src="{{ asset('public/frontend/img/poor_corona-alt.png') }}" alt=""></a>
</div>
<p>Simple blog to prevent corona virus from trusted sources.</p>
<ul class="contact-social">
<li><a href="#" class="social-facebook"><i class="fa fa-facebook"></i></a></li>
<li><a href="#" class="social-twitter"><i class="fa fa-twitter"></i></a></li>
<li><a href="#" class="social-google-plus"><i class="fa fa-google-plus"></i></a></li>
<li><a href="#" class="social-instagram"><i class="fa fa-instagram"></i></a></li>
</ul>
</div>
</div>
<div class="col-md-3">
<div class="footer-widget">
<h3 class="footer-title">Categories</h3>
<div class="category-widget">
<ul>
@foreach($category_widget as $hasil)
<li><a href="{{ route('blog.category', $hasil->slug) }}">{{ $hasil->name }} <span>{{ $hasil->posts->count() }}</span></a></li>
@endforeach
</ul>
</div>
</div>
</div>
<div class="col-md-3">
<div class="footer-widget">
<h3 class="footer-title">Tags</h3>
<div class="tags-widget">
<ul>
@foreach($footer_tag as $hasil)
<li><a href="{{ route('blog.list') }}">{{ $hasil->name }}</a></li>
@endforeach
</ul>
</div>
</div>
</div>
<div class="col-md-3">
<div class="footer-widget">
<h3 class="footer-title">Newsletter</h3>
<div class="newsletter-widget">
<form>
<p>Subscribe to get latest information</p>
<input class="input" name="newsletter" placeholder="Enter Your Email">
<button class="primary-button">Subscribe</button>
</form>
</div>
</div>
</div>
</div>
<!-- /row -->
<!-- row -->
<div class="footer-bottom row">
<div class="col-md-6 col-md-push-6">
<ul class="footer-nav">
<li><a href="{{ url('') }}">Home</a></li>
<li><a href="{{ route('blog.list') }}">Category</a></li>
<li><a href="{{ route('blog.list') }}">List Post</a></li>
<li><a href="{{ route('blog.pasien') }}">Data Corona</a></li>
<li><a href="{{ route('blog.hotline') }}">Hotline</a></li>
</ul>
</div>
<div class="col-md-6 col-md-pull-6">
<div class="footer-copyright">
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved
</div>
</div>
</div>
<!-- /row -->
</div>
<!-- /container -->
</footer>
<!-- /FOOTER -->
<!-- jQuery Plugins -->
<script src="{{ asset('public/frontend/js/jquery.min.js') }}"></script>
<script src="{{ asset('public/frontend/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('public/frontend/js/jquery.stellar.min.js') }}"></script>
<script src="{{ asset('public/frontend/js/main.js') }}"></script>
</body>
</html>
|
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class MedicalRelationshipRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'title'=>'bail|required',
'description' => 'nullable',
'photo' => 'image|nullable|max:1999',
'type' => 'bail|required',
'link' => 'bail|required',
'responsible' => 'bail|required',
];
}
}
|
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the MIT license. For more information, see
* <http://www.doctrine-project.org>.
*/
namespace Doctrine\DBAL;
/**
* Class to store and retrieve the version of Doctrine
*
*
* @link www.doctrine-project.org
* @since 2.0
* @version $Revision$
* @author Benjamin Eberlei <kontakt@beberlei.de>
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @author Jonathan Wage <jonwage@gmail.com>
* @author Roman Borschel <roman@code-factory.org>
*/
class Version
{
/**
* Current Doctrine Version
*/
const VERSION = '2.3.4-DEV';
/**
* Compares a Doctrine version with the current one.
*
* @param string $version Doctrine version to compare.
* @return int Returns -1 if older, 0 if it is the same, 1 if version
* passed as argument is newer.
*/
public static function compare($version)
{
$currentVersion = str_replace(' ', '', strtolower(self::VERSION));
$version = str_replace(' ', '', $version);
return version_compare($version, $currentVersion);
}
}
|
<?php
namespace App\Http\Controllers\Backend;
use App\Models\Auth\User;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Jenssegers\Agent\Agent;
use Messenger;
class MessagesController extends Controller
{
public function index(Request $request){
$thread="";
$teachers = User::role('teacher')->get()->pluck('name', 'id');
auth()->user()->load('threads.messages.sender');
$unreadThreads = [];
$threads = [];
foreach(auth()->user()->threads as $item){
if($item->unreadMessagesCount > 0){
$unreadThreads[] = $item;
}else{
$threads[] = $item;
}
}
$threads = Collection::make(array_merge($unreadThreads,$threads)) ;
if(request()->has('thread') && ($request->thread != null)){
if(request('thread')){
$thread = auth()->user()->threads()
->where('message_threads.id','=',$request->thread)
->first();
//Read Thread
auth()->user()->markThreadAsRead($thread->id);
}else if($thread == ""){
abort(404);
}
}
$agent = new Agent();
if($agent->isMobile()){
$view = 'backend.messages.index-mobile';
}else{
$view = 'backend.messages.index-desktop';
}
return view($view, [
// 'threads' => auth()->user()->threads,
'threads' => $threads,
'teachers' => $teachers,
'thread' => $thread
]);
}
public function send(Request $request){
$this->validate($request,[
'recipients' => 'required',
'message' => 'required'
],[
'recipients.required' => 'Please select at least one recipient',
'message.required' => 'Please input your message'
]);
$message = Messenger::from(auth()->user())->to($request->recipients)->message($request->message)->send();
return redirect(route('admin.messages').'?thread='.$message->thread_id);
}
public function reply(Request $request){
$this->validate($request,[
'message' => 'required'
],[
'message.required' => 'Please input your message'
]);
$thread = auth()->user()->threads()
->where('message_threads.id','=',$request->thread_id)
->first();
$message = Messenger::from(auth()->user())->to($thread)->message($request->message)->send();
return redirect(route('admin.messages').'?thread='.$message->thread_id)->withFlashSuccess('Message sent successfully');
}
public function getUnreadMessages(Request $request){
$unreadMessageCount = auth()->user()->unreadMessagesCount;
$unreadThreads = [];
foreach(auth()->user()->threads as $item){
if($item->unreadMessagesCount > 0){
$data = [
'thread_id' => $item->id,
'message' => str_limit($item->lastMessage->body, 35),
'unreadMessagesCount' => $item->unreadMessagesCount,
'title' => $item->title
];
$unreadThreads[] = $data;
}
}
return ['unreadMessageCount' =>$unreadMessageCount,'threads' => $unreadThreads];
}
}
|
<?php if (!defined('THINK_PATH')) exit();?>内容管理 > 产品中心
|
<?php
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative, then do not
* install or use this SugarCRM file.
*
* Copyright (C) SugarCRM Inc. All rights reserved.
*/
/*********************************************************************************
* Description: Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
$mod_strings = array (
'LBL_MODULE_NAME' => 'أسعار الضريبة',
'LBL_MODULE_NAME_SINGULAR' => 'سعر الضريبة',
'LBL_MODULE_TITLE' => 'سعر الضريبة: الصفحة الرئيسية',
'LBL_SEARCH_FORM_TITLE' => 'البحث عن سعر الضريبة',
'LBL_LIST_FORM_TITLE' => 'لائحة سعر الضريبة',
'LBL_NEW_FORM_TITLE' => 'سعر الضريبة الجديد',
'LBL_TAXRATE' => 'سعر الضريبة:',
'LBL_LIST_NAME' => 'اسم سعر الضريبة',
'LBL_NAME' => 'اسم سعر الضريبة:',
'LBL_FILTER_ACTIVE' => 'أسعار الضريبة السارية',
'LBL_LIST_LIST_ORDER' => 'الطلب',
'LBL_LIST_ORDER' => 'الطلب:',
'LBL_LIST_STATUS' => 'الحالة',
'LBL_STATUS' => 'الحالة:',
'LBL_LIST_VALUE' => 'النسبة المئوية',
'LBL_VALUE' => 'النسبة المئوية (%):',
'LNK_NEW_SHIPPER' => 'لائحة مزودي الشحن',
'LNK_NEW_TAXRATE' => 'لائحة سعر الضريبة',
'LNK_IMPORT_TAXRATES' => 'استيراد أسعار الضريبة',
'NTC_DELETE_CONFIRMATION' => 'هل تريد بالتأكيد حذف هذا السجل؟',
'ERR_DELETE_RECORD' => 'يجب عليك تحديد رقم السجل لحذف سعر الضريبة.',
'NTC_STATUS' => 'قم بتعيين الحالة على "غير نشط" لإزالة سعر الضريبة هذا من القوائم المنسدلة "سعر الضريبة"',
'NTC_LIST_ORDER' => 'قم بتعيين الترتيب الذي سيظهر به سعر الضريبة هذا في القوائم المنسدلة "سعر الضريبة"',
'LBL_EDITLAYOUT' => 'تعديل المخطط' /*for 508 compliance fix*/,
'LBL_CREATED_ID'=>'تم الإنشاء بواسطة المعرّف',
'LBL_MODIFIED_ID'=>'تم التعديل بواسطة المعرّف',
//For export labels
'LBL_EXPORT_MODIFIED_USER_ID'=> 'معرّف المستخدم المعدل',
'LBL_EXPORT_CREATED_BY'=> 'تم الإنشاء بواسطة المعرّف',
);
?>
|
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Schema::defaultStringLength(191);
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}
|
<?php
namespace Laminas\ApiTools\Admin\Ui;
class Module
{
/**
* @return array<string, mixed>
*/
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Bootstrap 4 Starter Pack</title>
<!-- bootstrap cdn here -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<!-- fontawesome cdn here -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.css"> -->
<!-- custom style sheet here -->
<link href="{{asset('css/style.css')}}" rel="stylesheet" type="text/css">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Bootstrap 4 Starter Pack</title>
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<nav class="navbar navbar-expand-sm navbar-dark bg-dark p-0">
<div class="container">
<a href="index.html" class="navbar-brand">CMS</a>
<button class="navbar-toggler" data-toggle="collapse" data-target="#navbarNav"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item px-2">
<a href="index.html" class="nav-link">Dashboard</a>
</li>
<li class="nav-item px-2">
<a href="posts.html" class="nav-link">Posts</a>
</li>
<li class="nav-item px-2">
<a href="categories.html" class="nav-link">Categories</a>
</li>
<li class="nav-item px-2">
<a href="student_registration.html" class="nav-link active">Students</a>
</li>
<li class="nav-item px-2">
<a href="print_result.html" class="nav-link active">Print Result</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown mr-3">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-user"></i> Welcome Staff
</a>
<div class="dropdown-menu">
<a href="" class="dropdown-item">
<i class="fa fa-user-circle"> Profile</i>
</a>
<a href="" class="dropdown-item">
<i class="fa fa-gear"> Settings</i>
</a>
</div>
</li>
<li class="nav-item">
<a href="login.html" class="nav-link">
<i class="fa fa-user-times"></i> Logout
</a>
</li>
</ul>
</div>
</div>
</nav>
<header class="py-2 bg-warning text-white" id="main-header">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6">
<h1 class="text-center"><i class="fa fa-envelope"></i> Students</h1>
</div>
</div>
</div>
</header>
<!-- SIDEBAR SECTION -->
<div class="col-lg-2">
</div>
<div class="col-lg-10">
<!-- MESSAGE SECTION -->
@if (session('status'))
<section class="pt-2">
<div class="container">
<div class="row justify-content-center text-danger">
<p >{{session('status')}}</p>
</div>
</div>
</section>
@endif
<!-- ACTIONS -->
<section class="py-4 mb-4 bg-light" id="action">
<div class="container">
<div class="row">
<div class="col-md-3">
<a href="#" class="btn btn-primary btn-block" data-toggle="modal" data-target="#addSubjectModal">
<i class="fa fa-plus"> Add Student</i>
</a>
</div>
<div class="col-md-3">
<a href="#" class="btn btn-success btn-block" data-toggle="modal" data-target="#addCategoryModal">
<i class="fa fa-table"> Compute All Results</i>
</a>
</div>
<div class="col-md-3">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search">
<span class="input-group-btn">
<button class="btn btn-success "> Search</button>
</span>
</div>
</div>
</div>
</div>
</section>
<!-- Users -->
<section id="posts">
<div class="container">
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
<h4>Registered Students</h4>
</div>
{!! Form::open(array('action' => 'StudentController@store', 'method' => 'POST'))!!}
<!-- <div class="row">
<div class="col-sm-3">
<h3>Your Avatar</h3>
<img src="img/avatar.png" alt="profile picture" class="d-block img-fluid mb-3">
<button class="btn btn-block btn-primary">Edit Image</button>
</div>
</div> -->
<div class="row">
<!-- <div class="form-group col-sm-4">
{!!Form::label('registration_number', 'Registration Number')!!}
{!!Form::text('registration_number', null, ['class' => 'form-control'])!!}
</div> -->
<div class="form-group col-sm-6">
{!!Form::label('firstname', 'First Name') !!}
{!!Form::text('firstname', null, ['class' => 'form-control'])!!}
</div>
<div class="form-group col-sm-6">
{!!Form::label('lastname', 'Last Name') !!}
{!!Form::text('lastname', null, ['class' => 'form-control'])!!}
</div>
</div>
<div class="row">
<div class="form-group col-sm-4">
{!!Form::label('othername', 'Other Name') !!}
{!!Form::text('othername', null, ['class' => 'form-control'])!!}
</div>
<div class="form-group col-sm-4">
{!!Form::label('nationality', 'Nationality') !!}
{!!Form::text('nationality', null, ['class' => 'form-control'])!!}
</div>
<div class="form-group col-sm-4">
{!!Form::label('state', 'State') !!}
{!!Form::text('state', null, ['class' => 'form-control'])!!}
</div>
</div>
<div class="row">
<div class="form-group col-sm-4">
{!!Form::label('LGA', 'LGA') !!}
{!!Form::text('LGA', null, ['class' => 'form-control'])!!}
</div>
<div class="form-group col-sm-4">
{!!Form::label('religion', 'Religion') !!}
{!!Form::text('religion', null, ['class' => 'form-control'])!!}
</div>
<div class="form-group col-sm-4">
{!!Form::label('gender', 'Gender') !!}
{!!Form::text('gender', null, ['class' => 'form-control'])!!}
</div>
</div>
<div class="row">
<div class="form-group col-sm-4">
{!!Form::label('DOB', 'DOB') !!}
{!!Form::text('DOB', null, ['class' => 'form-control'])!!}
</div>
<div class="form-group col-sm-4">
{!!Form::label('mobile_number', 'Parent Phone') !!}
{!!Form::text('mobile_number', null, ['class' => 'form-control'])!!}
</div>
<div class="form-group col-sm-4">
{!!Form::label('class_id', 'Class') !!}
{!!Form::text('class_id', null, ['class' => 'form-control'])!!}
</div>
</div>
<div class="row">
<div class="form-group col-sm-12">
{!!Form::submit('Create Student', ['class' => 'btn btn-primary d-block'])!!}
</div>
</div>
{!! Form::close() !!}
<nav class="ml-4">
<ul class="pagination">
<li class="page-item disabled"><a href="#" class="page-link">Previous</a></li>
<li class="page-item active"><a href="#" class="page-link">1</a></li>
<li class="page-item"><a href="#" class="page-link">2</a></li>
<li class="page-item"><a href="#" class="page-link">3</a></li>
<li class="page-item"><a href="#" class="page-link">Next</a></li>
</ul>
</nav>
</div>
</div>
</div>
</div>
</section>
<footer class="bg-dark text-white mt-5 p-5" id="main-footer">
<div class="container">
<div class="row">
<div class="col">
<p class="lead text-center">Copyright © 2017 Blogen</p>
</div>
</div>
</div>
</footer>
</div>
<!-- POST MODAL -->
<div class="modal fade" id="addPostModal">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header bg-primary text-white">
<h5 class="modal-title">Add Student</h5>
<button class="close" data-dismiss="modal"><span>×</span></button>
</div>
<div class="modal-body">
<form>
<div class="row">
<div class="col-sm-3">
<h3>Your Avatar</h3>
<img src="img/avatar.png" alt="profile picture" class="d-block img-fluid mb-3">
<button class="btn btn-block btn-primary">Edit Image</button>
</div>
</div>
<div class="row">
<div class="form-group col-sm-4">
<label for="title">Registration Number</label>
<input type="text" class="form-control">
</div>
<div class="form-group col-sm-4">
<label for="title">First Name</label>
<input type="text" class="form-control">
</div>
<div class="form-group col-sm-4">
<label for="title">Surname</label>
<input type="text" class="form-control">
</div>
</div>
<div class="row">
<div class="form-group col-sm-4">
<label for="title">Other Name</label>
<input type="text" class="form-control">
</div>
<div class="form-group col-sm-4">
<label for="category">Nationality</label>
<select type="text" class="form-control">
</select>
</div>
<div class="form-group col-sm-4">
<label for="category">State</label>
<select type="text" class="form-control">
</select>
</div>
</div>
<div class="row">
<div class="form-group col-sm-4">
<label for="category">LGA</label>
<select type="text" class="form-control">
</select>
</div>
<div class="form-group col-sm-4">
<label for="category">Religion</label>
<select type="text" class="form-control">
</select>
</div>
<div class="form-group col-sm-4">
<label for="category">Gender</label>
<select type="text" class="form-control">
</select>
</div>
</div>
<div class="row">
<div class="form-group col-sm-4">
<label for="title">DOB</label>
<input type="text" class="form-control">
</div>
<div class="form-group col-sm-4">
<label for="title">Parent Phone</label>
<input type="text" class="form-control">
</div>
<div class="form-group col-sm-4">
<label for="title">Address</label>
<input type="text" class="form-control">
</div>
</div>
<div class="row">
<div class="form-group col-sm-4">
<label for="category">Session</label>
<select type="text" class="form-control">
</select>
</div>
<div class="form-group col-sm-4">
<label for="category">Class</label>
<select type="text" class="form-control">
</select>
</div>
<div class="form-group col-sm-4">
<label for="category">Form Master</label>
<select type="text" class="form-control">
</select>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-dismiss="modal">Close</button>
<button class="btn btn-primary" data-dismiss="modal">Save Changes</button>
</div>
</div>
</div>
</div>
<!-- USER MODAL -->
<div class="modal fade" id="addUserModal">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header bg-warning text-white">
<h5 class="modal-title">Add User</h5>
<button class="close" data-dismiss="modal"><span>×</span></button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="name">Name</label>
<input type="text" class="form-control">
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" class="form-control">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control">
</div>
<div class="form-group">
<label for="password">Confirm Password</label>
<input type="password" class="form-control">
</div>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-dismiss="modal">Close</button>
<button class="btn btn-warning" data-dismiss="modal">Save Changes</button>
</div>
</div>
</div>
</div>
<!-- DELETE STUDENT MODAL -->
<div class="modal fade" id="deleteStudentModal">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header bg-primary text-white">
<h5 class="modal-title">Confirm Deletion</h5>
<button class="close" data-dismiss="modal"><span>×</span></button>
</div>
<div class="modal-body">
<form>
<div class="row">
<div class="form-group col-sm-4">
<label for="category">Session</label>
<input type="text" class="form-control">
</div>
<div class="form-group col-sm-4">
<label for="category">Class</label>
<input type="text" class="form-control" value="">
</div>
<div class="form-group col-sm-4">
<label for="category">Student</label>
<input type="text" class="form-control" value="Stanley John">
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-dismiss="modal">Close</button>
<button class="btn btn-danger" data-dismiss="modal">Confirm Delete</button>
</div>
</div>
</div>
</div>
<!-- SUBJECT MODAL -->
<div class="modal fade" id="addSubjectModal">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header bg-warning text-white">
<h5 class="modal-title">Add Subject</h5>
<button class="close" data-dismiss="modal"><span>×</span></button>
</div>
{!! Form::open(array('action' => 'SubjectController@store', 'method' => 'POST'))!!}
<div class="modal-body">
<div class="form-group">
{!! Form::label('name', 'Name') !!}
{!! Form::text('name', null ['class' => 'form-control']) !!}
</div>
</div>
<div class="modal-footer">
{!! Form::submit('Close', ['class' => 'btn btn-secondary', 'data-dismiss' => 'modal']) !!}
{!! Form::submit('Submit', ['class' => 'btn btn-warning']) !!}
</div>
{!! Form::close()!!}
</div>
</div>
</div>
<!-- DELETE STUDENT MODAL -->
<div class="modal fade" id="deleteStudentModal">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header bg-primary text-white">
<h5 class="modal-title">Confirm Deletion</h5>
<button class="close" data-dismiss="modal"><span>×</span></button>
</div>
<div class="modal-body">
<form>
<div class="row">
<div class="form-group col-sm-4">
<label for="category">Session</label>
<input type="text" class="form-control">
</div>
<div class="form-group col-sm-4">
<label for="category">Class</label>
<input type="text" class="form-control" value="">
</div>
<div class="form-group col-sm-4">
<label for="category">Student</label>
<input type="text" class="form-control" value="Stanley John">
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-dismiss="modal">Close</button>
<button class="btn btn-danger" data-dismiss="modal">Confirm Delete</button>
</div>
</div>
</div>
</div>
<!-- <script src="js/jquery.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script> -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
</body>
</html>
|
<?php
/* config/form_display/fieldset_top.twig */
class __TwigTemplate_f88368a902741cb2d40c24b5ff89d4efc954ca7ebf2c6b22ec6efa4afc53eb4a extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 1
echo "<fieldset";
// line 2
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["attributes"] ?? null));
foreach ($context['_seq'] as $context["key"] => $context["value"]) {
// line 3
echo " ";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "=\"";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\"";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 4
echo ">
<legend>";
// line 5
echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true);
echo "</legend>
";
// line 6
if ( !twig_test_empty(($context["description"] ?? null))) {
// line 7
echo " <p>";
echo ($context["description"] ?? null);
echo "</p>
";
}
// line 10
if ((twig_test_iterable(($context["errors"] ?? null)) && (twig_length_filter($this->env, ($context["errors"] ?? null)) > 0))) {
// line 11
echo " <dl class=\"errors\">
";
// line 12
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["errors"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 13
echo " <dd>";
echo twig_escape_filter($this->env, $context["error"], "html", null, true);
echo "</dd>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 15
echo " </dl>
";
}
// line 17
echo "<table width=\"100%\" cellspacing=\"0\">
";
}
public function getTemplateName()
{
return "config/form_display/fieldset_top.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 72 => 17, 68 => 15, 59 => 13, 55 => 12, 52 => 11, 50 => 10, 44 => 7, 42 => 6, 38 => 5, 35 => 4, 25 => 3, 21 => 2, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("", "config/form_display/fieldset_top.twig", "D:\\phpstudy_pro\\WWW\\a_zhijin\\public\\phpMyAdmin4.8.5\\templates\\config\\form_display\\fieldset_top.twig");
}
}
|
@extends('backEnd.master')
@section('mainContent')
<section class="sms-breadcrumb mb-40 white-box">
<div class="container-fluid">
<div class="row justify-content-between">
<h1>@lang('lang.exam')</h1>
<div class="bc-pages">
<a href="{{url('dashboard')}}">@lang('lang.dashboard')</a>
<a href="#">@lang('lang.examinations')</a>
<a href="#">@lang('lang.exam')</a>
</div>
</div>
</div>
</section>
<section class="admin-visitor-area">
@if(isset($exam))
{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'url' => 'exam-setup-store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
@else
{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'url' => 'exam',
'method' => 'PUT', 'enctype' => 'multipart/form-data']) }}
@endif
<div class="container-fluid p-0">
<div class="row">
<div class="col-lg-3">
<div class="row">
<div class="col-lg-12">
<div class="main-title">
<h3 class="mb-30">@if(isset($exam))
@lang('lang.add')
@else
@lang('lang.update')
@endif
@lang('lang.exam')
</h3>
</div>
<div class="white-box">
<div class="add-visitor">
<div class="row">
<div class="col-lg-12">
@if(session()->has('message-success'))
<div class="alert alert-success">
{{ session()->get('message-success') }}
</div>
@elseif(session()->has('message-danger'))
<div class="alert alert-danger">
{{ session()->get('message-danger') }}
</div>
@endif
<input type="hidden" name="url" id="url" value="{{URL::to('/')}}">
</div>
</div>
<div class="row mt-25">
<div class="col-lg-12">
<label>@lang('lang.select') @lang('lang.classes')</label>
@php $h = 0; @endphp
@foreach($classes as $class)
<div class="input-effect">
<input type="checkbox" id="classes_{{$class->id}}" class="common-checkbox" name="class_ids[]" value="{{$class->id}}" {{ (is_array(old('class_ids')) and in_array($class->id, old('class_ids'))) ? ' checked' : '' }}>
<label for="classes_{{$class->id}}">{{$class->class_name}}</label>
</div>
@php $h++; @endphp
@endforeach
</div>
<div class="col-lg-12">
@if($errors->has('class_ids'))
<span class="text-danger validate-textarea-checkbox" role="alert">
<strong>{{ $errors->first('class_ids') }}</strong>
</span>
@endif
</div>
</div>
<div class="row mt-25">
<div class="col-lg-12">
<label>@lang('lang.select_section')</label>
@foreach($sections as $section)
<div class="input-effect">
<input type="checkbox" id="sections_{{$section->id}}" class="common-checkbox" name="section_ids[]" value="{{$section->id}}">
<label for="sections_{{$section->id}}">{{$section->section_name}}</label>
</div>
@endforeach
</div>
<div class="col-lg-12">
@if($errors->has('section_ids'))
<span class="text-danger validate-textarea-checkbox" role="alert">
<strong>{{ $errors->first('section_ids') }}</strong>
</span>
@endif
</div>
</div>
<div class="row mt-25">
<div class="col-lg-12">
<label>@lang('lang.select_subjects')</label>
@foreach($subjects as $subject)
<div class="input-effect">
<input type="checkbox" id="subjects_{{$subject->id}}" class="common-checkbox" name="subjects_ids[]" value="{{$subject->id}}">
<label for="subjects_{{$subject->id}}">{{$subject->subject_name}}</label>
</div>
@endforeach
</div>
<div class="col-lg-12">
@if($errors->has('subjects_ids'))
<span class="text-danger validate-textarea-checkbox" role="alert">
<strong>{{ $errors->first('subjects_ids') }}</strong>
</span>
@endif
</div>
</div>
<div class="row mt-25">
<div class="col-lg-12">
<div class="input-effect">
<input class="primary-input form-control{{ $errors->has('name') ? ' is-invalid' : '' }}"
type="number" name="name" id="name" autocomplete="off" value="{{isset($exam)? $exam->name:''}}" readonly="">
<label>@lang('lang.exam_terms')</label>
<span class="focus-border"></span>
@if ($errors->has('name'))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('name') }}</strong>
</span>
@endif
</div>
</div>
</div>
<div class="row mt-25">
<div class="col-lg-12">
<input type="hidden" name="exam_term_id" value="{{$exam->id}}">
<select class="w-100 bb niceSelect form-control {{ $errors->has('class') ? ' is-invalid' : '' }}" id="select_class" name="class">
<option data-display="@lang('lang.select_class') *" value="">@lang('lang.select_class') *</option>
@foreach($classes as $class)
<option value="{{$class->id}}" {{isset($exam)? ($class->id == $exam->class_id? 'selected':''): (old('class') == $class->id? 'selected':'')}}>{{$class->class_name}}</option>
@endforeach
</select>
@if ($errors->has('class'))
<span class="invalid-feedback invalid-select" role="alert">
<strong>{{ $errors->first('class') }}</strong>
</span>
@endif
</div>
</div>
<div class="row mt-25">
<div class="col-lg-12 mt-30-md" id="select_section_div">
<select class="w-100 bb niceSelect form-control{{ $errors->has('section') ? ' is-invalid' : '' }} select_section" id="select_section" name="section" readonly="">
<option data-display="@lang('lang.select_section') *" value="">@lang('lang.select_section') *</option>
@if(isset($exam))
@foreach($sections as $section)
<option value="{{$section->id}}" {{$exam->section_id == $section->id? 'selected': ''}}>{{$section->section_name}}</option>
@endforeach
@endif
</select>
@if ($errors->has('section'))
<span class="invalid-feedback invalid-select" role="alert">
<strong>{{ $errors->first('section') }}</strong>
</span>
@endif
</div>
</div>
<div class="row mt-25">
<div class="col-lg-12" id="select_subject_div">
<select class="w-100 bb niceSelect form-control{{ $errors->has('subject') ? ' is-invalid' : '' }}" id="select_subject" name="subject" readonly="">
<option data-display="@lang('lang.select_subjects') *" value="">@lang('lang.select_subjects') *</option>
@if(isset($exam))
@foreach($subjects as $subject)
<option value="{{$subject->id}}" {{$exam->subject_id == $subject->id? 'selected': ''}}>{{$subject->subject_name}}</option>
@endforeach
@endif
</select>
@if ($errors->has('subject'))
<span class="invalid-feedback invalid-select" role="alert">
<strong>{{ $errors->first('subject') }}</strong>
</span>
@endif
</div>
</div>
<div class="row mt-25">
<div class="col-lg-12">
<div class="input-effect">
<input class="primary-input form-control{{ $errors->has('name') ? ' is-invalid' : '' }}"
type="text" name="name" autocomplete="off" value="{{isset($exam)? $exam->name:''}}">
<input type="hidden" name="id" value="{{isset($exam)? $exam->id: ''}}" readonly="">
<label>@lang('lang.exam_name')<span>*</span></label>
<span class="focus-border"></span>
@if ($errors->has('name'))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('name') }}</strong>
</span>
@endif
</div>
</div>
</div>
<div class="row mt-25">
<div class="col-lg-12">
<div class="input-effect">
<input class="primary-input form-control{{ $errors->has('exam_mark') ? ' is-invalid' : '' }}"
type="number" name="total_exam_mark" id="exam_mark_main" autocomplete="off" value="{{isset($exam)? $exam->exam_mark:''}}" readonly="">
<label>@lang('lang.exam_mark')</label>
<span class="focus-border"></span>
@if ($errors->has('exam_mark'))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('exam_mark') }}</strong>
</span>
@endif
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-4 no-gutters">
<div class="main-title">
<h3 class="mb-30">@lang('lang.add_mark_distributions')</h3>
</div>
</div>
<div class="offset-lg-6 col-lg-2 text-right col-md-6">
<button type="button" class="primary-btn small fix-gr-bg" onclick="addRowMark();" id="addRowBtn">
<span class="ti-plus pr-2"></span>
@lang('lang.add')
</button>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="white-box">
<table class="table" id="productTable">
<thead>
<tr>
<th>@lang('lang.exam_title')</th>
<th>@lang('lang.exam_mark')</th>
<th>@lang('lang.action')</th>
</tr>
</thead>
<tbody>
<tr id="row1" class="0">
<td class="border-top-0">
<input type="hidden" name="url" id="url" value="{{URL::to('/')}}">
<div class="input-effect">
<input class="primary-input form-control{{ $errors->has('exam_title') ? ' is-invalid' : '' }}"
type="text" id="exam_title" name="exam_title[]" autocomplete="off" value="{{isset($editData)? $editData->exam_title : '' }}" placeholder="@lang('lang.exam_title')">
</div>
</td>
<td class="border-top-0">
<div class="input-effect">
<input class="primary-input form-control{{ $errors->has('exam_mark') ? ' is-invalid' : '' }} exam_mark"
type="text" id="exam_mark" name="exam_mark[]" autocomplete="off" value="{{isset($editData)? $editData->exam_mark : '' }}">
</div>
</td>
<td>
<button class="primary-btn icon-only bg-danger text-light" type="button">
<span class="ti-trash"></span>
</button>
</td>
</tr>
<tfoot>
<tr>
<th class="border-top-0">@lang('lang.total')</th>
<th class="border-top-0" id="totalMark">
<input type="text" class="primary-input form-control" name="totalMark" readonly="true">
</th>
<th class="border-top-0"></th>
</tr>
</tfoot>
</tbody>
</table>
</div>
</div>
</div>
<div class="row mt-30">
<div class="col-lg-12">
<div class="white-box">
<div class="row mt-40">
<div class="col-lg-12 text-center">
<button class="primary-btn fix-gr-bg">
<span class="ti-check"></span>
@if(isset($exam))
@lang('lang.edit')
@else
@lang('lang.add')
@endif
@lang('lang.mark_distribution')
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{{ Form::close() }}
</section>
@endsection
|
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
];
/**
* The application's route middleware groups.
*
* @var array
*/
protected $middlewareGroups = [
'web' => [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
'api' => [
'throttle:60,1',
'bindings',
],
];
/**
* The application's route middleware.
*
* These middleware may be assigned to groups or used individually.
*
* @var array
*/
protected $routeMiddleware = [
'auth' => \App\Http\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
'can' => \Illuminate\Auth\Middleware\Authorize::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
'admin'=> \App\Http\Middleware\Admin::class,
'estateagent'=> \App\Http\Middleware\EstateAgent::class,
'externalconsultant' => \App\Http\Middleware\ExternalConsultant::class,
'buyer' => \App\Http\Middleware\Buyer::class
];
}
|
@extends('layouts.admin')
@section('title', 'Delete Administrator')
@section('content')
<div class="row">
<div class="spacer-50"></div>
<h2 class="center-text">Delete Administrator</h2>
<div class="spacer-20"></div>
<div class="col-sm-3"></div>
<div class="col-sm-6">
<div class="card">
<div class="card-header">Are you sure you want to delete {{ $admin->first_name }} {{ $admin->last_name }}?</div>
<div class="card-block">
{!! link_to_route('admin.destroy', "Delete", ['admin' => $admin->id], ['class' => 'btn btn-danger btn-sm', 'role' => 'button']) !!}
{!! link_to_route('admin.index', "Cancel", [], ['class' => 'btn btn-secondary btn-sm', 'role' => 'button']) !!}
</div>
</div>
</div>
</div>
@endsection
|
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Auth;
use App\KeepEvent;
class KeepController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
$keep = new KeepEvent;
$keep ->event_id = $request->event_id;
$keep ->user_id = Auth::id();
$keep ->save();
return redirect()->route('events.show', $keep ->event_id)->with('flash_message', 'お気に入りに追加しました');
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($eventId, $keepId)
{
$keep = keepEvent::find($keepId);
$keep->delete();
return redirect()->route('events.show', $eventId)->with('flash_message', 'お気に入りを取り消しました');
}
}
|
<?php
namespace app\home\controller;
use think\Db;
class Ajax extends Home
{
//上传用户身份证
public function imgUser()
{
if (!userid()) {
echo "nologin";
}
$upload = new \Think\Upload();
$upload->maxSize = 3145728;
$upload->exts = array('jpg', 'gif', 'png', 'jpeg');
$upload->rootPath = './Upload/idcard/';
$upload->autoSub = false;
$info = $upload->upload();
foreach ($info as $k => $v) {
$path = $v['savepath'] . $v['savename'];
echo $path;
exit();
}
}
public function getJsonMenu($ajax = 'json')
{
$data = (config('app.develop') ? null : cache('getJsonMenu'));
if (!$data) {
foreach (cache('market') as $k => $v) {
$v['xnb'] = explode('_', $v['name'])[0];
$v['rmb'] = explode('_', $v['name'])[1];
$data[$k]['name'] = $v['name'];
$data[$k]['img'] = $v['xnbimg'];
$data[$k]['title'] = $v['title'];
}
cache('getJsonMenu', $data);
}
if ($ajax) {
exit(json_encode($data));
} else {
return $data;
}
}
public function getJsonTopshow($market = NULL, $ajax = 'json')
{
$data = (config('app.develop') ? null : cache('getJsonTopshow' . $market));
$showcoin = Db::name('market')->where('fshow', 1)->select();
foreach ($showcoin as $k => $v) {
$v['xnb'] = explode('_', $v['name'])[0];
$v['rmb'] = explode('_', $v['name'])[1];
$data[$k]['name'] = $v['xnb'] ;
$data[$k]['title'] = strtoupper($v['xnb']) ;
$data[$k]['new_price'] =round($v['new_price'],2) ;
$data[$k]['change'] = $v['change'];
if ($v['change']>0) {
$data[$k]['zd']=1;//涨
} elseif ($v['change']<0) {
$data[$k]['zd']=2;//跌
} else {
$data[$k]['zd']=0;//平
}
$data[$k]['cje'] = round($v['volume'] * $v['new_price'], 2);
if ($data[$k]['volume'] > 10000 && $data[$k]['volume'] < 100000000) {
$data[$k]['cjl'] = (intval($data[$k]['volume'] / 10000*100)/100) . "万";
}
if ($data[$k]['volume'] > 100000000) {
$data[$k]['cjl'] = (intval($data[$k]['volume'] / 100000000*100)/100) . "亿";
}
if ($data[$k]['cje'] > 10000 && $data[$k]['cje'] < 100000000) {
$data[$k]['cje']= (intval($data[$k]['cje'] / 10000*100)/100) . "万";
}
if ($data[$k]['cje'] > 100000000) {
$data[$k]['cje'] = (intval($data[$k]['cje'] / 100000000*100)/100) . "亿";
}
}
cache('getJsonTopshow' , $data);
if ($ajax) {
// var_dump(json_encode($data));die;
exit(json_encode($data));
} else {
return $data;
}
}
/** 自定义分区查询 改.HAOMA20181030 **/
public function allcoin_a($id=1,$ajax='json')
{
$trandata_data = [];
$trandata_data['info'] = "数据异常";
$trandata_data['status'] = 0;
$trandata_data['url'] = "";
// 市场交易记录
$marketLogs = [];
foreach (cache('market') as $k => $v) {
$_tmp = null;
if (!empty($_tmp)) {
$marketLogs[$k] = $_tmp;
} else {
$_data = [];
$tradeLog = Db::name('TradeLog')->where('status', 1)->where('market', $k)->order('id desc')->limit(10)->select();
foreach ($tradeLog as $_k => $v) {
$_data['tradelog'][$_k]['addtime'] = date('m-d H:i:s', $v['addtime']);
$_data['tradelog'][$_k]['addtimes'] = $v['addtime'];
$_data['tradelog'][$_k]['type'] = $v['type'];
$_data['tradelog'][$_k]['price'] = $v['price'] * 1;
$_data['tradelog'][$_k]['num'] = round($v['num'], 6);
$_data['tradelog'][$_k]['mum'] = round($v['mum'], 2);
}
$marketLogs[$k] = $_data;
cache('getTradelog' . $k, $_data);
}
}
$volume_24h = [];
$tradeAmount_24h = [];
if ($marketLogs) {
foreach (cache('market') as $k => $v) {
$_tradeLogs['num'] = Db::name('TradeLog')
->where('status', 1)
->where('market', $k)
->where('addtime', 'gt', time() - (60 * 60 * 24))
->sum('num');
$_tradeLogs['mum'] = Db::name('TradeLog')
->where('status', 1)
->where('market', $k)
->where('addtime', 'gt', time() - (60 * 60 * 24))
->sum('mum');
if ($_tradeLogs) {
$volume_24h[$k] = round($_tradeLogs['num'], 4); // 24小时 交易量
$tradeAmount_24h[$k] = round($_tradeLogs['mum'], 4); // 24小时 交易额
}
}
}
/* if ($marketLogs) {
$_lasttime = time() - 86400;
foreach (cache('market') as $k => $v) {
$tradeLog = isset($marketLogs[$k]['tradelog']) ? $marketLogs[$k]['tradelog'] : null;
if ($tradeLog) {
$num_s = 0;
$mum_s = 0;
foreach ($tradeLog as $_k => $_v) {
if ($_v['addtimes'] < $_lasttime) {
continue;
}
$num_s += $_v['num'];
$mum_s += $_v['mum'];
}
$volume_24h[$k] = $num_s; // 24小时 交易量
$tradeAmount_24h[$k] = $mum_s; // 24小时 交易额
}
}
}*/
if (!$data) {
$trandata_data['info'] = "数据正常";
$trandata_data['status'] = 1;
$trandata_data['url'] = "";
foreach (cache('market') as $k => $v)
{
if ($v['jiaoyiqu'] == $id) {
$xnb = strtoupper(explode('_', $v['name'])[0]);
$market = strtoupper(explode('_', $v['name'])[1]);
//币种简称
$trandata_data['url'][$k][0] = $xnb;
//币种市场
$trandata_data['url'][$k][1] = $market;
//最新成交价
$trandata_data['url'][$k][2] = round($v['new_price'], $v['round']);
//买一价
$trandata_data['url'][$k][3] = round($v['buy_price'], $v['round']);
//卖一价
$trandata_data['url'][$k][4] = round($v['sell_price'], $v['round']);
//交易额
$trandata_data['url'][$k][5] = isset($tradeAmount_24h[$k]) ? $tradeAmount_24h[$k] : 0;//round($v['volume'] * $v['new_price'], 2) * 1;
$trandata_data['url'][$k][6] = '';
//交易量
$trandata_data['url'][$k][7] = isset($volume_24h[$k]) ? $volume_24h[$k] : 0;//round($v['volume'], 4) * 1;
//涨跌幅
$trandata_data['url'][$k][8] = round($v['change'], 2);
//链接专用
$trandata_data['url'][$k][9] = $v['name'];
//图图标地址
$trandata_data['url'][$k][10] = $v['xnbimg'];
//最高价
$trandata_data['url'][$k][11] = round($v['max_price'], $v['round']);
//最低价
$trandata_data['url'][$k][12] = round($v['min_price'], $v['round']);
$trandata_data['url'][$k][13] = '';
}
}
}
if ($ajax) {
echo json_encode($trandata_data);
unset($trandata_data);
exit();
} else {
return $trandata_data;
}
}
public function index_b_trends($ajax = 'json')
{
$data = (config('app.develop') ? null : cache('trends'));
if (!$data) {
foreach (cache('market') as $k => $v) {
$tendency = json_decode($v['tendency'], true);
$data[$k]['data'] = $tendency;
$data[$k]['yprice'] = $v['new_price'];
}
cache('trends', $data);
}
if ($ajax) {
exit(json_encode($data));
} else {
return $data;
}
}
public function allfinance($ajax = 'json')
{
if (!userid()) {
return false;
}
$UserCoin = Db::name('UserCoin')->where('userid', userid())->find();
$cny['zj'] = 0;
foreach (cache('coin') as $k => $v) {
if ($v['name'] == config('app.anchor_cny')) {
// $cny['ky'] = $UserCoin[$v['name']] * 1;
// $cny['dj'] = $UserCoin[$v['name'] . 'd'] * 1;
// $cny['zj'] = $cny['zj'] + $cny['ky'] + $cny['dj'];
$cny['ky'] = round($UserCoin[$v['name']], 2) * 1;
$cny['dj'] = round($UserCoin[$v['name'] . 'd'], 2) * 1;
$cny['zj'] = $cny['zj'] + $cny['ky'] + $cny['dj'];
} else {
if (cache('market')[$v['name'].'_'.config('app.anchor_cny')]['new_price']) {
$jia = config('market')[$v['name'].'_'.config('app.anchor_cny')]['new_price'];
} else {
$jia = 1;
}
$cny['zj'] = round($cny['zj'] + (($UserCoin[$v['name']] + $UserCoin[$v['name'] . 'd']) * $jia), 8) * 1;
}
}
$data = round($cny['zj'], 8);//原显示
$data = number_format($data,2);//千分位显示
// $data = NumToStr($data);
// $data = sprintf("%.4f", $data);
// $data = round($cny['zj'], 4);
if ($ajax) {
exit(json_encode($data));
} else {
return $data;
}
}
public function allsum($ajax = 'json')
{
$data = (config('app.develop') ? null : cache('allsum'));
if (!$data) {
$data = Db::name('TradeLog')->sum('mum');
cache('allsum', $data);
}
$data = round($data);
$data = str_repeat('0', 12 - strlen($data)) . (string) $data;
if ($ajax) {
exit(json_encode($data));
} else {
return $data;
}
}
public function top_coin_menu($ajax = 'json')
{
$data = (config('app.develop') ? null : cache('trandata_getTopCoinMenu'));
$trandata_getCoreConfig = getCoreConfig();
if(!$trandata_getCoreConfig){
$this->error('核心配置有误');
}
if (!$data) {
$data = [];
foreach($trandata_getCoreConfig['indexcat'] as $k=>$v){
$data[$k][title] = $v;
}
foreach (cache('market') as $k => $v) {
$v['xnb'] = explode('_', $v['name'])[0];
$v['rmb'] = explode('_', $v['name'])[1];
$data_tmp['img'] = $v['xnbimg'];
$data_tmp['title'] = $v['navtitle'];
$data[$v['jiaoyiqu']]['data'][$k] = $data_tmp;
unset($data_tmp);
}
cache('trandata_getTopCoinMenu', $data);
}
if ($ajax) {
exit(json_encode($data));
} else {
return $data;
}
}
public function allcoin($ajax = 'json')
{
$data = (config('app.develop') ? null : cache('allcoin'));
if (!$data) {
foreach (cache('market') as $k => $v) {
$data[$k][0] = $v['title'];
$data[$k][1] = round($v['new_price'], $v['round']);
$data[$k][2] = round($v['buy_price'], $v['round']);
$data[$k][3] = round($v['sell_price'], $v['round']);
$data[$k][4] = round($v['volume'] * $v['new_price'], 2) * 1;
$data[$k][5] = '';
$data[$k][6] = round($v['volume'], 2) * 1;
$data[$k][7] = round($v['change'], 2);
$data[$k][8] = $v['name'];
$data[$k][9] = $v['xnbimg'];
$data[$k][10] = '';
}
cache('allcoin', $data);
}
if ($ajax) {
exit(json_encode($data));
} else {
return $data;
}
}
public function trends($ajax = 'json')
{
$data = (config('app.develop') ? null : cache('trends'));
if (!$data) {
foreach (cache('market') as $k => $v) {
$tendency = json_decode($v['tendency'], true);
$data[$k]['data'] = $tendency;
$data[$k]['yprice'] = $v['new_price'];
}
cache('trends', $data);
}
if ($ajax) {
exit(json_encode($data));
} else {
return $data;
}
}
// 交易中心调用
public function getJsonTop($market = NULL, $ajax = 'json')
{
// 过滤非法字符----------------S
if (checkstr($market)) {
$this->error('您输入的信息有误!');
}
// 过滤非法字符----------------E
$data = (config('app.develop') ? null : cache("getJsonTop" . $market));
if (!$data) {
if ($market) {
$xnb = explode("_", $market)[0];
$rmb = explode("_", $market)[1];
// 24小时 交易量
$volume_24h = [];
$volume_24h = Db::name('TradeLog')
->where('status', 1)
->where('market', $market)
->where('addtime', 'gt', time() - (60 * 60 * 24))
->sum('num');
$volume_24h = round($volume_24h, 4);
/* foreach (cache("market") as $k => $v) {
$v["xnb"] = explode("_", $v["name"])[0];
$v["rmb"] = explode("_", $v["name"])[1];
$data["list"][$k]["name"] = $v["name"];
$data["list"][$k]["img"] = $v["xnbimg"];
$data["list"][$k]["title"] = $v["title"];
$data["list"][$k]["new_price"] = $v["new_price"];
$data["list"][$k]["change"] = $v["change"];
$data["list"][$k]['coin_name'] = strtoupper($v["xnb"]);
}*/
$data["info"]["img"] = config("market")[$market]["xnbimg"];
//$data["info"]["title"] = config("market")[$market]["title"];
$data["info"]["new_price"] = config("market")[$market]["new_price"];
$data["info"]["max_price"] = config("market")[$market]["max_price"];
$data["info"]["min_price"] = config("market")[$market]["min_price"];
$data["info"]["buy_price"] = config("market")[$market]["buy_price"];
$data["info"]["sell_price"] = config("market")[$market]["sell_price"];
$data["info"]["volume"] = isset($volume_24h) ? $volume_24h : 0;//C("market")[$market]["volume"];
$data["info"]["change"] = config("market")[$market]["change"];
cache("getJsonTop" . $market, $data);
}
}
if ($ajax) {
exit(json_encode($data));
} else {
return $data;
}
}
/** 交易中心-币种列表 改.HAOMA20181101 **/
public function getJsonTop2($id=1, $ajax = 'json')
{
if (empty($data)) {
$trandata_data['info'] = "数据正常";
$trandata_data['status'] = 1;
$trandata_data['url'] = "";
foreach (config("market") as $k => $v) {
if ($v['jiaoyiqu'] == $id) {
$trandata_data["list"][$k]["name"] = $v["name"];
$trandata_data["list"][$k]["img"] = $v["xnbimg"];
$trandata_data["list"][$k]["title"] = $v["title"];
$trandata_data["list"][$k]["new_price"] = $v["new_price"];
$trandata_data["list"][$k]["change"] = $v["change"];
$trandata_data["list"][$k]['coin_name'] = strtoupper($v["xnb"]);
}
}
}
if ($ajax) {
exit(json_encode($trandata_data));
} else {
return $trandata_data;
}
}
public function getTradelog($market = NULL, $ajax = 'json')
{
// 过滤非法字符----------------S
if (checkstr($market)) {
$this->error('您输入的信息有误!');
}
// 过滤非法字符----------------E
$data = (config('app.develop') ? null : cache('getTradelog' . $market));
if (!$data) {
$tradeLog = Db::name('TradeLog')->where('status', 1)->where('market', $market)->order('id desc')->limit(10)->select();
if ($tradeLog) {
foreach ($tradeLog as $k => $v) {
$data['tradelog'][$k]['addtime'] = date('H:i:s', $v['addtime']);
$data['tradelog'][$k]['type'] = $v['type'];
$data['tradelog'][$k]['price'] = $v['price'] * 1;
$data['tradelog'][$k]['num'] = round($v['num'], 6);
$data['tradelog'][$k]['mum'] = round($v['mum'], 6);
}
cache('getTradelog' . $market, $data);
}
}
if ($ajax) {
exit(json_encode($data));
} else {
return $data;
}
}
public function getDepth($market = NULL, $trade_moshi = 1,$limts = 5, $ajax = 'json')
{
// 过滤非法字符----------------S
if (checkstr($market) || checkstr($trade_moshi)) {
$this->error(lang('您输入的信息有误!'));
}
// 过滤非法字符----------------E
if (!config('market')[$market]) {
return null;
}
$data_getDepth = (config('app.develop') ? null : cache('getDepth'));
if (!$data_getDepth[$market][$trade_moshi]) {
if ($trade_moshi == 1) {
$limt = $limts;
}
if (($trade_moshi == 3) || ($trade_moshi == 4)) {
$limt = $limts;
}
$mo = db();
if ($trade_moshi == 1) {
$buy = Db::query('select id,price,sum(num-deal)as nums from tw_trade where status=0 and type=1 and market =\'' . $market . '\' group by price order by price desc limit ' . $limt . ';');
$sell = array_reverse(Db::query('select id,price,sum(num-deal)as nums from tw_trade where status=0 and type=2 and market =\'' . $market . '\' group by price order by price asc limit ' . $limt . ';'));
}
if ($trade_moshi == 3) {
$buy = Db::query('select id,price,sum(num-deal)as nums from tw_trade where status=0 and type=1 and market =\'' . $market . '\' group by price order by price desc limit ' . $limt . ';');
$sell = null;
}
if ($trade_moshi == 4) {
$buy = null;
$sell = array_reverse(Db::query('select id,price,sum(num-deal)as nums from tw_trade where status=0 and type=2 and market =\'' . $market . '\' group by price order by price asc limit ' . $limt . ';'));
}
if ($buy) {
$maxNums = maxArrayKey($buy, 'nums') / 2;
foreach ($buy as $k => $v) {
$data['depth']['buy'][$k] = array(floatval($v['price'] * 1), floatval($v['nums'] * 1));
$data['depth']['buypbar'][$k] = ((($maxNums < $v['nums'] ? $maxNums : $v['nums']) / $maxNums) * 100);
}
} else {
$data['depth']['buy'] = '';
$data['depth']['buypbar'] = '';
}
if ($sell) {
$maxNums = maxArrayKey($sell, 'nums') / 2;
foreach ($sell as $k => $v) {
$data['depth']['sell'][$k] = array(floatval($v['price'] * 1), floatval($v['nums'] * 1));
$data['depth']['sellpbar'][$k] = ((($maxNums < $v['nums'] ? $maxNums : $v['nums']) / $maxNums) * 100);
}
} else {
$data['depth']['sell'] = '';
$data['depth']['sellpbar'] = '';
}
$data_getDepth[$market][$trade_moshi] = $data;
cache('getDepth', $data_getDepth);
} else {
$data = $data_getDepth[$market][$trade_moshi];
}
if ($ajax) {
exit(json_encode($data));
} else {
return $data;
}
}
public function getEntrustAndUsercoin($market = NULL, $ajax = 'json')
{
// 过滤非法字符----------------S
if (checkstr($market)) {
$this->error('您输入的信息有误!');
}
// 过滤非法字符----------------E
if (!userid()) {
return null;
}
if (!config('market')[$market]) {
return null;
}
$result = db()->query('select id,price,num,deal,mum,type,fee,status,addtime from tw_trade where status=0 and market=\'' . $market . '\' and userid=' . userid() . ' order by id desc limit 10;');
if ($result) {
foreach ($result as $k => $v) {
$data['entrust'][$k]['addtime'] = date('m-d H:i:s', $v['addtime']);
$data['entrust'][$k]['type'] = $v['type'];
$data['entrust'][$k]['price'] = $v['price'] * 1;
$data['entrust'][$k]['num'] = round($v['num'], 6);
$data['entrust'][$k]['deal'] = round($v['deal'], 6);
$data['entrust'][$k]['id'] = round($v['id']);
$data['entrust'][$k]['status'] = $v['status'];
}
} else {
$data['entrust'] = null;
}
$userCoin = Db::name('UserCoin')->where('userid', userid())->find();
if ($userCoin) {
$xnb = explode('_', $market)[0];
$rmb = explode('_', $market)[1];
$data['usercoin']['xnb'] = floatval($userCoin[$xnb]);
$data['usercoin']['xnbd'] = floatval($userCoin[$xnb . 'd']);
$data['usercoin']['rmb'] = floatval($userCoin[$rmb]);
$data['usercoin']['rmbd'] = floatval($userCoin[$rmb . 'd']);
} else {
$data['usercoin'] = null;
}
// 处理开盘闭盘交易时间===开始
$times = date('G',time());
$minute = date('i',time());
$minute = intval($minute);
$data['time_state'] = 0;
if (($times <= config('market')[$market]['start_time'] && $minute < intval(cache('market')[$market]['start_minute']))|| ($times > config('market')[$market]['stop_time'] && $minute>= intval(cache('market')[$market]['stop_minute']))) {
$data['time_state'] = 1;
}
if (($times <config('market')[$market]['start_time'] )|| $times > config('market')[$market]['stop_time']) {
$data['time_state'] = 1;
} else {
if ($times == config('market')[$market]['start_time']) {
if ($minute< intval(cache('market')[$market]['start_minute'])) {
$data['time_state'] = 1;
}
} elseif ($times == config('market')[$market]['stop_time']) {
if (( $minute > config('market')[$market]['stop_minute'])) {
$data['time_state'] = 1;
}
}
}
// 处理周六周日是否可交易===开始
$weeks = date('N',time());
if(!config('market')[$market]['agree6']){
if($weeks == 6){
$data['time_state'] = 1;
}
}
if(!config('market')[$market]['agree7']){
if($weeks == 7){
$data['time_state'] = 1;
}
}
//处理周六周日是否可交易===结束
if ($ajax) {
exit(json_encode($data));
} else {
return $data;
}
}
public function getChat($ajax = 'json')
{
$chat = (config('app.develop') ? null : cache('getChat'));
if (!$chat) {
$chat = Db::name('Chat')->where('status', 1)->order('id desc')->limit(500)->select();
cache('getChat', $chat);
}
asort($chat);
if ($chat) {
foreach ($chat as $k => $v) {
$data[] = array((int) $v['id'], $v['username'], $v['content']);
}
} else {
$data = '';
}
if ($ajax) {
exit(json_encode($data));
} else {
return $data;
}
}
public function upChat($content)
{
/* exit;
if (!userid()) {
$this->error('请先登录...');
}
$content = msubstr($content, 0, 20, 'utf-8', false);
if (!$content) {
$this->error('请先输入内容');
}
if (APP_DEMO) {
$this->error('测试站暂时不能聊天!');
}
if (time() < (session('chat' . userid()) + 10)) {
$this->error('不能发送过快');
}
$id = Db::name('Chat')->insert(array('userid' => userid(), 'username' => username(), 'content' => $content, 'addtime' => time(), 'status' => 1));
if ($id) {
cache('getChat', null);
session('chat' . userid(), time());
$this->success($id);
} else {
$this->error('发送失败');
}*/
}
public function upcomment($msgaaa, $s1, $s2, $s3, $xnb)
{
/* exit;
if (empty($msgaaa)) {
$this->error('提交内容错误');
}
if (!check($s1, 'd')) {
$this->error('技术评分错误');
}
if (!check($s2, 'd')) {
$this->error('应用评分错误');
}
if (!check($s3, 'd')) {
$this->error('前景评分错误');
}
if (!userid()) {
$this->error('请先登录!');
}
if (Db::name('CoinComment')->where(array(
'userid' => userid(),
'coinname' => $xnb,
'addtime' => array('gt', time() - 60)
)->find()) {
$this->error('请不要频繁提交!');
}
if (Db::name('Coin')->where('name', $xnb)->update(array(
'tp_zs' => array('exp', 'tp_zs+1'),
'tp_js' => array('exp', 'tp_js+' . $s1),
'tp_yy' => array('exp', 'tp_yy+' . $s2),
'tp_qj' => array('exp', 'tp_qj+' . $s3)
))) {
if (Db::name('CoinComment')->insert(array('userid' => userid(), 'coinname' => $xnb, 'content' => $msgaaa, 'addtime' => time(), 'status' => 1))) {
$this->success('提交成功');
} else {
$this->error('提交失败!');
}
} else {
$this->error('提交失败!');
}*/
}
public function subcomment($id, $type)
{
// 过滤非法字符----------------S
if (checkstr($id) || checkstr($type)) {
$this->error('您输入的信息有误!');
}
// 过滤非法字符----------------E
if ($type != 1) {
if ($type != 2) {
if ($type != 3) {
$this->error('参数错误!');
} else {
$type = 'xcd';
}
} else {
$type = 'tzy';
}
} else {
$type = 'cjz';
}
if (!check($id, 'd')) {
$this->error('参数错误1');
}
if (!userid()) {
$this->error('请先登录!');
}
if (cache('subcomment' . userid() . $id)) {
$this->error('请不要频繁提交!');
}
if (Db::name('CoinComment')->where('id', $id)->setInc($type, 1)) {
cache('subcomment' . userid() . $id, 1);
$this->success('提交成功');
} else {
$this->error('提交失败!');
}
}
// C2C获取付款商户信息
public function c2cPayment($id, $aid, $ajax = 'json')
{
// 过滤非法字符----------------S
if (checkstr($id)) {
$this->error('您输入的信息有误!');
}
// 过滤非法字符----------------E
if (!check($id, 'd')) {
$this->error('参数错误1');
}
if (!userid()) {
$this->error('请先登录!');
}
$data['agent'] = Db::name('exchange_agent')->where('id', $aid)->find();
$data['order'] = Db::name('exchange_order')->where('id', $id)->find();
if ($data['order']['otype'] == 1) {
if ($data['order']['status'] == 1) {
$data['order']['status'] = lang('待支付');
} else {
$data['order']['status'] = lang('未知');
}
}
if ($ajax) {
exit(json_encode($data));
} else {
return $data;
}
}
}
?>
|
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for your application. You may change these defaults
| as required, but they're a perfect start for most applications.
|
*/
'defaults' => [
'guard' => 'web',
'passwords' => 'users',
],
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, a great default configuration has been defined for you
| here which uses session storage and the Eloquent user provider.
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| Supported: "session", "token"
|
*/
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'peserta' => [
'driver' => 'jwt',
'provider' => 'pesertas',
],
'api' => [
'driver' => 'token',
'provider' => 'users',
'hash' => false,
],
],
/*
|--------------------------------------------------------------------------
| User Providers
|--------------------------------------------------------------------------
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| If you have multiple user tables or models you may configure multiple
| sources which represent each model / table. These sources may then
| be assigned to any extra authentication guards you have defined.
|
| Supported: "database", "eloquent"
|
*/
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
'pesertas' => [
'driver' => 'eloquent',
'model' => App\Peserta::class,
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
],
/*
|--------------------------------------------------------------------------
| Resetting Passwords
|--------------------------------------------------------------------------
|
| You may specify multiple password reset configurations if you have more
| than one user table or model in the application and you want to have
| separate password reset settings based on the specific user types.
|
| The expire time is the number of minutes that the reset token should be
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
*/
'passwords' => [
'users' => [
'provider' => 'users',
'table' => 'password_resets',
'expire' => 60,
'throttle' => 60,
],
'pesertas' => [
'provider' => 'pesertas',
'table' => 'password_resets',
'expire' => 60,
'throttle' => 60,
],
],
/*
|--------------------------------------------------------------------------
| Password Confirmation Timeout
|--------------------------------------------------------------------------
|
| Here you may define the amount of seconds before a password confirmation
| times out and the user is prompted to re-enter their password via the
| confirmation screen. By default, the timeout lasts for three hours.
|
*/
'password_timeout' => 10800,
];
|
<?php
abstract class DiffusionFileContentQuery extends DiffusionQuery {
private $needsBlame;
private $fileContent;
private $viewer;
final public static function newFromDiffusionRequest(
DiffusionRequest $request) {
return parent::newQueryObject(__CLASS__, $request);
}
abstract public function getFileContentFuture();
abstract protected function executeQueryFromFuture(Future $future);
final public function loadFileContentFromFuture(Future $future) {
$this->fileContent = $this->executeQueryFromFuture($future);
$repository = $this->getRequest()->getRepository();
$try_encoding = $repository->getDetail('encoding');
if ($try_encoding) {
$this->fileContent->setCorpus(
phutil_utf8_convert(
$this->fileContent->getCorpus(), "UTF-8", $try_encoding));
}
return $this->fileContent;
}
final protected function executeQuery() {
return $this->loadFileContentFromFuture($this->getFileContentFuture());
}
final public function loadFileContent() {
return $this->executeQuery();
}
final public function getRawData() {
return $this->fileContent->getCorpus();
}
final public function getBlameData() {
$raw_data = preg_replace('/\n$/', '', $this->getRawData());
$text_list = array();
$rev_list = array();
$blame_dict = array();
if (!$this->getNeedsBlame()) {
$text_list = explode("\n", $raw_data);
} else if ($raw_data != '') {
$lines = array();
foreach (explode("\n", $raw_data) as $k => $line) {
$lines[$k] = $this->tokenizeLine($line);
list($rev_id, $author, $text) = $lines[$k];
$text_list[$k] = $text;
$rev_list[$k] = $rev_id;
}
$rev_list = $this->processRevList($rev_list);
foreach ($lines as $k => $line) {
list($rev_id, $author, $text) = $line;
$rev_id = $rev_list[$k];
if (!isset($blame_dict[$rev_id])) {
$blame_dict[$rev_id]['author'] = $author;
}
}
$repository = $this->getRequest()->getRepository();
$commits = id(new PhabricatorAuditCommitQuery())
->withIdentifiers(
$repository->getID(),
array_unique($rev_list))
->execute();
foreach ($commits as $commit) {
$blame_dict[$commit->getCommitIdentifier()]['epoch'] =
$commit->getEpoch();
}
if ($commits) {
$commits_data = id(new PhabricatorRepositoryCommitData())->loadAllWhere(
'commitID IN (%Ls)',
mpull($commits, 'getID'));
foreach ($commits_data as $data) {
$author_phid = $data->getCommitDetail('authorPHID');
if (!$author_phid) {
continue;
}
$commit = $commits[$data->getCommitID()];
$commit_identifier = $commit->getCommitIdentifier();
$blame_dict[$commit_identifier]['authorPHID'] = $author_phid;
}
}
}
return array($text_list, $rev_list, $blame_dict);
}
abstract protected function tokenizeLine($line);
public function setNeedsBlame($needs_blame) {
$this->needsBlame = $needs_blame;
return $this;
}
public function getNeedsBlame() {
return $this->needsBlame;
}
public function setViewer(PhabricatorUser $user) {
$this->viewer = $user;
return $this;
}
protected function processRevList(array $rev_list) {
return $rev_list;
}
}
|
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call(UserTableSeeder::class);
$this->call(CategoryTableSeeder::class);
$this->call(SubCategoryTableSeeder::class);
$this->call(PostTableSeeder::class);
// $this->call(EvaluationTableSeeder::class);
// $this->call(NegotiationTableSeeder::class);
// $this->call(CommentTableSeeder::class);
// $this->call(PhotoTableSeeder::class);
$this->call(CountryTableSeeder::class);
$this->call(RegionTableSeeder::class);
}
}
|
<?php
namespace App\Http\Controllers;
use App\Models\Category;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
}
|
<?php
namespace Tests;
use Riskihajar\Terbilang\Facades\Terbilang;
class TerbilangRomanTest extends TestCase
{
/** @test */
public function roman_method_can_convert_number_to_roman_numerals()
{
$this->assertEquals(
'MCCXXXIV',
$this->terbilang->roman(1234)
);
}
/** @test */
public function roman_method_accepts_boolean_argument_for_lowercase_result()
{
$this->assertEquals(
'mccxxxiv',
$this->terbilang->roman(1234, true)
);
}
}
|
<?php
function themeConfig($form) {
$logoUrl = new Typecho_Widget_Helper_Form_Element_Text('logoUrl', NULL, NULL, _t('站点 LOGO 地址'), _t('在这里填入一个图片 URL 地址, 以在网站标题栏添加一个LOGO。请使用正方形图标(推荐512x512)'));
$faviconUrl = new Typecho_Widget_Helper_Form_Element_Text('faviconUrl', NULL, NULL, _t('Favicon 地址'), _t('在这里填入一个图片 URL 地址, 以设置网站图标'));
$headImage = new Typecho_Widget_Helper_Form_Element_Text('headImage', NULL, NULL, _t('首页头图地址'), _t('在这里填入一个图片 URL 地址, 以设置首页欢迎头图'));
$jqueryUrl = new Typecho_Widget_Helper_Form_Element_Text('jqueryUrl', NULL, NULL, _t('JQuery CDN 地址'), _t('在这里填入 JQuery CDN URL 地址, 以加载网页必要的JQuery库'));
$notice = new Typecho_Widget_Helper_Form_Element_Text('notice', NULL, NULL, _t('站点公告'), _t('在页面顶部滚动显示的公告'));
$cssCode = new Typecho_Widget_Helper_Form_Element_Textarea('cssCode', null, null, _t('自定义 CSS'), _t('通过自定义 CSS 您可以很方便的设置页面样式,自定义 CSS 不会影响网站源代码。'));
$footerCode = new Typecho_Widget_Helper_Form_Element_Textarea('footerCode', null, null, _t('自定义页脚代码'), _t('该项显示在Copyright下方。支持HTML'));
$headerCode = new Typecho_Widget_Helper_Form_Element_Textarea('headerCode', null, null, _t('自定义页首代码'), _t('该项在head之间'));
$menuCode = new Typecho_Widget_Helper_Form_Element_Textarea('menuCode', null, null, _t('自定义菜单代码'), _t('该项在悬浮菜单中'));
$friendLink = new Typecho_Widget_Helper_Form_Element_Textarea('friendLink', null, null, _t('友情链接'), _t('该项格式请看官方文档。'));
$sidebarCode = new Typecho_Widget_Helper_Form_Element_Textarea('sidebarCode', null, null, _t('侧边栏工具'), _t('该项格式请看官方文档。'));
$menuList = new Typecho_Widget_Helper_Form_Element_Textarea('menuList', null, null, _t('菜单项'), _t('该项格式请看官方文档。'));
$otherSet = new Typecho_Widget_Helper_Form_Element_Checkbox('otherSet',
array('hideTyCopyright' => _t('隐藏Typecho版权'),
'hideGDTTCopyright' => _t('隐藏GDTT版权'),
'closeSidebarTool' => _t('关闭小工具')),
array('hideTyCopyright','hideGDTTCopyright','closeSidebarTool'),
_t('其他选项'), null);
$form->addInput($logoUrl);
$form->addInput($faviconUrl);
$form->addInput($headImage);
$form->addInput($jqueryUrl);
$form->addInput($notice);
$form->addInput($cssCode);
$form->addInput($headerCode);
$form->addInput($footerCode);
$form->addInput($menuList);
$form->addInput($menuCode);
$form->addInput($sidebarCode);
$form->addInput($friendLink);
$form->addInput($otherSet->multiMode());
}
function themeFields($layout) {
$postimage = new Typecho_Widget_Helper_Form_Element_Textarea('postimage', NULL, NULL, _t('文章头图'), _t('在这里填入文章头图地址'));
$postcopy = new Typecho_Widget_Helper_Form_Element_Textarea('postcopy', NULL, NULL, _t('文章版权信息'), _t('在这里填入文章版权信息,将在文章末尾展示。支持HTML'));
$layout->addItem($postcopy);
$layout->addItem($postimage);
}
?>
|
<?php
$params = require(__DIR__ . '/params.php');
$config = [
'id' => 'basic',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'language' => 'ru-RU',
'defaultRoute' => 'category/index',
'modules' => [
'admin' => [
'class' => 'app\modules\admin\Module',
'layout' => 'admin',
'defaultRoute' => 'order/index',
],
'yii2images' => [
'class' => 'rico\yii2images\Module',
//be sure, that permissions ok
//if you cant avoid permission errors you have to create "images" folder in web root manually and set 777 permissions
'imagesStorePath' => 'upload/store', //path to origin images
'imagesCachePath' => 'upload/cache', //path to resized copies
'graphicsLibrary' => 'GD', //but really its better to use 'Imagick'
'placeHolderPath' => '@webroot/upload/store/no-image/no-image.png', // if you want to get placeholder when image not exists, string will be processed by Yii::getAlias
'imageCompressionQuality' => 100, // Optional. Default value is 85.
],
],
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => 'asdasddasdgwasdasd',
'baseUrl' => '',
],
'cache' => [
'class' => 'yii\caching\FileCache',
],
'user' => [
'identityClass' => 'app\models\User',
'enableAutoLogin' => true,
//'loginUrl' => '������ �������� �����������'
],
'errorHandler' => [
'errorAction' => 'site/error',
],
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
// send all mails to a file by default. You have to set
// 'useFileTransport' to false and configure a transport
// for the mailer to send real emails.
'useFileTransport' => true,
/* 'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'smtp.mail.ru',
'username' => 'bstallion1@mail.ru',
'password' => '12345678910qwerty',
'port' => '465',
'encryption' => 'ssl',
],*/
],
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
'db' => require(__DIR__ . '/db.php'),
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'category/<id:\d+>/page/<page:\d+>' => 'category/view',
'category/<id:\d+>' => 'category/view',
'product/<id:\d+>' => 'product/view',
'search' => 'category/search',
'about' => 'site/about',
],
],
],
'controllerMap' => [
'elfinder' => [
'class' => 'mihaildev\elfinder\PathController',
'access' => ['@'],
'root' => [
'baseUrl'=>'/web',
//'basePath'=>'@webroot',
'path' => 'upload/global',
'name' => 'Global'
],
]
],
'params' => $params,
];
if (YII_ENV_DEV) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
];
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
//'allowedIPs' => ['109.254.254.13']
];
}
return $config;
|
<?php declare(strict_types = 1);
namespace PHPStan\Levels;
/**
* @group exec
*/
class LevelsIntegrationTest extends \PHPStan\Testing\LevelsTestCase
{
public function dataTopics(): array
{
return [
['returnTypes'],
['acceptTypes'],
['methodCalls'],
['propertyAccesses'],
['constantAccesses'],
['variables'],
['callableCalls'],
['callableVariance'],
['arrayDimFetches'],
['clone'],
['iterable'],
['binaryOps'],
['comparison'],
['throwValues'],
['casts'],
['unreachable'],
['echo_'],
['print_'],
['stringOffsetAccess'],
['object'],
['encapsedString'],
['missingReturn'],
['arrayAccess'],
['typehints'],
['coalesce'],
['arrayDestructuring'],
];
}
public function getDataPath(): string
{
return __DIR__ . '/data';
}
public function getPhpStanExecutablePath(): string
{
return __DIR__ . '/../../../bin/phpstan';
}
public function getPhpStanConfigPath(): string
{
return __DIR__ . '/dynamicConstantNames.neon';
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.