-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathcivimobile.home.php
52 lines (45 loc) · 1.81 KB
/
civimobile.home.php
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
<?php require_once 'civimobile.header.php'; ?>
<!-- start of menu page -->
<div data-role="page" id="cm-home">
<div data-role="header">
<h1>CiviMobile</h1>
</div><!-- /header -->
<div data-role="content">
<?php
if ( CRM_Utils_System::isUserLoggedIn() ) {
?>
<a data-role="button" data-icon="search" href="#cm-contact-search" title="Contacts" class="icons" data-transition="slideup" >Contact</a>
<a data-role="button" data-icon="grid" href="#cm-events" title="Events" class="icons" data-transition="slideup" >Events</a>
<a data-role="button" data-icon="info" href="#cm-surveys" title="Survey" class="icons" data-transition="slideup" >Survey</a>
<a data-role="button" data-icon="delete" href="<?php echo CRM_Utils_System::url('civicrm/mobile/logout'); ?>" title="click to logout" class="icons" data-transition="slideup" data-ajax="false">Logout</a>
<?php
}
else {
CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/mobile/login'));
CRM_Utils_System::civiExit();
}
?>
</div><!-- /content -->
</div>
<!-- end of menu page -->
<!-- start of contact search -->
<div data-role="page" id="cm-contact-search">
<?php require_once 'civimobile.contact_search.html'; ?>
</div>
<!-- end of contact search -->
<!-- start of event page -->
<div data-role="page" id="cm-events" >
<?php require_once 'civimobile.event_search.html';?>
</div>
<!-- end of event page -->
<!-- start of proximity search page -->
<div data-role="page" id="cm-proximity-search" >
<?php require_once 'civimobile.proximity_search.html';?>
</div>
<!-- end of proximity search page -->
<!-- start of survey page -->
<div data-role="page" id="cm-surveys" >
<?php require_once 'civimobile.survey_search.html';?>
</div>
<!-- end of survey page -->
<?php require_once 'civimobile.footer.php'; ?>