JQuery get siblings value / text in dynamically created element - php

I want to get the .text() of the sibling customerID from the class"db_record_left" when class="db_record_left" gets clicked.
The whole class="db_record" is dynamical generated. But the console.log(CustID); still prints it for every class="db_record" and not only for the clicked one.
echo'
<div class="db_record" id="potentialCustomer-'.$countPotentialCustomers.'">
<div class="db_record_left">
<div class="db_record_describer">'.$cus_Fname.' '.$cus_Lname.'</div>
<div class="db_record_info_wrapper">
<div class="db_record_info_describer">Adresse:</div>
<div class="db_record_info">'.$cus_Adress.'</div>
<div class="db_record_info">
<span>'.$cus_ZipCode.' </span>
<span>'.$cus_Locality.'</span>
</div>
</div>
<div class="db_record_info_wrapper">
<div class="db_record_info_describer">Fahrzeuge:</div>
'.matchVehicles($cus_Vehicles).'
</div>
</div>
<div class="db_record_right">
<div class="material-icons md-large md-ghost-white-enabeld w-embed">
<span class="material-icons-outlined">navigate_next</span>
</div>
</div>
</div>
<span class="customerID" style="display: none">'.$cus_ID.'</span>
';
This would be the jQuery-code
function checkCustomerInformation(){
$(".db_records_wrapper").on('click', 'div.db_record', function (){
const CustID = $(this).siblings(".customerID").text();
console.log(CustID);
});
}

