Mini Shell

Direktori : /home/athamevents/public_html/admin/
Upload File :
Current File : /home/athamevents/public_html/admin/add_cat.php

<?php include'header.php'; ?>

        <?php include'menu.php'; ?>


         <!-- /#Start -->
          
       <!-- /#Start -->
          
      </div><!-- /#left -->
        
      <div id="content">
        <div class="outer">
          <div class="inner bg-light lter">
            <style>
              .form-control.col-lg-6 {
                width: 50% !important;
              }
            </style>
              
              
              <script>
             function  back()
               {
                 window.location.href="profile_view.php";  
               }
              </script>
             
              
              
              
              
              
              
              
            <div class="row">
              <div class="col-lg-12">
                <div class="box">
                  <header class="dark">
                    <div class="icons">
                      <i class="fa fa-check"></i>
                    </div>
                    <h5>New Category Add</h5>

                    <!-- .toolbar -->
                    <div class="toolbar">
                      <nav style="padding: 8px;">
                        <a href="javascript:;" class="btn btn-default btn-xs collapse-box">
                          <i class="fa fa-minus"></i>
                        </a> 
                        <a href="javascript:;" class="btn btn-default btn-xs full-box">
                          <i class="fa fa-expand"></i>
                        </a> 
                        <a href="javascript:;" class="btn btn-danger btn-xs close-box">
                          <i class="fa fa-times"></i>
                        </a> 
                      </nav>
                    </div><!-- /.toolbar -->
                  </header>
                    
                    
                    
                      <div id="collapse2" class="body">
                          
                         
                    <form class="form-horizontal" id="popup-validation" action="cat_insert.php" method="post" enctype="multipart/form-data">
                        
             <h1 align="center">Add Category</h1>
              
                        
                       
                        
                      <div class="form-group">
                        <label class="control-label col-lg-4">Category</label>
                        <div class="col-lg-4">
                          <input type="text"  class="validate[required] form-control" name="name"   required>
                        </div>
                      </div>
                      
                      
                     
                     
                        
                   
                    
                      
                      
                      <div class="form-actions no-margin-bottom" align="center">
                        <input type="submit" value="Add" class="btn btn-primary">
                              
                      </div>
                    
             
                      
                        
                    </form>
                          
                          <br/><br/><br/>
                          
          
                          
                          
                  </div>
                    
                    
                   
                    
                    <div id="collapse4" class="body">
                    <table id="dataTable" class="table table-bordered table-condensed table-hover table-striped">
                      <thead>
                        <tr>
                          <th>Category</th>
                          <th>Remove</th>
                           
                        </tr>
                      </thead>
                      <tbody>
                          
                          
                    <script>
  
function myFunction(e) {
     if(e)
   

 var cn=e;
    if (confirm("Are you Want to Delete!") == true) {

         
        
		window.location.href = "cat_delete.php?pp1="+ cn;
	  
	 
	   
		
    } else {
       
    }
 
   
}
</script>

                          
                          
                          
                          
                          
                          
                          
                         <?php
	
	  $producpro=mysql_query("select * from cat");
while($producprofetch=mysql_fetch_row($producpro))
{   
   		       	
	  ?>
	
	 <tr>
	 
	  <td id="<?php echo $producprofetch[0];?>" onClick="funproduc(this.id);"><?php echo $producprofetch[1];?></td>
	
	
	  <td><button type="submit" class="btn btn-danger" id="<?php echo $producprofetch[0];?>" onClick="myFunction(this.id);">&#10006;</button></td>
		 
	 </tr>
	  
		<?php
		}
		?>
                       
                      </tbody>
                    </table>
                  </div>
                    
                    
                </div>
              </div><!-- /.col-lg-12 -->
            </div><!-- /.row -->
           
              
              
            
          </div><!-- /.inner -->
        </div><!-- /.outer -->
      </div><!-- /#content -->
      
    </div><!-- /#wrap -->


        
     

      
              <?php include'footer.php'; ?>
      
  

Zerion Mini Shell 1.0