File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/API/Finance/IPOSubscription/DataGetter/ShareOffered.php
Back
<?php include_once("../simple_html_dom.php"); $url = $_GET['url']; $html = file_get_html($url); foreach($html->find('table') as $table) { if($table->find('th',0)->plaintext == 'Category') { $tab3 = $table; break; } } ?> <center> <h3>Shares Offered</h3> </center> <table> <thead> <tr> <?php foreach($tab3->find('thead',0)->find('tr',0)->find('th') as $th) { echo '<th>'.$th->plaintext.'</th>'; } ?> </tr> </thead> <tbody> <?php foreach($tab3->find('tbody',0)->find('tr') as $tr) { echo '<tr>'; foreach($tr->find('td') as $td) { $val = trim($td->plaintext); if (strpos($val, 'above') !== false) { $val = "- NII (Bid>10L)"; } if (strpos($val, 'below') !== false) { $val = "- NII (Bid<10L)"; } echo '<td>' . $val .'</td>'; } echo '</tr>'; } ?> </tbody> </table>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings