<?php
/**
 * Cobub Razor
 *
 * An open source mobile analytics system
 *
 * PHP versions 5
 *
 * @category  MobileAnalytics
 * @package   CobubRazor
 * @author    Cobub Team <open.cobub@gmail.com>
 * @copyright 2011-2016 NanJing Western Bridge Co.,Ltd.
 * @license   http://www.cobub.com/docs/en:razor:license GPL Version 3
 * @link      http://www.cobub.com
 * @since     Version 0.1
 */
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title><?php echo lang('installview_installheader');?></title>
    
    <link rel="stylesheet" href="<?php echo $newurl ?>/assets/css/layout.css" type="text/css" media="screen" />
    <!--[if lt IE 9]>
    <link rel="stylesheet" href="css/ie.css" type="text/css" media="screen" />
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="<?php echo $newurl ?>/assets/js/tag/jquery-1.9.1.js"
    type="text/javascript"></script>

    <script src="<?php echo $newurl ?>/assets/js/hideshow.js" type="text/javascript"></script>
    <script src="<?php echo $newurl ?>/assets/js/jquery.tablesorter.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="<?php echo $newurl ?>/assets/js/jquery.equalHeight.js"></script>
    <script type="text/javascript">
    $(document).ready(function() 
        { 
            $(".tablesorter").tablesorter(); 
        } 
    );
    $(document).ready(function() {

    //When page loads...
    $(".tab_content").hide(); //Hide all content
    $("ul.tabs li:first").addClass("active").show(); //Activate first tab
    $(".tab_content:first").show(); //Show first tab content

    //On Click Event
    $("ul.tabs li").click(function() {

        $("ul.tabs li").removeClass("active"); //Remove any "active" class
        $(this).addClass("active"); //Add "active" class to selected tab
        $(".tab_content").hide(); //Hide all tab content

        var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
        $(activeTab).fadeIn(); //Fade in the active ID content
        return false;
    });

});
    </script>
    <script type="text/javascript">
    $(function(){
        $('.column').equalHeight();
    });
</script>

</head>


<body>
    <header id="header">
        <hgroup>
            <h1 class="site_title" style="width:70%"><a href="http://dev.cobub.com" target="_blank"><img   class="logo" src="<?php echo $newurl.'/assets/images/razorlogo.png'?>"/><span style="vertical-align: top;"><?php echo lang('installview_installheader');?></span></a></h1>            
        </hgroup>
    </header>     
            <section id="main" class="column" style="width:100%">
        <article class="module width_full">
            <header><h3><?php echo lang('installview_checkheader');?></h3></header>
    <div>            
    <span id="imgtitle"><a href="http://dev.cobub.com" target="_blank"><img src="<?php if(isset($language)):
if ($language=="zh_CN") {
    echo $newurl.'/assets/images/ecobubrazorlogo.png';
} else {
       echo $newurl.'/assets/images/ecobubrazorlogo.png';
} endif;?>"/></a></span>
     </div>
        <hr style="color:#9FA0A2;" />
         
            <div>
            <div  style="height:50px;"></div>         
            <h3><font color="#990000"><?php echo lang('installview_checkstep');?></font></h3>            
            <h3><font color="#9d9d9d"><?php echo lang('installview_databasestep');?></font></h3>            
            <h3><font color="#9d9d9d"><?php echo lang('installview_websitestep');?></font></h3>
            <h3><font color="#9d9d9d"><?php echo lang('installview_finshstep');?></font></h3>        
            </div>
        
            <div style="height:350px;position:absolute;top:800px;left:420px;">
            <font color="red">
            <p><?php if(isset($versionerror)) echo $versionerror;?></p>
            <p><?php if(isset($mysqlierror)) echo $mysqlierror;?></p>
            <p><?php if(isset($curlerror)) echo $curlerror;?></p>
            <p><?php if(isset($mbstringerror)) echo $mbstringerror;?></p>
            <p><?php if(isset($writeerror))  echo $writeerror;?></p></font>
            </div>
            <div style="position:absolute;top:300px;left:420px;"   >
             <p align="left" class="STYLE5"><?php echo lang('installview_check');?></p>
             <table class="tablesorter" cellspacing="0">
                 <tr><td><?php echo lang('installview_checkversion');?><?php echo PHP_VERSION; ?></td>
                 <td>
                 <!-- Determine the version, version> 4.2-->
                 <?php if (isset($phpversion)&&$phpversion=="true") {
                         echo '<img src="'.$newurl.'/assets/images/icn_alert_success.png"/>';
} else {
                               echo '<img src="'.$newurl.'/assets/images/icn_alert_error.png"/>';
}
                 ?>
                 </td></tr>
                 
                <tr><td><?php echo lang('installview_checkexpand');?></td><td>                
                 <?php if (isset($mysqli)&&$mysqli=="true") {
                     echo  '<img src="'.$newurl.'/assets/images/icn_alert_success.png"/>';
} else {
                         echo '<img src="'.$newurl.'/assets/images/icn_alert_error.png"/>';
}
                 ?>
                </td></tr>
                
                <tr><td><?php echo lang('installview_checkcurl');?></td><td>                
                 <?php if (isset($curl)&&$curl=="true") {
                     echo  '<img src="'.$newurl.'/assets/images/icn_alert_success.png"/>';
} else {
                           echo '<img src="'.$newurl.'/assets/images/icn_alert_error.png"/>';
}
                 ?>
                </td></tr>
                
                <tr><td><?php echo lang('installview_checkmbstring');?></td><td>                
                 <?php if (isset($mbstring)&&$mbstring=="true") {
                     echo  '<img src="'.$newurl.'/assets/images/icn_alert_success.png"/>';
} else {
                          echo '<img src="'.$newurl.'/assets/images/icn_alert_error.png"/>';
}
                 ?>
                </td></tr>
                
                <tr><td><?php echo lang('installview_checkpermission');?></td>
                <?php if(isset($configpath)):
