<link href="<?php 
bloginfo('template_url');
?>
/css/admin.css" rel="stylesheet" type="text/css" media="all">
<div class="wrap">
	<div style="margin:10px;padding:5px 10px;">
		<label for="code">Code For Display  Property:</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label><input id="code" type="text" readonly value="[display-property]"></label>
	</div>
	<?php 
global $wpdb;
$url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$url = truncateQueryString('edit', $url);
$url = truncateQueryString('del', $url);
if (count($_GET) == 0) {
    $startQue = "?";
} else {
    $startQue = "&";
}
if (!(isset($_GET['edit']) || isset($_GET['del']))) {
    $qryGetPropertyDetail = "SELECT * \n\t\t\t\t\t\t\tFROM " . $wpdb->prefix . "PropertyMaster AS pm, " . $wpdb->prefix . "UserMaster AS um\n\t\t\t\t\t\t\tWHERE pm.UserId=um.UserId\n\t\t\t\t\t\t";
    $rsGetPreopertyDetail = $wpdb->get_results($qryGetPropertyDetail);
    //echo $qryGetPropertyDetail."<br>";
    echo '<table class="nba-detail" cellspacing="5px">';
    echo '<tr>
					<th>Id</th>
					<th>Property Title</th>
					<th>User Name</th>
					<th>Agency</th>
					<th>Office Phone</th>
					<th>Cell Phone</th>
<link href="<?php 
bloginfo('template_url');
?>
/css/admin.css" rel="stylesheet" type="text/css" media="all">
<div class="wrap">
<div style="margin:10px;padding:5px 10px;">
<label for="code">Code For User Managment  :</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<label><input id="code" type="text" readonly value="[manage-users]"></label>
</div>
	<?php 
global $wpdb;
$url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$url = truncateQueryString('userid', $url);
if (count($_GET) == 0) {
    $startQue = "?";
} else {
    $startQue = "&";
}
if (!isset($_REQUEST['userid'])) {
    $qryGetuserDetail = "SELECT * FROM " . $wpdb->prefix . "UserMaster";
    $Result = $wpdb->get_results($qryGetuserDetail);
    echo '<table class="nba-detail" cellspacing="5px">';
    echo '<tr>
			<th>Id</th>
			<th>Name</th>
			<th>Email</th>
			<th>Agency</th>
			<th>Office Phone</th>
			<th>Cell Phone</th>
			<th>Action</th>
		</tr>';
<?php

/**  New Short Code For Manage Client  **/
/**  For User Login, Sign Up, Manage Property  **/
add_action('init', function () {
    add_shortcode('manage-users', 'manageUsers');
});
$url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$url = truncateQueryString('action', $url);
$url = truncateQueryString('pid', $url);
//$url=truncateQueryString('search',$url);
if (count($_GET) == 0) {
    $queryStrStart = "?";
} else {
    if (isset($_GET['action']) && count($_GET) == 1) {
        $queryStrStart = "?";
    } else {
        $queryStrStart = "&";
    }
}
/** Property Manage File import **/
require 'manage-property.php';
require 'display-property.php';
/** Functional Area**/
function logOut()
{
    global $url;
    if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'logout') {
        unset($_SESSION['UserId']);
        echo '<script>window.location="' . $url . '";</script>';
        //header('Location:'.$url);