siblings() gets every matching sibling element. To get only the only following the .db_record which was clicked, use next():
$(this).next(".customerID").text();
Here's a working example:
function checkCustomerInformation() {
$(".db_records_wrapper").on('click', 'div.db_record', function() {
const custID = $(this).next(".customerID").text();
console.log(custID );
});
}
checkCustomerInformation();
.db_record {
margin: 10px;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<div class="db_records_wrapper">
<div class="db_record" id="potentialCustomer-'.$countPotentialCustomers.'">
<div class="db_record_left">
<div class="db_record_describer">$cus_Fname1 $cus_Lname1</div>
<div class="db_record_info_wrapper">
<div class="db_record_info_describer">Adresse:</div>
<div class="db_record_info">$cus_Adress1</div>
<div class="db_record_info">
<span>$cus_ZipCode1</span>
<span>$cus_Locality1</span>
</div>
</div>
<div class="db_record_info_wrapper">
<div class="db_record_info_describer">Fahrzeuge:</div>
matchVehicles($cus_Vehicles1)
</div>
</div>
<div class="db_record_right">
<div class="material-icons md-large md-ghost-white-enabeld w-embed">
<span class="material-icons-outlined">navigate_next</span>
</div>
</div>
</div>
<span class="customerID" style="display: none">$cus_ID1</span>
<div class="db_record" id="potentialCustomer-'.$countPotentialCustomers.'">
<div class="db_record_left">
<div class="db_record_describer">$cus_Fname2 $cus_Lname2</div>
<div class="db_record_info_wrapper">
<div class="db_record_info_describer">Adresse:</div>
<div class="db_record_info">$cus_Adress2</div>
<div class="db_record_info">
<span>$cus_ZipCode2</span>
<span>$cus_Locality2</span>
</div>
</div>
<div class="db_record_info_wrapper">
<div class="db_record_info_describer">Fahrzeuge:</div>
matchVehicles($cus_Vehicles2)
</div>
</div>
<div class="db_record_right">
<div class="material-icons md-large md-ghost-white-enabeld w-embed">
<span class="material-icons-outlined">navigate_next</span>
</div>
</div>
</div>
<span class="customerID" style="display: none">$cus_ID2</span>
</div>

Related

Laravel 6 persistent undefined variable error

I am facing undefined variable error when trying to access a variable in my view. I have gone through several solutions out here but none of them has worked for me. I have thoroughly examined everything that could cause this error in mu code and cannot find anything at all, please assist
Controller
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Product;
use App\Category;
use App\Depot;
use Illuminate\Support\Facades\DB;
use Gloudemans\Shoppingcart\Facades\Cart;
use Auth;
class CheckoutController extends Controller
{
public function index()
{
$allcategories=Category::get();
$delivery_method = DB::table('deliverymethods')
->get();
$cartItems=Cart::content();
return view('checkout.index',['delivery_method'=>$delivery_method],['allcategories'=>$allcategories]);
}
public function deliverymethod()
{
$cartItems=Cart::content();
$allcategories=Category::get();
return view('delivery.index',['cartItems'=>$cartItems],['allcategories'=>$allcategories]);
}
public function billinginfo()
{
$depots=Depot::get();
$cartItems=Cart::content();
$allcategories=Category::get();
return view('billing.index',compact('cartItems'),['allcategories'=>$allcategories],['depots'=>$depots]);
}
public function shipping(Request $request)
{
$user_id=Auth::user()->id;
$shippingaddress=DB::table('shippingaddresses')
->select('shippingaddresses.*')
->where('user_id',$user_id)
->get();
$cartItems=Cart::content();
$allcategories=Category::get();
return view('shipping.index',['cartItems'=>$cartItems],['allcategories'=>$allcategories],['shippingaddress'=>$shippingaddress]);
}
}
My View
#extends('home.base')
#section('action-content')
<div class="container">
<div class="container" id="cart-window">
<div class="row">
<div class="col-lg-12" id="cart-header">
<h3>Billing & Shipping Details <span class="cart-return pull-right"><i class="ionicons ion-ios-cart"></i> Back to Cart</h3>
</div>
</div>
<div class="row">
<div class="col-lg-9">
#if(Cart::Count()==0)
<div class="row">
<div class="col-lg-12" id="empty-cart">
<p>Your cart is currently empty</p>
</div>
</div>
<div class="row">
<div class="col-lg-12">
Return to Shop
</div>
</div>
#else
<div class="card detail" id="delivery-card">
<div class="card-header">
</div>
<div class="card-body">
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-lg-6">
<h5><strong>Existing Addresses</strong></h5>
</div>
<div class="col-lg-6">
<select class="select2 form-control" id="newAddress">
<option selected disabled>Please Select Delivery Address</option>
<option value="0">Add New Address</option>
#foreach($shippingaddress as $depot)
<option value="{{$depot->depot_name}}">{{$depot->depot_name}}</option>
#endforeach
<option>LIGHt</option>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
#endif
</div>
<div class="col-lg-3">
#if(Cart::Count()>0)
<div class="card detail">
<div class="card-header">
</div>
<div class="card-body">
<p class="card-text" id="cart-summary">
Order Summary
</p>
<hr/>
<div class="row">
<div class="col-sm-6">
{{Cart::Count()}}
</div>
<div class="col-sm-6">
#if(Cart::Count()==1)
Item
#else
Items
#endif
</div>
</div>
<hr/>
<div class="row">
<div class="col-sm-6">
<p>
Subtotal
</p>
<p>
VAT (15%)
</p>
<p>
Total to Pay
</p>
</div>
<div class="col-sm-6" id="cart-totals">
<p>
R{{Cart::subtotal()}}
</p>
<p>
R{{Cart::tax()}}
</p>
<p>
R{{Cart::total()}}
</p>
</div>
</div>
<hr/>
<div class="row">
<div class="col-12 continue-btn">
Continue
</div>
</div>
{{-- <hr>
<div class="row" id="delivery-method">
<select class="form-control select2" id="delivery_method" name="del">
<option value="0" selected disabled>Select Delivery Method</option>
#foreach ($delivery_method as $item)
<option value="{{$item['delivery_method']}}">{{$item['delivery_method']}} R{{$item['price']}}</option>
#endforeach
</select>
</div> --}}
</div>
{{-- <div class="card-footer" id="cart-footer">
<div class="delivery_type">
<strong>Checkout</strong>
</div>
{{-- <div class="delivery_type2">
<strong>Checkout 2</strong>
</div> --}}
{{-- </div> --}}
</div>
<div class="card order-review">
<div class="card-body">
<p class="card-text" id="cart-summary">
Order Review
</p>
<div class="row">
<div class="col-sm-12">
<p><strong>Delivery Method</strong> <span class="change-del pull-right">Change</span></p>
<p>Delivery</p>
</div>
</div>
</div>
</div>
#endif
</div>
</div>
</div>
</div>
<!-- NewAddressModal -->
<!-- Modal -->
<div class="modal fade show" id="newAddressModal" style="display: none;" aria-modal="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Default Modal</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer justify-content-between">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
#push('custom_scripts')
<script type="text/javascript">
$(document).ready(function() {
{{-- $("#newAddress").change(function() {
var curVal = $("#newAddress option:selected").val();
if (curVal.indexOf('#newAddressModal') == 0){
$('#newAddressModal').modal('show');
}
}); --}}
$("#newAddress").on("change", function () {
$modal = $('#newAddressModal');
if($(this).val() === '0'){
$modal.modal('show');
}
});
});
</script>
#endpush
#endsection
Error Image
Error Image
Try grouping Multiple collection into one array, Then send it to the view like this:
$viewData = [
'cartItems' => $cartItems,
'allcategories' => $allcategories,
'shippingaddress' => $shippingaddress
];
return View::make('shipping.index')->with($viewData);

XPath Specific Expression WebDriver Error

I have a problem with WebDriver's XPath that, even though it's right, is returning an error expression.
The expression is:
(*//div[contains(#class, 'myb-SettledBetItem ') or contains(#class, 'myb-OpenBetItem_Collapsed') or contains(#class, 'myb-OpenBetItem ')]//(span[#class='myb-SettledBetParticipant_ParticipantSpan ' or #class='myb-OpenBetParticipant_ParticipantSpan']|div[#class='myb-SettledBetItem_SubHeaderText']))
The html is:
<div class="myb-BetItemsContainer_BetItemsContainer ">
<div class="myb-SettledBetItem ">
<div class="myb-SettledBetItemHeader ">
<div class="myb-SettledBetItemHeader_HeaderTextContainer ">
<div class="myb-SettledBetItemHeader_Title ">
<div class="myb-SettledBetItemHeader_Text ">R$0,50 Simples</div>
</div>
<div class="myb-SettledBetItem_SubHeaderText "></div>
</div>
<div class="myb-SettledBetItem_BetStateContainer ">
<div class="myb-SettledBetItem_BetStateLabel ">Retorno Obtido</div>
<div class="myb-SettledBetItem_BetReturnLabel ">R$1,19</div>
</div>
</div>
<div>
<div>
<div class="myb-SettledBetParticipant-FirstOfType myb-SettledBetParticipant myb-SettledBetParticipant_Won ">
<div class="myb-SettledBetParticipant_Header ">
<div class="myb-SettledBetParticipant_HeaderTitle ">
<div class="myb-SettledBetParticipant_HeaderText "><span class="myb-SettledBetParticipant_ParticipantSpan ">Hollyoak Hector (v Courts Ad Darcey) </span>
<div class="myb-HalfAndHalfPill myb-HalfAndHalfPill_Status-1 ">
<div class="myb-HalfAndHalfPill_TextStatus myb-HalfAndHalfPill_TextStatus-1 ">
<div class="myb-HalfAndHalfPill_TextStatusLHS myb-HalfAndHalfPill_TextStatusLHS-1 "></div>
<div class="myb-HalfAndHalfPill_TextStatusRHS myb-HalfAndHalfPill_TextStatusRHS-1 "></div>
</div>
</div>
</div>
</div>
<div class="myb-SettledBetParticipant_HeaderOdds ">2.37</div>
</div>
<div class="myb-SettledBetParticipant_MarketDescription ">Aposta Comparativa</div>
<div class="myb-SettledBetParticipant_FixtureDescription ">8.27 Central Park EVE (Corrida 8)</div>
</div>
</div>
<div class="myb-SettledBetItemFooter ">
<div class="myb-SettledBetItemFooter_BetInformation ">
<div class="myb-SettledBetItemFooter_StakeInformation ">
<div class="myb-SettledBetItemFooter_StakeLabel ">Aposta</div>
<div class="myb-SettledBetItemFooter_StakeTextWrapper "><span class="myb-SettledBetItemFooter_StakeTextCurrency myb-SettledBetItemFooter_StakeTextCurrency-formatted ">R$</span><span class="myb-SettledBetItemFooter_StakeText ">0,50</span></div>
</div>
<div class="myb-SettledBetItemFooter_ReturnInformation ">
<div class="myb-SettledBetItemFooter_ReturnLabel ">Retorno Total</div>
<div class="myb-SettledBetItemFooter_ReturnTextWrapper "><span class="myb-SettledBetItemFooter_ReturnTextCurrency myb-SettledBetItemFooter_ReturnTextCurrency-formatted ">R$</span><span class="myb-SettledBetItemFooter_ReturnText ">1,19</span></div>
</div>
</div>
</div>
</div>
</div>
<div class="myb-SettledBetItem ">
<div class="myb-SettledBetItemHeader ">
<div class="myb-SettledBetItemHeader_HeaderTextContainer ">
<div class="myb-SettledBetItemHeader_Title ">
<div class="myb-SettledBetItemHeader_Text ">R$0,50 Simples</div>
</div>
<div class="myb-SettledBetItem_SubHeaderText "></div>
</div>
<div class="myb-SettledBetItem_BetStateContainer ">
<div class="myb-SettledBetItem_BetStateLabel ">Retorno Obtido</div>
<div class="myb-SettledBetItem_BetReturnLabel ">R$0,77</div>
</div>
</div>
<div>
<div>
<div class="myb-SettledBetParticipant-FirstOfType myb-SettledBetParticipant myb-SettledBetParticipant_Won ">
<div class="myb-SettledBetParticipant_Header ">
<div class="myb-SettledBetParticipant_HeaderTitle ">
<div class="myb-SettledBetParticipant_HeaderText "><span class="myb-SettledBetParticipant_ParticipantSpan ">Trap 8 </span>
<div class="myb-HalfAndHalfPill myb-HalfAndHalfPill_Status-1 ">
<div class="myb-HalfAndHalfPill_TextStatus myb-HalfAndHalfPill_TextStatus-1 ">
<div class="myb-HalfAndHalfPill_TextStatusLHS myb-HalfAndHalfPill_TextStatusLHS-1 "></div>
<div class="myb-HalfAndHalfPill_TextStatusRHS myb-HalfAndHalfPill_TextStatusRHS-1 "></div>
</div>
</div>
</div>
</div>
<div class="myb-SettledBetParticipant_HeaderOdds ">1.53</div>
</div>
<div class="myb-SettledBetParticipant_MarketDescription ">Vencedor e V/C Ao-Vivo</div>
<div class="myb-SettledBetParticipant_FixtureDescription ">Race 15 Palm Beach</div>
</div>
</div>
<div class="myb-SettledBetItemFooter ">
<div class="myb-SettledBetItemFooter_BetInformation ">
<div class="myb-SettledBetItemFooter_StakeInformation ">
<div class="myb-SettledBetItemFooter_StakeLabel ">Aposta</div>
<div class="myb-SettledBetItemFooter_StakeTextWrapper "><span class="myb-SettledBetItemFooter_StakeTextCurrency myb-SettledBetItemFooter_StakeTextCurrency-formatted ">R$</span><span class="myb-SettledBetItemFooter_StakeText ">0,50</span></div>
</div>
<div class="myb-SettledBetItemFooter_ReturnInformation ">
<div class="myb-SettledBetItemFooter_ReturnLabel ">Retorno Total</div>
<div class="myb-SettledBetItemFooter_ReturnTextWrapper "><span class="myb-SettledBetItemFooter_ReturnTextCurrency myb-SettledBetItemFooter_ReturnTextCurrency-formatted ">R$</span><span class="myb-SettledBetItemFooter_ReturnText ">0,77</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
Expected outcome:
Hollyoak Hector (v Courts Ad Darcey)
Trap 8
And was tested on the site: http://xpather.com/
The error returned is:
Fatal error: Uncaught Facebook\WebDriver\Exception\InvalidSelectorException: invalid selector: Unable to locate an element with the xpath expression THIS_EXPRESSION because of the following error:
SyntaxError: Failed to execute 'evaluate' on 'Document': The string THIS_EXPRESSION is not a valid XPath expression. .... in DIR/vendor/facebook/webdriver/lib/Exception/WebDriverException.php on line 152
What is happening? Why doesn't it work in WebDriver's Xpath and it works on this site?
Is this the best way to handle this data?
Your XPath expression only works in XPath-2.0 or above.
To make it work in XPath-1.0, you have to split what you have tried to do with the brackets:
//div[contains(#class, 'myb-SettledBetItem ') or contains(#class, 'myb-OpenBetItem_Collapsed') or contains(#class, 'myb-OpenBetItem ')]//span[#class='myb-SettledBetParticipant_ParticipantSpan ' or #class='myb-OpenBetParticipant_ParticipantSpan'] | //div[contains(#class, 'myb-SettledBetItem ') or contains(#class, 'myb-OpenBetItem_Collapsed') or contains(#class, 'myb-OpenBetItem ')]/div[#class='myb-SettledBetItem_SubHeaderText']
So duplicate the first part of the expression and apply the union afterwards on both expressions.

change the value of an amount

In an html page, I would like to recover the value of an amount and can change the value only in my admin panel.
In the file navbar.blade.php I have 250 which is the amount to edit for the example.
<div class="header-widgets hidden-xs" style="padding:0px;padding-top: 60px;">
<div id="text-3" class="widget widget_text">
<div class="textwidget">
<div class="info-icon">
<img src="/img/time.png">
<span style="font-size: 22px;color: #0d3863;font-weight: bold;"> 250</span>
</div>
</div>
</div>
</div>
I just seek to edit the amount (250) ...
In my Controller named tarrifcontroller I have that.
public function edit(Tariff $tariff)
{
return view('admin.tariffs.edit', compact('tariff'));
}
public function update(Request $request, Tariff $tariff)
{
$tariff->valeur = strip_tags($request->input('amount'));
$tariff->save();
return redirect('/tariffs');
}
In my edit.blade.php I have that
#section('content')
<div class="px-content">
<div class="page-header">
<div class="row">
<div class="col-md-4 text-xs-center text-md-left text-nowrap">
<h1><i class="px-nav-icon ion-android-apps"></i>Tarif {{$tariff->id}} </h1>
</div>
<hr class="page-wide-block visible-xs visible-sm">
<!-- Spacer -->
<div class="m-b-2 visible-xs visible-sm clearfix"></div>
</div>
</div>
<div class="row">
<div class="panel">
<div class="panel-body">
<div class="table-responsive">
<form class="panel-body" action="/tariff/edit/{{$tariff->id}}" method="POST">
#csrf
<fieldset class="form-group">
<label for="form-group-input-1">Amount</label>
<input type="text" name="amount" class="form-control" id="form-group-input-1" value="{{$tariff->amount}}">
</fieldset>
<button type="submit" class="btn btn-primary pull-right">MAJ</button>
</form>
</div>
</div>
</div>
</div>
</div>
#endsection
My problem is now in navbar.blade.php how should I do that 250 can interact with my edit / update function?
<span style="font-size: 22px;color: #0d3863;font-weight: bold;"> 250</span>
Thank you
I don't have experience with laravel but i guess like any other php framework you can echo variable from controller to view
<span style="font-size: 22px;color: #0d3863;font-weight: bold;"> <?php echo $variable ?></span>
after some googling: You can pass data to the view using the with method.
return View::make('blog')->with('posts', $posts);

What is the master rules of grape html element by find method of simple dome parse

I am using simple_html_dome and I want to grab experience, education, and title.
By my code, I am getting (Call to a member function find() on null in ) error message but title is showing error is ($notrmjobs = $item->find('div[class=norm-jobs-wrapper]',0);) here.
What is the core rules to catch HTML tag by find method?
<div class="boxed">
<div class="row">
<div class="col-md-12">
<div class="norm-jobs-wrapper" onclick="DivOpen('id=734675&fcatId=1&ln=1');">
<div class="row">
<div class="col-sm-3 col-sm-push-3">
<!--<div class="row">
<div class="col-sm-12">
<div class="comp_logo"><img src="images/38951.jpg" alt=""></div>
</div>
</div>-->
</div>
<div class="col-sm-9 col-sm-pull-9">
<div class="row">
<div class="col-sm-12">
<div class="comp-name-text">GBA Techno Pvt. Ltd.</div>
</div>
<div class="col-sm-12">
<div class="job-title-text">
<a onclick="clickJObTitle()" target="_blank" href="jobdetails.asp?id=734675&fcatId=1&ln=1">
Sr. Executive, Accounts
</a>
</div>
</div>
<div class="col-sm-12">
<div class="edu-text">
<div class="row">
<div class="col-sm-2">
<div class="edu-text-s">
Education:
</div>
</div>
<div class="col-sm-10">
<div class="edu-text-d">
Masters/ MBA in Accounts or Finance from any reputed university
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-12">
<div class="row">
<div class="col-sm-9">
<div class="exp-text">
<div class="row">
<div class="col-sm-2">
<div class="exp-text-s">Experience:</div>
</div>
<div class="col-sm-10">
<div class="exp-text-d">
At least 3 year(s)
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="dead-text">
<div class="dead-text-s">Deadline: </div>
<div class="dead-text-d">
<strong>Dec 13, </strong>2017
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include 'simple_html_dom.php';
$html = file_get_html('http://jobs.bdjobs.com/jobsearch.asp?fcatId=1&icatId=');
$boxed = $html->find('div[class=boxed]',0);
$raw = $boxed->find('div[class=row]');
foreach($raw as $key => $loop){
$item = $loop->find('div[class=col-md-12]',0);
$notrmjobs = $item->find('div[class=norm-jobs-wrapper]',0);
$raw = $notrmjobs->find('div[class=row]',0);
$sdivice = $raw->find('div[class=col-sm-9 col-sm-pull-9]',0);
$sraw = $sdivice->find('div[class=row]',0);
$asraw = $sraw->find('div[class=col-sm-12]',0);
$title = $asraw->find('div[class=comp-name-text]',0)->plaintext;
echo $title;
}
?>

Php and jquery Dynamic to show and hide div

I have a list of the conditions and i fetch their name and it works fine but i want when i click the condition name it description come below.
i have done that but it shows for only one can you help me for that
Here is html code which i use for showing the description of the record it always shows the last record.
when i add the record it add means works fine for adding
it also works fine for edit also for the delete
but if there is two record then every time it show the description of last record not on which i click
I want to show the description of the record which is clciked
Thanks
<div>
<?php
$query="select * from tbl_coditions where userId=".$_SESSION['userId'];
$result=mysql_query($query) or die(mysql_error());
while($row=mysql_fetch_array($result))
{
$VisitDate=strtotime($row['DiagnosisDate']);
$VisitDate=date("m-d-Y",$VisitDate);
$userId=$row['userid'];
$conditionId=$row['conditionId'];
?>
<script>
$(document).ready(function(){
$("a#p<?php if(isset($conditionId)) echo $conditionId; ?>").click(function(event){
$("#HiddenDiv<?php if(isset($conditionId)) echo $conditionId; ?>").show();
})
});
</script>
<div id="AjaxDiv1">
<div id="HiddenDiv<?php if(isset($conditionId)) echo $conditionId?>" style="display:none;">
<?php
$query="select * from tbl_coditions where conditionId=$conditionId";
$result=mysql_query($query) or die(mysql_error());
$query_result=mysql_fetch_array($result);
$VisitDate=strtotime($query_result['DiagnosisDate']);
$VisitDate=date("m-d-Y",$VisitDate);
?>
<div class="detailContainer panelContent">
<div class="panelTitle" tabindex="-1">
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_Name_Row_RowContainer" class="detailRowContainer">
<div class="detailRow">
<div class="detailLeftColumn mxDetailsLabel"> Condition:
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_Name_Row_ValidatorContainer" class="detailErrorContainer"></div>
</div>
<div class="detailRightColumn"> <span id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_Name_Row_ViewControl"><?php echo $query_result['ServiceName']; ?></span> </div>
</div>
</div>
</div>
<div class="detailContent">
<div class="narrowTopContent">
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_DiagnosisDate_Row_RowContainer" class="detailRowContainer detailRowOdd">
<div class="detailRow">
<div class="detailLeftColumn mxDetailsLabel"> Diagnosis Date:
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_DiagnosisDate_Row_ValidatorContainer" class="detailErrorContainer"></div>
</div>
<div class="detailRightColumn"> <span id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_DiagnosisDate_Row_ViewControl"><?php echo $VisitDate; ?></span> </div>
</div>
</div>
<div>
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_InnerUpdatePanel">
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_DateOfServiceSelection_Row_RowContainer" class="detailRowContainer">
<div class="detailRow">
<div class="detailLeftColumn mxDetailsLabel"> Date of Service:
<div class="detailErrorContainer"></div>
</div>
<div class="detailRightColumn">
<?php
$VisitDate=strtotime($query_result['DateofService']);
echo $VisitDate=date("m-d-Y",$VisitDate);
?>
</div>
</div>
</div>
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_InformationSource_RowContainer" class="detailRowContainer detailRowOdd">
<div class="detailRow">
<label>
<div class="detailLeftColumn mxDetailsLabel"> Information Source:
<div class="detailErrorContainer"></div>
</div>
<div class="detailRightColumn"> <span id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_InformationSource_SourceNameLabel">User Entered</span> </div>
</label>
</div>
</div>
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_DiagnosingProvider_Row_RowContainer" class="detailRowContainer">
<div class="detailRow">
<div class="detailLeftColumn mxDetailsLabel"> Provider or Facility:
<div class="detailErrorContainer"></div>
</div>
<div class="detailRightColumn"> <span><?php echo $query_result['Provider']; ?></span> </div>
</div>
</div>
<div class="notesSection">
<div class="commentRow">
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_Comment_Row_RowContainer" class="detailRowContainer">
<div class="detailRow">
<div class="detailLeftColumn mxDetailsLabel"> Notes:
<div class="detailErrorContainer"></div>
</div>
<div class="detailRightColumn"> <span><?php echo $query_result['Notes'] ?></span> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="YesNoSection">
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_IsShared_YesNoRow_RowContainer">
<div class="detailRow">
<fieldset>
<legend class="detailLeftColumn mxDetailsLabel"> <span>Hide this item when printing or when sharing with a health care provider?</span> </legend>
<div style="clear:both;"></div>
<div class="detailRightFieldsetColumn">
<div style="display: block; margin-top: 2px;"> <span class="detailRightColumn">
<div class="detailRightColumn">
<div><?php echo $query_result['HideItem'];?></div>
</div>
</span> </div>
</div>
</fieldset>
</div>
</div>
<div>
<div class="detailRow">
<fieldset>
<legend class="detailLeftColumn mxDetailsLabel"> <span>Do you still have this condition?</span> </legend>
<div style="clear:both;"></div>
<div class="detailRightFieldsetColumn">
<div style="display: block; margin-top: 2px;"> <span class="detailRightColumn">
<div class="detailRightColumn">
<div><?php echo $query_result['stillCondition'];?></div>
</div>
</span> </div>
</div>
<div class="detailErrorContainer"> </div>
<span class="question_mark"></span>
</fieldset>
</div>
</div>
</div>
</div>
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_ctl01">
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_EntryRightSideContainer" class="EntryRightSideContainer">
<div class="LearnMoreDetail">
<div class="mxRoundTable">
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_LearnMore_Container_headerDiv" class="mxRoundTableTitle">
<div class="mxRoundedCap"></div>
</div>
<div class="mxDataTableBackground">
<div class="mxRoundedCap">
<div class="mxRoundedMain">
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_LearnMore_Container_titleDiv" class="mxDataTableTitle">
<h2>
<div class="LearnMoreDetailTitle">
<h2>Learn More About Diabetes Mellitus</h2>
</div>
</h2>
</div>
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_LearnMore_Container_ContentDiv" class="mxDataTableContent">
<div class="LearnMoreDetailText">
<ul>
<li>
<div id="learnMoreItem"> <img id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_LearnMore_Container_LinkRepeater_ctl00_Icon" src="images/content.png" alt="" style="border-width: 0px;"> <a id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_LearnMore_Container_LinkRepeater_ctl00_Link" href="javascript:PopupMultiViewer('/common/content/contentviewer.aspx%3fcui=C0011849%26topic=Diabetes+Mellitus%26etype=%26subtypes=%26contid=XIe3090mJjlQCAfxu90R%26toplink=%26topid=0%26topsrcid=0')">Articles related to Diabetes Mellitus</a>
<div style="clear: both;"></div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="mxRoundTableFooter">
<div class="mxRoundedCap"></div>
</div>
</div>
</div>
</div>
<div class="Pan" style="width: 650px; display: none; position: fixed; z-index: 100001; left: 631.5px; top: 447.5px;">
<div class="mxModalContainer" id="ModalContainer">
<div class="mxHeader">
<div>
<div class="mxModalContentTitle">
<h1></h1>
</div>
</div>
<div class="mxModalContentTitleClose"> </div>
<div>
<div class="mxModalContentTitleAdditional"> </div>
</div>
</div>
</div>
</div>
<div class="modalBackground" style="display: none; position: fixed; left: 0px; top: 0px; z-index: 10000; width: 1263px; height: 994px;" id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_ctl05_ModalDialogExtender_backgroundElement"></div>
</div>
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_CommandRow_DetailButtonRow" class="detailRow detailButtonRow">
<div id="ctl00_ctl00_ctl00_Content_LobbyContent_Content_EntryRepeater_ctl00_InterfaceControl_DetailAnimator_ctl03_CommandRow_DetailButtonContainer"><script type="text/javascript">
jQuery(document).ready(function(){
$("#button").click( function(){
var optionValue = <?php echo $conditionId ?>;
var categoryval=1;
jQuery.ajax({
type: "GET",
url: "getcondition.php",
data: "category="+optionValue+"&categoryval="+categoryval,
success: function(response){
jQuery("#AjaxDiv").html(response);
jQuery("#AjaxDiv").show();
jQuery("#AjaxDiv1").hide();
}
});
});
});
</script>
<div class="mxButtonOrange"> <span>
<button class="mxClearButtonOrange" id="button" type="button" name="button">Edit</button>
</span> </div>
<div class="mxButtonOrange"> <span>
<script type="text/javascript">
jQuery(document).ready(function(){
$("#button1").click( function(){
var optionValue = <?php echo $conditionId ?>;
var categoryval=1;
jQuery.ajax({
type: "GET",
url: "deletecondition.php",
data: "category="+optionValue+"&categoryval="+categoryval,
success: function(response){
jQuery("#AjaxDiv").html(response);
jQuery("#AjaxDiv").show();
jQuery("#AjaxDiv1").hide();
}
});
});
});
</script>
<button class="mxClearButtonOrange" type="button" id="button1" value="Delete" >Delete</button>
</span> </div>
</div>
</div>
</div>
</div>
</div>`enter code here`

Categories