<?php
 include('dashboard_bdo.php');
require_once('convert_marathi.php');
 ?><html> 
<head>
<script type="text/javascript" src="js/adduser.js"></script> 
</head>
    <div class="rightpanel">	
		<?php
		 $no=$_GET['no'];
		 ###############################Add New Stamp################################
		 if($no==1)
		 {
		?>   <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></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/addnewstamp.php" method="post" name="addstamp">
						       <table width="40%">
							   <tr>
							   <td>
                                <label>तिकिटाचे नाव टाका : </label></td>
                                <td><input type="text" name="stampnm" class="input-medium" placeholder="तिकिटाचे नाव टाका उदा. Rs.5" /></td>
								</tr>
								</table>
                                <center>         
                                <p class="stdformbutton">
							    <center> <button class="btn btn-primary" name="save" onclick="return validateaddStamp()">जतन करा </button>
                                <button type="reset" class="btn">रद्द करा </button>
								</center>
                                </p>
								
						  </form>
				
				</div><!--maincontentinner-->
			</div><!--maincontent-->
            <?php include_once('footer.php');?>
    </div><!--rightpanel-->
</div><!--mainwrapper-->
</body>
</html>
 <?php  } ###############################End Of Add New Stamp################################
else if($no==2)
		{ ###############################Update New Stamp################################
	?>  <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></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/addnewstamp.php" method="post" name="updatestamp">
								<table width="40%">
									<tr>
										<td><label style="width:140px;">तिकिटाचे नाव निवडा : </label></td>
										<td>
											<?php
											$query = "SELECT  * FROM stamp_master"; 
											$result = mysql_query ($query);
											echo "<select name=stampid>Dropdown</option><option value=>तिकिटाचे नाव निवडा</option>";
											while($row = mysql_fetch_array($result))
												{
													echo "<option value=$row[stamp_id]>".$row[stamp_nm]."</option>"; 
												}
											echo "</select>";
											?> 
										</td>
									</tr>
									<tr>
										<td><label>तिकिटाचे नाव टाका : </label></td>
										<td><input type="text" name="stampnm" class="input-medium" placeholder="तिकिटाचे नाव टाका" /></td>
									</tr>
								</table>
								<center>
								<p class="stdformbutton">
									<center>
										<button class="btn btn-primary" name="saveup" onclick="return validateupdateStamp()">अद्यावात करा </button>
										<button type="reset" class="btn">रद्द करा </button>
									</center>
								</p>	
							</form>
<?php
}###############################End Of Update New Stamp##############################
?>     
						</div><!--widgetcontent-->	
				</div><!--widget--> 
        <?php include_once('footer.php');?>				
			</div><!--maincontentinner-->
		</div><!--maincontent-->
    </div><!--rightpanel-->
</div><!--mainwrapper-->
</body>
</html>