

<?php 	####################################### Coding To Change Password ########################################
$flag=$_REQUEST['flag'];
if($flag=='')
{
$no=$_REQUEST['no'];
$username = $_SESSION['User_Name'];
if($no=='BDO')	
{	
include('dashboard_bdo.php');
require_once('convert_marathi.php');
?>
<html> 
<head>
	<script type="text/javascript" src="js/adduser.js"></script></head> 
	<div class="rightpanel">
        <ul class="breadcrumbs">
            <li><a href="dashboard_bdo.php"><i class="iconfa-home"></i></a> <span class="separator"></span></li>
            <li><a href="dashboard_bdo.php">Forms</a> <span class="separator"></span></li>
            <li>पासवर्ड बदला </li>
        </ul>
        <div class="pageheader">
            <div class="pageicon"><span class="iconfa-pencil"></span></div>
            <div class="pagetitle">
                <h5>Forms</h5>
                <h1>पासवर्ड बदला</h1>
            </div>
        </div><!--pageheader--> 
        <div class="maincontent">
            <div class="maincontentinner">
				<div class="widget">
					<h4 class="widgettitle">पासवर्ड बदला</h4>
					<div class="widgetcontent">
						<?php
						$newpass=$_POST['newpass'];
						$repass=$_POST['repass'];
						if($newpass!='')
						{
							$qry=("UPDATE login SET password='$newpass' WHERE login_id='$username'") or die("".mysql_query());
						}
						mysql_query($qry);	
						?>
						<form class="stdform" action="changepw.php?no=<?php echo $no;?>"  method="post" name="changepw">
							<table width="50%">
								<tr>
									<td> <label style="width:160px;">व्यक्तीची ओळख(User Id) : </label></td>
									<td><input type="text" value="<?php echo $username;?>" class="input-medium" readonly /></td>
								</tr>
								<tr>
									<td><label style="">नवीन पासवर्ड  : </label></td>
									<td><input type="password" name="newpass" class="input-medium" placeholder="नवीन पासवर्ड टाका"></td>
								</tr>
								<tr>
									<td> <label style="width:130px;">पासवर्ड परत टाका  : </label></td>
									<td><input type="password" name="repass" class="input-medium" placeholder="पासवर्ड परत टाका " /></td>
								</tr>
							</table>
							<p class="stdformbutton">
								<center><button class="btn btn-primary" onclick="return passwordValidation()">जतन करा </button>
								<button type="reset" class="btn"> रद्द करा</button>
								</center>
							</p>
						</form>
					</div><!--widgetcontent-->
				</div><!--widget-->
                        <?php include_once('footer.php'); ?>  
			</div><!--maincontentinner-->
		</div><!--maincontent-->
	</div><!--rightpanel-->
</div><!--mainwrapper-->
</body>
</html>
<?php 
}
else if($no=='Tapal')	
	{
		include('dashboard_tapal.php');
		require_once('convert_marathi.php');
		?>
		<html> 
		<head>
			<script type="text/javascript" src="js/adduser.js"></script></head> 
			<div class="rightpanel">
				<ul class="breadcrumbs">
					<li><a href="dashboard_bdo.php"><i class="iconfa-home"></i></a> <span class="separator"></span></li>
					<li><a href="dashboard_bdo.php">Forms</a> <span class="separator"></span></li>
					<li>पासवर्ड बदला</li>
				</ul>
			<div class="pageheader">
				<div class="pageicon"><span class="iconfa-pencil"></span></div>
				<div class="pagetitle">
					<h5>Forms</h5>
					<h1>पासवर्ड बदला</h1>
				</div>
			</div><!--pageheader-->
			<div class="maincontent">
				<div class="maincontentinner">
					<div class="widget">
						<h4 class="widgettitle">पासवर्ड बदला</h4>
						<div class="widgetcontent">
							<?php
							$newpass=$_POST['newpass'];
							$repass=$_POST['repass'];
							if($newpass!='')
							{
								$qry=("UPDATE login SET password='$newpass' WHERE login_id='$username'") or die("".mysql_query());
							}
							mysql_query($qry);	
							?>
							<form class="stdform" action="changepw.php?no=<?php echo $no;?>"  method="post" name="changepw">
								<table width="50%">
									<tr>
										<td> <label style="width:160px;">व्यक्तीची ओळख(User Id) : </label></td>
										<td><input type="text" value="<?php echo $username;?>" class="input-medium" readonly /></td>
									</tr>
									<tr>
										<td><label style="">नवीन पासवर्ड  : </label></td>
										<td><input type="password" name="newpass" class="input-medium" placeholder="नवीन पासवर्ड टाका"></td>
									</tr>
									<tr>
										<td><label style="width:130px;">पासवर्ड परत टाका  : </label></td>
										<td><input type="password" name="repass" class="input-medium" placeholder="पासवर्ड परत टाका"/></td>
									</tr>
								</table>            
								<p class="stdformbutton">
									<center>  <button class="btn btn-primary" onclick="return passwordValidation()">जतन करा </button>
									<button type="reset" class="btn"> रद्द करा</button></center>
								</p>
							</form>
						</div><!--widgetcontent-->
					</div><!--widget-->
                    <?php include_once('footer.php'); ?>
				</div><!--maincontentinner-->
			</div><!--maincontent-->
		</div><!--rightpanel-->
</div><!--mainwrapper-->
</body>
</html>
<?php 
}
else if($no=='Department')
{
include('dashboard_department.php');
?>
<html> 
<head>
<script type="text/javascript" src="js/adduser.js"></script></head> 
<div class="rightpanel">
    <ul class="breadcrumbs">
        <li><a href="dashboard_department.php"><i class="iconfa-home"></i></a> <span class="separator"></span></li>
        <li><a href="dashboard_department.php">Forms</a> <span class="separator"></span></li>
        <li>पासवर्ड बदला</li>
    </ul>
    <div class="pageheader">
        <div class="pageicon"><span class="iconfa-pencil"></span></div>
        <div class="pagetitle">
             <h5>Forms</h5>
             <h1>पासवर्ड बदला</h1>
         </div>
    </div><!--pageheader-->
        <div class="maincontent">
            <div class="maincontentinner">
				<div class="widget">
					<h4 class="widgettitle">पासवर्ड बदला</h4>
					<div class="widgetcontent">
						<?php
						$newpass=$_POST['newpass'];
						$repass=$_POST['repass'];
						if($newpass!='')
						{
							$qry=("UPDATE login SET password='$newpass' WHERE login_id='$username'") or die("".mysql_query());
						}
						mysql_query($qry);	
						?>
						<form class="stdform" action="changepw.php?no=<?php echo $no;?>"  method="post" name="changepw">
							<table width="50%">
								<tr>
									<td><label style="width:160px;">व्यक्तीची ओळख(User Id) : </label></td>
									<td><input type="text" value="<?php echo $username;?>" class="input-medium" readonly /></td>
								</tr>
								<tr>
									<td><label style="">नवीन पासवर्ड  : </label></td>
									<td><input type="password" name="newpass" class="input-medium" placeholder="नवीन पासवर्ड टाका"></td>
								</tr>
								<tr>
									<td><label style="width:130px;">पासवर्ड परत टाका  : </label></td>
									<td><input type="password" name="repass" class="input-medium" placeholder="पासवर्ड परत टाका " /></td>
								</tr>
							</table>                
							<p class="stdformbutton">
								<center><button class="btn btn-primary" onclick="return passwordValidation()">जतन करा </button>
                                <button type="reset" class="btn"> रद्द करा</button></center>
                            </p>
						</form>
					</div><!--widgetcontent-->
				</div><!--widget-->
                <?php include_once('footer.php'); ?>
            </div><!--maincontentinner-->
        </div><!--maincontent-->
    </div><!--rightpanel-->
</div><!--mainwrapper-->
</body>
</html>
<?php }
if($no=='Desk')	
{
include('dashboard_desk.php');
require_once('convert_marathi.php');
?>
<html> 
<head>
<script type="text/javascript" src="js/adduser.js"></script></head> 
<div class="rightpanel">
    <ul class="breadcrumbs">
        <li><a href="dashboard_desk.php"><i class="iconfa-home"></i></a> <span class="separator"></span></li>
        <li><a href="dashboard_desk.php">Forms</a> <span class="separator"></span></li>
        <li>पासवर्ड बदला</li>
    </ul>
    <div class="pageheader">
        <div class="pageicon"><span class="iconfa-pencil"></span></div>
        <div class="pagetitle">
            <h5>Forms</h5>
            <h1>पासवर्ड बदला</h1>
        </div>
    </div><!--pageheader-->
    <div class="maincontent">
        <div class="maincontentinner">
            <div class="widget">
				<h4 class="widgettitle">पासवर्ड बदला</h4>
				<div class="widgetcontent">
					<?php
					$newpass=$_POST['newpass'];
					$repass=$_POST['repass'];
					if($newpass!='')
					{
						$qry=("UPDATE login SET password='$newpass' WHERE login_id='$username'") or die("".mysql_query());
					}
					mysql_query($qry);	
					?>
					<form class="stdform" action="changepw.php?no=<?php echo $no;?>"  method="post" name="changepw">
						<table width="50%">
							<tr>
								<td><label style="width:160px;">व्यक्तीची ओळख(User Id) : </label></td>
								<td><input type="text" value="<?php echo $username;?>" class="input-medium" readonly /></td>
							</tr>
							<tr>
								<td><label style="">नवीन पासवर्ड  : </label></td>
								<td><input  type="password" name="newpass" class="input-medium" placeholder="नवीन पासवर्ड टाका"></td>
						    </tr>
                           <tr>
								<td><label style="width:130px;">पासवर्ड परत टाका  : </label></td>
								<td><input type="password" name="repass" class="input-medium" placeholder="पासवर्ड परत टाका " /></td>
							</tr>
						</table>                 
                        <center>  
						<p class="stdformbutton">
                            <button class="btn btn-primary" onclick="return passwordValidation()">जतन करा </button>
                            <button type="reset" class="btn"> रद्द करा</button>
                        </p>
						</center>
					</form>
				</div><!--widgetcontent-->
			</div><!--widget-->
			<?php include_once('footer.php'); ?>
        </div><!--maincontentinner-->
    </div><!--maincontent-->  
</div><!--rightpanel-->
</div><!--mainwrapper-->
</body>
</html>
<?php }
} //if($flag=='')

