Difference between revisions of "Test page"
Jump to navigation
Jump to search
Sri.senthil (talk | contribs) |
Sri.senthil (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | <html> | ||
+ | <body> | ||
+ | <?php | ||
+ | $shop = array( array("title"=>"rose", "price"=>1.25 , "number"=>15), | ||
+ | array("title"=>"daisy", "price"=>0.75 , "number"=>25), | ||
+ | array("title"=>"orchid", "price"=>1.15 , "number"=>7) | ||
+ | ); | ||
+ | ?> | ||
+ | <?php if (count($shop) > 0): ?> | ||
+ | <table> | ||
+ | <thead> | ||
+ | <tr> | ||
+ | <th><?php echo implode('</th><th>', array_keys(current($shop))); ?></th> | ||
+ | </tr> | ||
+ | </thead> | ||
+ | <tbody> | ||
+ | <?php foreach ($shop as $row): array_map('htmlentities', $row); ?> | ||
+ | <tr> | ||
+ | <td><?php echo implode('</td><td>', $row); ?></td> | ||
+ | </tr> | ||
+ | <?php endforeach; ?> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <?php endif; ?> | ||
+ | </body> | ||
+ | </html> | ||
+ | |||
+ | <!-- | ||
{{#ask: | {{#ask: | ||
[[Category:Books English]] | [[Category:Books English]] | ||
Line 6: | Line 34: | ||
}} | }} | ||
− | |||
<gallery mode=slideshow widths=400px heights=300px> | <gallery mode=slideshow widths=400px heights=300px> | ||
File:5F69A774-Photo-20200801-FB.jpg | File:5F69A774-Photo-20200801-FB.jpg | ||
Line 49: | Line 76: | ||
{{#hsimg:1|300| |http://drive.google.com/uc?export=view&id=1iGR4lPWVEGUBWOJMVyKmgA8Z7lyD4gkY}} | {{#hsimg:1|300| |http://drive.google.com/uc?export=view&id=1iGR4lPWVEGUBWOJMVyKmgA8Z7lyD4gkY}} | ||
{{#hsimg:1|300| |http://drive.google.com/uc?export=view&id=1glYBCm1iavI129qUZK5RgrYh1Meb_cZM}} | {{#hsimg:1|300| |http://drive.google.com/uc?export=view&id=1glYBCm1iavI129qUZK5RgrYh1Meb_cZM}} | ||
− | + | ||
<span style="font-family:'AnandaNamaste';">Does font change work?</span> | <span style="font-family:'AnandaNamaste';">Does font change work?</span> | ||
<img src="http://drive.google.com/uc?export=view&id=1q0OIr7PSQ9jMEnjqP9PFMoaw2vrU6OUN" height="400" alt="This [[Has pictureType::Article]] was published on [[Has pictureDate::2-Jan-2005]] in [[Has pictureTitle::Deccan Herald]]."> | <img src="http://drive.google.com/uc?export=view&id=1q0OIr7PSQ9jMEnjqP9PFMoaw2vrU6OUN" height="400" alt="This [[Has pictureType::Article]] was published on [[Has pictureDate::2-Jan-2005]] in [[Has pictureTitle::Deccan Herald]]."> | ||
− | <br/> | + | <br /> |
{{#ask: | {{#ask: | ||
Line 61: | Line 88: | ||
|order=descending | |order=descending | ||
}} | }} | ||
+ | --> |
Revision as of 02:17, 15 September 2020
<html> <body> <?php $shop = array( array("title"=>"rose", "price"=>1.25 , "number"=>15),
array("title"=>"daisy", "price"=>0.75 , "number"=>25), array("title"=>"orchid", "price"=>1.15 , "number"=>7) );
?> <?php if (count($shop) > 0): ?>
<thead> </thead> <tbody> <?php foreach ($shop as $row): array_map('htmlentities', $row); ?> <?php endforeach; ?> </tbody><?php echo implode(' | ', array_keys(current($shop))); ?> |
---|---|
<?php echo implode(' | ', $row); ?> |
<?php endif; ?> </body> </html>