Guest User

Untitled

a guest
Apr 6th, 2016
594
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.49 KB | None | 0 0
  1. <?php
  2. error_reporting(E_ALL ^E_NOTICE ^E_WARNING);
  3. session_start();
  4. require_once 'includes/class.user.php';
  5.  
  6.  
  7.  
  8. $user_home = new USER();
  9.  
  10. if($user_home->is_logged_in()){
  11. $stmt = $user_home->runQuery("SELECT * FROM tbl_users WHERE userID=:uid");
  12. $stmt->execute(array(":uid"=>$_SESSION['userSession']));
  13. $row = $stmt->fetch(PDO::FETCH_ASSOC);
  14. }
  15.  
  16. if($_GET[p]=="verify")
  17. {
  18. if(isset($_GET['id']) && isset($_GET['code']))
  19. {
  20. $id = urldecode(base64_decode($_GET['id']));
  21. $code = $_GET['code'];
  22.  
  23. $statusY = "Y";
  24. $statusN = "N";
  25.  
  26. $stmt = $user_home->runQuery("SELECT userName,userStatus FROM tbl_users WHERE userName=:uID AND tokenCode=:code LIMIT 1");
  27. $stmt->execute(array(":uID"=>$id,":code"=>$code));
  28. $row=$stmt->fetch(PDO::FETCH_ASSOC);
  29. if($stmt->rowCount() > 0)
  30. {
  31. if($row['userStatus']==$statusN)
  32. {
  33. $stmt = $user_home->runQuery("UPDATE tbl_users SET userStatus=:status WHERE userName=:uID");
  34. $stmt->bindparam(":status",$statusY);
  35. $stmt->bindparam(":uID",$id);
  36. $stmt->execute();
  37.  
  38. $vermsg = "swal( 'Success!', 'Your Account is Now Activated. You may now login' , 'success' );";
  39. }
  40. else
  41. {
  42. $vermsg = "swal( 'Error!', 'Your Account is already Activated.' , 'error' );";
  43. }
  44. }
  45. else
  46. {
  47. $vermsg = "swal( 'Error!', 'Account not found' , 'error' );";
  48. }
  49. }
  50. }
  51. ?>
  52. <!DOCTYPE html>
  53. <html lang="en">
  54.  
  55. <head>
  56. <link rel="icon" href="cpicon.png" type="image/gif" sizes="16x16">
  57. <meta charset="utf-8">
  58. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  59. <meta name="viewport" content="width=device-width, initial-scale=1">
  60. <meta name="description" content="">
  61. <meta name="author" content="">
  62.  
  63. <title>Crossway Printing</title>
  64.  
  65. <!-- Bootstrap Core CSS -->
  66. <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
  67.  
  68. <!-- Custom Fonts -->
  69. <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
  70. <link href='http://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
  71. <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css" type="text/css">
  72.  
  73. <!-- Plugin CSS -->
  74. <link rel="stylesheet" href="css/animate.min.css" type="text/css">
  75.  
  76. <!-- Custom CSS -->
  77. <link rel="stylesheet" href="css/creative.css" type="text/css">
  78.  
  79. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  80. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  81. <!--[if lt IE 9]>
  82. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  83. <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  84. <![endif]-->
  85. <script src="//cdn.ckeditor.com/4.5.6/full/ckeditor.js"></script>
  86.  
  87. </head>
  88.  
  89. <body id="page-top">
  90.  
  91.  
  92.  
  93. <!-- modals start here-->
  94. <? include "includes/modal.php"; ?>
  95.  
  96.  
  97. <nav id="mainNav" class="navbar navbar-default navbar-fixed-top">
  98. <div class="container-fluid">
  99. <!-- Brand and toggle get grouped for better mobile display -->
  100. <div class="navbar-header">
  101. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  102. <span class="sr-only">Toggle navigation</span>
  103. <span class="icon-bar"></span>
  104. <span class="icon-bar"></span>
  105. <span class="icon-bar"></span>
  106. </button>
  107. <a class="navbar-brand page-scroll" href="#page-top">Crossway Printing</a>
  108. </div>
  109.  
  110. <!-- Collect the nav links, forms, and other content for toggling -->
  111. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  112. <ul class="nav navbar-nav navbar-right">
  113. <li>
  114. <a class="page-scroll" href="/">Home</a>
  115. </li>
  116. <li>
  117. <a class="page-scroll" href="#news">News</a>
  118. </li>
  119. <li>
  120. <a class="page-scroll" href="#gallery">Gallery</a>
  121. </li>
  122. <li>
  123. <a class="page-scroll" href="/?p=shop">Shop</a>
  124. </li>
  125. <li>
  126. <a class="page-scroll" href="#contact">Contact</a>
  127. </li>
  128. <li class="dropdown">
  129. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Support <span class="caret"></span></a>
  130. <ul class="dropdown-menu">
  131. <li><a href="/?p=help">Help</a></li>
  132. <li><a href="/?p=faq">FAQ</a></li>
  133. <li><a href="/?p=termsandconditions">Terms and Conditions</a></li>
  134. <li role="separator" class="divider"></li>
  135. <li><a href="/?p=transactionlog">Transaction Logs</a></li>
  136.  
  137. </ul>
  138. </li>
  139.  
  140.  
  141.  
  142. <?php if($user_home->is_logged_in()){
  143. if($user_home->is_admin())
  144. {
  145. echo'
  146. <li class="dropdown">
  147. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">SYSTEM <span class="caret"></span></a>
  148. <ul class="dropdown-menu">
  149. <li><a href="?p=adminpanel&action=news">News Management</a></li>
  150. <li><a href="?p=adminpanel&action=product">Product Management</a></li>
  151. <li><a href="?p=adminpanel&action=account">Account Management</a></li>
  152. <li role="separator" class="divider"></li>
  153. <li><a href="?p=adminpanel&action=transactionlogs">Order List</a></li>
  154.  
  155. <li><a href="?p=adminpanel&action=orderlogs">Transaction Logs</a></li>
  156. <li><a href="?p=adminpanel&action=pendinglist">Pending List</a></li>
  157. <li><a href="?p=adminpanel&action=claimedlist">Claimed List</a></li>
  158. <li role="separator" class="divider"></li>
  159. <li><a href="backup.php">Backup</a></li>
  160. </ul>
  161. </li>
  162. ';
  163. }
  164. if($user_home->is_auditor())
  165. {
  166. echo'
  167. <li class="dropdown">
  168. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">SYSTEM <span class="caret"></span></a>
  169. <ul class="dropdown-menu">
  170. <li><a href="?p=adminpanel&action=news">News Management</a></li>
  171. <li><a href="?p=adminpanel&action=product">Product Management</a></li>
  172.  
  173. <li role="separator" class="divider"></li>
  174. <li><a href="?p=adminpanel&action=transactionlogs">Transaction Logs</a></li>
  175.  
  176.  
  177. <li role="separator" class="divider"></li>
  178.  
  179. </ul>
  180. </li>
  181. ';
  182. }
  183. echo '<li>
  184. <a class="page-scroll" href="logout.php">Logout</a>
  185. </li>';
  186. }else{
  187. echo '
  188.  
  189. <li>
  190. <a class="page-scroll" data-toggle="modal" data-target="#login">LOGIN</a>
  191.  
  192. </li>
  193. <li>
  194. <a class="page-scroll" data-toggle="modal" data-target="#register">Register</a>
  195.  
  196. </li>
  197.  
  198. ';
  199. }
  200. ?>
  201. </ul>
  202. </div>
  203. <!-- /.navbar-collapse -->
  204. </div>
  205. <!-- /.container-fluid -->
  206. </nav>
  207. <?php if($_GET[p]==NULL){?>
  208. <header>
  209. <div class="header-content">
  210. <div class="header-content-inner">
  211. <h1><img src="favorite.png" > </h1>
  212. <hr>
  213. <p> <img src="crosswaycan.png" </p>
  214.  
  215. <a href="#about" class="btn btn-primary btn-xl page-scroll">Find Out More</a>
  216. </div>
  217. </div>
  218. </header>
  219.  
  220. <section class="bg-dark" id="news">
  221. <div class="container">
  222. <div class="row">
  223. <div class="col-lg-8 col-lg-offset-2 text-center">
  224. <h2 class="section-heading">News &amp; Updates</h2>
  225.  
  226. <?php
  227. $stmt = $user_home->getNewsList();
  228.  
  229. if($stmt->rowCount()>0){
  230. ?>
  231. <table class="table" style="border:0;">
  232. <?
  233. foreach ( $stmt as $rowNewz ){
  234.  
  235. ?>
  236.  
  237. <tr><td><?
  238. switch($rowNewz->newsCtg)
  239. {
  240. case 1:
  241. echo "Event";
  242. break;
  243. case 2:
  244. echo "Promo";
  245. break;
  246. case 3:
  247. echo "System";
  248. break;
  249. default:
  250. echo "News";
  251. }
  252. ?></td>
  253. <td><a href="?p=news&id=<?=$rowNewz->id?>"><?=$rowNewz->title?></a></td>
  254. <td>
  255. <?php echo date("M j, Y", strtotime($rowNewz->newsDate));?></td>
  256. <td></tr>
  257. <?}}?>
  258. </table>
  259. <div align="center">
  260. <p>
  261. <a href="http://bonusbitcoin.co/?ref=A6CF87495FDA " id="ad2" >
  262. <img src="http://bonusbitcoin.co/img/468x60.gif" " id="ad23" >
  263. </a>
  264. </p>
  265. </div>
  266. </div>
  267. </div>
  268. </div>
  269. </section>
  270. <section class="bg-primary" id="about">
  271. <div class="container">
  272. <div class="row">
  273. <div class="col-lg-8 col-lg-offset-2">
  274. <h2 class="section-heading">We've got what you need!</h2>
  275. <hr class="light">
  276. <p class="text-faded"> <img src="crosswayprintinglogo.png" > <br>
  277. <div align="left">
  278. <img src="crosswayservice.png" >
  279. </div>
  280. <!-- s Crossway Printing covers Tarpaulin Printing, Rush ID, Photocopy, Graphic Layout, Invitation, Piso Print, Panaflex, Signages, stickers, Sintra board, Large format photo printing Scan, PVC ID, Lamination, Bag Tags, and notary public. --></p>
  281. <div class="fb-like" data-href="https://www.facebook.com/Crossway-Printing-995497610498216/" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
  282.  
  283. <a href="#" class="btn btn-default btn-xl">Get Started!</a>
  284. </div>
  285.  
  286. </div>
  287. </div>
  288. </section>
  289.  
  290. <section id="services">
  291. <div class="container">
  292. <div class="row">
  293. <div class="col-lg-12">
  294. <h2 class="section-heading">At Your Service</h2>
  295. <hr class="primary">
  296. </div>
  297. </div>
  298. </div>
  299. <div class="container">
  300. <div class="row">
  301. <div class="col-lg-3 col-md-6">
  302. <div class="service-box">
  303. <i class="fa fa-4x fa-diamond wow bounceIn text-primary"></i>
  304. <h3>Sturdy Templates</h3>
  305. <p class="text-muted">Our templates are user-friendly they don't bite!</p>
  306. </div>
  307. </div>
  308. <div class="col-lg-3 col-md-6">
  309. <div class="service-box">
  310. <i class="fa fa-4x fa-paper-plane wow bounceIn text-primary" data-wow-delay=".1s"></i>
  311. <h3>Cash on Delivery</h3>
  312. <p class="text-muted">Pay us when your projects are delivered.</p>
  313. </div>
  314. </div>
  315. <div class="col-lg-3 col-md-6">
  316. <div class="service-box">
  317. <i class="fa fa-4x fa-newspaper-o wow bounceIn text-primary" data-wow-delay=".2s"></i>
  318. <h3>Up to Date</h3>
  319. <p class="text-muted">We update to the current trends to keep things fresh.</p>
  320. </div>
  321. </div>
  322. <div class="col-lg-3 col-md-6">
  323. <div class="service-box">
  324. <i class="fa fa-4x fa-heart wow bounceIn text-primary" data-wow-delay=".3s"></i>
  325. <h3>Made with Love</h3>
  326. <p class="text-muted">You have to make your photos with love these days!</p>
  327. </div>
  328. </div>
  329. </div>
  330. </div>
  331. </section>
  332.  
  333. <section class="no-padding" id="gallery">
  334. <div class="container-fluid">
  335. <div class="row no-gutter">
  336. <div class="col-lg-4 col-sm-6">
  337. <a href="#" class="portfolio-box">
  338. <img src="img/portfolio/1.jpg" class="img-responsive" alt="">
  339. <div class="portfolio-box-caption">
  340. <div class="portfolio-box-caption-content">
  341. <div class="project-category text-faded">
  342. Category
  343. </div>
  344. <div class="project-name">
  345. Tarpaulin Printing
  346. </div>
  347. </div>
  348. </div>
  349. </a>
  350. </div>
  351. <div class="col-lg-4 col-sm-6">
  352. <a href="http://test2.crosswayprinting.ga/tarpaulin.php" class="portfolio-box">
  353. <img src="img/portfolio/2.jpg" class="img-responsive" alt="">
  354. <div class="portfolio-box-caption">
  355. <div class="portfolio-box-caption-content">
  356. <div class="project-category text-faded">
  357. Category
  358. </div>
  359. <div class="project-name">
  360. Rush ID
  361. </div>
  362. </div>
  363. </div>
  364. </a>
  365. </div>
  366. <div class="col-lg-4 col-sm-6">
  367. <a href="#" class="portfolio-box">
  368. <img src="img/portfolio/3.jpg" class="img-responsive" alt="">
  369. <div class="portfolio-box-caption">
  370. <div class="portfolio-box-caption-content">
  371. <div class="project-category text-faded">
  372. Category
  373. </div>
  374. <div class="project-name">
  375. Photocopy
  376. </div>
  377. </div>
  378. </div>
  379. </a>
  380. </div>
  381. <div class="col-lg-4 col-sm-6">
  382. <a href="#" class="portfolio-box">
  383. <img src="img/portfolio/4.jpg" class="img-responsive" alt="">
  384. <div class="portfolio-box-caption">
  385. <div class="portfolio-box-caption-content">
  386. <div class="project-category text-faded">
  387. Category
  388. </div>
  389. <div class="project-name">
  390. Graphic Layout
  391. </div>
  392. </div>
  393. </div>
  394. </a>
  395. </div>
  396. <div class="col-lg-4 col-sm-6">
  397. <a href="#" class="portfolio-box">
  398. <img src="img/portfolio/5.jpg" class="img-responsive" alt="">
  399. <div class="portfolio-box-caption">
  400. <div class="portfolio-box-caption-content">
  401. <div class="project-category text-faded">
  402. Category
  403. </div>
  404. <div class="project-name">
  405. Invitation
  406. </div>
  407. </div>
  408. </div>
  409. </a>
  410. </div>
  411. <div class="col-lg-4 col-sm-6">
  412. <a href="#" class="portfolio-box">
  413. <img src="img/portfolio/6.jpg" class="img-responsive" alt="">
  414. <div class="portfolio-box-caption">
  415. <div class="portfolio-box-caption-content">
  416. <div class="project-category text-faded">
  417. Category
  418. </div>
  419. <div class="project-name">
  420. Piso Print
  421. </div>
  422. </div>
  423. </div>
  424. </a>
  425. </div>
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435. <div class="col-lg-4 col-sm-6">
  436. <a href="#" class="portfolio-box">
  437. <img src="img/portfolio/7.jpg" class="img-responsive" alt="">
  438. <div class="portfolio-box-caption">
  439. <div class="portfolio-box-caption-content">
  440. <div class="project-category text-faded">
  441. Category
  442. </div>
  443. <div class="project-name">
  444. Panaflex
  445. </div>
  446. </div>
  447. </div>
  448. </a>
  449. </div>
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457. <div class="col-lg-4 col-sm-6">
  458. <a href="#" class="portfolio-box">
  459. <img src="img/portfolio/8.jpg" class="img-responsive" alt="">
  460. <div class="portfolio-box-caption">
  461. <div class="portfolio-box-caption-content">
  462. <div class="project-category text-faded">
  463. Category
  464. </div>
  465. <div class="project-name">
  466. Signages
  467. </div>
  468. </div>
  469. </div>
  470. </a>
  471. </div>
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479. <div class="col-lg-4 col-sm-6">
  480. <a href="#" class="portfolio-box">
  481. <img src="img/portfolio/9.jpg" class="img-responsive" alt="">
  482. <div class="portfolio-box-caption">
  483. <div class="portfolio-box-caption-content">
  484. <div class="project-category text-faded">
  485. Category
  486. </div>
  487. <div class="project-name">
  488. Stickers
  489. </div>
  490. </div>
  491. </div>
  492. </a>
  493. </div>
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503. <div class="col-lg-4 col-sm-6">
  504. <a href="#" class="portfolio-box">
  505. <img src="img/portfolio/10.jpg" class="img-responsive" alt="">
  506. <div class="portfolio-box-caption">
  507. <div class="portfolio-box-caption-content">
  508. <div class="project-category text-faded">
  509. Category
  510. </div>
  511. <div class="project-name">
  512. Sintra Board
  513. </div>
  514. </div>
  515. </div>
  516. </a>
  517. </div>
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524. <div class="col-lg-4 col-sm-6">
  525. <a href="#" class="portfolio-box">
  526. <img src="img/portfolio/11.jpg" class="img-responsive" alt="">
  527. <div class="portfolio-box-caption">
  528. <div class="portfolio-box-caption-content">
  529. <div class="project-category text-faded">
  530. Category
  531. </div>
  532. <div class="project-name">
  533. Large format photo printing
  534. </div>
  535. </div>
  536. </div>
  537. </a>
  538. </div>
  539.  
  540.  
  541.  
  542.  
  543.  
  544. <div class="col-lg-4 col-sm-6">
  545. <a href="#" class="portfolio-box">
  546. <img src="img/portfolio/12.jpg" class="img-responsive" alt="">
  547. <div class="portfolio-box-caption">
  548. <div class="portfolio-box-caption-content">
  549. <div class="project-category text-faded">
  550. Category
  551. </div>
  552. <div class="project-name">
  553. Scan
  554. </div>
  555. </div>
  556. </div>
  557. </a>
  558. </div>
  559.  
  560.  
  561.  
  562.  
  563.  
  564. <div class="col-lg-4 col-sm-6">
  565. <a href="#" class="portfolio-box">
  566. <img src="img/portfolio/13.jpg" class="img-responsive" alt="">
  567. <div class="portfolio-box-caption">
  568. <div class="portfolio-box-caption-content">
  569. <div class="project-category text-faded">
  570. Category
  571. </div>
  572. <div class="project-name">
  573. PVC ID
  574. </div>
  575. </div>
  576. </div>
  577. </a>
  578. </div>
  579.  
  580.  
  581.  
  582.  
  583. <div class="col-lg-4 col-sm-6">
  584. <a href="#" class="portfolio-box">
  585. <img src="img/portfolio/14.jpg" class="img-responsive" alt="">
  586. <div class="portfolio-box-caption">
  587. <div class="portfolio-box-caption-content">
  588. <div class="project-category text-faded">
  589. Category
  590. </div>
  591. <div class="project-name">
  592. Lamination
  593. </div>
  594. </div>
  595. </div>
  596. </a>
  597. </div>
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605. <div class="col-lg-4 col-sm-6">
  606. <a href="#" class="portfolio-box">
  607. <img src="img/portfolio/15.jpg" class="img-responsive" alt="">
  608. <div class="portfolio-box-caption">
  609. <div class="portfolio-box-caption-content">
  610. <div class="project-category text-faded">
  611. Category
  612. </div>
  613. <div class="project-name">
  614. Bag tags
  615. </div>
  616. </div>
  617. </div>
  618. </a>
  619. </div>
  620.  
  621.  
  622. <div class="col-lg-4 col-sm-6">
  623. <a href="#" class="portfolio-box">
  624. <img src="img/portfolio/16.jpg" class="img-responsive" alt="">
  625. <div class="portfolio-box-caption">
  626. <div class="portfolio-box-caption-content">
  627. <div class="project-category text-faded">
  628. Category
  629. </div>
  630. <div class="project-name">
  631. Notary Public
  632. </div>
  633. </div>
  634. </div>
  635. </a>
  636. </div>
  637. </div>
  638. </div>
  639.  
  640.  
  641. </section>
  642.  
  643.  
  644.  
  645.  
  646. <section id="contact">
  647. <div class="container">
  648. <div class="row">
  649. <div class="col-lg-8 col-lg-offset-2 text-center">
  650. <h2 class="section-heading">Let's Get In Touch!</h2>
  651. <hr class="primary">
  652. <p>Ready to start your next project with us? That's great! Give us a call or send us an email and we will get back to you as soon as possible!</p>
  653. <img src="cpaddress.png"
  654. <br> <p>11 P.Burgos St. Antipolo City, Antipolo, Philippines </p>
  655.  
  656. </div>
  657. <div class="col-lg-4 col-lg-offset-2 text-center">
  658. <i class="fa fa-phone fa-3x wow bounceIn"></i>
  659. <p>788-7746 </p>
  660. </div>
  661. <div class="col-lg-4 text-center">
  662. <i class="fa fa-envelope-o fa-3x wow bounceIn" data-wow-delay=".1s"></i>
  663. <p><a href="mailto:your-email@your-domain.com">crosswayprinting@gmail.com </a></p>
  664.  
  665. <div class="col-lg-8 col-lg-offset-2 text-center">
  666.  
  667. </div>
  668.  
  669. </div>
  670. </div>
  671. </div>
  672. </section>
  673.  
  674. <?}?>
  675.  
  676.  
  677.  
  678. <!--- this is where the war starts -->
  679. <section class="bg-dark">
  680. <div class="container">
  681.  
  682. <?
  683. if(isset($_GET[p]))
  684. {
  685. switch($_GET[p])
  686. {
  687. /* eto ung pag gawa ng page start from case to break */
  688. case "adminpanel":
  689. include "functions/adminpanel.php";
  690. break;
  691. case "news":
  692. include "functions/news.php";
  693. break;
  694. case "account":
  695. include "functions/account.php";
  696. case "product":
  697. include "functions/product.php";
  698. break;
  699. case "shop":
  700. include "functions/shop.php";
  701. break;
  702. case "transactionlog":
  703. include "functions/transactionlog.php";
  704. break;
  705. case "termsandconditions":
  706. include "functions/termsandconditions.php";
  707. break;
  708. case "transactionlogs":
  709. include "functions/transactionlogs.php";
  710. break;
  711. case "faq":
  712. include "functions/faq.php";
  713. break;
  714. case "help":
  715. include "functions/help.php";
  716. break;
  717. case "customereport":
  718. include "functions/customereport.php";
  719. break;
  720. case "check":
  721. include "functions/check.php";
  722. break;
  723. case "orderlogs":
  724. include "functions/orderlogs.php";
  725. break;
  726.  
  727. }
  728.  
  729. }
  730. ?>
  731. </div>
  732. </section>
  733.  
  734. <!-- jQuery -->
  735. <script src="js/jquery.js"></script>
  736.  
  737. <!-- Bootstrap Core JavaScript -->
  738. <script src="js/bootstrap.min.js"></script>
  739.  
  740. <!-- Plugin JavaScript -->
  741. <script src="js/jquery.easing.min.js"></script>
  742. <script src="js/jquery.fittext.js"></script>
  743. <script src="js/wow.min.js"></script>
  744.  
  745. <!-- Custom Theme JavaScript -->
  746. <script src="js/creative.js"></script>
  747. <link rel="stylesheet" type="text/css" href="/bdx/sweet-alert.css">
  748. <script src="/bdx/sweet-alert.min.js"></script>
  749. <script>
  750. $(".userTrans").submit(function(e){
  751. e.preventDefault();
  752. swal({ title: "Loading...", text: "Please wait a moment...", timer: 400, type:"success", showConfirmButton: false });
  753. var data = $(this).serialize();
  754. var process = 0;
  755. if (process == 0){
  756. $.ajax({
  757. type: "POST",
  758. url: "./userTrans.php",
  759. data: data,
  760. dataType: "json",
  761. success: function(data){
  762. if(data.status == 1){
  763.  
  764. if(data.refresh == 0){
  765. swal( "Success!", data.text , "success" );
  766. }else{
  767. swal({ title: "Success!!", text: data.text, timer: 2000, type:"success", showConfirmButton: false });
  768. }
  769.  
  770. process = 0;
  771. if(data.refresh == 1){
  772. setTimeout(function(){
  773. location.reload();
  774. }, 2000);
  775. }
  776. else if(data.refresh == 2){
  777. swal({ title: "Success!!", text: data.text, timer: 2000, type:"success", showConfirmButton: false });
  778. window.location.replace("/");
  779. }
  780. else if(data.refresh == 3){
  781. swal({ title: "Success!!", text: data.text, timer: 2000, type:"success", showConfirmButton: false });
  782. if(data.link != "none") window.location.replace(data.link);
  783. }
  784. } else {
  785. swal( "Error!", data.text , "error" );
  786. process = 0;
  787. }
  788. },
  789. error: function(){
  790. swal("Error!", "Application error. Please reload the page." , "error");
  791. }
  792. });
  793. }else{
  794. swal({ title: "Oops!!", text: "Please wait a moment...", timer: 1000, type:"warning", showConfirmButton: false });
  795. }
  796. });
  797.  
  798. $(".userTransdoConfirm").submit(function(e){
  799. e.preventDefault();
  800. var data = $(this).serialize();
  801. var process = 0;
  802. swal({
  803. title: "Are you sure?",
  804. text: "Are you sure you want to continue this action!",
  805. type: "warning",
  806. showCancelButton: true,
  807. confirmButtonColor: "#DD6B55",
  808. confirmButtonText: "Yes",
  809. cancelButtonText: "No",
  810. closeOnConfirm: true,
  811. closeOnCancel: false }, function(isConfirm){
  812. if (isConfirm) {
  813. if (process == 0){
  814. $.ajax({
  815. type: "POST",
  816. url: "./userTrans.php",
  817. data: data,
  818. dataType: "json",
  819. success: function(data){
  820. if(data.status == 1){
  821.  
  822. if(data.refresh == 0){
  823. swal( "Success!", data.text , "success" );
  824. }
  825. else if(data.refresh == 2){
  826. swal({ title: "Success!!", text: data.text, timer: 1000, type:"success", showConfirmButton: false });
  827. }
  828. else if(data.refresh == 3){
  829. swal({ title: "Success!!", text: data.text, timer: 2000, type:"success", showConfirmButton: false });
  830. if(data.link != "none") window.location.href = data.link;
  831. }
  832. else{
  833. swal({ title: "Success!!", text: data.text, timer: 2000, type:"success", showConfirmButton: false });
  834. }
  835.  
  836. process = 0;
  837. if(data.refresh == 1){
  838. setTimeout(function(){
  839. location.reload();
  840. }, 2000);
  841. }
  842. } else {
  843. swal( "Error!", data.text , "error" );
  844. process = 0;
  845. }
  846. },
  847. error: function(){
  848. swal("Error!", "Application error. Please reload the page." , "error");
  849. }
  850. });
  851. }else{
  852. swal({ title: "Oops!!", text: "Please wait a moment...", timer: 1000, type:"warning", showConfirmButton: false });
  853. }
  854.  
  855. } else {
  856. swal("Cancelled", "Your action has been cancelled.", "error");
  857. } });
  858. });
  859. <?php if(!is_null($vermsg)) echo $vermsg;?>
  860. </script>
  861.  
  862.  
  863. <!-- CHAT -->
  864. <!--Start of Tawk.to Script-->
  865. <script type="text/javascript">
  866. var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
  867. (function(){
  868. var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
  869. s1.async=true;
  870. s1.src='https://embed.tawk.to/56e43e6a950941dd41085bb9/default';
  871. s1.charset='UTF-8';
  872. s1.setAttribute('crossorigin','*');
  873. s0.parentNode.insertBefore(s1,s0);
  874. })();
  875. </script>
  876. <!--End of Tawk.to Script-->
  877.  
  878. <div align="center">
  879. <p>
  880. <a href="http://bonusbitcoin.co/?ref=A6CF87495FDA "id="ad" >
  881. <img src="http://bonusbitcoin.co/img/728x90.gif" alt="bitcoin" >
  882. </a>
  883. </p>
  884. </div>
  885.  
  886. </body>
  887.  
  888. <!--Facebook Script -->
  889. <div id="fb-root"></div>
  890. <script>(function(d, s, id) {
  891. var js, fjs = d.getElementsByTagName(s)[0];
  892. if (d.getElementById(id)) return;
  893. js = d.createElement(s); js.id = id;
  894. js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
  895. fjs.parentNode.insertBefore(js, fjs);
  896. }(document, 'script', 'facebook-jssdk'));</script>
  897.  
  898.  
  899. <footer>
  900.  
  901. <section class="bg-dark">
  902. <div class="container">
  903. <a href="http://test2.crosswayprinting.ga/?p=help" id="footer1" >Help</a>
  904. <a href="http://test2.crosswayprinting.ga/?p=faq" id="footer1" >FAQ</a>
  905. <a href="http://test2.crosswayprinting.ga/?p=termsandconditions" id="footer2" >Terms and Conditions</a>
  906.  
  907. </section>
  908. </div>
  909. </footer>
  910.  
  911. </html>
Add Comment
Please, Sign In to add comment