-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathadmin_menu.php
135 lines (105 loc) · 6.72 KB
/
admin_menu.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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
include_once("includes/inc.global.php");
$p->site_section = ADMINISTRATION;
$p->page_title = _("Administration Menu");
$cUser->MustBeLevel(1);
$query = $cDB->Query("SELECT sum(balance) from ". DATABASE_MEMBERS .";");
if($row = mysql_fetch_array($query)) {
$balance = $row[0];
}
$list = "<STRONG>"._("Current Balance is")." ".$balance.": </STRONG><P>";
$list .= "<table border=0 cellpadding=5>";
$list .= "<tr valign=top>";
$list .= "<td>";
$list .= "<STRONG>"._("Accounts")."</STRONG><P>";
$list .= "<A HREF=member_create.php><FONT SIZE=2>"._("Create a New Member Account")."</FONT></A><BR>";
$list .= "<A HREF=member_to_edit.php><FONT SIZE=2>"._("Edit a Member Account")."</FONT></A><BR>";
if ($cUser->member_role > 1) {
$list .= "<A HREF=photo_to_edit.php><FONT SIZE=2>"._("Edit a Member Photo")."</FONT></A> <font color=red></font><BR>";
}
if ($cUser->member_role > 1) {
$list .= "<A HREF=member_choose.php?action=member_status_change&inactive=Y><FONT SIZE=2>"._("Inactivate/Re-activate a Member Account")."</FONT></A><BR>";
}
$list .= "<A HREF=member_contact_create.php?mode=admin><FONT SIZE=2>"._("Add joint member to existing account")."</FONT></A><BR>";
$list .= "<A HREF=member_contact_to_edit.php><FONT SIZE=2>"._("Edit/Delete a Joint Member")."</FONT></A><BR>";
if ($cUser->member_role > 1) {
$list .= "<A HREF=member_unlock.php><FONT SIZE=2>"._("Unlock Account and Reset Password")."</FONT></A><BR>";
}
echo OVRIDE_BALANCES;
if (OVRIDE_BALANCES==true && $cUser->member_role > 1) // Only display Override Balance link if it is turned on in config file
$list .= "<A HREF=balance_to_edit.php><FONT SIZE=2>"._("Override Member Account Balance")."</FONT></A><BR>";
if ($cUser->member_role>1)
$list .= "<a href=manage_restrictions.php><font size=2>"._("Manage Account Restrictions")."</font></a> <font color=red></font>";
$list .= "</td><td>";
if ($cUser->member_role > 1) {
$list .= "<STRONG>"._("Exchanges")."</STRONG><P>";
$list .= "<A HREF=member_choose.php?action=trade><FONT SIZE=2>"._("Record an Exchange for a Member")."</FONT></A><BR>";
$list .= "<A HREF=trade_reverse.php><FONT SIZE=2>"._("Reverse an Exchange that was Made in Error")."</FONT></A><BR>";
$list .= "<A HREF=member_choose.php?action=feedback_choose><FONT SIZE=2>"._("Record Feedback for a Member")."</FONT></A><P>";
}
$list .= "</td></tr>";
$list .= "<tr valign=top><td>";
$list .= "<strong>"._("Listings")."</strong><p>";
$list .= "<em>"._("Offers")."</em><P>";
$list .= "<A HREF=listing_create.php?type=Offer&mode=admin><FONT SIZE=2>"._("Create a New Offer Listing for a Member")."</FONT></A><BR>";
$list .= "<A HREF=member_choose.php?action=listing_to_edit&get1=type&get1val=Offer><FONT SIZE=2>"._("Edit a Member's Offered Listing")."</FONT></A><BR>";
$list .= "<A HREF=member_choose.php?action=listing_delete&get1=type&get1val=Offer><FONT SIZE=2>"._("Delete a Member's Offered Listing")."</FONT></A><P>";
$list .= "<em>"._("Wants")."</em><P>";
$list .= "<A HREF=listing_create.php?type=Want&mode=admin><FONT SIZE=2>"._("Create a New Want Listing for a Member")."</FONT></A><BR>";
$list .= "<A HREF=member_choose.php?action=listing_to_edit&get1=type&get1val=Want><FONT SIZE=2>"._("Edit a Member's Wanted Listing")."</FONT></A><BR>";
$list .= "<A HREF=member_choose.php?action=listing_delete&get1=type&get1val=Want><FONT SIZE=2>"._("Delete a Member's Wanted Listing")."</FONT></A><P>";
$list .= "<em>"._("Miscellaneous")."</em><P>";
$list .= "<A HREF=member_choose.php?action=holiday><FONT SIZE=2>"._("Member Going on Holiday")."</FONT></A>";
if ($cUser->member_role > 1) {
$list .= "<BR><A HREF=category_create.php><FONT SIZE=2>"._("Create a New Listing Category")."</FONT></A><BR>";
$list .= "<A HREF=category_choose.php><FONT SIZE=2>"._("Edit/Delete Listing Category")."</FONT></A>";
$list .= "<BR><A HREF=state_create.php><FONT SIZE=2>"._("Create a New State")."</FONT></A><BR>"; // added by ejkv
$list .= "<A HREF=state_choose.php><FONT SIZE=2>"._("Edit State")."</FONT></A>"; // added by ejkv
}
$list .= "<P>";
$list .= "</td><td>";
$list .= "<p><STRONG>"._("Content")."</STRONG><P>";
$list .= "<em>"._("Information Pages")."</em><p>";
$list .= "<A HREF=create_info.php><FONT SIZE=2>"._("Create a New Information Page")."</FONT></A><BR>";
$list .= "<A HREF=edit_info.php><FONT SIZE=2>"._("Edit Info Pages")."</FONT></A><BR>";
$list .= "<A HREF=delete_info.php><FONT SIZE=2>"._("Delete an Info Page")."</FONT></A><BR>";
$list .= "<A HREF=info_permissions.php><FONT SIZE=2>"._("Edit Information Page Permissions")."</FONT></A> <font size=2 color=red></font> <BR>";
$list .= "<A HREF=info_url.php><FONT SIZE=2>"._("See Info Page URL 's")."</FONT></A><p>";
$list .= "<em>"._("News and Events")."</em><p>";
$list .= "<A HREF=news_create.php><FONT SIZE=2>"._("Create a News Item")."</FONT></A><BR>";
$list .= "<A HREF=news_to_edit.php><FONT SIZE=2>"._("Edit a News Item")."</FONT></A><BR>";
$list .= "<A HREF=newsletter_upload.php><FONT SIZE=2>"._("Upload a Newsletter")."</FONT></A><BR>";
$list .= "<A HREF=newsletter_delete.php><FONT SIZE=2>"._("Delete Newsletters")."</FONT></A><BR>";
$list .= "</td></tr>";
$list .= "<tr valign=top><td>";
$list .= "<strong>"._("Admin Fees")."</strong><p>";
if (TAKE_MONTHLY_FEE && $cUser->member_role > 1) {
$ts = time();
// $list .= "<strong>Monthly fee</strong><p>";
// File missing??
// $list .= "<a href='monthly_fee_list.php'>List of monthly fees</a><br>";
// CID = Confirmation ID.
$list .= "<a href='take_monthly_fee.php?CID=$ts'>
<font size=2>"._("Take Monthly Fee")."</font></a><br>";
$list .= "<a href='refund_monthly_fee.php'>
<font size=2>"._("Refund Monthly Fee")."</font></a><p>";
}
if (TAKE_SERVICE_FEE==true && $cUser->member_role > 1) {
$list .= "<p><a href='service_charge.php?CID=$ts'>
<font size=2>"._("Take One-Off Service Charge")."</font></a> <font color=red></font><br>
<a href='refund_service_charge.php'>
<font size=2>"._("Refund Service Charge")."</font></a> <font color=red></font><p>";
}
$list .= "</td><td>";
$list .= "<STRONG>"._("System & Reporting")."</STRONG><P>";
if ($cUser->member_role > 1) {
$list .= "<A HREF=settings.php><FONT SIZE=2>"._("Site Settings")."</FONT></A> <font color=red></font><BR>";
// Translation hint: Link text
$list .= "<A HREF=geocoding_setup.php><FONT SIZE=2>"._("Set Up Geocoding")."</FONT></A> <font color=red>"._("New!")."</font><BR>";
$list .= "<A HREF=mysql_backup.php><FONT SIZE=2>"._("MySQL Backup")."</FONT></A> <font color=red></font><BR>";
$list .= "<A HREF=contact_all.php><FONT SIZE=2>"._("Send an Email to All Members")."</FONT></A><BR>";
}
$list .= "<A HREF=report_no_login.php><FONT SIZE=2>"._("View Members Not Yet Logged In")."</FONT></A><BR><p>";
$list .= "</td></tr></table>";
$p->DisplayPage($list);
?>