if ($configwrite) {
                    echo "<tr><td>".$configpath."</td><td><img src='".$newurl."/assets/images/icn_alert_success.png'/></td></tr>"; 
} else {
                        echo  "<tr><td>".$configpath."</td><td><img src='".$newurl."/assets/images/icn_alert_error.png'/></td></tr>"; 
} endif;?>
              <?php if(isset($captchapath)):
if ($captchwrite) {
                   echo "<tr><td>".$captchapath."</td><td><img src='".$newurl."/assets/images/icn_alert_success.png'/></td></tr>"; 
} else {
                        echo  "<tr><td>".$captchapath."</td><td><img src='".$newurl."/assets/images/icn_alert_error.png'/></td></tr>"; 
} endif;?> 
               <?php if (isset($assetspath)):
if ($assetswrite) {
                   echo "<tr><td>".$assetspath."</td><td><img src='".$newurl."/assets/images/icn_alert_success.png'/></td></tr>"; 
} else {
                       echo  "<tr><td>".$assetspath."</td><td><img src='".$newurl."/assets/images/icn_alert_error.png'/></td></tr>";
} endif;?>     
                <?php if(isset($sqlpath)):
if ($sqlwrite) {
                   echo "<tr><td>".$sqlpath."</td><td><img src='".$newurl."/assets/images/icn_alert_success.png'/></td></tr>"; 
} else {
                       echo  "<tr><td>".$sqlpath."</td><td><img src='".$newurl."/assets/images/icn_alert_error.png'/></td></tr>";
} endif;?>                    
             </table>
            </div>
            
             <div id="informinfo"  style="position:absolute;top:270px;right:100px;">
             <a href="<?php if(isset($language)):
if ($language=="zh_CN") {
    echo 'http://dev.cobub.com/zh/docs/cobub-razor/installation-guide/';
} else {
        echo 'http://dev.cobub.com/docs/cobub-razor/installation-guide/';
} endif;?>" target="_blank">
    <?php if(isset($language)):
if ($language=="zh_CN") { 
    echo '<p style="font-size: 16px;font-weight: bold;">安装帮助</p>';
} else {
        echo '<p style="font-size: 16px;font-weight: bold;">Help On Installation</p>';
} endif;?></a>
             </div>
             
            <div class="clear"></div>    
        <div  style="height:560px;"></div>
        <footer>
        <ul  class="tabs">
        <div>        
        <a href='<?php if ($phpversion=="true"&&$mysqli=="true"&&$writetrue=="true"&&$curl=="true"&&$mbstring=="true") {
            echo $newurl.'/index.php?/install/installation/databaseinfo/'.$language;
} else {
                echo $newurl.'/index.php?/install/installation/systemcheck/'.$language;
} ?>'>
        <input type="submit" value="<?php echo lang('installview_nextstep');?>"></a>
        </div>
        </ul>
        </footer>
            </article>
        <div class="clear"></div>    
        <div class="spacer"></div>
    </section>

<div style="position:absolute;top:910px; left:500px">
<p align="center"> &copy; Copyright 2012-2016 Cobub Razor Version:<?php  echo $this->config->item('version')?>
<br />
 <a href=" <?php if ($language=="zh_CN") {
     echo 'http://dev.cobub.com/zh/docs/cobub-razor/release-note/';
} else {
        echo 'http://dev.cobub.com/docs/cobub-razor/release-note/';
} ?>" target="_blank"><?php
if ($language == "zh_CN") {
     echo '发布说明';
} else {
        echo 'Release Note';
} ?></a><br/>
        <a href ="
 <?php if ($language=="zh_CN") {
     echo 'http://dev.cobub.com/zh/';
} else {
        echo 'http://dev.cobub.com/';
} ?>
    " target ="_blank" title="<?php if ($language == 'zh_CN') {
                                       echo '移动应用分析';
} else {
        echo 'Mobile Analytic';
}?>" 
                    alt="Cobub Razor - Open Source Mobile Analytics                         Solution"><?php if ($language == "zh_CN") {
                            echo '开源移动应用统计分析平台';
} else {
        echo 'Mobile Analytics of Open Source';
}?></a>





</div>

</body>

</html>
