header.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <link rel="icon" href="/images/favicon.ico" type="image/x-icon">
  5. <title>Vesta - <?php echo "$TAB"; ?> </title>
  6. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  7. <style type="text/css">
  8. body {
  9. margin: 0;
  10. margin-left: auto;
  11. margin-right: auto;
  12. font-family: Arial, Helvetica, sans-serif;
  13. background-color: #e5e5e5;
  14. }
  15. form {
  16. margin: 0;
  17. }
  18. .hidden {
  19. display: none;
  20. }
  21. .main {
  22. background-color: #ffffff;
  23. padding: 0 0 18px 0;
  24. box-shadow: 0 2px 4px rgba(100, 100, 100, 0.3);
  25. }
  26. .top {
  27. color: #ffd76e;
  28. padding: 0;
  29. font-family: Arial, Helvetica, sans-serif;
  30. margin: 0;
  31. width: 990px;
  32. font-size: 10pt;
  33. text-align: left;
  34. border: 0px;
  35. border-collapse:collapse;
  36. }
  37. .top thead td {
  38. background-color: #505050;
  39. border-bottom: 1px solid #fff;
  40. height: 25px;
  41. text-align: right;
  42. padding: 0 24px 0 0px;
  43. weight:120px;
  44. }
  45. .top thead td:first-child{
  46. border-left: 1px solid #fff;
  47. border-right:none;
  48. text-align:left;
  49. padding: 0 0 0 0;
  50. width:auto;
  51. }
  52. .top-link {
  53. padding: 5px 22px 4px;
  54. text-decoration: none;
  55. color: #fff;
  56. border-right: 1px solid #fff;
  57. }
  58. .top-link:hover {
  59. color: #fff;
  60. background-color: #999;
  61. }
  62. .top-link:active{
  63. color: #fff;
  64. background-color: #f79b44;
  65. }
  66. .top-selected-link {
  67. padding: 5px 22px;
  68. text-decoration: none;
  69. color: #555;
  70. background-color: #fff;
  71. border-right: 1px solid #fff;
  72. }
  73. .top-selected-link:hover {
  74. color: #174f82;
  75. }
  76. .top-selected-link:active {
  77. color: #fff;
  78. background-color: #f79b44;
  79. }
  80. .top-user {
  81. padding: 0 2px 0 0;
  82. text-decoration: none;
  83. color: #ffd76e;
  84. }
  85. .top-user:hover {
  86. color: #fff;
  87. }
  88. .top-user:active{
  89. color: #fff;
  90. background-color: #f79b44;
  91. }
  92. .top-logout {
  93. text-decoration: none;
  94. color: #d3d3d3;
  95. border: noner;
  96. }
  97. .top-logout:hover {
  98. color: #fff;
  99. }
  100. .top-logout:active {
  101. color: #fff;
  102. background-color: #f79b44;
  103. }
  104. .nav-logo {
  105. float:left;
  106. height:110px;
  107. width:161px;
  108. margin: 0;
  109. border-bottom: 1px solid #e3e3e3;
  110. }
  111. .nav-lnk {
  112. text-decoration: none;
  113. color: #323232;
  114. float:left;
  115. }
  116. .nav-lnk:active {
  117. color: #f79b44;
  118. }
  119. .nav-block {
  120. margin: 0;
  121. height:110px;
  122. width: 118px;
  123. float:left;
  124. cursor: pointer;
  125. border-bottom: 1px solid #e3e3e3;
  126. }
  127. .nav-block:hover {
  128. height:107px;
  129. border-bottom: 4px solid #f79b44;
  130. }
  131. .nav-selected-block {
  132. margin: 0;
  133. color: #174f82;
  134. height: 107px;
  135. width: 118px;
  136. float: left;
  137. background-color: #fff;
  138. border-bottom: 4px solid #777;
  139. cursor: pointer;
  140. }
  141. .nav-selected-block:hover {
  142. height:107px;
  143. border-bottom: 4px solid #f79b44;
  144. }
  145. .nav-selected-block:active {
  146. color: #f79b44;
  147. }
  148. .nav-header {
  149. padding: 14px 0 0 6px;
  150. margin: 0;
  151. letter-spacing: -1.0px;
  152. font-size: 16pt;
  153. font-weight: bold;
  154. }
  155. .nav-selected-header {
  156. padding: 14px 0 0 6px;
  157. margin: 0;
  158. letter-spacing: -1.0px;
  159. font-size: 16pt;
  160. font-weight: bold;
  161. }
  162. .nav-counters {
  163. padding: 1px 0 0 6px;
  164. margin: 0;
  165. height: 58px;
  166. line-height: 1.4em;
  167. font-size: 9pt;
  168. color: #555;
  169. decoration: none;
  170. }
  171. .submenu {
  172. margin-left: auto;
  173. margin-right: auto;
  174. width: 990px;
  175. font-family:Arial, Helvetica, sans-serif;
  176. height: 54px;
  177. font-size: 10pt;
  178. text-align: left;
  179. vertical-align:top;
  180. padding: 0px 10px 0px 0;
  181. background-color: none repeat scroll 0% 0% white;
  182. }
  183. .submenu td {
  184. vertical-align: middle;
  185. }
  186. .submenu-button-block {
  187. float: left;
  188. }
  189. .submenu-button {
  190. width: 130px;
  191. height: 24px;
  192. cursor: pointer;
  193. color: #333;
  194. background-color: #fafafa;
  195. border: 1px solid #c3c3c3;
  196. border-radius: 3px 3px 3px 3px;
  197. padding: 0;
  198. font-size: 12px;
  199. font-family:Arial, Helvetica, sans-serif;
  200. }
  201. @-moz-document url-prefix() {
  202. .submenu-button {
  203. padding-bottom: 2px;
  204. }
  205. }
  206. .submenu-button:hover {
  207. background-color: #f0f0f0;
  208. }
  209. .submenu-button:active {
  210. color: #fff;
  211. border: 1px solid #f79b44;
  212. background-color: #f79b44;
  213. }
  214. .submenu-select-block {
  215. float:left;
  216. padding-left: 18px;
  217. }
  218. .submenu-select-link {
  219. color: #6A6A6A;
  220. display: block;
  221. float: left;
  222. font-size: 8pt;
  223. letter-spacing: 0.1em;
  224. margin: 6px 6px 0 0;
  225. text-decoration: none;
  226. padding: 0 4px 0 12px
  227. }
  228. .submenu-select-link:hover {
  229. text-decoration: underline;
  230. }
  231. .submenu-select-link:active {
  232. color: #fff;
  233. background-color: #f79b44;
  234. text-decoration: underline;
  235. }
  236. .submenu-select-dropdown {
  237. font-family:Arial, Helvetica, sans-serif;
  238. color: #333333;
  239. display: block;
  240. float: left;
  241. height: 24px;
  242. margin: 0 4px 0 0;
  243. min-width: 138px;
  244. }
  245. .submenu-search-block {
  246. text-align: right;
  247. float: right;
  248. }
  249. .submenu-search-field {
  250. border: 1px solid #d3d3d3;
  251. border-radius: 3px 3px 3px 3px;
  252. color: #333;
  253. font-size: 14px;
  254. background-color: #fff;
  255. float: left;
  256. padding: 0px 3px 0px 3px;
  257. height: 22px;
  258. width: 250px;
  259. margin: 0 4px 0 0;
  260. }
  261. .bottom {
  262. background-color: #ebe9dc;
  263. color: #555;
  264. margin: 30px 0 0 0;
  265. padding: 4px 20px 8px 0;
  266. margin-left: auto;
  267. margin-right: auto;
  268. width: 990px;
  269. font-size: 8pt;
  270. text-align: center;
  271. vertical-align:top;
  272. line-height: 0.8em;
  273. border-top: 4px solid #d3d3d3;
  274. }
  275. .bottom a:link {
  276. font-size: 8pt;
  277. text-decoration: none;
  278. color: #555;
  279. }
  280. .bottom a:visited {
  281. text-decoration: none;
  282. color: #555;
  283. }
  284. .bottom a:hover {
  285. text-decoration: underline;
  286. color: #7fa1cb;
  287. }
  288. .vst {
  289. padding: 0 4px 0 4px;
  290. margin: 0;
  291. text-decoration: none;
  292. color: #999;
  293. font-size: 12pt;
  294. float: left;
  295. }
  296. .vst:hover {
  297. text-decoration: underline;
  298. }
  299. .vst:active {
  300. color: #fff;
  301. background-color: #f79b44;
  302. }
  303. .vst-selected {
  304. padding: 0 4px 0 4px;
  305. margin: 0;
  306. text-decoration: none;
  307. color: #174f82;
  308. font-size: 12pt;
  309. float: left;
  310. }
  311. .vst-selected:hover {
  312. text-decoration: underline;
  313. }
  314. .vst-selected:active {
  315. color: #fff;
  316. background-color: #f79b44;
  317. }
  318. .data {
  319. border-collapse:collapse;
  320. margin-left: auto;
  321. margin-right: auto;
  322. width: 990px;
  323. font-family:Arial, Helvetica, sans-serif;
  324. color: #e5a907;
  325. font-size: 12pt;
  326. text-align: left;
  327. vertical-align:top;
  328. margin: 0;
  329. behavior:url("/css/csshover3.htc");
  330. }
  331. .data a {
  332. text-decoration: none;
  333. }
  334. .data-row:hover {
  335. margin: 0;
  336. background-color: #f7f6ed;
  337. }
  338. .data-row:active {
  339. background-color: #f7f7d8;
  340. }
  341. .datarowhover {
  342. margin: 0;
  343. background-color: #f7f6ed;
  344. }
  345. .data-null {
  346. margin: 0;
  347. width: 990px;
  348. height: 10px;
  349. border-top:1px dotted #d3d3d3;
  350. }
  351. .data-spacer {
  352. margin: 0;
  353. width: 990px;
  354. }
  355. .data-add {
  356. margin: 0;
  357. background-color: #f7f6ed;
  358. border-left: 1px solid #e9e9e9;
  359. border-right: 1px solid #e9e9e9;
  360. border-bottom: 1px solid #e9e9e9;
  361. }
  362. .data-dotted {
  363. text-align: left;
  364. vertical-align:top;
  365. border-top:1px dotted #d3d3d3;
  366. padding: 0 0 26px 0;
  367. margin: 0;
  368. }
  369. .data-dotted td {
  370. margin: 0;
  371. }
  372. .data-col1 {
  373. text-align: left;
  374. padding:0;
  375. }
  376. .data-col1 tr td {
  377. padding:0 0 0 20px;
  378. }
  379. .data-col1 tr:first-child td {
  380. padding:23px 0 0 20px;
  381. }
  382. .data-col2 {
  383. text-align: left;
  384. padding: 0;
  385. overflow: hidden;
  386. }
  387. .data-col2 a:visited {
  388. color: green;
  389. }
  390. .data-col5 {
  391. table-layout: fixed;
  392. text-align: left;
  393. padding: 0;
  394. overflow: hidden;
  395. white-space: nowrap;
  396. }
  397. .data-date {
  398. padding: 0 0 0 18;
  399. letter-spacing: 0.3em;
  400. font-size: 8pt;
  401. color: #6A6A6A
  402. }
  403. .data-active {
  404. font-size: 8pt;
  405. letter-spacing: 0.1em;
  406. color: #81a64f;
  407. padding: 0 0 13 18;
  408. }
  409. .data-suspended {
  410. font-size: 8pt;
  411. letter-spacing: 0.1em;
  412. color: #de5543;
  413. padding: 0 0 13 18;
  414. }
  415. .data-controls {
  416. float: right;
  417. height: 16px;
  418. border-left: 1px solid #d3d3d3;
  419. font-size: 8pt;
  420. padding: 2px 12px 0 6px;
  421. letter-spacing: 0.1em;
  422. color: #174f82;
  423. text-decoration: none;
  424. cursor: pointer;
  425. }
  426. .data-controls:hover {
  427. color: #fff;
  428. background-color: #f79b44;
  429. }
  430. .data-controls:active {
  431. background-color: #999
  432. }
  433. .data-controls img {
  434. border: 0px;
  435. }
  436. .data-count {
  437. font-family: Arial, Helvetica, sans-serif;
  438. background-color: #f3f3f3;
  439. color: #555;
  440. font-size: 8pt;
  441. margin: 18px 0 0 0;
  442. text-align:right;
  443. padding: 0 16px 0 0;
  444. }
  445. .chart1 {
  446. color:#000;
  447. font-size: 10pt;
  448. }
  449. .chart2 {
  450. color: #484243;
  451. font-size: 8pt;
  452. }
  453. .username {
  454. color: #323232;
  455. font-size: 16pt;
  456. }
  457. .domain {
  458. color: #323232;
  459. font-size: 16pt;
  460. }
  461. .cron {
  462. color: #323232;
  463. font-size: 18px;
  464. }
  465. .log {
  466. color: #323232;
  467. font-size: 12pt;
  468. }
  469. .aliases {
  470. font-size: 12pt;
  471. color: #99a7af;
  472. padding: 0 0 0 8px;
  473. }
  474. .nginx-ext {
  475. color: black;
  476. vertical-align:top;
  477. font-size: 10pt;
  478. }
  479. .fullname {
  480. font-size: 18px;
  481. color: #99a7af;
  482. padding: 0 0 0 8px;
  483. }
  484. .counter-name {
  485. white-space: nowrap;
  486. vertical-align:top;
  487. line-height: 1.3em;
  488. font-size: 10pt;
  489. color: #505050;
  490. padding: 0 4px 0 0;
  491. }
  492. .cron-counter-name {
  493. vertical-align:top;
  494. line-height: 0.8em;
  495. font-size: 8pt;
  496. padding: 4 0 0 0;
  497. color: #505050;
  498. }
  499. .counter-value {
  500. vertical-align:top;
  501. line-height: 1.2em;
  502. font-size: 10pt;
  503. color: #000;
  504. padding: 0 0 0 4px;
  505. }
  506. .log-counter-value {
  507. vertical-align:top;
  508. font-size: 12pt;
  509. color: #484243;
  510. }
  511. .cron-counter-value {
  512. vertical-align:top;
  513. line-height: 1.2em;
  514. font-size: 12pt;
  515. color: #484243;
  516. }
  517. .name {
  518. font-size: 16pt;
  519. color: #555;
  520. padding: 0 0 0 10px;
  521. }
  522. .vst-ok {
  523. font-size: 18px;
  524. color: #62a358;
  525. padding: 0 0 0 6px;
  526. }
  527. .vst-ok a{
  528. color: #58934f;
  529. text-decoration: none;
  530. }
  531. .vst-ok a:hover{
  532. text-decoration: underline;
  533. }
  534. .vst-error {
  535. font-size: 18px;
  536. color: #de6c5d;
  537. padding: 0 0 0 6px;
  538. }
  539. .vst-text {
  540. color: #323232;
  541. font-size: 12pt;
  542. }
  543. .vst-textinput {
  544. background-color: #fff;
  545. border: 1px solid #c0c0c0;
  546. border-radius: 3px 3px 3px 3px;
  547. color: #555;
  548. font-size: 18px;
  549. padding: 5px;
  550. width: 360px;
  551. height: 120px;
  552. }
  553. .vst-textinput:hover {
  554. border: 1px solid #f79b44;
  555. }
  556. .vst-textinput:focus {
  557. border: 1px solid #f79b44;
  558. }
  559. .vst-textinput:disabled {
  560. background-color: #f1f1f1;
  561. }
  562. .vst-input {
  563. background-color: #fff;
  564. border: 1px solid #c0c0c0;
  565. border-radius: 3px 3px 3px 3px;
  566. color: #555;
  567. font-size: 14pt;
  568. padding: 5px;
  569. width: 360px;
  570. height: 28px;
  571. }
  572. .vst-input:hover {
  573. border: 1px solid #f79b44;
  574. }
  575. .vst-input:focus {
  576. border: 1px solid #f79b44;
  577. }
  578. .vst-input:disabled {
  579. background-color: #f1f1f1;
  580. }
  581. .vst-list {
  582. font-family:Arial, Helvetica, sans-serif;
  583. font-size: 12pt;
  584. color: #555;
  585. height: 30px;
  586. min-width: 136px;
  587. }
  588. @-moz-document url-prefix() {
  589. .vst-list {
  590. padding-top: 2px;
  591. }
  592. }
  593. .vst-checkbox {
  594. padding: 5px;
  595. font-size: 12pt;
  596. }
  597. .vst-checkbox:hover {
  598. border: 1px solid #f79b44;
  599. }
  600. .button {
  601. filter:chroma(color=#000000);
  602. cursor: pointer;
  603. color: #202020;
  604. background-color: #fafafa;
  605. border: 1px solid #c0c0c0;
  606. border-radius: 3px 3px 3px 3px;
  607. font-size: 14px;
  608. padding: 2px 16px;
  609. width: 108px;
  610. height: 34px;
  611. }
  612. .button:hover {
  613. background-color: #f0f0f0;
  614. }
  615. .button:active {
  616. color: #fff;
  617. border: 1px solid #f79b44;
  618. background-color: #f79b44;
  619. }
  620. .genpass {
  621. color: #34536a;
  622. font-size: 8pt;
  623. padding: 0 5px;
  624. letter-spacing: 0.1em;
  625. text-decoration: underline;
  626. }
  627. .genpass:hover {
  628. color: #7fa1cb;
  629. }
  630. .genpass:active {
  631. background-color: #f79b44;
  632. color: #fff;
  633. }
  634. .vst-advanced {
  635. color: #34536a;
  636. font-size: 10pt;
  637. letter-spacing: 0.1em;
  638. text-decoration: none;
  639. padding: 0 2px;
  640. border-bottom: 1px solid #f79b44;
  641. }
  642. .vst-advanced:hover {
  643. color: #7fa1cb;
  644. }
  645. .vst-advanced:active {
  646. color: #fff;
  647. background-color: #f79b44;
  648. }
  649. .fixed{
  650. position: fixed;
  651. border: none;
  652. top: -3px;
  653. border-bottom: 1px solid #d3d3d3;
  654. background-color: #fff;
  655. }
  656. *html .fixed{
  657. position:absolute;
  658. position:fixed;
  659. _position:absolute;
  660. top:0;
  661. _top:expression( eval(document.body.scrollTop) + 'px' );
  662. }
  663. #vstobjects{
  664. padding-top: 192px;
  665. width: 996px;
  666. padding-left: 3px;
  667. min-height: 370px;
  668. }
  669. .login {
  670. font-family:Arial, Helvetica, sans-serif;
  671. margin: 80px 0 80px 0;
  672. padding: 0;
  673. background-color: #fff;
  674. text-align: left;
  675. vertical-align:top;
  676. width: 500px;
  677. box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
  678. }
  679. .login-box {
  680. text-align: left;
  681. vertical-align:top;
  682. color: #323232;
  683. }
  684. .login-bottom {
  685. color: #ebe9dc;
  686. text-align: right;
  687. vertical-align:top;
  688. width: 500px;
  689. height: 50px;
  690. background-color: #ebe9dc;
  691. padding: 0 8px 0 0;
  692. margin: 0;
  693. }
  694. .vestacp{
  695. font-size: 8pt;
  696. color: #323232;
  697. text-align: right;
  698. padding: 20px 0 0 0;
  699. }
  700. .error {
  701. font-size: 10pt;
  702. color: #dE6c5d;
  703. }
  704. </style>
  705. <!--[if IE]>
  706. <style type="text/css">
  707. html, body, div, span, applet, object, iframe {
  708. margin: 0;
  709. padding: 0;
  710. border: 0;
  711. font-size: 100%;
  712. font: inherit;
  713. vertical-align: baseline;
  714. }
  715. .fixed {
  716. margin-top: 0px;
  717. }
  718. .vst-advanced {
  719. text-decoration: underline;
  720. }
  721. #vstobjects{
  722. padding-top: 195px;
  723. min-height: 370px;
  724. height: auto !important;
  725. height: 370px;
  726. width: 996px;
  727. }
  728. .nav-logo {
  729. float:left;
  730. height:112px;
  731. width:161px;
  732. margin: 0;
  733. border-bottom: 1px solid #d3d3d3;
  734. }
  735. .nav-block {
  736. margin: 0;
  737. height:112px;
  738. width: 118px;
  739. float:left;
  740. cursor: pointer;
  741. border-bottom: 1px solid #d3d3d3;
  742. }
  743. .nav-block:hover {
  744. height:109px;
  745. border-bottom: 4px solid #f79b44;
  746. }
  747. .nav-selected-block {
  748. margin: 0;
  749. color: #174f82;
  750. height: 109px;
  751. width: 118px;
  752. float: left;
  753. background-color: #fff;
  754. border-bottom: 4px solid #777;
  755. cursor: pointer;
  756. }
  757. .nav-selected-block:hover {
  758. height:109px;
  759. border-bottom: 4px solid #f79b44;
  760. }
  761. </style>
  762. <![endif]-->
  763. <!--[if IE 7]>
  764. <style type="text/css">
  765. .data-col1 a {
  766. white-space: nowrap;
  767. }
  768. .submenu-button-block {
  769. width: 120px;
  770. }
  771. .submenu-search-block {
  772. width:369px;
  773. }
  774. .submenu-select-block {
  775. width:239px;
  776. }
  777. .submenu-select-dropdown {
  778. position: relative;
  779. top: 2px;
  780. }
  781. </style>
  782. <link rel="stylesheet" type="text/css" href="/css/ie.css" />
  783. <![endif]-->
  784. <link type="text/css" href="/css/jquery-custom-dialogs.css" rel="stylesheet" />
  785. <script type="text/javascript" src="/js/events.js"></script>
  786. <script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
  787. <script type="text/javascript" src="/js/jquery-ui-1.8.20.custom.min.js"></script>
  788. <script language="JavaScript">
  789. var checked=false;
  790. var frmname='';
  791. function checkedAll(frmname) {
  792. var valus= document.getElementById(frmname);
  793. if (checked==false) {
  794. checked=true;
  795. } else {
  796. checked = false;
  797. }
  798. for (var i =0; i < valus.elements.length; i++) {
  799. valus.elements[i].checked=checked;
  800. }
  801. }
  802. </script>
  803. <script language="JavaScript">
  804. $('document').ready(function() {
  805. $('#vstobjects').bind('click', function(evt) { // observe change event on whole div#vstobjects
  806. var elm = evt.target; // grab element on which user clicked
  807. var parent = $(elm).hasClass('data-row') ? $(elm) : $(elm).parents('.data-row'); // check if outer element is row container and get it
  808. if (!$(parent).hasClass('selected')) {
  809. parent.addClass('selected'); // add class
  810. parent.find('.ch-toggle').attr('checked', true);
  811. // another actions on checked row
  812. }
  813. else {
  814. parent.removeClass('selected'); // remove class
  815. parent.find('.ch-toggle').attr('checked', false);
  816. // another actions on unchecked row
  817. }
  818. });
  819. });
  820. </script>
  821. </head>
  822. <body>