korsygfhrtzangaiide
Elepffwdsff
/
home3
/
nmslyumy
/
public_html
/
odishaexpress
/
oe-admin
/
view
/
Upload FileeE
HOME
<div id="content" class="col-lg-10 col-sm-10"> <!-- content starts --> <div> <ul class="breadcrumb"> <li> <a href="home.php?page=dash-board">Home</a> </li> <li> <a href="#">Add New Main Menu</a> </li> </ul> </div> <div class="row"> <div style="text-align:center"><?php include("controller/msg.php"); ?></div> <div class="box col-md-12"> <div class="box-inner"> <div class="box-header well" data-original-title=""> <h2><i class="glyphicon glyphicon-edit"></i> Add New Main Menu</h2> <div class="box-icon"> <a href="#" class="btn btn-setting btn-round btn-default"><i class="glyphicon glyphicon-cog"></i></a> <a href="#" class="btn btn-minimize btn-round btn-default"><i class="glyphicon glyphicon-chevron-up"></i></a> <a href="#" class="btn btn-close btn-round btn-default"><i class="glyphicon glyphicon-remove"></i></a> </div> </div> <div class="box-content" style="min-height:500px;"> <form role="form" method="post" enctype="multipart/form-data"> <div class="form-group"> <label for="exampleInputEmail1">Menu Name</label> <input type="text" name="mnu" class="form-control" id="exampleInputEmail1" placeholder="Menu Name" value="<?php echo $edt['its_menuname']; ?>" required> </div> <div class="form-group"> <label for="exampleInputEmail1">Position</label><br/> <select name="pos" id="pos" style="width:120px; height:30px;" required> <option value="">-select-</option> <?php $row=$conn->query("select * from its_menu"); $numrw=$row->num_rows; for($i=1; $i<=$numrw+1;$i++){?> <option value="<?php echo $i?>" <?php if($edt['its_position']==$i){?> selected="selected" <?php }?>><?php echo $i?></option> <?php } ?> </select> </div> <div class="col-md-12"> <div class="col-md-3"> <div class="form-group"> <label for="exampleInputEmail1">Page</label> <select name="pglnk" id="pglnk" class="form-control"> <option value="">-select page-</option> <?php $pgl=$conn->query("select * from its_page"); while($allpg=$pgl->fetch_array()){?> <option value="<?php echo $allpg['its_pid'];?>" <?php if($edt['its_pagelink']==$allpg['its_pid']){?> selected="selected" <?php }?> ><?php echo $allpg['its_ptitle'];?></option> <?php } ?> <option value="EventsPage" <?php if($edt['its_pagelink']=="EventsPage"){?> selected="selected" <?php }?>>Events</option> <option value="ClasifiedAdPage" <?php if($edt['its_pagelink']=="ClasifiedAdPage"){?> selected="selected" <?php }?>>Clasified Ad</option> <option value="JobPage" <?php if($edt['its_pagelink']=="JobPage"){?> selected="selected" <?php }?>>JobPage</option> <option value="ContactPage" <?php if($edt['its_pagelink']=="ContactPage"){?> selected="selected" <?php }?>>Contact Us</option> </select> </div> </div> <div class="col-md-1"> <div class="form-group"> <label for="exampleInputEmail1"> <div style="padding-top:28px;">OR </div></label> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="exampleInputEmail1">External Link </label>( http://google.com ) <input type="url" name="url" class="form-control" value="<?php echo $edt['its_url'];?>"> </div> </div> <div class="col-md-1"> <div class="form-group"> <label for="exampleInputEmail1"> <div style="padding-top:28px;">OR </div></label> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="exampleInputEmail1">File Upload</label> (Upload .word or .pdf file) <input type="file" name="docc" class="form-control"> </div> </div> </div> <?php if(!empty($_GET['eid'])){?> <button type="submit" class="btn btn-primary" name="update">Submit</button> <?php } else {?> <button type="submit" class="btn btn-primary" name="save">Submit</button> <?php }?> </form> </div> </div> </div> <!--/span--> </div>