<?php 
$id_menu = 18;
include ("header.php"); 
?>
<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
           
    <?php include ("common_in_head.php"); ?> 
           
</head>
<body>	
	<div class="container">

		<?php include('menu.php'); ?>
        
        <div class="content_holder">	            
        	
            <div class="gradient"></div>
            
	        <div class="content_inner">
            	<div class="resize_content" id="resize_content">
					
					<?php include('inc_top_images.php'); ?>
                        
                    <section class="content">
					
                        <header class="page_title">
                            registration / prices
                            <div class="title_line"></div>
                        </header>
                        
                        <div class="text">
                        
                        	<table class="prices_table" cellpadding="0" cellspacing="0">
                                <tr>
                                    <!--<th width="23">&nbsp;</th>-->
                                    <?php
                                    //id_tables_th, title_en, active, orderby, id_menu, which_table, subtitle_en
                                    $sql_th = "select title_".$lang.", subtitle_".$lang." from tables_th where active=1 and id_menu=".$id_menu." and which_table=1 order by orderby";
                                    $rs_th = mysql_query($sql_th);
                                    $nm_th = mysql_num_rows($rs_th);
									$count_th = 1;
                                    while ($data_th = mysql_fetch_row($rs_th))
                                    {
                                        ?>
                                        <th <?php if ($count_th==1) echo 'colspan="2" style="text-align:left;"'; else echo 'class="border_col"'; ?>>
                                            <?php
                                            if ($data_th[1]!="")
                                                echo '<div>'.do_uppercase($data_th[0]).'</div>'.$data_th[1];
                                            else
                                                echo do_uppercase($data_th[0]);
                                            ?>
                                        </th>
                                        <?php
										$count_th++;
                                    }
                                    ?>
                                </tr>
                    
                                <?php
                                //$counter = 1;
                                //id_tables_titles, title_en, cols, active, orderby, id_menu, which_table
                                $sql_td_titles = "select id_tables_titles, title_".$lang.", cols from tables_titles where active=1 and id_menu=".$id_menu." and which_table=1 order by orderby";
                                $rs_td_titles = mysql_query($sql_td_titles);
                                while ($data_td_titles = mysql_fetch_row($rs_td_titles))
                                {
                                    $cols = $data_td_titles[2];
                                    $colspan = floor($nm_th/$cols);
                                    ?>
                                    <tr <?php //if ($counter%2==0) echo 'class="dark"'; ?>>
                                        <td class="count"><?php echo $data_td_titles[1]; ?></td>
                                        
                                        <?php
                                        for ($i=1; $i<=$cols; $i++)
                                        {
                                            //id_tables_td, text_en, table_title_id, for_col, id_menu, which_table
                                            $sql_td = "SELECT text_en FROM tables_td WHERE table_title_id=".$data_td_titles[0]." and for_col=".$i;	
                                            $rs_td = mysql_query($sql_td);	
                                            $nm_td = mysql_num_rows($rs_td);
											?>
                                            <td <?php if ($i>1) echo 'class="border_col"'; ?> colspan="<?php echo $colspan; ?>">
												<?php
                                                if ($i==1)
                                                    echo '<div class="row_text">';
                                                    
                                                if ($nm_td>0)
                                                {
                                                    $data_td = mysql_fetch_row($rs_td);
                                                    echo fix_textarea($data_td[0]);
                                                }
                                                else
                                                    echo 'N/A';
													
												if ($i==1)
                                                    echo '</div>';
                                                ?>
                                            </td>
                                            <?php
                                        }                   
                                        ?>
                                    </tr>
                                    <?php
                                    //$counter++;
                                }
                                ?>
                            </table>
                        	
                            <!--<table cellpadding="0" cellspacing="0" class="prices_table">
								<tr>
                                	<th colspan="2" style="text-align:left;">type of service</th>
									<th class="border_col">payment</th>                                                                
                                    <th class="border_col">price</th>
                                </tr>
                                <?php 
								/*for ($i=1; $i<20; $i++) {
									?>
                                    <tr>
                                    	<td class="count"><?php echo $i; ?>.</td>
                                        <td><div class="row_text">
                                            <p>Registration of a Cyprus Offshore Company (Capital EURO 1000) <br /><br />
                                            Includes: Registration of Cyprus Offshore Company and providing Memorandum and Articles of Association in Greek and true translation in English. Certificate of Incorporation, Certificate of Shareholders, Certificate of Registered Office Address, Certificates of Directors and Secretary, all in English. Providing round rubber stamp of the Company.</p>
                                            </div>
                                        </td>
                                        <td class="border_col">Annual</td>
                                        <td class="border_col">&euro; 2.500</td>
                                    </tr>	
                                    <?php
								}*/
								?>
                            </table>-->
	                        
                            <a href="<?php echo $websiteURL.$link_ext; ?>registration-questionnaire.php" class="register_button">register now</a>        
                            
                        </div>
                        
                    </section>

                </div>
                
                <?php include('footer.php'); ?>
				
            </div>                   
        </div>           
    </div>
</body>
</html>
<?php include ("bottom.php"); ?>