PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/src/Includes/install/templates/common_html.php

https://github.com/ckdimka/core
PHP | 813 lines | 612 code | 132 blank | 69 comment | 1 complexity | cd2e003d185e3fd69f461da3aed3aaaf MD5 | raw file
  1. <?php
  2. // vim: set ts=4 sw=4 sts=4 et:
  3. /**
  4. * LiteCommerce
  5. *
  6. * NOTICE OF LICENSE
  7. *
  8. * This source file is subject to the Open Software License (OSL 3.0)
  9. * that is bundled with this package in the file LICENSE.txt.
  10. * It is also available through the world-wide-web at this URL:
  11. * http://opensource.org/licenses/osl-3.0.php
  12. * If you did not receive a copy of the license and are unable to
  13. * obtain it through the world-wide-web, please send an email
  14. * to licensing@litecommerce.com so we can send you a copy immediately.
  15. *
  16. * @category LiteCommerce
  17. * @package XLite
  18. * @subpackage View
  19. * @author Creative Development LLC <info@cdev.ru>
  20. * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
  21. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  22. * @link http://www.litecommerce.com/
  23. * @see ____file_see____
  24. * @since 1.0.0
  25. */
  26. /*
  27. * Output the common HTML blocks
  28. */
  29. if (!defined('XLITE_INSTALL_MODE')) {
  30. die('Incorrect call of the script. Stopping.');
  31. }
  32. function show_install_html_header() {
  33. ?>
  34. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  35. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  36. <html xmlns="http://www.w3.org/1999/xhtml">
  37. <head>
  38. <title>LiteCommerce v.<?php echo LC_VERSION; ?> <?php echo xtr('Installation Wizard'); ?></title>
  39. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  40. <meta http-equiv="Content-Script-Type" content="type/javascript" />
  41. <meta name="ROBOTS" content="NOINDEX" />
  42. <meta name="ROBOTS" content="NOFOLLOW" />
  43. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
  44. <?php
  45. }
  46. function show_install_css() {
  47. global $skinsDir;
  48. ?>
  49. <style type="text/css">
  50. /**
  51. * Clear styles
  52. */
  53. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, label, legend, caption, input, textarea
  54. {
  55. margin: 0;
  56. padding: 0;
  57. border: 0;
  58. outline: 0;
  59. }
  60. ol, ul
  61. {
  62. list-style: none;
  63. }
  64. blockquote, q
  65. {
  66. quotes:none;
  67. }
  68. blockquote:before,
  69. blockquote:after,
  70. q:before,
  71. q:after
  72. {
  73. content: '';
  74. content: none;
  75. }
  76. :focus
  77. {
  78. outline:0;
  79. }
  80. a
  81. {
  82. text-decoration: underline;
  83. }
  84. /**
  85. * Common styles
  86. */
  87. body,
  88. p,
  89. div,
  90. th,
  91. td,
  92. p,
  93. input,
  94. span,
  95. textarea,
  96. button
  97. {
  98. color: #333333;
  99. font-size: 12px;
  100. font-family: Helvetica, Arial, Sans-serif;
  101. }
  102. body
  103. {
  104. background-color: #ffffff;
  105. }
  106. a
  107. {
  108. color: #154e9c;
  109. }
  110. h1,
  111. h2,
  112. h3
  113. {
  114. font-family: "Trebuchet MS", Helvetica, Sans-serif;
  115. color: #69a4c9;
  116. font-weight: normal;
  117. }
  118. h1
  119. {
  120. font-size: 30px;
  121. line-height: 36px;
  122. margin-bottom: 20px;
  123. margin: 10px 0 20px;
  124. }
  125. h2
  126. {
  127. font-size: 24px;
  128. margin: 18px 0;
  129. }
  130. h3
  131. {
  132. font-size: 18px;
  133. margin: 12px 0;
  134. }
  135. code {
  136. font-family: Arial, Helvetica, Sans-serif;
  137. font-size: 14px;
  138. color: #106cb1;
  139. }
  140. /**
  141. * Form elements styles
  142. */
  143. input[type=text],
  144. input[type=password],
  145. select,
  146. textarea
  147. {
  148. border-top: solid 1px #808080;
  149. border-left: solid 1px #808080;
  150. border-right: solid 1px #dfdfdf;
  151. border-bottom: solid 1px #dfdfdf;
  152. padding: 3px;
  153. background: #fff;
  154. }
  155. input[type=text],
  156. input[type=password]
  157. {
  158. height: 18px;
  159. line-height: 16px;
  160. font-size: 14px;
  161. }
  162. input[type=text]:focus,
  163. input[type=password]:focus,
  164. select:focus,
  165. textarea:focus
  166. {
  167. border: solid 1px #999;
  168. font-size: 14px;
  169. }
  170. select
  171. {
  172. /* height: 24px;*/
  173. line-height: 24px;
  174. }
  175. input[type="submit"],
  176. input[type="button"],
  177. input[type="reset"],
  178. button {
  179. -moz-border-radius: 19px;
  180. border-radius: 19px;
  181. -webkit-border-radius: 19px;
  182. background: url("<?php echo $skinsDir; ?>images/button_bg_light.png") repeat-x scroll center top #EFF8FE;
  183. border: 1px solid #CADCE8;
  184. color: #2C5FA6;
  185. cursor: pointer;
  186. font-family: "Trebuchet MS",Helvetica,Arial;
  187. font-size: 16px;
  188. font-weight: bold;
  189. line-height: 16px;
  190. margin: 7px 7px 7px 0;
  191. padding: 6px 15px;
  192. }
  193. input[type="submit"].small-button,
  194. input[type="button"].small-button,
  195. input[type="reset"].small-button,
  196. button.small-button {
  197. cursor: pointer;
  198. font-family: "Trebuchet MS",Helvetica,Arial;
  199. font-size: 12px;
  200. font-weight: normal;
  201. line-height: 16px;
  202. margin: 10px 10px 10px 0;
  203. padding: 3px 18px;
  204. }
  205. input[type="submit"].next-button,
  206. input[type="button"].next-button,
  207. input[type="reset"].next-button,
  208. button.next-button {
  209. margin-left: -20px;
  210. }
  211. input[type="submit"].disabled-button,
  212. input[type="button"].disabled-button,
  213. input[type="reset"].disabled-button,
  214. button.disabled-button {
  215. background: #dfdfdf;
  216. border: 1px solid #dfdfdf;
  217. color: white;
  218. cursor: default;
  219. }
  220. button span
  221. {
  222. color: #0e55a6;
  223. font-family: "Trebuchet MS",Helvetica,sans-serif;
  224. font-size: 15px;
  225. vertical-align: middle;
  226. }
  227. button:hover
  228. {
  229. border-color: #b1c9e0;
  230. }
  231. button.main
  232. {
  233. padding-left: 10px;
  234. padding-right: 10px;
  235. }
  236. button.main span
  237. {
  238. font-size: 18px;
  239. line-height: 18px;
  240. }
  241. button.invert
  242. {
  243. background: url(<?php echo $skinsDir; ?>images/button_bg_blue.png) repeat 0 0;
  244. border-color: transparent;
  245. }
  246. button.invert span
  247. {
  248. color: #fff;
  249. }
  250. button.invert:hover
  251. {
  252. background-color: transparent;
  253. background-image: url(<?php echo $skinsDir; ?>images/button_bg_blue_hover.png);
  254. }
  255. td.next-button-layer {
  256. background: url(<?php echo $skinsDir; ?>images/next_arrow.png) no-repeat 0 0;
  257. width: 151px;
  258. height: 114px;
  259. }
  260. /**
  261. * Layout
  262. */
  263. html,
  264. body
  265. {
  266. min-width: 800px;
  267. height: 100%;
  268. }
  269. #content,
  270. #sub-section,
  271. #footer
  272. {
  273. overflow: hidden;
  274. }
  275. #page-container {
  276. min-height: 100%;
  277. position: relative;
  278. }
  279. #page-container
  280. {
  281. vertical-align: top;
  282. width: 100%;
  283. }
  284. #header {
  285. width: 100%;
  286. position: absolute;
  287. top: 0;
  288. left: 0;
  289. }
  290. #header, #menu
  291. {
  292. /*
  293. background: #0C263D url(<?php echo $skinsDir; ?>images/admin_header_bg.png) repeat-x left top;
  294. height: 76px;
  295. */
  296. }
  297. #header .logo
  298. {
  299. background: url(<?php echo $skinsDir; ?>images/logo_admin.png) no-repeat 0 0;
  300. height: 70px;
  301. width: 82px;
  302. float: left;
  303. }
  304. .sw-version
  305. {
  306. position: absolute;
  307. left: 90px;
  308. top: 12px;
  309. width: 870px;
  310. }
  311. .current
  312. {
  313. color: #7f90A0;
  314. margin-right: 10px;
  315. font-size: 12px;
  316. display: inline;
  317. }
  318. .upgrade-note
  319. {
  320. margin-right: 10px;
  321. text-align: right;
  322. float: right;
  323. white-space: nowrap;
  324. }
  325. .upgrade-note a {
  326. text-decoration: none;
  327. padding-left: 5px;
  328. }
  329. /**
  330. * Page content styles
  331. */
  332. div.install-page
  333. {
  334. width: 960px !important;
  335. margin: 0 auto;
  336. }
  337. div.install-page #header .logo {
  338. height: 70px;
  339. width: 82px;
  340. }
  341. div.install-page #header, #menu {
  342. background: transparent none;
  343. }
  344. div.install-page #header .sw-version {
  345. left: 100px;
  346. }
  347. div.install-page h1 {
  348. margin: 30px 0 0 100px;
  349. font-family: Arial,Verdana,sans-serif;
  350. font-size: 36px;
  351. }
  352. div.install-page #content {
  353. background: transparent none;
  354. border-top: 0 none;
  355. }
  356. div.content
  357. {
  358. position: absolute;
  359. top: 160px;
  360. width: 100%;
  361. text-align: center;
  362. }
  363. #copyright_notice {
  364. border: 1px solid #999999;
  365. font-family: "Courier New", monospace;
  366. font-size: 14px;
  367. height: 400px;
  368. margin-bottom: 10px;
  369. margin-top: 10px;
  370. padding: 10px;
  371. overflow: auto;
  372. text-align: left;
  373. width: 938px;
  374. }
  375. .field-label {
  376. font-size: 14px;
  377. text-align: left;
  378. margin-right: 10px;
  379. color: #53769d;
  380. vertical-align: baseline;
  381. }
  382. .checkbox-field {
  383. font-size: 16px;
  384. text-align: left;
  385. color: #53769d;
  386. line-height: 1px;
  387. vertical-align: baseline;
  388. }
  389. .checkbox-field label
  390. {
  391. display: inline;
  392. padding-left: 4px;
  393. white-space: nowrap;
  394. }
  395. .checkbox-field input
  396. {
  397. vertical-align: middle;
  398. }
  399. .checkbox-field label span
  400. {
  401. vertical-align: middle;
  402. }
  403. .field-notice {
  404. font-size: 12px;
  405. font-style: italic;
  406. text-align: left;
  407. color: #8f8f8f;
  408. }
  409. td.field-notice {
  410. padding-left: 10px;
  411. text-align: left;
  412. }
  413. /**
  414. * Common styles
  415. */
  416. .status-ok {
  417. color: green;
  418. }
  419. .status-failed {
  420. color: #c11600;
  421. }
  422. .status-failed-link {
  423. color: #c11600;
  424. text-decoration: underline;
  425. }
  426. .status-failed-link-active {
  427. color: #c11600;
  428. text-decoration: none;
  429. cursor: default;
  430. }
  431. .status-skipped {
  432. color: #145d8f;
  433. }
  434. .status-already-exists {
  435. color: #145d8f;
  436. }
  437. /**
  438. * Requirements checking page styles
  439. */
  440. .clear {
  441. clear: both;
  442. }
  443. div.requirements-report {
  444. }
  445. div.requirements-list {
  446. float: left;
  447. width: 60%;
  448. }
  449. div.requirements-notes {
  450. float: right;
  451. width: 40%;
  452. }
  453. div.section-title {
  454. color: #68a3c8;
  455. padding-top: 15px;
  456. padding-bottom: 5px;
  457. font-size: 16px;
  458. text-align: left;
  459. }
  460. div.list-row {
  461. text-align: left;
  462. font-size: 14px;
  463. padding-top: 4px;
  464. padding-left: 5px;
  465. padding-right: 15px;
  466. height: 20px;
  467. }
  468. .color-1 {
  469. background: #eeeeee;
  470. }
  471. .color-2 {
  472. background: white;
  473. }
  474. div.field-left {
  475. float: left;
  476. text-align: left;
  477. width: 70%;
  478. }
  479. div.field-right {
  480. float: right;
  481. text-align: right;
  482. width: 30%;
  483. white-space: nowrap;
  484. }
  485. .error-title {
  486. text-align: left;
  487. font-size: 16px;
  488. color: #c11600;
  489. padding-top: 15px;
  490. margin-left: 24px;
  491. }
  492. .error-text {
  493. text-align: left;
  494. padding-top: 10px;
  495. margin-left: 24px;
  496. }
  497. p {
  498. padding-bottom: 5px;
  499. padding-top: 5px;
  500. }
  501. div.requirements-warning-text {
  502. padding-top: 25px;
  503. padding-bottom: 25px;
  504. font-size: 12px;
  505. color: #333333;
  506. }
  507. div.status-report-box {
  508. border-style: solid;
  509. border-width: 10px;
  510. border-color: #eeead8;
  511. padding: 10px;
  512. margin-top: 15px;
  513. margin-left: 24px;
  514. text-align: left;
  515. }
  516. div.status-report-box-text {
  517. text-align: left;
  518. padding-bottom: 10px;
  519. }
  520. .link-expanded {
  521. margin-top: 4px;
  522. margin-right: -9px;
  523. }
  524. .requirements-success {
  525. padding-top: 45px;
  526. padding-left: 30px;
  527. text-align: center;
  528. font-family: Arial,Helvetica,sans-serif;
  529. font-size: 36px;
  530. color: #51924a;
  531. }
  532. .requirements-success-image {
  533. padding-left: 35px;
  534. }
  535. /**
  536. * Step bar styles definition
  537. */
  538. div.steps-bar {
  539. position: absolute;
  540. top: 98px;
  541. }
  542. .steps {
  543. border-style: none;
  544. margin: 0;
  545. padding: 0;
  546. }
  547. .step-row {
  548. background: #66b4ef;
  549. float: left;
  550. list-style: none outside none;
  551. height: 40px;
  552. font-family: Arial,Verdana,sans-serif;
  553. font-size: 18px;
  554. color: white;
  555. line-height:37px;
  556. padding-left: 10px;
  557. padding-right: 10px;
  558. }
  559. .first {
  560. border-radius: 6px 0 0 6px;
  561. -moz-border-radius: 6px 0 0 6px;
  562. -webkit-border-radius: 6px 0 0 6px;
  563. padding-left: 20px;
  564. }
  565. .last {
  566. border-radius: 0 6px 6px 0;
  567. -moz-border-radius: 0 6px 6px 0;
  568. -webkit-border-radius: 0 6px 6px 0;
  569. padding-right: 20px;
  570. }
  571. .next {
  572. background: #dfdfdf;
  573. }
  574. .prev-prev {
  575. background: url(<?php echo $skinsDir; ?>images/arrow_blue.png) no-repeat scroll center center transparent;
  576. }
  577. .prev-next {
  578. background: url(<?php echo $skinsDir; ?>images/arrow_blue_grey.png) no-repeat scroll center center transparent;
  579. }
  580. .next-next {
  581. background: url(<?php echo $skinsDir; ?>images/arrow_grey.png) no-repeat scroll center center transparent;
  582. }
  583. /**
  584. * /end of step bar styles definition
  585. */
  586. .full-width {
  587. width: 97%;
  588. }
  589. #process_iframe {
  590. padding-left: 15px;
  591. border: 1px solid black;
  592. }
  593. .keyhole-icon {
  594. margin-right: 50px;
  595. }
  596. a.final-link {
  597. font-size: 22px;
  598. text-decoration: underline;
  599. color: #144b9d;
  600. }
  601. .report-layer {
  602. background: url(<?php echo $skinsDir; ?>../../common/ui/images/popup_overlay.png) repeat scroll 50% 50% transparent;
  603. left: 0;
  604. position: absolute;
  605. top: 0;
  606. width: 900px;
  607. z-index: 1003;
  608. height: 100%;
  609. width: 100%;
  610. }
  611. .report-window {
  612. -moz-border-radius: 11px;
  613. border-radius: 11px;
  614. -webkit-border-radius: 11px;
  615. border: 10px solid #7a7a7a;
  616. background: white;
  617. width: 750px;
  618. margin: 60px auto;
  619. padding: 30px;
  620. z-index: 1004;
  621. }
  622. .report-title {
  623. font-size: 28px;
  624. color: #68a3c8;
  625. }
  626. textarea.report-details {
  627. font-family: "Courier New", monospace;
  628. font-size: 14px;
  629. height: 200px;
  630. width: 100%;
  631. }
  632. textarea.report-notes {
  633. height: 60px;
  634. width: 90%;
  635. }
  636. a.report-close {
  637. -moz-border-radius: 0 11px 11px 0;
  638. background: url(<?php echo $skinsDir; ?>../../common/ui/images/icon_window_close.png) no-repeat scroll 10px 10px #7A7A7A;
  639. display: block;
  640. height: 41px;
  641. margin-left: 780px;
  642. margin-top: -40px;
  643. outline-style: none;
  644. right: 0;
  645. top: 0;
  646. width: 40px;
  647. z-index: 1005;
  648. }
  649. .hidden {
  650. display: none;
  651. }
  652. .fatal-error,
  653. .warning-text {
  654. -moz-border-radius: 9px;
  655. border-radius: 9px;
  656. -webkit-border-radius: 9px;
  657. border: 10px solid #7a7a7a;
  658. background: white;
  659. margin: 10px auto;
  660. padding: 20px;
  661. width: 500px;
  662. font-size: 16px;
  663. text-align: left;
  664. }
  665. .warning-text {
  666. color: #0e55a6;
  667. }
  668. .fatal-error {
  669. color: #c11600;
  670. }
  671. td.table-left-column {
  672. text-align: left;
  673. width: 70%;
  674. }
  675. td.table-right-column {
  676. text-align: left;
  677. width: 30%;
  678. }
  679. </style>
  680. <?php
  681. }