else if($flag=='n')
{
$no=$_REQUEST['no'];
$username = $_SESSION['User_Name'];
/*if($no=='BDO')	
{	
include('dashboard_bdo.php');
require_once('convert_marathi.php');
?>
<html> 
<head>
	<script type="text/javascript" src="js/adduser.js"></script></head> 
	<div class="rightpanel">
        <ul class="breadcrumbs">
            <li><a href="dashboard_bdo.php"><i class="iconfa-home"></i></a> <span class="separator"></span></li>
            <li><a href="dashboard_bdo.php">Forms</a> <span class="separator"></span></li>
            <li>पासवर्ड बदला </li>
        </ul>
        <div class="pageheader">
            <div class="pageicon"><span class="iconfa-pencil"></span></div>
            <div class="pagetitle">
                <h5>Forms</h5>
                <h1>पासवर्ड बदला</h1>
            </div>
        </div><!--pageheader--> 
        <div class="maincontent">
            <div class="maincontentinner">
				<div class="widget">
					<h4 class="widgettitle">पासवर्ड बदला</h4>
					<div class="widgetcontent">
						<?php
						$newpass=$_POST['newpass'];
						$repass=$_POST['repass'];
						if($newpass!='')
						{
							$qry=("UPDATE login SET password='$newpass' WHERE login_id='$username'") or die("".mysql_query());
						}
						mysql_query($qry);	
						?>
						<form class="stdform" action="changepw.php?no=<?php echo $no;?>"  method="post" name="changepw">
							<table width="50%">
								<tr>
									<td> <label style="width:160px;">व्यक्तीची ओळख(User Id) : </label></td>
									<td><input type="text" value="<?php echo $username;?>" class="input-medium" readonly /></td>
								</tr>
								<tr>
									<td><label style="">नवीन पासवर्ड  : </label></td>
									<td><input type="password" name="newpass" class="input-medium" placeholder="नवीन पासवर्ड टाका"></td>
								</tr>
								<tr>
									<td> <label style="width:130px;">पासवर्ड परत टाका  : </label></td>
									<td><input type="password" name="repass" class="input-medium" placeholder="पासवर्ड परत टाका " /></td>
								</tr>
							</table>
							<p class="stdformbutton">
								<center><button class="btn btn-primary" onclick="return passwordValidation()">जतन करा </button>
								<button type="reset" class="btn"> रद्द करा</button>
								</center>
							</p>
						</form>
					</div><!--widgetcontent-->
				</div><!--widget-->
                        <?php include_once('footer.php'); ?>  
			</div><!--maincontentinner-->
		</div><!--maincontent-->
	</div><!--rightpanel-->
</div><!--mainwrapper-->
</body>
</html>
<?php 
}
else if($no=='Tapal')	
	{
		include('dashboard_tapal.php');
		require_once('convert_marathi.php');
		?>
		<html> 
		<head>
			<script type="text/javascript" src="js/adduser.js"></script></head> 
			<div class="rightpanel">
				<ul class="breadcrumbs">
					<li><a href="dashboard_bdo.php"><i class="iconfa-home"></i></a> <span class="separator"></span></li>
					<li><a href="dashboard_bdo.php">Forms</a> <span class="separator"></span></li>
					<li>पासवर्ड बदला</li>
				</ul>
			<div class="pageheader">
				<div class="pageicon"><span class="iconfa-pencil"></span></div>
				<div class="pagetitle">
					<h5>Forms</h5>
					<h1>पासवर्ड बदला</h1>
				</div>
			</div><!--pageheader-->
			<div class="maincontent">
				<div class="maincontentinner">
					<div class="widget">
						<h4 class="widgettitle">पासवर्ड बदला</h4>
						<div class="widgetcontent">
							<?php
							$newpass=$_POST['newpass'];
							$repass=$_POST['repass'];
							if($newpass!='')
							{
								$qry=("UPDATE login SET password='$newpass' WHERE login_id='$username'") or die("".mysql_query());
							}
							mysql_query($qry);	
							?>
							<form class="stdform" action="changepw.php?no=<?php echo $no;?>"  method="post" name="changepw">
								<table width="50%">
									<tr>
										<td> <label style="width:160px;">व्यक्तीची ओळख(User Id) : </label></td>
										<td><input type="text" value="<?php echo $username;?>" class="input-medium" readonly /></td>
									</tr>
									<tr>
										<td><label style="">नवीन पासवर्ड  : </label></td>
										<td><input type="password" name="newpass" class="input-medium" placeholder="नवीन पासवर्ड टाका"></td>
									</tr>
									<tr>
										<td><label style="width:130px;">पासवर्ड परत टाका  : </label></td>
										<td><input type="password" name="repass" class="input-medium" placeholder="पासवर्ड परत टाका"/></td>
									</tr>
								</table>            
								<p class="stdformbutton">
									<center>  <button class="btn btn-primary" onclick="return passwordValidation()">जतन करा </button>
									<button type="reset" class="btn"> रद्द करा</button></center>
								</p>
							</form>
						</div><!--widgetcontent-->
					</div><!--widget-->
                    <?php include_once('footer.php'); ?>
				</div><!--maincontentinner-->
			</div><!--maincontent-->
		</div><!--rightpanel-->
</div><!--mainwrapper-->
</body>
</html>
<?php 
}
else*/ if($no=='Department')
{
include('new_dashboard_department.php');
?>
<html> 
<head>
<script type="text/javascript" src="js/adduser.js"></script></head> 
<div class="rightpanel">
    <ul class="breadcrumbs">
        <li><a href="dashboard_department.php"><i class="iconfa-home"></i></a> <span class="separator"></span></li>
        <li><a href="dashboard_department.php">Forms</a> <span class="separator"></span></li>
        <li>पासवर्ड बदला</li>
    </ul>
    <div class="pageheader">
        <div class="pageicon"><span class="iconfa-pencil"></span></div>
        <div class="pagetitle">
             <h5>Forms</h5>
             <h1>पासवर्ड बदला</h1>
         </div>
    </div><!--pageheader-->
        <div class="maincontent">
            <div class="maincontentinner">
				<div class="widget">
					<h4 class="widgettitle">पासवर्ड बदला</h4>
					<div class="widgetcontent">
						<?php
						$newpass=$_POST['newpass'];
						$repass=$_POST['repass'];
						if($newpass!='')
						{
							$qry=("UPDATE login SET password='$newpass' WHERE login_id='$username'") or die("".mysql_query());
						}
						mysql_query($qry);	
						?>
						<form class="stdform" action="changepw.php?no=<?php echo $no;?>"  method="post" name="changepw">
							<table width="50%">
								<tr>
									<td><label style="width:160px;">व्यक्तीची ओळख(User Id) : </label></td>
									<td><input type="text" value="<?php echo $username;?>" class="input-medium" readonly /></td>
								</tr>
								<tr>
									<td><label style="">नवीन पासवर्ड  : </label></td>
									<td><input type="password" name="newpass" class="input-medium" placeholder="नवीन पासवर्ड टाका"></td>
								</tr>
								<tr>
									<td><label style="width:130px;">पासवर्ड परत टाका  : </label></td>
									<td><input type="password" name="repass" class="input-medium" placeholder="पासवर्ड परत टाका " /></td>
								</tr>
							</table>                
							<p class="stdformbutton">
								<center><button class="btn btn-primary" onclick="return passwordValidation()">जतन करा </button>
                                <button type="reset" class="btn"> रद्द करा</button></center>
                            </p>
						</form>
					</div><!--widgetcontent-->
				</div><!--widget-->
                <?php include_once('footer.php'); ?>
            </div><!--maincontentinner-->
        </div><!--maincontent-->
    </div><!--rightpanel-->
</div><!--mainwrapper-->
</body>
</html>
<?php }
/*if($no=='Desk')	
{
include('dashboard_desk.php');
require_once('convert_marathi.php');
?>
<html> 
<head>
<script type="text/javascript" src="js/adduser.js"></script></head> 
<div class="rightpanel">
    <ul class="breadcrumbs">
        <li><a href="dashboard_desk.php"><i class="iconfa-home"></i></a> <span class="separator"></span></li>
        <li><a href="dashboard_desk.php">Forms</a> <span class="separator"></span></li>
        <li>पासवर्ड बदला</li>
    </ul>
    <div class="pageheader">
        <div class="pageicon"><span class="iconfa-pencil"></span></div>
        <div class="pagetitle">
            <h5>Forms</h5>
            <h1>पासवर्ड बदला</h1>
        </div>
    </div><!--pageheader-->
    <div class="maincontent">
        <div class="maincontentinner">
            <div class="widget">
				<h4 class="widgettitle">पासवर्ड बदला</h4>
				<div class="widgetcontent">
					<?php
					$newpass=$_POST['newpass'];
					$repass=$_POST['repass'];
					if($newpass!='')
					{
						$qry=("UPDATE login SET password='$newpass' WHERE login_id='$username'") or die("".mysql_query());
					}
					mysql_query($qry);	
					?>
					<form class="stdform" action="changepw.php?no=<?php echo $no;?>"  method="post" name="changepw">
						<table width="50%">
							<tr>
								<td><label style="width:160px;">व्यक्तीची ओळख(User Id) : </label></td>
								<td><input type="text" value="<?php echo $username;?>" class="input-medium" readonly /></td>
							</tr>
							<tr>
								<td><label style="">नवीन पासवर्ड  : </label></td>
								<td><input  type="password" name="newpass" class="input-medium" placeholder="नवीन पासवर्ड टाका"></td>
						    </tr>
                           <tr>
								<td><label style="width:130px;">पासवर्ड परत टाका  : </label></td>
								<td><input type="password" name="repass" class="input-medium" placeholder="पासवर्ड परत टाका " /></td>
							</tr>
						</table>                 
                        <center>  
						<p class="stdformbutton">
                            <button class="btn btn-primary" onclick="return passwordValidation()">जतन करा </button>
                            <button type="reset" class="btn"> रद्द करा</button>
                        </p>
						</center>
					</form>
				</div><!--widgetcontent-->
			</div><!--widget-->
			<?php include_once('footer.php'); ?>
        </div><!--maincontentinner-->
    </div><!--maincontent-->  
</div><!--rightpanel-->
</div><!--mainwrapper-->
</body>
</html>
<?php }*/
} // else if($flag=='n')
 ?>

