Me need to save table <table class="tftable" border="1"> information </table> . Remove other information before and after.
How to implement this is better. There are about 90,000 pages of this kind. The structure they all have the same. Information in the tables is different.
<h1>jnouaoh098hwgv 03g030h </h1>
<div class="list-posts">
<div class="post-item">
<div class="text">
<p>iuah8n987hauuih uouahou paniuaugpiubrebg940wbunv9wh0uvnw95n 8h 8hgu 0hu8gh</p>
<h2>594w81grghiwuehuwn</h2>
<table class="tftable" border="1">
<tr>
<th>aiurh8n 7a8 </th>
<th>aihnguaw </th>
</tr>
<tr>
<td>uuhqncm998m4</td>
<td>от 11 000 wg.</td>
</tr>
<tr>
<td>shshrs</td>
<td>оsuhrguhousehrg</td>
</tr>
<td>sre e</td>
<td>от 500 fs.</td>
</tr>
<tr>
<td>rseh sreh</td>
<td>от 400 ewf.</td>
</tr>
<tr>
<td>ge ge</td>
<td>от 350 gw.</td>
</tr>
<tr>
<td>eg</td>
<td>ge gew</td>
</tr>
</table>
<div class="footer">
<div class="container">
<div class="row">
<div class="col-sm-4 text-left">
<h5>aweaweh hahrhrhhrrrrrrrrrrarh
<ul>
<li><i class="fa fa-phone"></i> 598229929</li>
<li><i class="fa fa-envelope"></i> 5191iuhyg7g</li>
<li><i class="fa fa-map-marker"></i> 56cn847n9qc849</li>
</ul>
If you want to get all ocurrences of <table>, <\table> and the contents between this tags.
You can use this Regex in the search pattern:
.*?(<table(.*)<\/table>).*
And this token in the substitution field:
\1
Don't forget to check true for the options:
Regular Expressions
. Matches new line
Like this image:
Related
Have a question about the HTML view related to the table.
In my HTML view, I have a table.
This is worked in a responsive way when changing the view.
Here I want to change the view that the responsive view comes with a scroll bar.
I want to change it to fit all columns to the view and wrap the column contents.
Any suggestions to do it?
<div class="col-md-12 col-sm-12 grid-margin stretch-card">
<div class="card shadow-card-l">
<div class="card-body">
<center><h4 class="card-title">Task Related Documents</h4></center>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>Document Type</th>
<th>Document Note</th>
<th>File Name</th>
<th></th>
</tr>
</thead>
<tbody>
#foreach (var item in Model.TaskFilesHistoryViewModel.OrderByDescending(x => x.Id))
{
<tr class="even pointer">
<td>#item.File_Type</td>
<td>#item.Note</td>
<td>#item.File_Name</td>
<td>
<a href="#Url.Action("DownloadTaskImage","Ajax", new { id = item.Id})" target="_blank" rel="publisher tag" class="btn btn-outline-info ti-import" />
<a href="#Url.Action("RetrieveTaskImage","Ajax", new { id = item.Id})" target="_blank" rel="publisher tag" class="btn btn-outline-success fa ti-eye" />
</td>
</tr>
}
</tbody>
</table>
</div>
</div>
</div>
</div>
I'm new in odoo and HTML&css, all I want is to add a stamp to my qutation so theu user won't need to put a stamp in every single quotation...can anyone help me and guide me to a road to fix that problem
thanks for your help.
<table class="table3">
<tr>
<td style="width:45%;border-style:none;">
<table style="width:60%;">
<tr>
<td style="font-size:14px;margin-left:4px; margin-right:auto;border: 2px"><br/>Bon pour accord le <br/><br/><br/> <br/><br/><br/>Nom, Qualité et signature ou cachet du client<br/><br/></td>
</tr>
</table>
</td>
<td>
<table id="t01">
<tr>
<td style="width:30%;font-size:12px"><b>Total DA HT</b></td>
<td>225,00</td>
</tr>
<tr>
<td style="width:30%; font-size:12px"><b>Total TVA</b></td>
<td>55.10</td>
</tr>
<tr>
<td style="width:30%;font-size:12px"><b>Droit de timbre</b></td>
<td>0.0</td>
</tr>
<tr>
<td style="width:30%;font-size:12px"><b>Total DA TTC</b></td>
<td>350</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="footer">
<br/><br/>
<div style="text-align:center">
<hr style="border: 1px solid #73ad20">
<p style="font-family:KacstFarsi; color:green; font-size:9px">N° R.C.: 1003703 -10 B /00/16//N.I.F.: 001016100370377</p>
<p style="font-family:KacstFarsi; color:green; font-size:9px">AGB BANQUE RIB: 03200001500720120844Dely-Brahim /N° Article 16500743415</p>
<small>
<span>Page</span>
<span class="page" />
/
<span class="topage" />
</small>
</div>
</div>
You could extend res.users with a field for the signature image (fields.binary) and extend the settings view (right corner "login" settings). So every user can set his own signature image. Little hint: res.users is a bit special. You need to implement that field as user-writeable field (Odoo example). In my example the field is called sign_image.
After this you can use this new field in your QWeb report, like:
<t t-if="o.user_id.sign_image">
<div t-field="o.user_id.sign_image" t-field-options='{"widget": "image"}'/>
</t>
Where o is the actual record (quotation) which is printed and o.user_id is the salesman on that. If you want to use the user who is printing instead of the salesman use o.env.user.sign_image.
I have this sample:
link
CODE HTML:
<table class="table prospects-table">
<thead>
<tr>
<th width="200">Name</th>
<th width="200">Email</th>
<th width="200">Phone</th>
<th width="200">Message</th>
<th width="200">Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td width="200">test sdada</td>
<td width="200">asdsada#yahoo.com</td>
<td width="200">(321) 312-3123</td>
<td width="200"> sadasda</td>
<td width="200">
<div class="in-line">
<i class="fa fa-pencil-square-o"></i>
<span>Edit</span>
</div>
<div class="in-line">
<i class="fa fa-users "></i>
<span>Transfer</span>
</div>
<div class="in-line">
<i class="fa fa-trash-o"></i>
<span>Delete</span>
</div>
</td></tr>
<tr>
<td width="200">Diaconescu Cristian</td>
<td width="200">asdsadsa#busteco.rh</td>
<td width="200">(312) 312-3123</td>
<td width="200">asdasadsdasasasasdkhsdjkashsdkjahdhjsgdhjgvhhs,ajfkghjkdjhdsgjhasdghjgsadhjgshjkhvjgjkgfkjhdkjjhgfhjkdhkjsgdfv</td>
<td width="200">
<div class="in-line">
<i class="fa fa-pencil-square-o"></i>
<span>Edit</span>
</div>
<div class="in-line">
<i class="fa fa-users "></i>
<span>Transfer</span>
</div>
<div class="in-line">
<i class="fa fa-trash-o"></i>
<span>Delete</span>
</div>
</td></tr>
</tbody>
</table>
I want each column of my table to have a width of 200px.
I added this code to each td but does not work ...
<td width="200">test sdada</td>
Probably something simple but I realize why this code does not work.
Can you tell me please what is the problem and how to solve it?
Thanks in advance!
Why don't you just add a style tag to your code?
In the head just insert this:
<style>
td,th {width:200px}
</style>
Add table-layout: fixed; to your table
table{
table-layout: fixed;
}
Updated codepen
use this
<td style="width: 200px;">test sdada</td>
learn proper css take a loot at element level css here
you can add css :
style="width:200px";
DEMO HERE
try this one
<td width="70%">JXXXXXX</td>
hope this one help you
Width attribute is deprecated one. So it is better to use css width property instead.
Usage Note: Do not use this attribute, as it has been deprecated and
the rules should be defined and styled using CSS. Use the CSS property
width instead. - MDN
td, th {
width: 200px;
}
width of td doesn't work at HTML5,
use CSS styles instead , for example in simplest way
<style type="text/css">
.tdw{
width:200px;
}
</style>
<td class="tdw">Diaconescu Cristian</td>
I am trying to select an i element as follows:
//div[contains(text(), "daddsadas#lol.com")]//parent//i[contains(#class, "fa fa-pencil")]
From the following HTML:
<td ng-class="{true:'disable'}[contact.status=='deactive']">
<div class="email ng-binding">daddsadas#lol.com</div>
<div class="name">
<table>
<tbody>
<tr>
<td class="ng-binding">
Test Last
</td>
<td>
<i class="fa fa-pencil" ng-click="display_edit_contact_form(contact)"></i>
<i class="fa fa-trash" ng-click="delete_contact(contact)"></i>
</td>
</tr>
</tbody>
</table>
</div>
</td>
I cannot seem to get it to work. Any help would be great.
You can actually avoid traversing the tree, going up and down by using following:
//div[. = "daddsadas#lol.com"]/following::i[contains(#class, "fa-pencil")]
Managed to solve this by treating xpath queries the same as a file system:
//div[contains(text(), "daddsadas#lol.com")]/..//i[contains(#class, "fa-pencil")]
I generally use ul for lists of items
<ul class="users">
<li class="user">
<div class="name">Jack</div>
<div class="gender">M</div>
<div class="salary">$15k</div>
<div class="rank">Burger Flipper</div>
</li>
<li class="user">
<div class="name">Jill</div>
<div class="gender">F</div>
<div class="salary">$17k</div>
<div class="rank">Fry Tosser</div>
</li>
</ul>
When creating a heading for this list, is it best to include the heading as part of the list
<li class="user head">
<div class="human-attributes">This is:</div>
<div class="job-attributes">They are:</div>
</li>
or should it be a separate list?
<ul class="users head">
<li class="user">
<div class="human-attributes">This is:</div>
<div class="job-attributes">They are:</div>
</li>
</ul>
depends on what you want to do with it .. .You really should be using:
<table><thead></thead><tbody></tbody></table>
constructs which are meant for content you are describing, instead of <li> embedding a <div> which is going to get rendered in a bizarre way by default.
You can then use CSS to control the behaviour.
This is one of the legitimate uses of tables in HTML. You should not semantically be using unordered lists to present "tabular" data (which is what you are describing). You should be using something like this:
<table>
<thead>
<tr>
<th>Name</th>
<th>Gender</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jack</td>
<td>M</td>
</tr>
<tr>
<td>Jill</td>
<td>F</td>
</tr>
</tbody>
</table>
http://www.w3.org/MarkUp/html3/listheader.html
Was a working draft.
For now your solution seem the best. but maybee whit a different class.