text
stringlengths 2
1.03M
|
|---|
<div class="widget-body table-responsive">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="col-sm-6 col-xs-12">
<div class="col-sm-4 col-md-2 col-xs-12">
<label for="search">Show Results:</label>
</div>
<div class="col-sm-2 col-md-2 col-xs-12">
<input type="text" class="form-control" minlength="1" maxlength="3" oninput="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" ng-model="itemsPerPage" name="itemsPerPage" ng-change="items(itemsPerPage)">
</div>
<div class="col-sm-6 col-md-8 col-xs-12">
<p style="font-size: 12px;">Show Filter Total {{listsIndex.records.length}} Enquiries Found Showing {{(itemsPerPage > listsIndex.records.length) ? listsIndex.records.length : itemsPerPage}} Enquiries</p>
</div>
</div>
<div class="col-sm-6 col-xs-12">
<div class="col-sm-6 col-xs-12">
<button type="button" class="btn btn-primary" style="float: right;margin-left: 10px;"data-toggle="modal" data-target="#showFilterModal" ng-click="refreshSlider()"><i class="btn-label fa fa-filter"></i>Show Filter</button>
<a href="" class="btn btn-primary" id="downloadExcel" download="{{sheetName}}" style="float: right;" ng-show="dnExcelSheet">
<i class="btn-label fa fa-file-excel-o"></i>Download excel</a>
<a href="javascript:void(0);" id="exportExcel" uploadfile class="btn btn-primary" ng-click="exportReport(listsIndex.records)" style="float: right;" ng-show="btnExport">
<i class="btn-label fa fa-file-excel-o"></i>Export to Excel
</a>
</div>
<div class="col-sm-6 col-xs-12">
<div class="dataTables_paginate paging_bootstrap" id="DataTables_Table_0_paginate">
<dir-pagination-controls class="pagination" on-page-change="pageChangeHandler(newPageNumber)" max-size="5" direction-links="true" boundary-links="true"></dir-pagination-controls>
</div>
</div>
</div>
</div>
</div><br/>
<table class="table table-hover table-striped table-bordered">
<thead>
<tr>
<th style="border: 1px solid #CED3D7;background-color: #EAEAEA;height:15px">Sr. No.</th>
<th style="border: 1px solid #CED3D7;background-color: #EAEAEA;height:15px">Customer Details</th>
<th style="border: 1px solid #CED3D7;background-color: #EAEAEA;height:15px">Enquiry Details</th>
<th style="border: 1px solid #CED3D7;background-color: #EAEAEA;height:15px">Last Followup</th>
<th style="border: 1px solid #CED3D7;background-color: #EAEAEA;height:15px">Enquiry Status</th>
<th style="border: 1px solid #CED3D7;background-color: #EAEAEA;height:15px">Enquiry </th>
</tr>
</thead>
<tbody ng-if="!listsIndex.success">
<tr>
<td colspan="6">{{listsIndex.records}}</td>
</tr>
</tbody>
<tbody ng-if="listsIndex.success">
<tr role="row" dir-paginate="list in listsIndex.records | filter: search | itemsPerPage:itemsPerPage | orderBy:orderByField:reverseSort">
<td>{{itemsPerPage * (noOfRows - 1) + $index + 1}}</td>
<td>
<div>{{list.customer_fname}} {{list.customer_lname}} - {{ list.mobile_number}} - {{list.email_id}}</div><hr>
<div class="floatLeft"><a href="[[ config('global.backendUrl') ]]#/sales/update/cid/{{ list.customer_id }}">Customer Details</a></div>
<div class="floatLeft" style="width:30%;max-width: 30%;word-wrap: break-word;"><b>Enquiries : {{ list.totalenq }}</b></div>
<div class="floatLeft" style="width:40%;max-width: 30%;word-wrap: break-word;"><b>Booked : {{ list.totalbookedenq }}</b></div>
<div class="floatLeft" style="width:100%;"><hr></div>
<div style="text-align:center;">
<span style="margin:5px"><strong>Source: </strong>{{ list.sales_source_name}}<br></span>
<span style="margin:5px"><b>Budget</b>: {{list.max_budget}}</span>
</div>
</td>
<td>
<div>{{list.project_block_name}} - {{list.block_name}} </div>
<hr>
<div class="floatLeft"><i class="fa fa-desktop" aria-hidden="true"></i></div>
<div class="floatLeft" style="width:41%"><a href="[[ config('global.backendUrl') ]]#/sales/update/cid/{{ list.customer_id }}/eid/{{ list.id }}">Enquiry Details</a></div>
<div class="floatLeft" style="width:50%">
<span style="margin-left:4px;background-color:orange;float:left;width:12px;height:12px;" ng-if="list.enquiry_category == 'New Enquiry'"> </span>
<span style="margin-left:4px;background-color:RED;float:left;width:12px;height:12px;" ng-if="list.enquiry_category == 'Hot'"> </span>
<span style="margin-left:4px;background-color:#E3B81C;float:left;width:12px;height:12px;" ng-if="list.enquiry_category == 'Warm'"> </span>
<span style="margin-left:4px;background-color:#5ABBF3;float:left;width:12px;height:12px;" ng-if="list.enquiry_category == 'Cold'"> </span>
<span style="float:left;margin: -4px 0px 0px 5px;">{{ list.enquiry_category}}</span>
</div>
<div class="floatLeft" style="width:100%;"><hr></div>
<div class="floatLeft">
<span style="float:left;"><b>No.of Followups : {{list.total_followups}}</b></span><br/>
<span style="float:left;"><b>Location</b> : {{ list.location_name}}</span><br/>
<span style="float:left;" ng-show="list.parking_required == 1">Parking Required</span>
<span style="float:left;" ng-show="list.parking_required == 0">No Parking Required</span>
</div>
</td>
<td width="30%">
<span>{{ list.last_followup_date | myDateFormat}} By {{list.followup_fname}} {{list.followup_lname}}</span><hr>
<span style="width: 100%;word-break: break-all;">{{ list.remarks}}</span>
</td>
<td style="vertical-align: middle;">{{ list.sales_status }}
<hr>
<div style="margin-bottom: 40px;text-align: left;">
<i class="fa fa-external-link" aria-hidden="true"></i><a href data-toggle="modal" data-target="#todaysRemarkModal" ng-click="todayRemark({{ list.id }},'{{list.followup_id}}','{{list.customer_id}}')"> Today's Remark </a><br/>
<i class="fa fa-external-link" aria-hidden="true"></i><a href> Convert to booking </a><br/>
<i class="fa fa-external-link" aria-hidden="true"></i><a href> Generate estimate </a><br/>
<i class="fa fa-external-link" aria-hidden="true"></i><a href> Convert in deal </a>
</div>
</td>
<td align="left">
<div>Owner: {{list.owner_fname}} {{list.owner_lname}}</div><hr>
<button type="button" class="btn btn-primary ng-click-active" data-toggle="modal" data-target="#historyDataModal" ng-click="initHistoryDataModal({{ list.id }})">View History</button>
</td>
</tr>
</tbody>
</table>
<div class="DTTTFooter" ng-if="listsIndex.success">
<div class="col-sm-6">
<div class="dataTables_info" id="DataTables_Table_0_info" role="status" aria-live="polite">Page No. {{noOfRows}}</div>
</div>
<div class="col-sm-6">
<div class="dataTables_paginate paging_bootstrap" id="DataTables_Table_0_paginate">
<dir-pagination-controls class="pagination" on-page-change="pageChangeHandler(newPageNumber)" max-size="5" direction-links="true" boundary-links="true"></dir-pagination-controls>
</div>
</div>
</div>
</div>
<!-- Enquiry history modal -->
<div data-ng-include=" '/MasterSales/enquiryHistory'"></div>
<!-- Enquiry todays remark modal -->
<div data-ng-include=" '/MasterSales/todaysRemark'"></div>
|
<?php
/**
* Generated by PHPUnit_SkeletonGenerator on 2013-08-09 at 18:11:13.
*/
class Mageflow_Connect_Helper_DataTest extends PHPUnit_Framework_TestCase
{
/**
* @var Mageflow_Connect_Helper_Data
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new Mageflow_Connect_Helper_Data;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
public function testRandomHash()
{
$hash = $this->object->randomHash();
$this->assertNotEmpty($hash);
printf("%s\n", $hash);
}
}
|
<?php declare(strict_types=1);
namespace Rodacker\Sleddog\Test\Training\Speed;
use PHPUnit\Framework\TestCase;
use Rodacker\Sleddog\Training\Unit;
use Rodacker\Sleddog\Training\Speed\SpeedUnit;
class SpeedUnitTest extends TestCase
{
public function test_create_km_per_hour_speed_unit(): void
{
$unit = SpeedUnit::createKilometerUnit();
$this->assertInstanceOf(Unit::class, $unit);
$this->assertSame(SpeedUnit::SPEED_KM_PER_HOUR, $unit->unit());
}
public function test_create_miles_per_hour_unit(): void
{
$unit = SpeedUnit::createMilesUnit();
$this->assertInstanceOf(Unit::class, $unit);
$this->assertSame(SpeedUnit::SPEED_MILES_PER_HOUR, $unit->unit());
}
}
|
<?php
namespace Test\Feature\TRegx\CleanRegex\Replace\focus\by\map;
use PHPUnit\Framework\TestCase;
use TRegx\CleanRegex\Exception\FocusGroupNotMatchedException;
/**
* @coversNothing
*/
class ReplacePatternTest extends TestCase
{
/**
* @test
*/
public function shouldReplace_focus_by_map()
{
// given
[$pattern, $subject] = $this->patternAndSubject();
$map = [
'https://google.com' => 'GG',
'http://other.org' => 'EZ',
'http://danon.com' => 'DW'
];
// when
$result = pattern($pattern)->replace($subject)->all()->focus('name')->by()->map($map);
// then
$this->assertSame('Links: https://GG.com and http://EZ.org. and again http://DW.com', $result);
}
/**
* @test
*/
public function shouldThrow_focus_by_map()
{
// given
[$pattern, $subject] = $this->patternAndSubjectUnmatched();
// then
$this->expectException(FocusGroupNotMatchedException::class);
$this->expectExceptionMessage("Expected to replace focused group 'name', but the group was not matched");
// when
pattern($pattern)->replace($subject)->all()->focus('name')->by()->map([]);
}
private function patternAndSubject(): array
{
return [
'https?://(?<name>[a-z]+)\.(?<domain>com|org)',
'Links: https://google.com and http://other.org. and again http://danon.com'
];
}
private function patternAndSubjectUnmatched(): array
{
return [
'https?://(?<name>[a-z]+)?\.(?<domain>com|org)',
'Links: http://.org.'
];
}
}
|
<?php
/**
* @see https://github.com/rpdesignerfly/access-control
* @copyright Copyright (c) 2018 Ricardo Pereira Dias (https://rpdesignerfly.github.io)
* @license https://github.com/rpdesignerfly/access-control/blob/master/license.md
*/
declare(strict_types=1);
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAclUsersPermissionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('acl_users_permissions', function (Blueprint $table) {
$table->unsignedInteger('role_id')->index();
$table->foreign('role_id')->references('id')->on('acl_roles')->onDelete('cascade');
$table->unsignedInteger('user_id')->index();
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
$table->enum('create', ['yes', 'no']);
$table->enum('read', ['yes', 'no']);
$table->enum('update', ['yes', 'no']);
$table->enum('delete', ['yes', 'no']);
$table->primary(['role_id', 'user_id']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('acl_users_permissions', function (Blueprint $table) {
$slug = implode('_', ['acl_users_permissions', 'role_id', 'foreign']);
$table->dropForeign($slug);
$slug = implode('_', ['acl_users_permissions', 'user_id', 'foreign']);
$table->dropForeign($slug);
});
Schema::dropIfExists('acl_users_permissions');
}
}
|
<?php
namespace App;
use Laravel\Passport\HasApiTokens;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Spatie\Permission\Traits\HasRoles;
class User extends Authenticatable
{
use HasApiTokens, Notifiable, HasRoles;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
public function items()
{
return $this->hasMany('App\Model\Item\Item');
}
public function profile()
{
return $this->hasOne('App\Profile');
}
}
|
@extends ('index')
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@section ('judul_halaman', 'Kolom Edit Info Menarik 48')
<title>Info 48(Edit)</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
</head>
<body style="background-color:#f0f8ff">
@section('konten')
<div class="container">
<div class="card mt-5">
<div class="card-header text-center">
<a>Untuk Mencari Info Keinginan Anda Cari di Kotak Pencarian Disamping Kiri</a>
</div>
<div class="card-body">
<a href="/id/info/tambah" class="btn btn-primary">Input Info 48 Baru</a>
<br/>
<br/>
<table class="table table-bordered table-hover table-striped">
<tbody>
@foreach($info48s as $datas)
<tr>
<td><img src="{{ $datas->gambar}}" style="width:75x;height:100px;"></td>
<td><strong>{{ $datas->judul }}</strong></br>
{{ $datas->rintisan}}</br>
Info tentang :{{ $datas->tag_namagrup }}</td>
<td><a href ="info/edit/{{$datas->id}}" class ="btn btn-primary">Edit Disini</a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection
</body>
</html>
|
<?php
/**
* This class is the controller for the index resource
*
* @author Linus Norton <linusnorton@gmail.com>
*/
class Index extends Controller {
/**
* This class provides the implementation for the home request. The
* annotations below map the "home" request to this method and sets the
* view to view/index.xsl
*
* @RequestName("home")
* @ViewTemplate("index")
*/
public function run() {
/*
Example logging:
$log = LoggerManager::getLogger("home");
$log->debug("Entering Index->run() for handling of home event");
Example PDO/Active Record database interaction
needs this sql table:
CREATE TABLE test_table (
`id` INT(11) UNSIGNED auto_increment,
`name` VARCHAR(255),
PRIMARY KEY(id)
);
INSERT INTO test_table VALUES (1,"Linus");
INSERT INTO test_table VALUES (2,"Jason");
INSERT INTO test_table VALUES (3,"Dan");
INSERT INTO test_table VALUES (4,"John");
INSERT INTO test_table VALUES (5,"Jon");
INSERT INTO test_table VALUES (6,"Jez");
//Example 1: load one record
$record = TableGateway::load("test_table", 1);
$this->view->add($record);
//Example 2: load entire table
$records = TableGateway::loadAll("test_table");
$this->view->add($records);
//Example 3: custom load condition
$stmt = DB::dbh()->prepare("SELECT * FROM test_table WHERE id < :maxId");
$stmt->bindValue(":maxId", 10);
$stmt->execute();
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
//the static create method instantiates a record from a associative array
//if you were explicitly mapping fields from the array in your overridden
//create function you wouldnt need PDO::FETCH_ASSOC
$record = Record::create($row, "test_table");
$this->view->add($record);
}
//Example 4: modifying a record
$record = Record::load("test_table", 1);
$record->name = "bigface";
$record->save();
//Example 5: deleting a record
$record = Record::load("test_table", 1);
$record->delete();
//Example 6: creating a record
$record = Record::create(array("id" => 1, "name" => "Linus"), "test_table");
$record->save();
//or without an id (you could pass just name in the constructor array
$record = new Record("test_table");
$record->name = "Some other Person";
$record->save();
//record->id will now be set
$record->delete();
//Example 7: adding a custom field into the xml
//this is usually used to format date fields
$record = Record::load("test_table", 1);
$record->fieldThatIsNotInDB = "Ha, this isn't in the database";
$this->view->add($record);
//Example 8: using the TableGateway
$records = TableGateway::loadMatching("test_table", Restriction::like("name", "Li%"));
$this->view->add($records);
//Example 9: using the TableGateway with Criteria
$criteria = new Criteria( Restriction::is("name", "Linus") );
$criteria->addOr( Restriction::is("name", "John") );
$criteria->addAnd( Restriction::isNotNull("name") );
$records = TableGateway::loadMatching("test_table", $criteria);
$this->view->add($records);
//Example 10: using the TableGateway with Pagination
$records = TableGateway::loadMatching("test_table", Restriction::like("name", "Li%"), 0, 3);
$this->view->add($records);
// Example 11: update
TableGateway::update("test_table", array("name" => "Linus"), Restriction::is("name", "John"), 3);
// Example 12: delete
TableGateway::delete("test_table", Restriction::is("name", "Linus"), 3);
*/
}
}
|
<a href="{{ route('login') }}">admin</a>
<a href="">Client</a>
|
<?php
/**
* Модуль Пользователи.
* Этот модуль содержит все классы для работы с пользователями, авторизации и аунтификации в системе.
*
* @package App\Modules\User
* @since 1.0
* @version 1.0
*/
namespace App\Modules\User\Pipes\Create;
use App\Models\Contracts\Pipe;
use App\Modules\User\Repositories\User;
use Closure;
/**
* Создание пользователя: создание пользователя.
*
* @version 1.0
* @since 1.0
* @copyright Weborobot.
* @author Инчагов Тимофей Александрович.
*/
class CreatePipe implements Pipe
{
/**
* Репозитарий пользователей.
*
* @var \App\Modules\User\Repositories\User
* @version 1.0
* @since 1.0
*/
private User $_user;
/**
* Конструктор.
*
* @param \App\Modules\User\Repositories\User $user Репозитарий пользователей.
*
* @since 1.0
* @version 1.0
*/
public function __construct(User $user)
{
$this->_user = $user;
}
/**
* Метод который будет вызван у pipeline.
*
* @param array $content Содержит массив свойств, которые можно передавать от pipe к pipe.
* @param Closure $next Ссылка на следующий pipe.
*
* @return mixed Вернет значение полученное после выполнения следующего pipe.
*/
public function handle(array $content, Closure $next)
{
$data = $content["user"];
$data["password"] = bcrypt($data["password"]);
$id = $this->_user->create($data);
if(!$this->_user->hasError())
{
$content["id"] = $id;
return $next($content);
}
else
{ /**
* @var $decorator \App\Models\Decorator
*/
$decorator = $content["decorator"];
$decorator->setErrors($this->_user->getErrors());
return false;
}
}
}
|
<?php
if (!defined('IN_WACKO'))
{
exit;
}
$this->ensure_page();
$tpl->page = $this->compose_link_to_page($this->tag, '', '');
if ($user = $this->get_user())
{
$user_name = mb_strtolower($this->get_user_name());
$user_id = $this->get_user_id();
$registered = true;
}
else
{
$user_name = GUEST;
$registered = false;
}
$message = '';
if ($registered
&&
($this->check_acl($user_name, $this->db->rename_globalacl)
|| $this->get_page_owner_id($this->page['page_id']) == $user_id)
)
{
if (!$this->page)
{
$message .= Ut::perc_replace($this->_t('DoesNotExists'), $this->href('edit'));
}
else
{
if (@$_POST['_action'] === 'rename_page')
{
$log = $tpl->massLog();
$new_tag = $_POST['new_tag'];
$old_tag = $this->page['tag'];
if (($error = $this->sanitize_new_pagename($new_tag, $this->tag)))
{
$this->set_message($error, 'error');
$this->reload_me();
}
// rename
if (!isset($_POST['massrename']))
{
$log->mode = $this->_t('RenamePage');
$log->log_n_h = $this->tag;
// rename single page
$need_redirect = @$_POST['redirect'] == 'on';
if (!$need_redirect)
{
if ($this->remove_referrers($this->tag))
{
$log->log_n_l_message = $this->_t('ReferrersRemoved');
}
}
if ($this->rename_page($this->tag, $new_tag))
{
$log->log_n_l_message = $this->_t('PageRenamed');
}
// unset object cache
$this->page_id_cache[$this->tag] = null;
$this->clear_cache_wanted_page($new_tag);
if ($need_redirect && ($old_tag != $new_tag))
{
$this->cache_wanted_page($this->tag);
// set redirect on original page
if ($this->save_page($this->tag, '', '{{redirect page="/' . $new_tag . '"}}', $this->_t('RedirectedTo') . ' ' . $new_tag))
{
$log->log_n_l_message = Ut::perc_replace($this->_t('RedirectCreated'), $this->link('/' . $this->tag));
// TODO: clone and set ACLs for non-public pages
$this->set_noindex($this->get_page_id($this->tag));
}
$this->clear_cache_wanted_page($this->tag);
}
$log->log_n_l_message = $this->_t('NewNameOfPage') . $this->link('/' . $new_tag);
// log event
$this->log(3, Ut::perc_replace($this->_t('LogRenamedPage', SYSTEM_LANG), $this->tag, $new_tag) .
($need_redirect? $this->_t('LogRenamedPage2', SYSTEM_LANG) : '' ));
}
else
{
// massrename
$log->mode = $this->_t('MassRenaming');
recursive_move($this, $this->tag, $new_tag, $log);
}
$this->db->invalidate_sql_cache();
// update sitemap
$this->update_sitemap();
$this->set_message($log, 'success'); // TODO & error too
$this->http->redirect($this->href('', $new_tag));
}
else
{
if ($this->db->multilanguage)
{
$languages = $this->_t('LanguageArray');
$tpl->l_language = $languages[$this->page_lang];
$tpl->l_lang = $this->page_lang;
$tpl->l_charset = $this->get_charset();
}
$user_lang = $user['user_lang'] ?: $this->db->language;
// avoid charset conflict
if ($this->get_charset($this->page['page_lang']) != $this->get_charset($user_lang))
{
$tpl->m_warning = Ut::perc_replace($this->_t('RenameCharsetConflict'), '[<code>' . $user_lang . '</code>]', '[<code>' . $this->page['page_lang'] . '</code>]');
}
else
{
$tpl->enter('f_');
// show rename form
$tpl->tag = $this->tag;
if ($this->db->default_rename_redirect == 1)
{
$tpl->checked = ' checked';
}
if ($this->check_acl($user_name, $this->db->rename_globalacl))
{
$tpl->global = true;
}
// show backlinks
$tpl->backlinks = $this->action('backlinks', ['nomark' => 0]);
// show sub-pages
$tpl->tree = $this->action('tree', ['depth' => 3]);
$tpl->leave(); // f_
}
}
}
}
else
{
$tpl->denied = true;
}
function recursive_move(&$engine, $root, $new_root, $log)
{
$new_root = utf8_trim($new_root, '/');
$user = $engine->get_user();
$user_lang = $user['user_lang'] ?: $engine->db->language;
if ($root == '/')
{
exit; // who and where did intend to move root???
}
// FIXME: missing $owner_id -> rename_globalacl || owner
$owner_id = '';
$_root = $root;
$pages = $engine->db->load_all(
"SELECT page_id, tag, page_lang " .
"FROM " . $engine->db->table_prefix . "page " .
"WHERE (tag LIKE " . $engine->db->q($_root . '/%') . " " .
" OR tag = " . $engine->db->q($_root) . ") " .
($owner_id
? "AND owner_id = " . (int) $owner_id . " "
: "") .
"AND comment_on_id = 0");
foreach ($pages as $page)
{
$log->log_n_h = $page['tag'];
// avoid charset conflict
if ($engine->get_charset($page['page_lang']) != $engine->get_charset($user_lang))
{
$log->log_n_l_message = Ut::perc_replace($engine->_t('SkipCharsetConflict'), $engine->link('/' . $page['tag']), '<code>' . $page['page_lang'] . ' (' . $engine->get_charset($page['page_lang']) . ')</code>');
continue;
}
// $new_tag = str_replace( $root, $new_root, $page['tag'] );
$new_tag = preg_replace('/' . preg_quote($root, '/') . '/', preg_quote($new_root), $page['tag'], 1);
// FIXME: preg_quote is not universally suitable for escaping the replacement string. A single . will become \. and the preg_replace call will not undo the escaping.
$new_tag = stripslashes($new_tag);
move($engine, $page, $new_tag, $log);
}
}
function move(&$engine, $old_page, $new_tag, $log)
{
$user = $engine->get_user();
$user_id = $engine->get_user_id();
if (($engine->check_acl($user['user_name'], $engine->db->rename_globalacl)
|| $engine->get_page_owner_id($old_page['page_id']) == $user_id))
{
if (!preg_match('/^([\_\.\-' . $engine->language['ALPHANUM_P'] . ']+)$/u', $new_tag))
{
$log->log_n_l_message = $engine->_t('InvalidWikiName');
}
else if ($old_page['tag'] == $new_tag)
{
$log->log_n_l_message = Ut::perc_replace($engine->_t('AlreadyNamed'), '<strong>' . $engine->link($new_tag) . '</strong>');
}
else
{
if ($old_page['tag'] != $new_tag && $page = $engine->load_page($new_tag, 0, '', LOAD_CACHE, LOAD_META))
{
$log->log_n_l_message = Ut::perc_replace($engine->_t('AlreadyExists'), '<strong>' . $engine->link($new_tag) . '</strong>');
}
else
{
// Rename page
$need_redirect = @$_POST['redirect'] == 'on';
if (!$need_redirect)
{
if ($engine->remove_referrers($old_page['tag']))
{
$log->log_n_l_message = $engine->_t('ReferrersRemoved');
}
}
if ($engine->rename_page($old_page['tag'], $new_tag))
{
$log->log_n_l_message = $engine->_t('PageRenamed');
}
// unset object cache for current page
$engine->page_id_cache[$engine->tag] = null;
$engine->clear_cache_wanted_page($new_tag);
if ($need_redirect && ($old_page['tag'] != $new_tag))
{
$engine->cache_wanted_page($old_page['tag']);
if ($engine->save_page($old_page['tag'], '', '{{redirect page="/' . $new_tag . '"}}', $engine->_t('RedirectedTo') . ' ' . $new_tag))
{
$log->log_n_l_message = Ut::perc_replace($engine->_t('RedirectCreated'), $engine->link('/' . $old_page['tag']));
// TODO: clone and set ACLs for non-public pages
$engine->set_noindex($engine->get_page_id($old_page['tag']));
}
$engine->clear_cache_wanted_page($old_page['tag']);
}
$log->log_n_l_message = $engine->_t('NewNameOfPage') . $engine->link('/' . $new_tag);
// log event
$engine->log(3, Ut::perc_replace($engine->_t('LogRenamedPage', SYSTEM_LANG), $old_page['tag'], $new_tag) .
($need_redirect? $engine->_t('LogRenamedPage2', SYSTEM_LANG) : '' ));
}
}
}
}
|
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Donator extends Model
{
public function donations(){
return $this->hasMany(Donation::class)->get()->all();
}
}
|
<?php # -*- coding: utf-8 -*-
/*
* This file is part of the MultilingualPress package.
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Inpsyde\MultilingualPress\Activation;
use Inpsyde\MultilingualPress\Framework\Api\ContentRelations;
use Inpsyde\MultilingualPress\Framework\Database\Exception\NonexistentTable;
use Inpsyde\MultilingualPress\Framework\Service\Container;
use Inpsyde\MultilingualPress\Framework\Service\IntegrationServiceProvider;
use const Inpsyde\MultilingualPress\ACTION_ACTIVATION;
/**
* Service provider for all activation objects.
*/
final class ServiceProvider implements IntegrationServiceProvider
{
/**
* @inheritdoc
*
* phpcs:disable Inpsyde.CodeQuality.FunctionLength.TooLong
*/
public function register(Container $container)
{
// phpcs:enable
$container->addService(
Activator::class,
function (): Activator {
return new Activator();
}
);
}
/**
* @inheritdoc
*/
public function integrate(Container $container)
{
$this->setupActivator($container);
}
/**
* @param Container $container
* @return void
*/
private function setupActivator(Container $container)
{
$activator = $container[Activator::class];
if (did_action(ACTION_ACTIVATION)) {
$activator->handleActivation();
}
$activator->registerCallback(
function () use ($container) {
$contentRelations = $container[ContentRelations::class];
try {
$contentRelations->deleteAllRelationsForInvalidSites();
$contentRelations->deleteAllRelationsForInvalidContent(ContentRelations::CONTENT_TYPE_POST);
$contentRelations->deleteAllRelationsForInvalidContent(ContentRelations::CONTENT_TYPE_TERM);
} catch (NonexistentTable $exc) {
return;
}
}
);
$activator->handlePendingActivation();
}
}
|
<?php
namespace App\Http\Controllers\admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class coursecategoryController extends Controller
{
public function __construct()
{
$this->data= \App\system::getmasterdata();
}
public function index()
{
$this->data['coursecategory']=\App\Models\coursecategory::getList();
foreach ($this->data['coursecategory'] as $inst)
{
$inst->parent_category_name = \App\Models\coursecategory::getparentbyID($inst->parent_category_id);
}
return view('admin.coursecategory.index', $this->data);
}
public function create()
{
$this->data['coursecategory']=\App\Models\coursecategory::getList();
$this->data['jobcategory']=\App\Models\job::getList();
return view('admin.coursecategory.create', $this->data);
}
public function store(Request $request)
{
$coursecategory =\App\Models\coursecategory::createCourseCategory($request->all());
if (isset($coursecategory)) {
return \Redirect::route('coursecategory.index')->with('message', 'State saved correctly!!!');
}
return back();
}
public function show($id)
{
//
}
public function edit($id)
{
$this->data['singlecoursecategory'] =\App\Models\coursecategory::getbyID($id);
$this->data['coursecategory']=\App\Models\coursecategory::getList();
return view('admin.coursecategory.edit', $this->data);
}
public function update(Request $request, $id)
{
$result= \App\Models\coursecategory::updatebyID($id,$request);
if (isset($result)) {
alert()->success('Data has been saved Prperly push send.', 'Save Sucessfully');
return \Redirect::route('coursecategory.index');
}
alert()->error('You Data has not been saved Prperly.', 'Something Went Wrong');
return \Redirect::route('coursecategory.index');
}
public function destroy($id)
{
$result= \App\Models\coursecategory::destroy($id);
if (isset($result)) {
return true;
}
return false;
}
}
|
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Stripe, Mailgun, SparkPost and others. This file provides a sane
| default location for this type of information, allowing packages
| to have a conventional place to find your various credentials.
|
*/
'mailgun' => [
'domain' => env('MAILGUN_DOMAIN'),
'secret' => env('MAILGUN_SECRET'),
],
'ses' => [
'key' => env('SES_KEY'),
'secret' => env('SES_SECRET'),
'region' => 'us-east-1',
],
'sparkpost' => [
'secret' => env('SPARKPOST_SECRET'),
],
'stripe' => [
'model' => NicStore\User::class,
'key' => env('STRIPE_KEY'),
'secret' => env('STRIPE_SECRET'),
],
];
|
<?php
namespace EGOL\ReisenLizenzPayment\Requests;
use App\Http\Requests\Request;
class CreatePaymentHistoryRequest extends Request
{
/**
* 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 [
'value' => 'required|regex:/(\d+)[,.]?(\d{2})?/',
'description' => 'required'
];
}
public function messages()
{
return [
'description.required' => 'Bitte geben Sie eine Art der Zahlung an.',
'value.required' => 'Bitte geben Sie eine Betrag an.',
'value.regex' => 'Bitte geben Sie einen korrekten Betrag an.'
];
}
}
|
<?php
/**
* @author PhpTheme Dev Team <dev@getphptheme.com>
* @link http://getphptheme.com
* @license MIT
*/
namespace PhpTheme\Themes\Bootstrap4;
class GridHeaderButton extends GridHeaderLink
{
}
|
<?php
namespace ContainerREX4rqs;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/*
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getForm_ServerParamsService extends App_KernelProdContainer
{
/*
* Gets the private 'form.server_params' shared service.
*
* @return \Symfony\Component\Form\Util\ServerParams
*/
public static function do($container, $lazyLoad = true)
{
include_once \dirname(__DIR__, 4).'/vendor/symfony/form/Util/ServerParams.php';
return $container->privates['form.server_params'] = new \Symfony\Component\Form\Util\ServerParams(($container->services['request_stack'] ?? ($container->services['request_stack'] = new \Symfony\Component\HttpFoundation\RequestStack())));
}
}
|
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Cviebrock\EloquentSluggable\Sluggable;
use Kyslik\ColumnSortable\Sortable;
class PetInformartion extends Model
{
use Sluggable;
use HasFactory, Sortable;
protected $table = 'pet_informartions';
protected $fillable = [
'name', 'code', 'weight', 'gender'
];
public $sortable = ['name','code'];
public function sluggable(): array
{
return [
'slug' => [
'source' => 'title'
]
];
}
}
|
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use App\ResizeImage;
class MediaGallery extends Model
{
//返回图片上传用户
public function user() {
return $this->hasOne('App\User');
}
//返回所属产品
public function product() {
return $this->belongsTo('App\Product');
}
//保存产品图
public static function saveMedia($file, $productId, $userId, $sort, $label) {
if (!in_array($file->getMimeType(), ['image/png', 'image/gif', 'image/jpeg'])) {
return;
}
$imagePath = public_path() . '/productImages';
$thumbPath = public_path() . '/productThumbnails';
$subDir = '/' . substr($productId, 0, 1) . '/' . $productId;
$fileName = date('his') . '_' . str_random(6) . '.' . strtolower($file->getClientOriginalExtension());
$image = $file->move($imagePath . $subDir, $fileName);
$resizeImage = new ResizeImage();
$resizeImage->resizeImage($image, 100, 100,$thumbPath . $subDir . '/' . $fileName);
$imageData = new MediaGallery;
$imageData->product_id = $productId;
$imageData->user_id = $userId;
$imageData->path = $subDir . '/' . $fileName;
$imageData->sort = $sort;
$imageData->label = $label;
$imageData->save();
}
//删除部分文件文件
public static function deleteMedia($pathArray) {
if (empty($pathArray)) {
return;
}
if (!is_array($pathArray)) {
$pathArray[] = $pathArray;
}
foreach ($pathArray as $path) {
$imagePath = public_path() . '/productImages' . $path;
$thumbPath = public_path() . '/productThumbnails' . $path;
@unlink($imagePath);
@unlink($thumbPath);
}
}
}
|
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\rest;
use Yii;
use yii\base\Component;
use yii\base\Model;
use yii\data\DataProviderInterface;
use yii\data\Pagination;
use yii\helpers\ArrayHelper;
use yii\web\Link;
use yii\web\Request;
use yii\web\Response;
/**
* Serializer converts resource objects and collections into array representation.
*
* Serializer is mainly used by REST controllers to convert different objects into array representation
* so that they can be further turned into different formats, such as JSON, XML, by response formatters.
*
* The default implementation handles resources as [[Model]] objects and collections as objects
* implementing [[DataProviderInterface]]. You may override [[serialize()]] to handle more types.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class Serializer extends Component
{
/**
* @var string the name of the query parameter containing the information about which fields should be returned
* for a [[Model]] object. If the parameter is not provided or empty, the default set of fields as defined
* by [[Model::fields()]] will be returned.
*/
public $fieldsParam = 'fields';
/**
* @var string the name of the query parameter containing the information about which fields should be returned
* in addition to those listed in [[fieldsParam]] for a resource object.
*/
public $expandParam = 'expand';
/**
* @var string the name of the HTTP header containing the information about total number of data items.
* This is used when serving a resource collection with pagination.
*/
public $totalCountHeader = 'X-Pagination-Total-Count';
/**
* @var string the name of the HTTP header containing the information about total number of pages of data.
* This is used when serving a resource collection with pagination.
*/
public $pageCountHeader = 'X-Pagination-Page-Count';
/**
* @var string the name of the HTTP header containing the information about the current page number (1-based).
* This is used when serving a resource collection with pagination.
*/
public $currentPageHeader = 'X-Pagination-Current-Page';
/**
* @var string the name of the HTTP header containing the information about the number of data items in each page.
* This is used when serving a resource collection with pagination.
*/
public $perPageHeader = 'X-Pagination-Per-Page';
/**
* @var string the name of the envelope (e.g. `items`) for returning the resource objects in a collection.
* This is used when serving a resource collection. When this is set and pagination is enabled, the serializer
* will return a collection in the following format:
*
* ```php
* [
* 'items' => [...], // assuming collectionEnvelope is "items"
* '_links' => { // pagination links as returned by Pagination::getLinks()
* 'self' => '...',
* 'next' => '...',
* 'last' => '...',
* },
* '_meta' => { // meta information as returned by Pagination::toArray()
* 'totalCount' => 100,
* 'pageCount' => 5,
* 'currentPage' => 1,
* 'perPage' => 20,
* },
* ]
* ```
*
* If this property is not set, the resource arrays will be directly returned without using envelope.
* The pagination information as shown in `_links` and `_meta` can be accessed from the response HTTP headers.
*/
public $collectionEnvelope;
/**
* @var Request the current request. If not set, the `request` application component will be used.
*/
public $request;
/**
* @var Response the response to be sent. If not set, the `response` application component will be used.
*/
public $response;
/**
* @inheritdoc
*/
public function init()
{
if ($this->request === null) {
$this->request = Yii::$app->getRequest();
}
if ($this->response === null) {
$this->response = Yii::$app->getResponse();
}
}
/**
* Serializes the given data into a format that can be easily turned into other formats.
* This method mainly converts the objects of recognized types into array representation.
* It will not do conversion for unknown object types or non-object data.
* The default implementation will handle [[Model]] and [[DataProviderInterface]].
* You may override this method to support more object types.
* @param mixed $data the data to be serialized.
* @return mixed the converted data.
*/
public function serialize($data)
{
if ($data instanceof Model) {
return $data->hasErrors() ? $this->serializeModelErrors($data) : $this->serializeModel($data);
} elseif ($data instanceof DataProviderInterface) {
return $this->serializeDataProvider($data);
} else {
return $data;
}
}
/**
* @return array the names of the requested fields. The first element is an array
* representing the list of default fields requested, while the second element is
* an array of the extra fields requested in addition to the default fields.
* @see Model::fields()
* @see Model::extraFields()
*/
protected function getRequestedFields()
{
$fields = $this->request->get($this->fieldsParam);
$expand = $this->request->get($this->expandParam);
return [
preg_split('/\s*,\s*/', $fields, -1, PREG_SPLIT_NO_EMPTY),
preg_split('/\s*,\s*/', $expand, -1, PREG_SPLIT_NO_EMPTY),
];
}
/**
* Serializes a data provider.
* @param DataProviderInterface $dataProvider
* @return array the array representation of the data provider.
*/
protected function serializeDataProvider($dataProvider)
{
$models = $this->serializeModels($dataProvider->getModels());
if (($pagination = $dataProvider->getPagination()) !== false) {
$this->addPaginationHeaders($pagination);
}
if ($this->request->getIsHead()) {
return null;
} elseif ($this->collectionEnvelope === null) {
return $models;
} else {
$result = [
$this->collectionEnvelope => $models,
];
if ($pagination !== false) {
return array_merge($result, $this->serializePagination($pagination));
} else {
return $result;
}
}
}
/**
* Serializes a pagination into an array.
* @param Pagination $pagination
* @return array the array representation of the pagination
* @see addPaginationHeader()
*/
protected function serializePagination($pagination)
{
return [
'_links' => Link::serialize($pagination->getLinks(true)),
'_meta' => [
'totalCount' => $pagination->totalCount,
'pageCount' => $pagination->getPageCount(),
'currentPage' => $pagination->getPage(),
'perPage' => $pagination->getPageSize(),
],
];
}
/**
* Adds HTTP headers about the pagination to the response.
* @param Pagination $pagination
*/
protected function addPaginationHeaders($pagination)
{
$links = [];
foreach ($pagination->getLinks(true) as $rel => $url) {
$links[] = "<$url>; rel=$rel";
}
$this->response->getHeaders()
->set($this->totalCountHeader, $pagination->totalCount)
->set($this->pageCountHeader, $pagination->getPageCount())
->set($this->currentPageHeader, $pagination->getPage() + 1)
->set($this->perPageHeader, $pagination->pageSize)
->set('Link', implode(', ', $links));
}
/**
* Serializes a model object.
* @param Model $model
* @return array the array representation of the model
*/
protected function serializeModel($model)
{
if ($this->request->getIsHead()) {
return null;
} else {
list ($fields, $expand) = $this->getRequestedFields();
return $model->toArray($fields, $expand);
}
}
/**
* Serializes the validation errors in a model.
* @param Model $model
* @return array the array representation of the errors
*/
protected function serializeModelErrors($model)
{
$this->response->setStatusCode(422, 'Data Validation Failed.');
$result = [];
foreach ($model->getFirstErrors() as $name => $message) {
$result[] = [
'field' => $name,
'message' => $message,
];
}
return $result;
}
/**
* Serializes a set of models.
* @param array $models
* @return array the array representation of the models
*/
protected function serializeModels(array $models)
{
list ($fields, $expand) = $this->getRequestedFields();
foreach ($models as $i => $model) {
if ($model instanceof Model) {
$models[$i] = $model->toArray($fields, $expand);
} elseif (is_array($model)) {
$models[$i] = ArrayHelper::toArray($model);
}
}
return $models;
}
}
|
<!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">
<link rel="stylesheet" href="{{ asset('css/app.css') }}">
<title>CTFU</title>
</head>
<style>
.row, .align-items-center, .h-100{
position: absolute;
left: 0;
right: 0;
}
</style>
<body>
<div class="container h-100">
<div class="row align-items-center h-100">
<div class="col-6 mx-auto">
<div class="card">
<div class="card-header">
<h3>Login</h3>
</div>
<div class="card-body">
<form action="">
<div>
</div>
<div>
</div>
<div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|
<?php
namespace Modules\Initializer\Traits;
trait ReactivityTrait {
protected static function bootReactivityTrait() {
static::saving(function ($model) {
//$attributes = $model->getConncetion()->getSchemaBuilder()->get
});
static::saved(function($model) {
});
}
}
|
<header class="header dark-bg">
<div class="toggle-nav">
<div class="icon-reorder tooltips" data-original-title="Toggle Navigation" data-placement="bottom"><i class="icon_menu"></i></div>
</div>
<!--logo start-->
<a href="/dashboard" class="logo"> Max <span class="lite">Blog</span></a>
<!--logo end-->
<div class="nav search-row" id="top_menu">
<!-- search form start -->
<ul class="nav top-menu">
<li>
<form class="navbar-form">
<input class="form-control" placeholder="Search" type="text">
</form>
</li>
</ul>
<!-- search form end -->
</div>
<div class="top-nav notification-row">
<!-- notificatoin dropdown start-->
<ul class="nav pull-right top-menu">
<!-- task notificatoin start -->
<li id="task_notificatoin_bar" class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<i class="icon-task-l"></i>
<span class="badge bg-important">6</span>
</a>
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<span class="profile-ava">
<img style="height:40px ;" alt="" src="images/p4.PNG"/>
</span>
<span class="username">Admin</span>
<b class="caret"></b>
</a>
<ul class="dropdown-menu extended logout">
<div class="log-arrow-up"></div>
<li class="eborder-top">
<a href="#"><i class="icon_profile"></i> My Profile</a>
</li>
<li>
<a href="#"><i class="icon_clock_alt"></i> Timeline</a>
</li>
<li>
<a href="/adminlogin"><i class="icon_key_alt"></i> Log Out</a>
</li>
</ul>
</li>
<!-- user login dropdown end -->
</ul>
<!-- notificatoin dropdown end-->
</div>
</header>
|
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/6/5
* Time: 8:57
*/
namespace Liang\Models;
use AvoRed\Ecommerce\Models\Database\User;
class Article extends BaseModel
{
protected $fillable = ['title','content','status','created_by','tags'];
public function user(){
return $this->hasOne(User::class,'id','created_by');
}
public function comment(){
return $this->hasMany(Comment::class);
}
public function getArticleCommentAttribute(){
return $this->comment()->count();
}
public function getNewCommentAttribute(){
return $this->comment()->max('updated_at');
}
public function getSubContentAttribute(){
$content = strip_tags($this->attributes['content']);
$length = strlen($content);
$substr = mb_substr($content,0,200,'utf-8');
return $substr.(($length > 200) ? '...' : '');
// return $content;
}
public function getTagArrayAttribute(){
$tags = preg_split('/\s*,|,、\s*/',$this->attributes['tags']);
return $tags;
}
}
|
<?php
/*
* DataTables example server-side processing script.
*
* Please note that this script is intentionally extremely simply to show how
* server-side processing can be implemented, and probably shouldn't be used as
* the basis for a large complex system. It is suitable for simple use cases as
* for learning.
*
* See http://datatables.net/usage/server-side for full details on the server-
* side processing requirements of DataTables.
*
* @license MIT - http://datatables.net/license_mit
*/
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Easy set variables
*/
// DB table to use
$table = 'tblusers';
// Table's primary key
$primaryKey = 'fldUserId';
// Array of database columns which should be read and sent back to DataTables.
// The `db` parameter represents the column name in the database, while the `dt`
// parameter represents the DataTables column identifier. In this case simple
// indexes
$columns = array(
array( 'db' => 'fldUserId', 'dt' => 0 ),
array( 'db' => 'fldUserUsername', 'dt' => 1 ),
array( 'db' => 'fldUserPassword', 'dt' => 2 ),
array( 'db' => 'fldUserStatus', 'dt' => 3 ),
array( 'db' => 'tblRoles_fldRoleId', 'dt' => 4 )
);
// SQL server connection information
include 'xsideconnection.php';
$where = "fldUserDeleted <> 1";
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* If you just want to use the basic configuration for DataTables with PHP
* server-side, there is no need to edit below this line.
*/
require( '../inc/ssp.class.php' );
echo json_encode(
SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ,$where)
);
|
<!DOCTYPE html>
<html lang="en">
<!-- Mirrored from doccure-html.dreamguystech.com/template/patient-profile.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 22 Mar 2021 19:28:23 GMT -->
<head>
<meta charset="utf-8">
<title>Doccure</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
<!-- Favicons -->
<link href="assets/img/favicon.png" rel="icon">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<!-- Fontawesome CSS -->
<link rel="stylesheet" href="assets/plugins/fontawesome/css/fontawesome.min.css">
<link rel="stylesheet" href="assets/plugins/fontawesome/css/all.min.css">
<!-- Datetimepicker CSS -->
<link rel="stylesheet" href="assets/css/bootstrap-datetimepicker.min.css">
<!-- Main CSS -->
<link rel="stylesheet" href="assets/css/style.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.min.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Main Wrapper -->
<div class="main-wrapper">
<!-- Header -->
<header class="header">
<nav class="navbar navbar-expand-lg header-nav">
<div class="navbar-header">
<a id="mobile_btn" href="javascript:void(0);">
<span class="bar-icon">
<span></span>
<span></span>
<span></span>
</span>
</a>
<a href="index.html" class="navbar-brand logo">
<img src="assets/img/logo.png" class="img-fluid" alt="Logo">
</a>
</div>
<div class="main-menu-wrapper">
<div class="menu-header">
<a href="index.html" class="menu-logo">
<img src="assets/img/logo.png" class="img-fluid" alt="Logo">
</a>
<a id="menu_close" class="menu-close" href="javascript:void(0);">
<i class="fas fa-times"></i>
</a>
</div>
<ul class="main-nav">
<li class="has-submenu">
<a href="#">Home <i class="fas fa-chevron-down"></i></a>
<ul class="submenu">
<li><a href="index.html">Home</a></li>
<li><a href="index-1.html">Home 1</a></li>
<li><a href="index-2.html">Home 2</a></li>
<li><a href="index-3.html">Home slider 1</a></li>
<li><a href="index-slide.html">Home slider 2</a></li>
</ul>
</li>
<li class="has-submenu active">
<a href="#">Doctors <i class="fas fa-chevron-down"></i></a>
<ul class="submenu">
<li><a href="doctor-dashboard.html">Doctor Dashboard</a></li>
<li><a href="appointments.html">Appointments</a></li>
<li><a href="schedule-timings.html">Schedule Timing</a></li>
<li><a href="my-patients.html">Patients List</a></li>
<li class="active"><a href="patient-profile.html">Patients Profile</a></li>
<li><a href="chat-doctor.html">Chat</a></li>
<li><a href="invoices.html">Invoices</a></li>
<li><a href="doctor-profile-settings.html">Profile Settings</a></li>
<li><a href="reviews.html">Reviews</a></li>
<li><a href="doctor-register.html">Doctor Register</a></li>
</ul>
</li>
<li class="has-submenu">
<a href="#">Patients <i class="fas fa-chevron-down"></i></a>
<ul class="submenu">
<li class="has-submenu">
<a href="#">Doctors</a>
<ul class="submenu">
<li><a href="map-grid.html">Map Grid</a></li>
<li><a href="map-list.html">Map List</a></li>
</ul>
</li>
<li><a href="search.html">Search Doctor</a></li>
<li><a href="doctor-profile.html">Doctor Profile</a></li>
<li><a href="booking.html">Booking</a></li>
<li><a href="checkout.html">Checkout</a></li>
<li><a href="booking-success.html">Booking Success</a></li>
<li><a href="patient-dashboard.html">Patient Dashboard</a></li>
<li><a href="favourites.html">Favourites</a></li>
<li><a href="chat.html">Chat</a></li>
<li><a href="profile-settings.html">Profile Settings</a></li>
<li><a href="change-password.html">Change Password</a></li>
</ul>
</li>
<li class="has-submenu">
<a href="#">Pages <i class="fas fa-chevron-down"></i></a>
<ul class="submenu">
<li><a href="voice-call.html">Voice Call</a></li>
<li><a href="video-call.html">Video Call</a></li>
<li><a href="search.html">Search Doctors</a></li>
<li><a href="calendar.html">Calendar</a></li>
<li><a href="components.html">Components</a></li>
<li class="has-submenu">
<a href="invoices.html">Invoices</a>
<ul class="submenu">
<li><a href="invoices.html">Invoices</a></li>
<li><a href="invoice-view.html">Invoice View</a></li>
</ul>
</li>
<li><a href="blank-page.html">Starter Page</a></li>
<li><a href="login.html">Login</a></li>
<li><a href="register.html">Register</a></li>
<li><a href="forgot-password.html">Forgot Password</a></li>
</ul>
</li>
<li class="has-submenu">
<a href="#">Blog <i class="fas fa-chevron-down"></i></a>
<ul class="submenu">
<li><a href="blog-list.html">Blog List</a></li>
<li><a href="blog-grid.html">Blog Grid</a></li>
<li><a href="blog-details.html">Blog Details</a></li>
</ul>
</li>
<li>
<a href="admin/index.html" target="_blank">Admin</a>
</li>
<li class="login-link">
<a href="login.html">Login / Signup</a>
</li>
</ul>
</div>
<ul class="nav header-navbar-rht">
<li class="nav-item contact-item">
<div class="header-contact-img">
<i class="far fa-hospital"></i>
</div>
<div class="header-contact-detail">
<p class="contact-header">Contact</p>
<p class="contact-info-header"> +1 315 369 5943</p>
</div>
</li>
<!-- User Menu -->
<li class="nav-item dropdown has-arrow logged-item">
<a href="#" class="dropdown-toggle nav-link" data-toggle="dropdown">
<span class="user-img">
<img class="rounded-circle" src="assets/img/doctors/doctor-thumb-02.jpg" width="31" alt="Darren Elder">
</span>
</a>
<div class="dropdown-menu dropdown-menu-right">
<div class="user-header">
<div class="avatar avatar-sm">
<img src="assets/img/doctors/doctor-thumb-02.jpg" alt="User Image" class="avatar-img rounded-circle">
</div>
<div class="user-text">
<h6>Darren Elder</h6>
<p class="text-muted mb-0">Doctor</p>
</div>
</div>
<a class="dropdown-item" href="doctor-dashboard.html">Dashboard</a>
<a class="dropdown-item" href="doctor-profile-settings.html">Profile Settings</a>
<a class="dropdown-item" href="login.html">Logout</a>
</div>
</li>
<!-- /User Menu -->
</ul>
</nav>
</header>
<!-- /Header -->
<!-- Breadcrumb -->
<div class="breadcrumb-bar">
<div class="container-fluid">
<div class="row align-items-center">
<div class="col-md-12 col-12">
<nav aria-label="breadcrumb" class="page-breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.html">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Profile</li>
</ol>
</nav>
<h2 class="breadcrumb-title">Profile</h2>
</div>
</div>
</div>
</div>
<!-- /Breadcrumb -->
<!-- Page Content -->
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-5 col-lg-4 col-xl-3 theiaStickySidebar dct-dashbd-lft">
<!-- Profile Widget -->
<div class="card widget-profile pat-widget-profile">
<div class="card-body">
<div class="pro-widget-content">
<div class="profile-info-widget">
<a href="#" class="booking-doc-img">
<img src="assets/img/patients/patient.jpg" alt="User Image">
</a>
<div class="profile-det-info">
<h3>Richard Wilson</h3>
<div class="patient-details">
<h5><b>Patient ID :</b> PT0016</h5>
<h5 class="mb-0"><i class="fas fa-map-marker-alt"></i> Newyork, United States</h5>
</div>
</div>
</div>
</div>
<div class="patient-info">
<ul>
<li>Phone <span>+1 952 001 8563</span></li>
<li>Age <span>38 Years, Male</span></li>
<li>Blood Group <span>AB+</span></li>
</ul>
</div>
</div>
</div>
<!-- /Profile Widget -->
<!-- Last Booking -->
<div class="card">
<div class="card-header">
<h4 class="card-title">Last Booking</h4>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">
<div class="media align-items-center">
<div class="mr-3">
<img alt="Image placeholder" src="assets/img/doctors/doctor-thumb-02.jpg" class="avatar rounded-circle">
</div>
<div class="media-body">
<h5 class="d-block mb-0">Dr. Darren Elder </h5>
<span class="d-block text-sm text-muted">Dentist</span>
<span class="d-block text-sm text-muted">14 Nov 2019 5.00 PM</span>
</div>
</div>
</li>
<li class="list-group-item">
<div class="media align-items-center">
<div class="mr-3">
<img alt="Image placeholder" src="assets/img/doctors/doctor-thumb-02.jpg" class="avatar rounded-circle">
</div>
<div class="media-body">
<h5 class="d-block mb-0">Dr. Darren Elder </h5>
<span class="d-block text-sm text-muted">Dentist</span>
<span class="d-block text-sm text-muted">12 Nov 2019 11.00 AM</span>
</div>
</div>
</li>
</ul>
</div>
<!-- /Last Booking -->
</div>
<div class="col-md-7 col-lg-8 col-xl-9 dct-appoinment">
<div class="card">
<div class="card-body pt-0">
<div class="user-tabs">
<ul class="nav nav-tabs nav-tabs-bottom nav-justified flex-wrap">
<li class="nav-item">
<a class="nav-link active" href="#pat_appointments" data-toggle="tab">Appointments</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#pres" data-toggle="tab"><span>Prescription</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#medical" data-toggle="tab"><span class="med-records">Medical Records</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#billing" data-toggle="tab"><span>Billing</span></a>
</li>
</ul>
</div>
<div class="tab-content">
<!-- Appointment Tab -->
<div id="pat_appointments" class="tab-pane fade show active">
<div class="card card-table mb-0">
<div class="card-body">
<div class="table-responsive">
<table class="table table-hover table-center mb-0">
<thead>
<tr>
<th>Doctor</th>
<th>Appt Date</th>
<th>Booking Date</th>
<th>Amount</th>
<th>Follow Up</th>
<th>Status</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-02.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Darren Elder <span>Dental</span></a>
</h2>
</td>
<td>14 Nov 2019 <span class="d-block text-info">10.00 AM</span></td>
<td>12 Nov 2019</td>
<td>$160</td>
<td>16 Nov 2019</td>
<td><span class="badge badge-pill bg-success-light">Confirm</span></td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-success-light">
<i class="far fa-edit"></i> Edit
</a>
</div>
</td>
</tr>
<tr>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-02.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Darren Elder <span>Dental</span></a>
</h2>
</td>
<td>12 Nov 2019 <span class="d-block text-info">8.00 PM</span></td>
<td>12 Nov 2019</td>
<td>$250</td>
<td>14 Nov 2019</td>
<td><span class="badge badge-pill bg-success-light">Confirm</span></td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-success-light">
<i class="far fa-edit"></i> Edit
</a>
</div>
</td>
</tr>
<tr>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-02.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Darren Elder <span>Dental</span></a>
</h2>
</td>
<td>11 Nov 2019 <span class="d-block text-info">11.00 AM</span></td>
<td>10 Nov 2019</td>
<td>$400</td>
<td>13 Nov 2019</td>
<td><span class="badge badge-pill bg-danger-light">Cancelled</span></td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-success-light">
<i class="far fa-edit"></i> Edit
</a>
</div>
</td>
</tr>
<tr>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-02.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Darren Elder <span>Dental</span></a>
</h2>
</td>
<td>10 Nov 2019 <span class="d-block text-info">3.00 PM</span></td>
<td>10 Nov 2019</td>
<td>$350</td>
<td>12 Nov 2019</td>
<td><span class="badge badge-pill bg-warning-light">Pending</span></td>
<td class="text-right">
<div class="table-action">
<a href="edit-prescription.html" class="btn btn-sm bg-success-light">
<i class="far fa-edit"></i> Edit
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-danger-light">
<i class="far fa-trash-alt"></i> Cancel
</a>
</div>
</td>
</tr>
<tr>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-02.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Darren Elder <span>Dental</span></a>
</h2>
</td>
<td>9 Nov 2019 <span class="d-block text-info">7.00 PM</span></td>
<td>8 Nov 2019</td>
<td>$75</td>
<td>11 Nov 2019</td>
<td><span class="badge badge-pill bg-success-light">Confirm</span></td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-success-light">
<i class="far fa-edit"></i> Edit
</a>
</div>
</td>
</tr>
<tr>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-02.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Darren Elder <span>Dental</span></a>
</h2>
</td>
<td>8 Nov 2019 <span class="d-block text-info">9.00 AM</span></td>
<td>6 Nov 2019</td>
<td>$175</td>
<td>10 Nov 2019</td>
<td><span class="badge badge-pill bg-danger-light">Cancelled</span></td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-success-light">
<i class="far fa-edit"></i> Edit
</a>
</div>
</td>
</tr>
<tr>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-02.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Darren Elder <span>Dental</span></a>
</h2>
</td>
<td>8 Nov 2019 <span class="d-block text-info">6.00 PM</span></td>
<td>6 Nov 2019</td>
<td>$450</td>
<td>10 Nov 2019</td>
<td><span class="badge badge-pill bg-success-light">Confirm</span></td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-success-light">
<i class="far fa-edit"></i> Edit
</a>
</div>
</td>
</tr>
<tr>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-02.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Darren Elder <span>Dental</span></a>
</h2>
</td>
<td>7 Nov 2019 <span class="d-block text-info">9.00 PM</span></td>
<td>7 Nov 2019</td>
<td>$275</td>
<td>9 Nov 2019</td>
<td><span class="badge badge-pill bg-info-light">Completed</span></td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="far fa-clock"></i> Reschedule
</a>
</div>
</td>
</tr>
<tr>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-02.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Darren Elder <span>Dental</span></a>
</h2>
</td>
<td>6 Nov 2019 <span class="d-block text-info">8.00 PM</span></td>
<td>4 Nov 2019</td>
<td>$600</td>
<td>8 Nov 2019</td>
<td><span class="badge badge-pill bg-info-light">Completed</span></td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="far fa-clock"></i> Reschedule
</a>
</div>
</td>
</tr>
<tr>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-02.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Darren Elder <span>Dental</span></a>
</h2>
</td>
<td>5 Nov 2019 <span class="d-block text-info">5.00 PM</span></td>
<td>1 Nov 2019</td>
<td>$100</td>
<td>7 Nov 2019</td>
<td><span class="badge badge-pill bg-info-light">Completed</span></td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="far fa-clock"></i> Reschedule
</a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- /Appointment Tab -->
<!-- Prescription Tab -->
<div class="tab-pane fade" id="pres">
<div class="text-right">
<a href="add-prescription.html" class="add-new-btn">Add Prescription</a>
</div>
<div class="card card-table mb-0">
<div class="card-body">
<div class="table-responsive">
<table class="table table-hover table-center mb-0">
<thead>
<tr>
<th>Date </th>
<th>Name</th>
<th>Created by </th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>14 Nov 2019</td>
<td>Prescription 1</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-01.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Ruby Perrin <span>Dental</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>13 Nov 2019</td>
<td>Prescription 2</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-02.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Darren Elder <span>Dental</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
<a href="edit-prescription.html" class="btn btn-sm bg-success-light">
<i class="fas fa-edit"></i> Edit
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-danger-light">
<i class="far fa-trash-alt"></i> Delete
</a>
</div>
</td>
</tr>
<tr>
<td>12 Nov 2019</td>
<td>Prescription 3</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-03.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Deborah Angel <span>Cardiology</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>11 Nov 2019</td>
<td>Prescription 4</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-04.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Sofia Brient <span>Urology</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>10 Nov 2019</td>
<td>Prescription 5</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-05.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Marvin Campbell <span>Dental</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>9 Nov 2019</td>
<td>Prescription 6</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-06.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Katharine Berthold <span>Orthopaedics</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>8 Nov 2019</td>
<td>Prescription 7</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-07.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Linda Tobin <span>Neurology</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>7 Nov 2019</td>
<td>Prescription 8</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-08.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Paul Richard <span>Dermatology</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>6 Nov 2019</td>
<td>Prescription 9</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-09.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. John Gibbs <span>Dental</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>5 Nov 2019</td>
<td>Prescription 10</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-10.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Olga Barlow <span>Dental</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- /Prescription Tab -->
<!-- Medical Records Tab -->
<div class="tab-pane fade" id="medical">
<div class="text-right">
<a href="#" class="add-new-btn" data-toggle="modal" data-target="#add_medical_records">Add Medical Records</a>
</div>
<div class="card card-table mb-0">
<div class="card-body">
<div class="table-responsive">
<table class="table table-hover table-center mb-0">
<thead>
<tr>
<th>ID</th>
<th>Date </th>
<th>Description</th>
<th>Attachment</th>
<th>Created</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="javascript:void(0);">#MR-0010</a></td>
<td>14 Nov 2019</td>
<td>Dental Filling</td>
<td><a href="#">dental-test.pdf</a></td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-01.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Ruby Perrin <span>Dental</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td><a href="javascript:void(0);">#MR-0009</a></td>
<td>13 Nov 2019</td>
<td>Teeth Cleaning</td>
<td><a href="#">dental-test.pdf</a></td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-02.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Darren Elder <span>Dental</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
<a href="edit-prescription.html" class="btn btn-sm bg-success-light" data-toggle="modal" data-target="#add_medical_records">
<i class="fas fa-edit"></i> Edit
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-danger-light">
<i class="far fa-trash-alt"></i> Delete
</a>
</div>
</td>
</tr>
<tr>
<td><a href="javascript:void(0);">#MR-0008</a></td>
<td>12 Nov 2019</td>
<td>General Checkup</td>
<td><a href="#">cardio-test.pdf</a></td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-03.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Deborah Angel <span>Cardiology</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td><a href="javascript:void(0);">#MR-0007</a></td>
<td>11 Nov 2019</td>
<td>General Test</td>
<td><a href="#">general-test.pdf</a></td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-04.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Sofia Brient <span>Urology</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td><a href="javascript:void(0);">#MR-0006</a></td>
<td>10 Nov 2019</td>
<td>Eye Test</td>
<td><a href="#">eye-test.pdf</a></td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-05.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Marvin Campbell <span>Ophthalmology</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td><a href="javascript:void(0);">#MR-0005</a></td>
<td>9 Nov 2019</td>
<td>Leg Pain</td>
<td><a href="#">ortho-test.pdf</a></td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-06.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Katharine Berthold <span>Orthopaedics</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td><a href="javascript:void(0);">#MR-0004</a></td>
<td>8 Nov 2019</td>
<td>Head pain</td>
<td><a href="#">neuro-test.pdf</a></td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-07.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Linda Tobin <span>Neurology</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td><a href="javascript:void(0);">#MR-0003</a></td>
<td>7 Nov 2019</td>
<td>Skin Alergy</td>
<td><a href="#">alergy-test.pdf</a></td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-08.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Paul Richard <span>Dermatology</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td><a href="javascript:void(0);">#MR-0002</a></td>
<td>6 Nov 2019</td>
<td>Dental Removing</td>
<td><a href="#">dental-test.pdf</a></td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-09.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. John Gibbs <span>Dental</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td><a href="javascript:void(0);">#MR-0001</a></td>
<td>5 Nov 2019</td>
<td>Dental Filling</td>
<td><a href="#">dental-test.pdf</a></td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-10.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Olga Barlow <span>Dental</span></a>
</h2>
</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- /Medical Records Tab -->
<!-- Billing Tab -->
<div class="tab-pane" id="billing">
<div class="text-right">
<a class="add-new-btn" href="add-billing.html">Add Billing</a>
</div>
<div class="card card-table mb-0">
<div class="card-body">
<div class="table-responsive">
<table class="table table-hover table-center mb-0">
<thead>
<tr>
<th>Invoice No</th>
<th>Doctor</th>
<th>Amount</th>
<th>Paid On</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="invoice-view.html">#INV-0010</a>
</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-01.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Ruby Perrin <span>Dental</span></a>
</h2>
</td>
<td>$450</td>
<td>14 Nov 2019</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>
<a href="invoice-view.html">#INV-0009</a>
</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-02.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Darren Elder <span>Dental</span></a>
</h2>
</td>
<td>$300</td>
<td>13 Nov 2019</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
<a href="edit-billing.html" class="btn btn-sm bg-success-light">
<i class="fas fa-edit"></i> Edit
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-danger-light">
<i class="far fa-trash-alt"></i> Delete
</a>
</div>
</td>
</tr>
<tr>
<td>
<a href="invoice-view.html">#INV-0008</a>
</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-03.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Deborah Angel <span>Cardiology</span></a>
</h2>
</td>
<td>$150</td>
<td>12 Nov 2019</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>
<a href="invoice-view.html">#INV-0007</a>
</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-04.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Sofia Brient <span>Urology</span></a>
</h2>
</td>
<td>$50</td>
<td>11 Nov 2019</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>
<a href="invoice-view.html">#INV-0006</a>
</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-05.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Marvin Campbell <span>Ophthalmology</span></a>
</h2>
</td>
<td>$600</td>
<td>10 Nov 2019</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>
<a href="invoice-view.html">#INV-0005</a>
</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-06.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Katharine Berthold <span>Orthopaedics</span></a>
</h2>
</td>
<td>$200</td>
<td>9 Nov 2019</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>
<a href="invoice-view.html">#INV-0004</a>
</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-07.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Linda Tobin <span>Neurology</span></a>
</h2>
</td>
<td>$100</td>
<td>8 Nov 2019</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>
<a href="invoice-view.html">#INV-0003</a>
</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-08.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Paul Richard <span>Dermatology</span></a>
</h2>
</td>
<td>$250</td>
<td>7 Nov 2019</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>
<a href="invoice-view.html">#INV-0002</a>
</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-09.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. John Gibbs <span>Dental</span></a>
</h2>
</td>
<td>$175</td>
<td>6 Nov 2019</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
<tr>
<td>
<a href="invoice-view.html">#INV-0001</a>
</td>
<td>
<h2 class="table-avatar">
<a href="doctor-profile.html" class="avatar avatar-sm mr-2">
<img class="avatar-img rounded-circle" src="assets/img/doctors/doctor-thumb-10.jpg" alt="User Image">
</a>
<a href="doctor-profile.html">Dr. Olga Barlow <span>#0010</span></a>
</h2>
</td>
<td>$550</td>
<td>5 Nov 2019</td>
<td class="text-right">
<div class="table-action">
<a href="javascript:void(0);" class="btn btn-sm bg-primary-light">
<i class="fas fa-print"></i> Print
</a>
<a href="javascript:void(0);" class="btn btn-sm bg-info-light">
<i class="far fa-eye"></i> View
</a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Billing Tab -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /Page Content -->
<!-- Footer -->
<footer class="footer">
<!-- Footer Top -->
<div class="footer-top">
<div class="container-fluid">
<div class="row">
<div class="col-lg-3 col-md-6">
<!-- Footer Widget -->
<div class="footer-widget footer-about">
<div class="footer-logo">
<img src="assets/img/footer-logo.png" alt="logo">
</div>
<div class="footer-about-content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
<div class="social-icon">
<ul>
<li>
<a href="#" target="_blank"><i class="fab fa-facebook-f"></i> </a>
</li>
<li>
<a href="#" target="_blank"><i class="fab fa-twitter"></i> </a>
</li>
<li>
<a href="#" target="_blank"><i class="fab fa-linkedin-in"></i></a>
</li>
<li>
<a href="#" target="_blank"><i class="fab fa-instagram"></i></a>
</li>
<li>
<a href="#" target="_blank"><i class="fab fa-dribbble"></i> </a>
</li>
</ul>
</div>
</div>
</div>
<!-- /Footer Widget -->
</div>
<div class="col-lg-3 col-md-6">
<!-- Footer Widget -->
<div class="footer-widget footer-menu">
<h2 class="footer-title">For Patients</h2>
<ul>
<li><a href="search.html">Search for Doctors</a></li>
<li><a href="login.html">Login</a></li>
<li><a href="register.html">Register</a></li>
<li><a href="booking.html">Booking</a></li>
<li><a href="patient-dashboard.html">Patient Dashboard</a></li>
</ul>
</div>
<!-- /Footer Widget -->
</div>
<div class="col-lg-3 col-md-6">
<!-- Footer Widget -->
<div class="footer-widget footer-menu">
<h2 class="footer-title">For Doctors</h2>
<ul>
<li><a href="appointments.html">Appointments</a></li>
<li><a href="chat.html">Chat</a></li>
<li><a href="login.html">Login</a></li>
<li><a href="doctor-register.html">Register</a></li>
<li><a href="doctor-dashboard.html">Doctor Dashboard</a></li>
</ul>
</div>
<!-- /Footer Widget -->
</div>
<div class="col-lg-3 col-md-6">
<!-- Footer Widget -->
<div class="footer-widget footer-contact">
<h2 class="footer-title">Contact Us</h2>
<div class="footer-contact-info">
<div class="footer-address">
<span><i class="fas fa-map-marker-alt"></i></span>
<p> 3556 Beech Street, San Francisco,<br> California, CA 94108 </p>
</div>
<p>
<i class="fas fa-phone-alt"></i>
+1 315 369 5943
</p>
<p class="mb-0">
<i class="fas fa-envelope"></i>
doccure@example.com
</p>
</div>
</div>
<!-- /Footer Widget -->
</div>
</div>
</div>
</div>
<!-- /Footer Top -->
<!-- Footer Bottom -->
<div class="footer-bottom">
<div class="container-fluid">
<!-- Copyright -->
<div class="copyright">
<div class="row">
<div class="col-md-6 col-lg-6">
<div class="copyright-text">
<p class="mb-0">© 2020 Doccure. All rights reserved.</p>
</div>
</div>
<div class="col-md-6 col-lg-6">
<!-- Copyright Menu -->
<div class="copyright-menu">
<ul class="policy-menu">
<li><a href="term-condition.html">Terms and Conditions</a></li>
<li><a href="privacy-policy.html">Policy</a></li>
</ul>
</div>
<!-- /Copyright Menu -->
</div>
</div>
</div>
<!-- /Copyright -->
</div>
</div>
<!-- /Footer Bottom -->
</footer>
<!-- /Footer -->
</div>
<!-- /Main Wrapper -->
<!-- Add Medical Records Modal -->
<div class="modal fade custom-modal" id="add_medical_records">
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title">Medical Records</h3>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<form>
<div class="modal-body">
<div class="form-group">
<label>Date</label>
<input type="text" class="form-control datetimepicker" value="31-10-2019">
</div>
<div class="form-group">
<label>Description ( Optional )</label>
<textarea class="form-control"></textarea>
</div>
<div class="form-group">
<label>Upload File</label>
<input type="file" class="form-control">
</div>
<div class="submit-section text-center">
<button type="submit" class="btn btn-primary submit-btn">Submit</button>
<button type="button" class="btn btn-secondary submit-btn" data-dismiss="modal">Cancel</button>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- /Add Medical Records Modal -->
<!-- jQuery -->
<script src="assets/js/jquery.min.js"></script>
<!-- Bootstrap Core JS -->
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<!-- Datetimepicker JS -->
<script src="assets/js/moment.min.js"></script>
<script src="assets/js/bootstrap-datetimepicker.min.js"></script>
<!-- Sticky Sidebar JS -->
<script src="assets/plugins/theia-sticky-sidebar/ResizeSensor.js"></script>
<script src="assets/plugins/theia-sticky-sidebar/theia-sticky-sidebar.js"></script>
<!-- Custom JS -->
<script src="assets/js/script.js"></script>
</body>
<!-- Mirrored from doccure-html.dreamguystech.com/template/patient-profile.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 22 Mar 2021 19:28:26 GMT -->
</html>
|
<?php
namespace App\Http\Controllers;
use App\Models\Order;
use App\Models\Product;
use Exception;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;
use Unicodeveloper\Paystack\Facades\Paystack;
class PaymentController extends Controller
{
/**
* Redirect the User to Paystack Payment Page
* @return Url
*/
public function redirectToGateway()
{
try{
return Paystack::getAuthorizationUrl()->redirectNow();
}catch(Exception $e) {
return Redirect::back()->withMessage(['msg'=>'The paystack token has expired. Please refresh the page and try again.', 'type'=>'error']);
}
}
/**
* Obtain Paystack payment information
* @return void
*/
public function handleGatewayCallback()
{
$paymentDetails = Paystack::getPaymentData();
if ($paymentDetails['status'])
{
$product_id = $paymentDetails['data']['metadata']['id'];
Order::create(['product_id' => $product_id,
'user_id' => $paymentDetails['data']['metadata']['user_id'],
'payment_date' => $paymentDetails['data']['paid_at'],
'shipping_address' => $paymentDetails['data']['metadata']['address'],
'total_amount' => $paymentDetails['data']['amount'] / 100,
'shipping_fee' => $paymentDetails['data']['metadata']['fee']]);
Product::where('id', $product_id)->update(['status' => 'paid']);
return view('payment.callback')->with('res', $paymentDetails);
}
// dd($paymentDetails['data']['amount']);
// Now you have the payment details,
// you can store the authorization_code in your db to allow for recurrent subscriptions
// you can then redirect or do whatever you want
}
}
|
<?php
declare(strict_types=1);
namespace Pollen\WpTerm;
use Pollen\Support\Concerns\BootableTrait;
use Pollen\Support\Concerns\ConfigBagAwareTrait;
use Pollen\Support\Exception\ManagerRuntimeException;
use Pollen\Support\Proxy\ContainerProxy;
use Psr\Container\ContainerInterface as Container;
use WP_Taxonomy;
class WpTermManager implements WpTermManagerInterface
{
use BootableTrait;
use ConfigBagAwareTrait;
use ContainerProxy;
/**
* Instance principale.
* @var static|null
*/
private static $instance;
/**
* Instance du gestionnaire de taxonomies.
* @var WpTaxonomyManagerInterface
*/
protected $taxonomyManager;
/**
* @param array $config
* @param Container|null $container Instance du conteneur d'injection de dépendances.
*
* @return void
*/
public function __construct(array $config = [], ?Container $container = null)
{
$this->setConfig($config);
if ($container !== null) {
$this->setContainer($container);
}
if ($this->config('boot_enabled', true)) {
$this->boot();
}
if (!self::$instance instanceof static) {
self::$instance = $this;
}
}
/**
* Récupération de l'instance principale.
*
* @return static
*/
public static function getInstance(): WpTermManagerInterface
{
if (self::$instance instanceof self) {
return self::$instance;
}
throw new ManagerRuntimeException(sprintf('Unavailable [%s] instance', __CLASS__));
}
/**
* @inheritDoc
*/
public function boot(): WpTermManagerInterface
{
if (!$this->isBooted()) {
add_action('init', function () {
global $wp_taxonomies;
foreach ($this->taxonomyManager()->all() as $name => $taxonomy) {
if (!$object_type = $taxonomy->params()->get('object_type')) {
$object_type = [];
} elseif (is_string('object_type')) {
$object_type = [$object_type];
} elseif (!is_array($object_type)) {
$object_type = [];
}
if (!isset($wp_taxonomies[$name])) {
register_taxonomy($name, $object_type, $taxonomy->params()->all());
}
if ($wp_taxonomies[$name] instanceof WP_Taxonomy) {
$taxonomy->setWpTaxonomy($wp_taxonomies[$name]);
}
}
}, 11);
add_action('init', function () {
global $wp_taxonomies;
foreach ($wp_taxonomies as $name => $attrs) {
if (!$this->getTaxonomy($name)) {
$this->registerTaxonomy($name, get_object_vars($attrs));
}
}
}, 999999);
$this->setBooted();
}
return $this;
}
/**
* @inheritDoc
*/
public function fetch($query = null): array
{
return WpTermQuery::fetch($query);
}
/**
* @inheritDoc
*/
public function get($term = null): ?WpTermQueryInterface
{
return WpTermQuery::create($term);
}
/**
* @inheritDoc
*/
public function getTaxonomy(string $name): ?WpTaxonomyInterface
{
return $this->taxonomyManager()->get($name);
}
/**
* @inheritDoc
*/
public function registerTaxonomy(string $name, $taxonomyDef = []): WpTaxonomyInterface
{
return $this->taxonomyManager()->register($name, $taxonomyDef);
}
/**
* @inheritDoc
*/
public function taxonomyManager(): WpTaxonomyManagerInterface
{
if ($this->taxonomyManager === null) {
$this->taxonomyManager = $this->containerHas(WpTaxonomyManagerInterface::class)
? $this->containerGet(WpTaxonomyManagerInterface::class) : new WpTaxonomyManager($this);
}
return $this->taxonomyManager;
}
}
|
<?php
require_once 'Figure.php';
class Triangle extends Figure {
public function getArea(): float {
return $this->width * $this->height / 2;
}
}
|
<?php
declare (strict_types=1);
namespace Rector\Transform\Rector\StaticCall;
use PhpParser\Node;
use PhpParser\Node\Expr\New_;
use PhpParser\Node\Expr\StaticCall;
use PhpParser\Node\Name\FullyQualified;
use Rector\Core\Contract\Rector\ConfigurableRectorInterface;
use Rector\Core\Rector\AbstractRector;
use Rector\Transform\ValueObject\StaticCallToNew;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
use RectorPrefix20211107\Webmozart\Assert\Assert;
/**
* @changelog https://github.com/symfony/symfony/pull/35308
*
* @see \Rector\Tests\Transform\Rector\StaticCall\StaticCallToNewRector\StaticCallToNewRectorTest
*/
final class StaticCallToNewRector extends \Rector\Core\Rector\AbstractRector implements \Rector\Core\Contract\Rector\ConfigurableRectorInterface
{
/**
* @var string
*/
public const STATIC_CALLS_TO_NEWS = 'static_calls_to_news';
/**
* @var StaticCallToNew[]
*/
private $staticCallsToNews = [];
public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition
{
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('Change static call to new instance', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample(<<<'CODE_SAMPLE'
class SomeClass
{
public function run()
{
$dotenv = JsonResponse::create(true);
}
}
CODE_SAMPLE
, <<<'CODE_SAMPLE'
class SomeClass
{
public function run()
{
$dotenv = new JsonResponse();
}
}
CODE_SAMPLE
, [self::STATIC_CALLS_TO_NEWS => [new \Rector\Transform\ValueObject\StaticCallToNew('JsonResponse', 'create')]])]);
}
/**
* @return array<class-string<Node>>
*/
public function getNodeTypes() : array
{
return [\PhpParser\Node\Expr\StaticCall::class];
}
/**
* @param Node\Expr\StaticCall $node
*/
public function refactor(\PhpParser\Node $node) : ?\PhpParser\Node
{
foreach ($this->staticCallsToNews as $staticCallToNew) {
if (!$this->isName($node->class, $staticCallToNew->getClass())) {
continue;
}
if (!$this->isName($node->name, $staticCallToNew->getMethod())) {
continue;
}
$class = $this->getName($node->class);
if ($class === null) {
continue;
}
return new \PhpParser\Node\Expr\New_(new \PhpParser\Node\Name\FullyQualified($class));
}
return $node;
}
/**
* @param array<string, StaticCallToNew[]> $configuration
*/
public function configure(array $configuration) : void
{
$staticCallsToNews = $configuration[self::STATIC_CALLS_TO_NEWS] ?? [];
\RectorPrefix20211107\Webmozart\Assert\Assert::allIsAOf($staticCallsToNews, \Rector\Transform\ValueObject\StaticCallToNew::class);
$this->staticCallsToNews = $staticCallsToNews;
}
}
|
<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="/libs/estilo.css">
<!-- Styles -->
<style>
html, body {
background-color: #fff;
color: #636b6f;
font-family: 'Raleway', sans-serif;
font-weight: 100;
height: 100vh;
margin: 0;
}
.full-height {
height: 100vh;
}
.flex-center {
align-items: center;
display: flex;
justify-content: center;
}
.position-ref {
position: relative;
}
.top-right {
position: absolute;
right: 10px;
top: 18px;
}
.content {
text-align: center;
}
.title {
}
.links > a {
color: #636b6f;
padding: 0 25px;
font-size: 12px;
font-weight: 600;
letter-spacing: .1rem;
text-decoration: none;
text-transform: uppercase;
}
.m-b-md {
margin-bottom: 30px;
}
</style>
</head>
<body>
<div class="flex-center position-ref full-height">
@if (Route::has('login'))
<div class="top-right links">
@auth
<a href="{{ url('/home') }}">Home</a>
@else
<a href="{{ route('login') }}">Login</a>
<a href="{{ route('register') }}">Register</a>
@endauth
</div>
@endif
<div class="content">
<div class="title m-b-md">
Laravel CCEO
</div>
<div class="links">
<a href="https://laravel.com/docs">Documentation</a>
<a href="https://laracasts.com">Laracasts</a>
<a href="https://laravel-news.com">News</a>
<a href="https://forge.laravel.com">Forge</a>
<a href="https://github.com/laravel/laravel">GitHub</a>
</div>
</div>
</div>
</body>
</html>
|
<?php
namespace App\Http\Controllers\Auth;
use App\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class RegisterConfirmationController extends Controller
{
public function index()
{
$user = User::where('confirmation_token', request('token'))
->first();
if (! $user) {
return redirect(route('threads'))->with('flash', 'Unknown token.');
}
$user->confirm();
return redirect(route('threads'))->with('flash', 'Your account is now confirmed! You may post to the forum.');
}
}
|
<?php
/**
* 管理员后台会员模块设置
*/
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin', 'admin', 0);
pc_base::load_sys_class('format', '', 0);
class member_setting extends admin {
private $db;
function __construct() {
parent::__construct();
$this->db = pc_base::load_model('module_model');
}
/**
* member list
*/
function manage() {
if(isset($_POST['dosubmit'])) {
$member_setting = array2string($_POST['info']);
$this->db->update(array('module'=>'member', 'setting'=>$member_setting), array('module'=>'member'));
setcache('member_setting', $_POST['info']);
showmessage(L('operation_success'), HTTP_REFERER);
} else {
$show_scroll = true;
$member_setting = $this->db->get_one(array('module'=>'member'), 'setting');
$member_setting = string2array($member_setting['setting']);
$email_config = getcache('common', 'commons');
$this->sms_setting_arr = getcache('sms','sms');
$siteid = get_siteid();
if(empty($email_config['mail_user']) || empty($email_config['mail_password'])) {
$mail_disabled = 1;
}
if(!empty($this->sms_setting_arr[$siteid])) {
$this->sms_setting = $this->sms_setting_arr[$siteid];
if($this->sms_setting['sms_enable']=='0'){
$sms_disabled = 1;
}else{
if(empty($this->sms_setting['userid']) || empty($this->sms_setting['productid']) || empty($this->sms_setting['sms_key'])){
$sms_disabled = 1;
}
}
} else {
$sms_disabled = 1;
}
include $this->admin_tpl('member_setting');
}
}
}
?>
|
<?php
declare(strict_types=1);
namespace Ssch\TYPO3Rector\Tests\Rector\v8\v0\TimeTrackerInsteadOfNullTimeTracker;
use Iterator;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
use Symplify\SmartFileSystem\SmartFileInfo;
final class TimeTrackerInsteadOfNullTimeTrackerRectorTest extends AbstractRectorTestCase
{
/**
* @dataProvider provideDataForTest()
*/
public function test(SmartFileInfo $fileInfo): void
{
$this->doTestFileInfo($fileInfo);
}
public function provideDataForTest(): Iterator
{
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
}
public function provideConfigFilePath(): string
{
return __DIR__ . '/config/configured_rule.php';
}
}
|
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
protected $fillable = [
'title', 'file', 'description', 'is_visible', 'is_sticked', 'type_id'
];
public function user()
{
return $this->belongsTo('App\User');
}
public function comments()
{
return $this->hasMany('App\Comment');
}
public function modules()
{
return $this->belongsTo('App\Module');
}
public function type()
{
return $this->belongsTo('App\Type');
}
}
|
<?php
namespace App\Http\Controllers\API;
use App\Http\Requests\API\CreateUserAPIRequest;
use App\Http\Requests\API\UpdateUserAPIRequest;
use App\Http\Requests\UserSubscriptionRequest;
use App\Models\User;
use App\Repositories\UserRepository;
use Illuminate\Http\Request;
use App\Http\Controllers\AppBaseController;
use App\Http\Resources\UserResource;
use Response;
/**
* Class UserController
* @package App\Http\Controllers\API
*/
class UserAPIController extends AppBaseController
{
/** @var UserRepository */
private $userRepository;
public function __construct(UserRepository $userRepo)
{
$this->userRepository = $userRepo;
}
/**
* Display a listing of the User.
* GET|HEAD /users
*
* @param Request $request
* @return Response
*/
public function index(Request $request)
{
$users = $this->userRepository->all(
$request->except(['skip', 'limit']),
$request->get('skip'),
$request->get('limit')
);
return $this->sendResponse(UserResource::collection($users), 'Users retrieved successfully');
}
/**
* Store a newly created User in storage.
* POST /users
*
* @param CreateUserAPIRequest $request
*
* @return Response
*/
public function store(CreateUserAPIRequest $request)
{
$input = $request->all();
$user = $this->userRepository->create($input);
return $this->sendResponse(new UserResource($user), 'User saved successfully');
}
/**
* Display the specified User.
* GET|HEAD /users/{id}
*
* @param int $id
*
* @return Response
*/
public function show($id)
{
/** @var User $user */
$user = $this->userRepository->find($id);
if (empty($user)) {
return $this->sendError('User not found');
}
return $this->sendResponse(new UserResource($user), 'User retrieved successfully');
}
/**
* Update the specified User in storage.
* PUT/PATCH /users/{id}
*
* @param int $id
* @param UpdateUserAPIRequest $request
*
* @return Response
*/
public function update($id, UpdateUserAPIRequest $request)
{
$input = $request->all();
/** @var User $user */
$user = $this->userRepository->find($id);
if (empty($user)) {
return $this->sendError('User not found');
}
$user = $this->userRepository->update($input, $id);
return $this->sendResponse(new UserResource($user), 'User updated successfully');
}
/**
* Remove the specified User from storage.
* DELETE /users/{id}
*
* @param int $id
*
* @throws \Exception
*
* @return Response
*/
public function destroy($id)
{
/** @var User $user */
$user = $this->userRepository->find($id);
if (empty($user)) {
return $this->sendError('User not found');
}
$user->delete();
return $this->sendSuccess('User deleted successfully');
}
/**
* User subscribes to a website or websites.
* POST /user-subscribes/{id}
*
* @param UserSubscriptionRequest $request
*
* @return Response
*/
public function Usersubscribes(UserSubscriptionRequest $request, $id)
{
/** @var User $user */
$user = $this->userRepository->find($id);
$user->userWebsites()->sync($request->websites);
return $this->sendSuccess("Your subscription to the websites has been set");
}
/**
* User subscribes to a website or websites.
* POST /user-subscribes/{id}
*
* @param UserSubscriptionRequest $request
*
* @return Response
*/
public function UserUnsubscribes(UserSubscriptionRequest $request, $id)
{
/** @var User $user */
$user = $this->userRepository->find($id);
if (!$user)
{
return $this->sendError("User does not exist");
}
if (count($user->userWebsites) != 0){
$user->userWebsites()->detach($request->websites);
return $this->sendSuccess("Your subscription to the website(s) has been removed.");
}
return $this->sendError("User not subscribed tot this website.");
}
}
|
@extends('adminlte::page')
@section('title', 'Permissões disponíveis para o Cargo')
@section('content_header')
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ route('admin.index') }}">Dashboard</a></li>
<li class="breadcrumb-item active"><a href="{{ route('roles.index') }}" class="active">Cargos</a></li>
</ol>
<h1>Permissões disponíveis para o Cargo</h1>
@stop
@section('content')
<div class="card">
<div class="card-header">
<form action="{{ route('roles.permissions.available', $role->id) }}" method="POST" class="form form-inline">
@csrf
<input type="text" name="filter" placeholder="Pesquisar..." class="form-control" value="{{ $filters['filter'] ?? '' }}">
<button type="submit" class="btn btn-dark">Filtrar</button>
</form>
</div>
<div class="card-body">
<table class="table table-condensed">
<thead>
<tr>
<th width="50px">#</th>
<th>Nome</th>
</tr>
</thead>
<tbody>
<form action="{{ route('roles.permissions.attach', $role->id) }}" method="post">
@csrf
@foreach ($permissions as $permission)
<tr>
<td>
<input type="checkbox" name="permissions[]" value="{{ $permission->id }}">
</td>
<td>
{{ $permission->name }}
</td>
</tr>
@endforeach
<tr>
<td colspan="500">
@include('admin.includes.alerts')
<button type="submit" class="btn btn-dark">VINCULAR</button>
</td>
</tr>
</form>
</tbody>
</table>
</div>
<div class="card-footer">
@if (isset($filters))
{!! $permissions->appends($filters)->links() !!}
@else
{!! $permissions->links() !!}
@endif
</div>
</div>
@stop
|
<?php
namespace Yurun\PaySDK\AlipayApp\Params\Query;
use Yurun\PaySDK\AlipayRequestBase;
/**
* 支付宝统一收单线下交易查询请求类.
*/
class Request extends AlipayRequestBase
{
/**
* 接口名称.
*
* @var string
*/
public $method = 'alipay.trade.query';
/**
* 详见:https://docs.open.alipay.com/common/105193.
*
* @var string
*/
public $app_auth_token;
/**
* 业务请求参数
* 参考https://docs.open.alipay.com/api_1/alipay.trade.query.
*
* @var \Yurun\PaySDK\AlipayApp\Params\Query\BusinessParams
*/
public $businessParams;
public function __construct()
{
$this->businessParams = new BusinessParams();
$this->_method = 'GET';
$this->_isSyncVerify = true;
$this->_syncResponseName = 'alipay_trade_query_response';
}
}
|
<?php
// config for TriventoEducacao/ClassName
return [
'seller_id'=>env('GET_NET_SELLER_ID'),
'base_url'=>env('GET_NET_BASE_URL', 'https://api-sandbox.getnet.com.br'),
'client'=>env('GET_NET_CLIENT'),
'secret'=>env('GET_NET_SECRET'),
'debug'=>false,
];
|
<?php
include("get.php");
include("update.php");
include("control.php");
include("ajax.php");
?>
<form method="post">
<div class="sub-header clearfix">
<div class="content">
<h2>Manage Recipes <?php echo $date_server;?></h2>
<select class="input-select" id="category_name_search" onchange="selectCategory()">
<option value="top">All Categories</option>
<?php foreach($recipe_category as $category){ ?>
<option value="<?php echo $category['category_id']?>" <?php if($cat_name == $category['category_id']){echo 'selected="selected"';}?>><?php echo $category['category_name'];?></option>
<?php }?>
</select>
<div class="btn-placeholder">
<input type="button" class="btn green main" value="Add Recipe" onClick="addRecipes()">
</div>
</div>
</div>
<script>
function addRecipes(){
location.href = "http://<?php echo $_SERVER['HTTP_HOST'].get_dirname($_SERVER['PHP_SELF'])?>/add-recipe";
}
</script>
<div id="main-content">
<div class="table-wrapper">
<table cellpadding="0" cellspacing="0" class="actions">
<tbody>
<tr>
<td>
<div class="fl">
<div class="custom-select-all" onclick="selectAllToggle()">
<input type="checkbox" id="select_all">
</div><!--custom-select-all-->
<div class="divider"></div>
<div class="page">
<p>Page</p>
<select class="input-select" id="page-option" onchange="pageOption()">
<?php
for($i=1;$i<=$total_page;$i++){
echo "<option value=\"".$i."\">".$i."</option> \n";
}
?>
</select>
<p>of <strong><?php echo $total_page?></strong> pages</p>
</div>
<div class="divider" style="margin-left: 10px"></div>
<div class="page">
<p>Show</p>
<select class="input-select" name="query_per_page" id="query_per_page_input" onchange="changeQueryPerPage()">
<option></option>
<option value="25"<?php if($query_per_page =="25"){ echo "selected=\"selected\"";}?>>25</option>
<option value="50" <?php if($query_per_page == "50"){ echo "selected=\"selected\"";}?>>50</option>
<option value="100" <?php if($query_per_page == "100"){ echo "selected=\"selected\"";}?>>100</option>
</select>
<p>of <strong><?php echo $total_query;?></strong> records</p>
</div>
</div>
<div class="fr">
<p>Actions</p>
<select class="input-select" name="listing-option">
<option></option>
<option value="delete">Delete</option>
<option value="save">Save Changes</option>
</select>
<p>to</p>
<select class="input-select" name="listing-action">
<option></option>
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
<input type="submit" class="btn green main go" value="GO" name="btn-add-recipes" id="GO">
</div>
</td>
</tr>
</tbody>
</table>
<table cellpadding="0" cellspacing="0">
<thead>
<tr class="headings">
<th width="20"></th>
<th class="sort" width="680" onclick="sortBy('recipe_name')">Recipe Title<?php echo $arr_recipe_name;?></th>
<th class="sort" width="200" onclick="sortBy('recipe_date')">Date <?php echo $arr_recipe_date;?></th>
<th class="sort" width="60" onclick="sortBy('visibility_status')">Visibility <?php echo $arr_recipe_visibility;?></th>
</tr>
<tr class="filter">
<th><input type="button" class="btn small reset" value="" onclick="resetSearch()"></th>
<th><input type="text" class="input-text" id="recipe_name_search" onkeyup="searchQuery('recipe_name')" onkeypress="return disableEnterKey(event)"></th>
<th><input type="text" class="input-text" id="recipe_date_search" onkeyup="searchQuery('recipe_date')" onkeypress="return disableEnterKey(event)"></th>
<th>
<select class="input-select" id="visibility_status_search" onchange="searchQueryOption('visibility_status')">
<option></option>
<option value="Visible">Yes</option>
<option value="Invisible">No</option>
</select>
</th>
</tr>
</thead>
<tbody onload="loading()">
<!--<div id="loading" style="position: absolute; z-index: 2; background: #000; width: 940px; height: 200px"></div>-->
<?php
$row = 0;
foreach($index_recipes as $recipe){
$row++;
$date_server = date('D, j M Y',strtotime($recipe['recipe_date']));
?>
<tr id="<?php echo "row_".$row?>" onclick="selectRow('<?php echo $row;?>')">
<td><input type="checkbox" name="array_recipe_id[]" id="<?php echo "check_".$row?>" value="<?php echo $recipe['recipe_id'];?>" onmouseover="downCheck()" onmouseout="upCheck()" onclick="selectRowCheck('<?php echo $row;?>')"></td>
<td><a href="http://<?php echo $_SERVER['HTTP_HOST'].get_dirname($_SERVER['PHP_SELF'])?>/recipe-detail/<?php echo cleanurl($recipe['alias']);?>"><?php echo $recipe['recipe_name']?></a></td>
<td><?php echo $date_server;?></td>
<td><?php echo $recipe['visibility_status']?></td>
</tr>
<?php }?>
</tbody>
</table>
</div><!--table-wrapper-->
</div><!--main-content-->
</form>
<script>
function resetSearch(){
location.href = "http://<?php echo $_SERVER['HTTP_HOST'].get_dirname($_SERVER['PHP_SELF'])?>/recipe";
}
</script>
|
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\ExamQueRel;
use Illuminate\Support\Facades\DB;
class test01 extends Controller
{
public function index() {
DB::table('users')->insert(['name'=>'helloo']);
$users = DB::table('users')->get();
echo "gia huy 0111";
}
public function testdethi() {
$id = 5 ;
$datas = ExamQueRel::where('exam_staff_id', $id)->orderBy('order_question')->orderBy('order_relies')->get();
$order = 0 ;
$question_id =0 ;
echo '<h1>de thi cho </h1>';
foreach($datas as $data) {
$temp = $data->order_question;
if($order != $temp) {
$order = $temp;
$question_id = $data->question_id ;
echo "<h5>cau $order : ". $data->question->content."</h5>" ;
}
echo "<p style='padding-left :50px'>". $data->relies->noidung ." </p>";
}
}
}
|
End of preview. Expand
in Data Studio
No dataset card yet
- Downloads last month
- 14