I'm doing a contact merge sort of page, and therefore need two tables side by side where you can select which data you want from each contact, but I need the rows to line up so it's easy for the user to select appropriate data. I'm using boostrap
<div class="col-sm-10 col-sm-offset-1">
<form method="post" class="form-inline">
<?php foreach($contacts as $contact): ?>
<div class="col-sm-6">
<table class="table table-bordered table-container">
<thead>
<tr>
<th colspan="3" class="text-center">Contact <?php echo $counter == 1 ? '1':'2'; ?></th>
</tr>
</thead>
<tbody>
<tr>
<div class="input-group">
<td class="td_attr">Main Type:</td>
<td class="text-center td_data"><?php echo $main_type_array[$contact->contact_main_type]; ?></td>
<td class="text-center"><input value="1" type="radio" name="main_type"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Title:</td>
<td class="text-center td_data"><?php echo $contact->contact_title; ?></td>
<td class="text-center"><input value="1" type="radio" name="title"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">First Name:</td>
<td class="text-center td_data"><?php echo $contact->contact_fname; ?></td>
<td class="text-center"><input value="1" type="radio" name="first_name"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Last Name:</td>
<td class="text-center td_data"><?php echo $contact->contact_sname; ?></td>
<td class="text-center"><input value="1" type="radio" name="last_name"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Salutation:</td>
<td class="text-center td_data"><?php echo $contact->contact_salu; ?></td>
<td class="text-center"><input value="1" type="radio" name="salu"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Position:</td>
<td class="text-center td_data"><?php echo $contact->contact_position; ?></td>
<td class="text-center"><input value="1" type="radio" name="position"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Email Address:</td>
<td class="text-center td_data"><?php echo $contact->contact_email; ?></td>
<td class="text-center"><input value="1" type="radio" name="email"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Alt. Email:</td>
<td class="text-center td_data"><?php echo $contact->contact_alt_email; ?></td>
<td class="text-center"><input value="1" type="radio" name="alt_email"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Phone Number:</td>
<td class="text-center td_data"><?php echo $contact->contact_phone; ?></td>
<td class="text-center"><input value="1" type="radio" name="phone"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Mobile Number:</td>
<td class="text-center td_data"><?php echo $contact->contact_mobile; ?></td>
<td class="text-center"><input value="1" type="radio" name="mobile"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">PA Name:</td>
<td class="text-center td_data"><?php echo $contact->contact_pa_name; ?></td>
<td class="text-center"><input value="1" type="radio" name="pa_name"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">PA Email:</td>
<td class="text-center td_data"><?php echo $contact->contact_pa_email; ?></td>
<td class="text-center"><input value="1" type="radio" name="pa_email"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Type:</td>
<td class="text-center td_data"><?php echo $contact->old_type_new; ?></td>
<td class="text-center"><input value="1" type="radio" name="old_type_new"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Interest Area 1:</td>
<td class="text-center td_data"><?php echo $contact->contact_interest_area; ?></td>
<td class="text-center"><input value="1" type="radio" name="ia1"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Interest Area 2:</td>
<td class="text-center td_data"><?php echo $contact->contact_interest_area2; ?></td>
<td class="text-center"><input value="1" type="radio" name="ia2"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Affilliation:</td>
<td class="text-center td_data"><?php echo $contact->contact_affiliation; ?></td>
<td class="text-center"><input value="1" type="radio" name="affiliation"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Source:</td>
<td class="text-center td_data"><?php echo $contact->contact_source; ?></td>
<td class="text-center"><input value="1" type="radio" name="source"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Location:</td>
<td class="text-center td_data"><?php echo $contact->contact_location; ?></td>
<td class="text-center"><input value="1" type="radio" name="location"></td>
</div>
</tr>
<tr>
<div class="input-group">
<td class="td_attr">Forum Interests:</td>
<td class="text-center td_data">
<?php
foreach($contact->forum_interests as $forum) {
echo "$forum->forum_1word <br/>";
}
?>
</td>
<td class="text-center vert-align"><input value="1" type="radio" name="forum_interests"></td>
</div>
</tr>
</tbody>
</table>
</div>
<?php $counter++; ?>
<?php endforeach; ?>
<?php for($i = 0; $i < 2; $i++): ?>
<div class="col-sm-6">
<table class="table table-bordered">
<thead>
<tr>
<th colspan="3" class="text-center">Events</th>
</tr>
<tr>
<th>Event Date</th>
<th>Event Title</th>
<th>Invite Status</th>
</tr>
</thead>
<tbody>
<?php foreach($events[$i] as $event): ?>
<tr>
<td><?php echo $event->event_date ?></td>
<td><?php echo $event->event_title; ?></td>
<Td><?php echo $contacts[$i]->invites[$event->event_id]; ?></Td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php endfor; ?>
</form>
</div>
have you tried adding a
div class="row"
to wrap your for loop?
Related
I have a questions about how to loop through a html tab 'form' or 'Table Summary'.
The site : Visit https://mobile.uwants.com/forumdisplay.php?fid=631
I have tried below code but no luck
start_urls = ['https://mobile.uwants.com/forumdisplay.php?fid=631'])
def parse(self, response):
resp =response.xpath("//*[//*[#id='mainbody']/tbody/tr/td/div/table[2]/tbody/tr/td[1]/div[2]/form")
for r in resp:
r = response.xpath('//*[contains(#id,"thread_197")]/a/#href').extract_first()
yield response.follow(r,self.parse_items)
The first image is that this is my initial table that i would like the problem to loop through each comments
The second image is that this is one of the sample that i would like to scrap the comment
HTML Code
<form method="post" name="moderate" action="topicadmin.php?action=moderate&fid=631">
<input type="hidden" name="formhash" value="df27712a" />
<table summary="forum_631" cellspacing="0" cellpadding="0">
<thead class="category">
<tr>
<td class="folder"> </td>
<td class="icon"> </td>
<th>標題</th>
<td class="author">作者</td>
<td class="nums">回覆/查看</td>
<td class="lastpost">最後發表</td>
</tr>
</thead>
<tbody>
<tr>
<td class="folder"><img src="https://n2.hk/images/default/folder_common.gif" alt="announcement" /></td>
<td class="icon"> </td>
<th class="tsubject">論壇公告: 開戰準備!全新版區《Gundam Fan Club》開放!</th>
<td class="author">
<cite>mhmimi</cite>
<em>2017-6-9</em>
</td>
<td class="nums">-</td>
<td class="lastpost">-</td>
</tr>
</tbody>
<!-- Text T4 - Modified by Ivan - start-->
<tbody>
<tr>
<td colspan="6" height="35"><!-- Ad space:Uwants_Web_630_T4 --><script src="https://lv.l.networld.hk/lview?loc=_adb_20_10002834&callback=crystal2.addStaticSlot"></script>
</td>
</tr>
</tbody>
<!-- Text T4 - Modified by Ivan - end-->
<tbody id="stickthread_19434311" class="forumdisplay_thread" data-tid="19434311">
<tr>
<td class="folder"><img src="https://n2.hk/images/default/folder_lock.gif" /></td>
<td class="icon">
</td>
<th class="lock">
<label>
<img src="https://n2.hk/images/default/pin_2.gif" alt="分類置頂" />
<!-- By Rex Heat Thread -->
<!-- By Rex Heat Thread -->
</label>
<span id="thread_19434311" class="tsubject"><!-- google_ad_section_start -->請各會員注意,本版新措施(已生效)<!-- google_ad_section_end --></span>
</th>
<td class="author">
<cite>
Yue33695874
</cite>
<em></em>
</td>
<td class="nums">
<strong>0</strong> / <em>41262</em>
</td>
<td class="lastpost">
<em></em>
<cite>by Yue33695874 </cite>
</td>
</tr>
</tbody> <tbody id="stickthread_16031523" class="forumdisplay_thread" data-tid="16031523">
<tr>
<td class="folder"><img src="https://n2.hk/images/default/folder_lock.gif" /></td>
<td class="icon">
</td>
<th class="lock">
<label>
<img src="https://n2.hk/images/default/pin_2.gif" alt="分類置頂" />
<!-- By Rex Heat Thread -->
<!-- By Rex Heat Thread -->
</label>
<span id="thread_16031523" class="tsubject"><!-- google_ad_section_start -->==手機網絡 版版規== 本版嚴禁一切問價及報價, 違者發帖將被移走及不作通知!<!-- google_ad_section_end --></span>
</th>
<td class="author">
<cite>
quimboy1
</cite>
<em></em>
</td>
<td class="nums">
<strong>0</strong> / <em>61033</em>
</td>
<td class="lastpost">
<em></em>
<cite>by quimboy1 </cite>
</td>
</tr>
</tbody> <tbody id="stickthread_16776292" class="forumdisplay_thread" data-tid="16776292">
<tr>
<td class="folder"><img src="https://n2.hk/images/default/folder_lock.gif" /></td>
<td class="icon">
</td>
<th class="lock">
<label>
<img src="https://n2.hk/images/default/pin_1.gif" alt="本版置頂" />
<!-- By Rex Heat Thread -->
<!-- By Rex Heat Thread -->
</label>
<span id="thread_16776292" class="tsubject"><!-- google_ad_section_start -->溫馨提示 : 小心網上流動手提電話公司sales, 已經有騙案個案及已轉交警方處理<!-- google_ad_section_end --></span>
</th>
<td class="author">
<cite>
chungsm
</cite>
<em></em>
</td>
<td class="nums">
<strong>2</strong> / <em>65809</em>
</td>
<td class="lastpost">
<em></em>
<cite>by chungsm </cite>
</td>
</tr>
</tbody><!--
</table>
<table summary="forum_631" id="forum_631" cellspacing="0" cellpadding="0">
-->
手機網絡 - 熱門話題
</td></tr></tbody-->
<!--td class="folder" colspan="2"> </td-->
<td class="folder" ><img src="https://n2.hk/images/r09/hot_u.gif" /></td>
<td class="icon"> </td>
<th class="" >
<label>
<!-- By Rex Heat Thread -->
<!-- By Rex Heat Thread -->
</label>
<span id="thread_ht_1_19782731" class="tsubject">問 : 中國移動4.5G 網絡 地鐵接收如何</span>
New
Thanks for help guys
Try to change this line:
r = response.xpath('//*[contains(#id,"thread_197")]/a/#href').extract_first()
With this:
r = r.xpath('//*[contains(#id,"thread_197")]/a/#href').extract_first()
I think this is what you meant to do!
If you want to fetch all href contained in the table, you can do:
response.css('.tsubject a::attr(href)').extract()
I have three div one is main div, one div having two column table and another div has 5 column table. I have tried using bootstrap class "row" but I did not able to align them properly. How can I arrange this two div one beside another? Here below I have attached a picture. Can anyone please help me out for this problem.
here below is the code
<!DOCTYPE html>
<html lang="en">
<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>trial</title>
<!--Links for icons and images-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto|Varela+Round">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<!--css for paginated-->
<link rel="stylesheet" href="http://localhost/Performance/css/usermange.css">
<style>
#displayproject{
margin-top:100px;
position:fixed;
background-color:blue;
}
</style>
</head>
<body>
<div class="container">
<div id="displayproject">
<table class="table table-striped table-hover">
<thead>
<tr>
<th></th>
<th>Projects</th>
</tr>
</thead>
<tbody>
<?php
include_once "../Connection/dbconnect.php";
$fetch_projects = mysqli_query($GLOBALS['db'],"select project_id,project_name from project_table limit 10;");
while($row = mysqli_fetch_array($fetch_projects)){
echo '<tr>
<td>
<span class="custom-checkbox">
<input type="checkbox" name="options[]" value="hello">
<label></label>
</span>
</td>';
echo '<td>'.$row['project_name'].'</td></tr><tr></tr>';
}
?>
</tbody>
</table>
</div>
<div class="table-wrapper">
<div class="table-title">
<div class="row">
<div class="col-sm-6">
<h2>Manage <b>Employees</b></h2>
</div>
<div class="col-sm-6">
<i class="material-icons"></i> <span>Add New Employee</span>
<i class="material-icons"></i> <span>Delete</span>
</div>
</div>
</div>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>
<span class="custom-checkbox">
<input type="checkbox" id="selectAll">
<label for="selectAll"></label>
</span>
</th>
<th>Name</th>
<th>Email</th>
<th>Address</th>
<th>Phone</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="custom-checkbox">
<input type="checkbox" id="checkbox1" name="options[]" value="1">
<label for="checkbox1"></label>
</span>
</td>
<td>Thomas Hardy</td>
<td>thomashardy#mail.com</td>
<td>89 Chiaroscuro Rd, Portland, USA</td>
<td>(171) 555-2222</td>
<td>
<i class="material-icons" data-toggle="tooltip" title="Edit"></i>
<i class="material-icons" data-toggle="tooltip" title="Delete"></i>
</td>
</tr>
<tr>
<td>
<span class="custom-checkbox">
<input type="checkbox" id="checkbox3" name="options[]" value="1">
<label for="checkbox3"></label>
</span>
</td>
<td>Maria Anders</td>
<td>mariaanders#mail.com</td>
<td>25, rue Lauriston, Paris, France</td>
<td>(503) 555-9931</td>
<td>
<i class="material-icons" data-toggle="tooltip" title="Edit"></i>
<i class="material-icons" data-toggle="tooltip" title="Delete"></i>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
Output I am getting is
You can use bootstrap 3 , you can see the code here
https://codepen.io/shakercs/pen/MBgwQJ
<div class="container">
<div class="row">
<div class="col-md-12">
div is here
</div>
</div>
<div class="row">
<div class="col-md-3">
<table class="table table-bordered">
<thead>
<tr>
<th>checkbox</th>
<th>name</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="checkbox" /></td>
<td>text</td>
</tr> <tr>
<td><input type="checkbox" /></td>
<td>text</td>
</tr> <tr>
<td><input type="checkbox" /></td>
<td>text</td>
</tr> <tr>
<td><input type="checkbox" /></td>
<td>text</td>
</tr> <tr>
<td><input type="checkbox" /></td>
<td>text</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-9">
<table class="table table-bordered">
<thead>
<tr>
<th>checkbox</th>
<th>name</th>
<th>title</th>
<th>title</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="checkbox" /></td>
<td>text</td>
<td>text</td>
<td>text</td>
</tr> <tr>
<td><input type="checkbox" /></td>
<td>text</td>
<td>text</td>
<td>text</td>
</tr> <tr>
<td><input type="checkbox" /></td>
<td>text</td>
<td>text</td>
<td>text</td>
</tr> <tr>
<td><input type="checkbox" /></td>
<td>text</td>
<td>text</td>
<td>text</td>
</tr> <tr>
<td><input type="checkbox" /></td>
<td>text</td>
<td>text</td>
<td>text</td>
</tr> <tr>
<td><input type="checkbox" /></td>
<td>text</td>
<td>text</td>
<td>text</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
This should work for you -
<div class="container">
<div class="row">
<div class="col-md-12">
First div
</div>
</div>
<div class="row">
<div class="col-md-2 col-sm-2" style="border:1px solid">
<table class="table">
<tr>
<td>col</td>
<td>col</td>
</tr>
</table>
</div>
<div class="col-md-10 col-sm-12" style="border:1px solid">
<table class="table">
<tr>
<td>col</td>
<td>col</td>
<td>col</td>
<td>col</td>
<td>col</td>
</tr>
</table>
</div>
</div>
</div>
This is an example code. You can modify accordingly.
Fiddle
You need to use the float:value; property of css to achieve this.
value:left|right|clear
<!DOCTYPE html>
<html lang="en">
<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>trial</title>
<!--Links for icons and images-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto|Varela+Round">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<!--css for paginated-->
<link rel="stylesheet" href="http://localhost/Performance/css/usermange.css">
<style>
#displayproject{
float:left;
margin-top:100px;
position:fixed;
background-color:blue;
}
</style>
</head>
<body>
<div class="container">
<div id="displayproject">
<table class="table table-striped table-hover">
<thead>
<tr>
<th></th>
<th>Projects</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-wrapper" style="float:right;">
<div class="table-title">
<div class="row">
<div class="col-sm-6">
<h2>Manage <b>Employees</b></h2>
</div>
<div class="col-sm-6">
<i class="material-icons"></i> <span>Add New Employee</span>
<i class="material-icons"></i> <span>Delete</span>
</div>
</div>
</div>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>
<span class="custom-checkbox">
<input type="checkbox" id="selectAll">
<label for="selectAll"></label>
</span>
</th>
<th>Name</th>
<th>Email</th>
<th>Address</th>
<th>Phone</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="custom-checkbox">
<input type="checkbox" id="checkbox1" name="options[]" value="1">
<label for="checkbox1"></label>
</span>
</td>
<td>Thomas Hardy</td>
<td>thomashardy#mail.com</td>
<td>89 Chiaroscuro Rd, Portland, USA</td>
<td>(171) 555-2222</td>
<td>
<i class="material-icons" data-toggle="tooltip" title="Edit"></i>
<i class="material-icons" data-toggle="tooltip" title="Delete"></i>
</td>
</tr>
<tr>
<td>
<span class="custom-checkbox">
<input type="checkbox" id="checkbox3" name="options[]" value="1">
<label for="checkbox3"></label>
</span>
</td>
<td>Maria Anders</td>
<td>mariaanders#mail.com</td>
<td>25, rue Lauriston, Paris, France</td>
<td>(503) 555-9931</td>
<td>
<i class="material-icons" data-toggle="tooltip" title="Edit"></i>
<i class="material-icons" data-toggle="tooltip" title="Delete"></i>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
I'm using latest bootstrap 4.0 and have an issue with overflowing table in Chrome browser.
In Firefox it scales correctly:
I have been trying several tricks and tips, but no luck. I wonder if it is some bug in Chrome actually?
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
</head>
<body>
<div class="container-fluid ">
<div class="titled-container-header">
Täiendkoolitused - Standardolukorrad
</div>
<div class="titled-container-body">
<div class="row">
<div class="col-sm-auto">
<table class="table table-responsive table-secondary">
<tbody>
<tr valign="top">
<td class="label">Koolitusele pääsemise tingimused</td>
<td>Koolitus on mõeldud treeneritele,kelle treenitavad võistkonnad mängivad 11v11.
</td>
</tr>
<tr valign="top">
<td class="label">Info</td>
<td>Koolitus on mõeldud vähemalt EJL C litsentsi treeneritele, kelle treenitavad võistkonnad mängivad 11v11.
<br>
<br>Räägime standardolukordade tähtsusest jalgpallis -filosoofiad, trendid ja mängijate treenimise ning õpetamise
võimalustest.
</td>
</tr>
<tr valign="top">
<td class="label">Vabu kohti</td>
<td>22</td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-auto pad-left">
<table class="table-bordered table-responsive table-primary">
<tbody>
<tr>
<th>
<label for="address">Elukoha aadress</label>
</th>
<td>
<input type="text" id="address" name="address">
</td>
</tr>
<tr>
<th>
<label for="phone">Telefon</label>
</th>
<td>
<input type="text" id="phone" name="phone">
</td>
</tr>
<tr>
<th>
<label for="email">Email</label>
</th>
<td>
<input type="text" id="email" name="email">
</td>
</tr>
<tr>
<th>
<label for="invoice_name">Arve saaja nimi</label>
</th>
<td>
<input type="text" id="invoice_name" name="invoice_name">
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</body>
</html>
I would like to toggle selection between two different sets of radio buttons.
The condition that must be met is that if the user checks the button on one set (called in the example l1), it is unchecked in the other set (called in the example m1).
In other questions, it seems that it is only feasible solution is using Java scripts.
Below is the code:
<table border="0" cellpadding="1" cellspacing="1" style="width: 500px;">
<tbody>
<tr>
<td style="width: 300px;"> </td>
<td style="width: 100px; text-align: center;">Least</td>
<td style="width: 100px; text-align: center;">Most</td>
</tr>
<tr>
<td>{{question1}}</td>
<td style="text-align: center;"><input name="l1" type="radio" value="-1" /></td>
<td style="text-align: center;"><input name="m1" type="radio" value="1" /></td>
</tr>
<tr>
<td>{{question2}}</td>
<td style="text-align: center;"><input name="l1" type="radio" value="-2" /></td>
<td style="text-align: center;"><input name="m1" type="radio" value="2" /></td>
</tr>
<tr>
<td>{{question3}}</td>
<td style="text-align: center;"><input name="l1" type="radio" value="-3" /></td>
<td style="text-align: center;"><input name="m1" type="radio" value="3" /></td>
</tr>
<tr>
<td>{{question4}}</td>
<td style="text-align: center;"><input name="l1" type="radio" value="-4" /></td>
<td style="text-align: center;"><input name="m1" type="radio" value="4" /></td>
</tr>
</tbody>
I have a table and ,in the note column , i should add long note that area. When i add very long note, the line expand but i just want to note settle new lines.
Example :
asyufgasdfhjdasfghfghasfhaahjfsghjahfjqjwjefqfeqwhkfwq
I want this :
jdsaaafjasasjs
ywewyuwqfyuyew
quyduquyqewfyy
And my table's code : (I want to fix td with 'thisone' id)
<div class="col-md-6">
<div class="content-box-large">
<div class="panel-heading">
<div class="panel-title">Notlar</div>
<div class="panel-options">
<i class="glyphicon glyphicon-refresh"></i>
<i class="glyphicon glyphicon-cog"></i>
</div>
</div>
<div class="panel-body">
<table class="table table-striped">
<?php if(mysqli_num_rows($listele)>0)
{ ?>
<thead>
<tr>
<th>Tarih</th>
<th>Saat</th>
<th>Dosya Notu</th>
<th>Notu Kaydeden Kişi</th>
</tr>
</thead>
<tbody>
<?php
$i=1;
while($not=mysqli_fetch_array($listele))
{
$tarih=$not["tarih"];
?>
<tr>
<td><?php echo date("d/m/Y",strtotime($tarih)); ?></td>
<td><?php echo date("H:i",strtotime($tarih)); ?></td>
<td id="thisone"><?php echo $not["dosya_not"]; ?></td>
<td><?php echo $not["calisan_adi"]; ?></td>
</tr>
<?php
$i++;
}
}?>
</tbody>
</table>
</div>
<div class="panel-body">
<table class="table table-striped">
<tr>
<td><input type="hidden" id="musteri_id" value="<?php echo $musteri_id; ?>"></td>
<td id="not"><textarea class="form-control" id="not_degeri" placeholder="Notu Giriniz" rows="3"></textarea></td>
<td id="buton"><button class="btn btn-primary" id="ekle">Yeni Not Ekle</button></td>
</tr>
</tbody>
</table>
</div>
</div>
</di
v>
You can use word breaking option in CSS
td {
word-break: break-all;
}
<style>
td { word-break: break-all; }
</style>
<div class="col-md-6">
<div class="content-box-large">
<div class="panel-heading">
<div class="panel-title">Notlar</div>
<div class="panel-options">
<i class="glyphicon glyphicon-refresh"></i>
<i class="glyphicon glyphicon-cog"></i>
</div>
</div>
<div class="panel-body">
<table class="table table-striped">
<thead>
<tr>
<th>Tarih</th>
<th>Saat</th>
<th>Dosya Notu</th>
<th>Notu Kaydeden Kişi</th>
</tr>
</thead>
<tbody>
<tr>
<td>sometext</td>
<td>some text</td>
<td id="thisone">lsdfjasdklfjasldajklsdfjkldfjklafsjklasdfjlkasdfjklafjklasdfjhklasdfjhklasdfjhklasdfajklasdfjklasdfjkl</td>
<td>some text</td>
</tr>
</tbody>
</table>
</div>
<div class="panel-body">
<table class="table table-striped">
<tr>
<td><input type="hidden" id="musteri_id" value=""></td>
<td id="not"><textarea class="form-control" id="not_degeri" placeholder="Notu Giriniz" rows="3"></textarea></td>
<td id="buton"><button class="btn btn-primary" id="ekle">Yeni Not Ekle</button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>