-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
182 lines (168 loc) · 7.62 KB
/
index.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<?php
require 'manage/login/dbc.php';
page_protect();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Template.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Welcome to Administration</title>
<!-- InstanceEndEditable -->
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<!--*********************>> Web Editor Tiny MCE Script << **************************************************** -->
<script type="text/javascript" src="manage/_script/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="manage/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
// General options
mode : "exact",
elements : "content,amenities,specifications,availability,contact,overview",
theme : "advanced",
convert_urls: false,
plugins : "autolink,lists,spellchecker,pagebreak,style,layer,save,table,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
file_browser_callback : "filebrowser",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,sub,sup,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "forecolor,backcolor,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,|,image,media,code,template",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,|,fullscreen,|,styleprops,spellchecker,|,attribs,|,pagebreak,|,insertfile,insertimage",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
width : "95%",
height : "400px",
// Skin options
skin : "o2k7",
skin_variant : "silver",
// Example content CSS (should be your site CSS)
content_css : "/manage/_css/body_style.css",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "/manage/tiny_mce/lists/template_list.php",
external_link_list_url : "/manage/tiny_mce/lists/link_list.php",
external_image_list_url : "/manage/tiny_mce/lists/image_list.php",
media_external_list_url : "/manage/tiny_mce/lists/media_list.php",
// Replace values for the template plugin
template_replace_values : {
username : "Some User",
staffid : "991234"
}
});
function filebrowser(field_name, url, type, win) {
fileBrowserURL = "/manage/tiny_mce/pdw_file_browser/index.php?editor=tinymce&filter=" + type;
tinyMCE.activeEditor.windowManager.open({
title: "PDW File Browser",
url: fileBrowserURL,
width: 950,
height: 650,
inline: 0,
maximizable: 1,
close_previous: 0
},{
window : win,
input : field_name
}
);
}
</script>
<!--*********************>> END of Web Editor Tiny MCE Script << **************************************************** -->
<!-- ************>>> this script is used Highlight a ACTIVE LINK <<**************** -->
<script type="text/javascript">
$(document).ready(function(){
$(".mainmenu a").each(function() {
if (this.href == window.location.href) {
$(this).addClass("active");
}
});
// This function is used for displaying submenu with jQuery and css ***************************************************
$(".mainmenu li ul").hide();
$(".mainmenu li").hover(function(){
$(this).find('ul:first').css({visibility: "visible",display: "none", background:""}).slideDown(500);
},function(){
$(this).find('ul:first').css({visibility: "hidden",display: "none"});
});
});
</script>
<!-- ************>>> this script is used for open link in new window <<**************** -->
<script type="text/javascript">
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=660,width=980');
if (window.focus) {newwindow.focus()}
}
</script>
<!-- ************>>> END OF this this script is used for open link in new window <<**************** -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>
<body>
<div class="container">
<div class="viewsite"><?php if(isset($_SESSION['domain_name'])){ echo'<a href="http://'.$_SESSION['domain_name'].'/index.php" target="_blank">View Site</a>';}?></div>
<div class="header">
<h2>
Welcome <?php if(isset($_SESSION['user_name'])){echo $_SESSION['user_name'];}?>
</h2>
<?php if(isset($_SESSION['domain'])){
echo ' <h1>You Are Editing: -></a>';
$result = mysql_query("SELECT * FROM `user_sites` WHERE id=".$_SESSION['domain']);
while($row = mysql_fetch_array($result)){ ?>
<a href="manage/select-site.php" title="Click to Chang Editing Site!"><?php echo $row['domain']; ?></a>
<?php }}?>
</h1>
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" align="center" valign="top"><div class="mainbar">
<ul class="mainmenu">
<li><a href="manage/Projects/Real-Estate/responses.php">My Responses</a>
<ul>
<li><a href="manage/Projects/Real-Estate/responses.php?respo_for=property">Property Sale/Rent Out</a></li>
<li><a href="manage/Projects/Real-Estate/responses.php?respo_for=web">Website Queries</a></li>
<li><a href="manage/Projects/Real-Estate/responses.php?respo_for=project">Projects Inquiry</a></li>
</ul>
</li>
<li><a href="#">My Property</a>
<ul>
<li><a href="manage/Projects/Real-Estate/addproperty.php">Add Property</a></li>
<li><a href="manage/Projects/Real-Estate/viewproperty.php">View Property</a></li>
<li><a href="manage/Projects/Real-Estate/addproject.php">Add Project</a></li>
<li><a href="manage/Projects/Real-Estate/viewproject.php">Manage Projects</a></li>
</ul>
</li>
<li><a href="#">My Profile</a>
<ul>
<li><a href="manage/login/mysettings.php">Edit Profile/ Contacts</a></li>
<li><a href="manage/select-site.php">View All Sites</a></li>
<li><a href="#">Request for New Site</a></li>
<li><a href="manage/login/logout.php">Logout</a></li>
</ul>
</li>
</ul>
<div class="clear"></div>
</div></td>
</tr>
<tr>
<td valign="top">
<div class="content">
<!-- InstanceBeginEditable name="content" -->
<div class="content">
<p><strong>Welcome to Administration Area:</strong></p>
<p>This is CMS based site where you can edit your site with the help of our cms application.</p>
<p>Side menu is used for editing your website.</p>
<p>Best of Luck for editing.</p>
<p> </p>
</div>
<!-- InstanceEndEditable -->
</div>
</td>
</tr>
</table>
<div class="footer">
<p align="center">
This site is Created & Maintained by <a href="http://www.vilas.co.in" title="Free Website Designing & hosting">Vilas Shetkar</a>
</p>
</div>
</div>
</body>
<!-- InstanceEnd --></html>