<?php 
require_once('convert_marathi.php');
include('dashboard_bdo.php');
?>
<html> 
	<head>
		<script type="text/javascript" src="js/adduser.js"></script> 
	</head>
	<div class="rightpanel">
		<?php
			 $no=$_GET['no'];
			 //echo "id is".$no;
			 if($no==1)
				{
				###################### //Add New Sandharbh#########################	
		?>
		<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"></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">
					<form class="stdform" action="./connection/addnewsandharbha.php" method="post" name="addsandharbh">
						<table>
						<tr>
                            <td><label style="width:160px;">संदर्भाचे नाव टाका  : </label></td>
                            <td><span class="field"><input type="text" name="sandharbhnm" class="input-medium unicode" placeholder="संदर्भाचे नाव टाका" lang="mr" /></span>
                        </td>
						</tr>
						</table>
                         <div>                       
                            <p class="stdformbutton">
                                <center><button class="btn btn-primary" name="save" onclick="return validateaddSandarbh()">जतन करा </button>                               
                                <button type="reset" class="btn">रद्द करा</button></center>
                            </p>
						</div>
                  </form>
				  <!-- Edit-->
		 <?php  }
				##################### //End Of Add New Sandharbh#######################
		else if($no==2)
				{
				#############################//Code TO Update Sandharbh#################################
				?>
					<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"></a> <span class="separator"></span></li>
						<li>संदर्भ अद्यावत करा</li>
					</ul>
					<div class="pageheader">
						<div class="pageicon"><span class="iconfa-pencil"></span></div>
						<div class="pagetitle">
							<h1>संदर्भ अद्यावत करा</h1>
						</div>
					</div><!--pageheader-->
					<div class="maincontent">
						<div class="maincontentinner">
							<div class="widget">
								<h4 class="widgettitle">संदर्भ अद्यावत करा</h4>
									<div class="widgetcontent">
										<form class="stdform" action="./connection/addnewsandharbha.php" method="post" name="updatesandharbh">
											<table>
												<td><label style="width:160px;">संदर्भ प्रकार निवडा : </label></td>
												<td><span class="field unicode" lang="mr">
												<?php
													convert_marathi();
													$query = "SELECT  * FROM sandharbh_master";
													$result = mysql_query ($query);
													echo "<select name=sandharbh_id><option value=>संदर्भ प्रकार निवडा </option>";
													while($row = mysql_fetch_array($result))
													{
														echo "<option value=$row[sandhrbh_id]>".$row[sandharbh_nm]."</option>"; 
													}
													echo "</select>";
												?>
												</span></td>
											</tr>
											<tr>
												<td><label style="width:160px;">संदर्भाचे नाव टाका : </label></td>
												<td><span class="field"><input type="text" name="sandharbh_nm" class="input-medium unicode" lang="mr" placeholder="संदर्भाचे नाव टाका" /></span>
											</td>
											</tr>
											</table>
											<p class="stdformbutton">
												<center> <button class="btn btn-primary" name="saveup" onclick="return validateupdateSandarbh()">अद्यावात करा </button>
												<button type="reset" class="btn">रद्द करा</button></center>
											</p>
										</form>
			<?php  }
						###########################//End Of Code TO Update Sandharbh############################
					?>
								</div><!--widgetcontent-->
							</div><!--widget-->
                        <?php include_once('footer.php'); ?>
            </div><!--maincontentinner-->
        </div><!--maincontent-->
    </div><!--rightpanel-->
</div><!--mainwrapper-->
</body>
</html>
