1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
<?php include('_init.php');
?> <!DOCTYPE html> <html lang="en"> <head> <?php include('_head.php'); ?> <link href="css/style_k.css?v=<?= time(); ?>" type="text/css" rel="stylesheet">
</head>
<body> <?php include('_header.php') ?>
<?php include('_dialog.php') ?>
<div class="ProfileContent"> <div class="Profilecontainer"> <div class="row tnc"> <div class="col-md-12"> <ul class="setting_ul"> <!--<li> <div class="nowrap" style="padding: 15px;"> <a href="tel:94460817" style="padding: 0; display: inline;color: transparent;"> <img src="img/whatsapp.png" style="height: 25px; margin-top: -5px;"> <span style="color: #fff; font-size: 16px; font-weight: bold">9446 0817</span> </a> </div>
</li>-->
<?php if ($_SESSION["is_student"] == 1) { echo '<li><a href="student_profile.php">'. _lang('My Profile') .'</a></li>'; } else if ($_SESSION["is_tutor"] == 1) { echo '<li><a href="tutor_profile.php">'. _lang('My Resume') .'</a></li>'; } ?>
<li><a href="faq.php"><?= _lang('FAQ') ?></a></li> <li><a href="aboutus.php"><?= _lang('About Us') ?></a></li> <li><a href="fee.php"><?= _lang('Fee') ?></a></li> <? if ($_SESSION['member_login'] || $_SESSION['student_login']) { ?> <? if ($_SESSION['member_login']) { $sql = "select * from tutor_main where id = ? and deleted = ?"; $parameters = array($_SESSION['member_login'], 0); $row = bind_pdo($sql, $parameters, "selectone"); } else if ($_SESSION['student_login']) { $sql = "select * from student_main where id = ? and deleted = ?"; $parameters = array($_SESSION['student_login'], 0); $row = bind_pdo($sql, $parameters, "selectone"); } ?> <li><a href="my_wish.php"><?= _lang('My Wish') ?></a></li> <li><a href="my_notification.php"><?= _lang('My Notification') ?></a></li> <? } ?> <li><a href="tnc.php"><?= _lang('Terms & Conditions') ?></a></li> <li><a href="privacy_policy.php"><?= _lang('Privacy Policy') ?></a></li>
<li> <div class="nowrap" style=""> <a href="tel:94460817" style="padding: 0; display: inline;"> <img src="img/whatsapp.png" style="height: 25px; margin-top: -5px;"> <span style="font-size: 16px; font-weight: bold">9446 0817</span> </a> </div> </li>
<li> <? if ($_SESSION['member_login'] || $_SESSION['student_login']) { ?> <form action="_process.php" method="post" enctype="multipart/form-data" role="form" id="LiLogoutForm"> <input type="hidden" name="action" value="logout"/> <input type="hidden" name="lang" value="<?= $lang ?>"/> </form> <? if ($_SESSION['member_login']) { $sql = "select nickname as name, tutor_no as user_no from tutor_main as tb where id = ? and deleted = ?"; $parameters = array($_SESSION['member_login'], 0); $row_header = bind_pdo($sql, $parameters, "selectone"); } else if ($_SESSION['student_login']) { $sql = "select contactname as name, student_no as user_no from student_main as tb where id = ? and deleted = ?"; $parameters = array($_SESSION['student_login'], 0); $row_header = bind_pdo($sql, $parameters, "selectone"); } ?> <a href="#" onClick="$('#LiLogoutForm').submit()"><? if ($row_header["user_no"]) { echo $row_header["user_no"] . ", "; } ?><?= _lang('Log out') ?></a>
<? } else { ?> <!-- <a href="#" data-toggle="modal" data-target="#myModa2" id="LiLoginMenu">--><? //= _lang('Log in') ?><!--</a>--> <a href="login.php"><?= _lang('Log in') ?></a> <? } ?> </li>
<? /*if ($langcode == 'cn') { ?> <li><a href="language_change.php?langcode=en">EN</a></li> <? } ?> <? if ($langcode == 'en') { ?> <li><a href="language_change.php?langcode=cn">中文</a></li> <? } */?>
<!--<li> <div style="padding: 12px;"> <a href="<?/*= $site_info["fanpage"] */?>" style="padding: 0; display: inline; color: transparent;"> <img src="img/facebook.png" style="height: 21px; margin-right: 10px;"> </a> </div>
</li>--> </ul> </div> </div> </div> </div> <? include('_footer.php') ?>
</body> </html>
|