Browse Source

Twitter boostrap style has been applied for "YiiRequirementChecker" web view.

tags/2.0.0-beta
Klimov Paul 12 years ago
parent
commit
d4ab780122
  1. 6196
      yii/requirements/views/web/css.php
  2. 96
      yii/requirements/views/web/index.php

6196
yii/requirements/views/web/css.php

File diff suppressed because it is too large Load Diff

96
yii/requirements/views/web/index.php

@ -3,54 +3,48 @@
/* @var $summary array */ /* @var $summary array */
/* @var $requirements array[] */ /* @var $requirements array[] */
?> ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <html lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta charset="utf-8"/>
<meta http-equiv="content-language" content="en"/> <title>Yii Application Requirement Checker</title>
<style type="text/css"> <?php $this->renderViewFile(dirname(__FILE__).DIRECTORY_SEPARATOR.'css.php'); ?>
<?php $this->renderViewFile(dirname(__FILE__).DIRECTORY_SEPARATOR.'css.php'); ?>
</style>
<title>Yii Application Requirement Checker</title>
</head> </head>
<body> <body>
<div id="page"> <div class="container">
<div class="header">
<div id="header"> <h1>Yii Application Requirement Checker</h1>
<h1>Yii Application Requirement Checker</h1> </div>
</div><!-- header--> <hr>
<div id="content"> <div class="content">
<h2>Description</h2> <h3>Description</h3>
<p> <p>
This script checks if your server configuration meets the requirements This script checks if your server configuration meets the requirements
for running Yii application. for running Yii application.
It checks if the server is running the right version of PHP, It checks if the server is running the right version of PHP,
if appropriate PHP extensions have been loaded, and if php.ini file settings are correct. if appropriate PHP extensions have been loaded, and if php.ini file settings are correct.
</p> </p>
<h2>Conclusion</h2> <h3>Conclusion</h3>
<p> <?php if ($summary['errors']>0): ?>
<?php if ($summary['errors']>0): ?> <strong class="text-error">Unfortunately your server configuration does not satisfy the requirements by this application.</strong>
Unfortunately your server configuration does not satisfy the requirements by this application. <?php elseif ($summary['warnings']>0): ?>
<?php elseif ($summary['warnings']>0): ?> <strong class="text-warning">Your server configuration satisfies the minimum requirements by this application. Please pay attention to the warnings listed below if your application will use the corresponding features.</strong>
Your server configuration satisfies the minimum requirements by this application. Please pay attention to the warnings listed below if your application will use the corresponding features. <?php else: ?>
<?php else: ?> <strong class="text-success">Congratulations! Your server configuration satisfies all requirements.</strong>
Congratulations! Your server configuration satisfies all requirements. <?php endif; ?>
<?php endif; ?>
</p>
<h2>Details</h2> <h3>Details</h3>
<table class="result"> <table class="table table-bordered">
<tr><th>Name</th><th>Result</th><th>Required By</th><th>Memo</th></tr> <tr><th>Name</th><th>Result</th><th>Required By</th><th>Memo</th></tr>
<?php foreach($requirements as $requirement): ?> <?php foreach($requirements as $requirement): ?>
<tr> <tr class="<?php echo $requirement['condition'] ? 'success' : ($requirement['mandatory'] ? 'error' : 'warning'); ?>">
<td> <td>
<?php echo $requirement['name']; ?> <?php echo $requirement['name']; ?>
</td> </td>
<td class="<?php echo $requirement['condition'] ? 'passed' : ($requirement['mandatory'] ? 'failed' : 'warning'); ?>"> <td >
<?php echo $requirement['condition'] ? 'Passed' : ($requirement['mandatory'] ? 'Failed' : 'Warning'); ?> <?php echo $requirement['condition'] ? 'Passed' : ($requirement['mandatory'] ? 'Failed' : 'Warning'); ?>
</td> </td>
<td> <td>
@ -59,24 +53,18 @@ Congratulations! Your server configuration satisfies all requirements.
<td> <td>
<?php echo $requirement['memo']; ?> <?php echo $requirement['memo']; ?>
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>
<table>
<tr>
<td class="passed">&nbsp;</td><td>passed</td>
<td class="failed">&nbsp;</td><td>failed</td>
<td class="warning">&nbsp;</td><td>warning</td>
</tr>
</table>
</div><!-- content --> </div>
<div id="footer"> <hr>
<?php echo $this->getServerInfo().' '.$this->getNowDate(); ?>
</div><!-- footer -->
</div><!-- page --> <div class="footer">
<p>Server: <?php echo $this->getServerInfo().' '.$this->getNowDate(); ?></p>
<p>Powered by <a href="http://www.yiiframework.com/" rel="external">Yii Framework</a></p>
</div>
</div>
</body> </body>
</html> </html>
Loading…
Cancel
Save