File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/API/Finance/IPOSubscription/demo.php
Back
<?php include_once("simple_html_dom.php"); $url = $_GET['url']; $html = file_get_html($url); echo $html; /* if (strpos($url, 'https://www.chittorgarh.com/ipo_subscription/') !== false) { $html = file_get_html($url); $tab1 = $html->find('table',2); $tbody1 = $tab1->find('tbody',0); $tab2 = $html->find('table',3); $tbody2 = $tab2->find('tbody',0); $tab3 = $html->find('table',4); $tbody3 = $tab3->find('tbody',0); $color = '#f16334'; if(isset($_GET['c'])) { $color = '#'.$_GET['c']; } ?> <!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>SUBSCRIPITION DETAILS</title> <link rel="stylesheet" href="./style.css"> <style> body { background: <?php echo $color; ?>; } </style> </head> <body> <div id="mainDiv"> <center><h2>SUBSCRIPITION DETAILS</h2></center> <table> <thead> <tr> <th>CATEGORY</th> <th>SUBSCRIPTION(TIMES)</th> </tr> </thead> <tbody> <tr> <td>QIB</td> <td><?php echo $tbody1->find('tr',0)->find('td',1)->plaintext; ?></td> </tr> <tr> <td>NII</td> <td><?php echo $tbody1->find('tr',1)->find('td',1)->plaintext; ?></td> </tr> <tr> <td>Retail</td> <td><?php echo $tbody1->find('tr',2)->find('td',1)->plaintext; ?></td> </tr> <tr> <td>Employees</td> <td><?php echo $tbody1->find('tr',3)->find('td',1)->plaintext; ?></td> </tr> <tr> <td>Other</td> <td><?php echo $tbody1->find('tr',4)->find('td',1)->plaintext; ?></td> </tr> <tr> <td>Total</td> <td><?php echo $tbody1->find('tr',5)->find('td',1)->plaintext; ?></td> </tr> </tbody> </table> <h4>CHANCE TO GET IPO ALLOTMENT IS 1 OUT OF <?php echo round($tbody1->find('tr',2)->find('td',1)->plaintext); ?> PEOPLE. (RETAIL INVESTORS)</h4> <center><h2>IPO SUBSCRIPITION TIME</h2></center> <table> <thead> <tr> <th>DAY</th> <th>QIB</th> <th>NII</th> <th>RETAIL</th> <?php if(trim($tbody2->find('tr',0)->find('td',5)->plaintext) != '') { echo '<th>EMP</th>'; } ?> <th>TOTAL</th> </tr> </thead> <tbody> <tr> <td><?php echo '1'; ?></td> <td><?php echo trim($tbody2->find('tr',0)->find('td',1)->plaintext); ?></td> <td><?php echo trim($tbody2->find('tr',0)->find('td',2)->plaintext); ?></td> <td><?php echo trim($tbody2->find('tr',0)->find('td',3)->plaintext); ?></td> <td><?php echo trim($tbody2->find('tr',0)->find('td',4)->plaintext); ?></td> <?php if(trim($tbody2->find('tr',0)->find('td',5)->plaintext) != '') { ?> <td><?php echo trim($tbody2->find('tr',1)->find('td',5)->plaintext); ?></td> <?php } ?> </tr> <tr> <td><?php echo '2'; ?></td> <td><?php echo trim($tbody2->find('tr',1)->find('td',1)->plaintext); ?></td> <td><?php echo trim($tbody2->find('tr',1)->find('td',2)->plaintext); ?></td> <td><?php echo trim($tbody2->find('tr',1)->find('td',3)->plaintext); ?></td> <td><?php echo trim($tbody2->find('tr',1)->find('td',4)->plaintext); ?></td> <?php if(trim($tbody2->find('tr',0)->find('td',5)->plaintext) != '') { ?> <td><?php echo trim($tbody2->find('tr',1)->find('td',5)->plaintext); ?></td> <?php } ?> </tr> <tr> <td><?php echo '3'; ?></td> <td><?php echo trim($tbody2->find('tr',2)->find('td',1)->plaintext); ?></td> <td><?php echo trim($tbody2->find('tr',2)->find('td',2)->plaintext); ?></td> <td><?php echo trim($tbody2->find('tr',2)->find('td',3)->plaintext); ?></td> <td><?php echo trim($tbody2->find('tr',2)->find('td',4)->plaintext); ?></td> <?php if(trim($tbody2->find('tr',0)->find('td',5)->plaintext) != '') { ?> <td><?php echo trim($tbody2->find('tr',2)->find('td',5)->plaintext); ?></td> <?php } ?> </tr> </tbody> </table> <br> <center> <h3>Tarsons Products IPO 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($tbody3->find('tr') as $tr) { echo '<tr>'; foreach($tr->find('td') as $td) { echo '<td>'.trim($td->plaintext).'</td>'; } echo '</tr>'; } ?> </tbody> </table> <br> <h1>IPO Investor Categories</h1> <ul> <li><b>Qualified Institutional Buyers (QIB)</b> <ul type="square"> <li> Financial Institutions, Banks, FIIs, and Mutual Funds registered with SEBI are called QIBs. In most cases, QIBs represent small investors who invest through mutual funds, ULIP schemes of insurance companies, and pension schemes. </li> </ul> <br> </li> <li><b>Non-Institutional Investors(NII)</b> <ul type="square"> <li> Individual investors, NRIs, companies, trusts, etc who bid for more than Rs 2 lakhs are known as Non-institutional bidders or NII. They need not register with SEBI like QIIs. </li> </ul> <br> </li> <li><b>Retail Individual Investors(RII)</b> <ul type="square"> <li> The retail individual investor or NRIs who apply up to Rs 2,00,000 in an IPO are considered as RII reserved category. </li> </ul> <br> </li> <li><b>Employee (EMP)</b> <ul type="square"> <li> A category of eligible employees who have a reserved quota in the IPO. </li> </ul> <br> </li> <li><b>Others</b> <ul type="square"> <li> A category of eligible shareholders or other investors who have a reserved quota in the IPO. </li> </ul> <br> </li> </ul> </div> </body> </html> <?php } /*else if($url == "https://www.chittorgarh.com/ipo_subscription/gocolors-ipo/1181/") { $url = "https://www.chittorgarh.com/ajax/ajax.asp?AjaxCall=GetSubscriptionPageIPOBiddingStatus&AjaxVal=1181&CompanyShortName=GoColors%20IPO"; $html = file_get_html($url); $tab1 = $html->find('table',0); $tbody1 = $tab1->find('tbody',0); $tab2 = $html->find('table',1); $tbody2 = $tab2->find('tbody',0); $color = '#f16334'; if(isset($_GET['c'])) { $color = '#'.$_GET['c']; } ?> <!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>SUBSCRIPITION DETAILS</title> <link rel="stylesheet" href="./style.css"> <style> body { background: <?php echo $color; ?>; } </style> </head> <body> <div id="mainDiv"> <center> <h2>SUBSCRIPITION DETAILS</h2> </center> <table> <thead> <tr> <th>CATEGORY</th> <th>SUBSCRIPTION(TIMES)</th> </tr> </thead> <tbody> <tr> <td>QIB</td> <td><?php echo $tbody1->find('tr',0)->find('td',1)->plaintext; ?></td> </tr> <tr> <td>NII</td> <td><?php echo $tbody1->find('tr',1)->find('td',1)->plaintext; ?></td> </tr> <tr> <td><b>Retail</b></td> <td><b><?php echo $tbody1->find('tr',2)->find('td',1)->plaintext; ?></b></td> </tr> <tr> <td>Employees</td> <td><?php echo $tbody1->find('tr',3)->find('td',1)->plaintext; ?></td> </tr> <tr> <td>Other</td> <td><?php echo $tbody1->find('tr',4)->find('td',1)->plaintext; ?></td> </tr> <tr> <td>Total</td> <td><?php echo $tbody1->find('tr',5)->find('td',1)->plaintext; ?></td> </tr> </tbody> </table> <h4>CHANCE TO GET IPO ALLOTMENT IS 1 OUT OF <?php echo round($tbody1->find('tr',2)->find('td',1)->plaintext); ?> PEOPLE. (RETAIL INVESTORS)</h4> <center> <h2>IPO SUBSCRIPITION TIME</h2> </center> <table> <thead> <tr> <th>DAY</th> <th>QIB</th> <th>NII</th> <th>RETAIL</th> <th>TOTAL</th> </tr> </thead> <tbody> <tr> <td><?php echo $tbody2->find('tr',0)->find('td',0)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',0)->find('td',1)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',0)->find('td',2)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',0)->find('td',3)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',0)->find('td',4)->plaintext; ?></td> </tr> <tr> <td><?php echo $tbody2->find('tr',1)->find('td',0)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',1)->find('td',1)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',1)->find('td',2)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',1)->find('td',3)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',1)->find('td',4)->plaintext; ?></td> </tr> <tr> <td><?php echo $tbody2->find('tr',2)->find('td',0)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',2)->find('td',1)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',2)->find('td',2)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',2)->find('td',3)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',2)->find('td',4)->plaintext; ?></td> </tr> <tr> <td><?php echo $tbody2->find('tr',3)->find('td',0)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',3)->find('td',1)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',3)->find('td',2)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',3)->find('td',3)->plaintext; ?></td> <td><?php echo $tbody2->find('tr',3)->find('td',4)->plaintext; ?></td> </tr> </tbody> </table> <br> <center> <h3>GoColors IPO Shares Offered</h3> </center> <table> <thead> <tr> <th>Category</th> <th>Shares Offered</th> <th>Amount (Rs Cr)</th> <th>Size (%)</th> </tr> </thead> <tbody> <tr> <td>QIB</td> <td>4,406,996</td> <td>304.08</td> <td>54.55%</td> </tr> <tr> <td>NII</td> <td>2,203,497 </td> <td>152.04</td> <td>27.27%</td> </tr> <tr> <td>Retail</td> <td>1,468,998</td> <td>101.36</td> <td>18.18%</td> </tr> <tr> <td>Total</td> <td>8,079,491</td> <td>557.48</td> <td>100%</td> </tr> </tbody> </table> <br> <center> <h2>IPO Investor Categories</h2> </center> <ul> <li><b>Qualified Institutional Buyers (QIB)</b> <ul type="square"> <li> Financial Institutions, Banks, FIIs, and Mutual Funds registered with SEBI are called QIBs. In most cases, QIBs represent small investors who invest through mutual funds, ULIP schemes of insurance companies, and pension schemes. </li> </ul> <br> </li> <li><b>Non-Institutional Investors(NII)</b> <ul type="square"> <li> Individual investors, NRIs, companies, trusts, etc who bid for more than Rs 2 lakhs are known as Non-institutional bidders or NII. They need not register with SEBI like QIIs. </li> </ul> <br> </li> <li><b>Retail Individual Investors(RII)</b> <ul type="square"> <li> The retail individual investor or NRIs who apply up to Rs 2,00,000 in an IPO are considered as RII reserved category. </li> </ul> <br> </li> <li><b>Employee (EMP)</b> <ul type="square"> <li> A category of eligible employees who have a reserved quota in the IPO. </li> </ul> <br> </li> <li><b>Others</b> <ul type="square"> <li> A category of eligible shareholders or other investors who have a reserved quota in the IPO. </li> </ul> <br> </li> </ul> </div> </body> </html> <?php } else { $url = $_GET['url']; $html = file_get_html($url); echo $html; }*/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings