<!DOCTYPE html>
<html lang="en" class="coming-soon">
    
    <? include "includes/head.php";?>
    
    <body class="animated-content infobar-overlay">
        
        
<? include "includes/header.php";?>

        <div id="wrapper">
            <div id="layout-static">
                
                <!--========   side bar   ===========-->
                <? include "includes/sidemenu.php";?>  
                <!--========================================-->
                
                <div class="static-content-wrapper">
                    <div class="static-content">
                        <div class="page-content">
                            <ol class="breadcrumb">
                                
<li class=""><a href="index.html">Home</a></li>
<li class="active"><a href="index.html">Add Field</a></li></ol>
                           
                            <div class="container-fluid">
                                

<!--====================================-->
<div data-widget-group="group1">
    <div class="row">
<div class="col-sm-12">
<div class="panel panel-primary" data-widget='{"draggable": "false"}'>
				<div class="panel-heading">
					<h2>Add Field</h2>	
                                                                                                                           
				</div>
				<div class="panel-body">
					<div class="tab-content">
						<div class="tab-pane active" id="horizontal-form">
                                                    <form class="form-horizontal" id="editprof" action="" method="post" enctype="multipart/form-data">
                                                        <div class="form-group">
                                                                    
                                                                    <label for="focusedinput" class="col-sm-2 control-label">                                                                                                                                            
                                                                            <?
                                                                            if(isset($message))
                                                                            {
                                                                                echo "<p class='has-success2'>".$message."</p>";
                                                                            }                                                                            
                                                                            ?>
                                                                    </label>
                                                            </div>
                                                            
								<div class="form-group">
                                                                    
                                                                                                                                        
									<label for="focusedinput" class="col-sm-2 control-label">Field Label</label>
									<div class="col-sm-8">
                                                                            
                                                                            
                                                                            
                                                                            <div class="radio block"><label>
                                                                            <?php                                                                                                                                                                                                                                   
                                                                                $data = array(
                                                                                          "name"        => "txt_title",                                                                                             
                                                                                          "id"          => "txt_titleid",                                                                                             
                                                                                          "type"        => "text"                                                                                          
                                                                                        );                                                                                   
                                                                                echo form_input($data);
                                                                            ?>                                                                                    
                                                                            </label>
                                                                            <?php echo form_error('txt_title','<p class="has-error2">', '</p>'); ?>
                                                                            </div>                                                                                                                                                                                                                                    
									</div>
									
								</div>
								
								<!--============================================-->
								
                                                                <div class="form-group">
									<label for="focusedinput" class="col-sm-2 control-label">Field Type</label>
									<div class="col-sm-8">
                                                                            
                                                                            
                                                                            
                                                                            <div class="radio block"><label>
                                                                            <?php                                                                                                                                                                                                                                   
                                                                                $options = array(
                                                                                        '0'              => 'Text',
                                                                                        '1'              => 'Mutiple Choice'                                                                                        
                                                                                );
                                                                                $js = array(
                                                                                        'id'             => 'type',
                                                                                        'onChange'       => 'view_field()'                                                                                        
                                                                                );
                                                                                //$shirts_on_sale = array('small', 'large');
                                                                                echo form_dropdown('txt_type', $options, '0', $js);
                                                                            ?>                                                                                    
                                                                            </label>
                                                                             
                                                                            <div id="field_cont" style="display: none">
                                                                                <?php                                                                                                                                                                                                                                   
                                                                                $options2 = array();    
                                                                                $mutiple = array();
                                                                                
                                                                                foreach($choices as $ch)
                                                                                {
                                                                                    $options2[$ch->ChoiceID] = $ch->Choice;                                                                                                                                                                        
                                                                                }
                                                                                
                                                                                
                                                                                echo form_multiselect('txt_choices[]', $options2, $mutiple);
                                                                            ?>     
                                                                            </div>
                                                                                                                                                                                                                                                    
                                                                            <?php echo form_error('txt_type','<p class="has-error2">', '</p>'); ?>
                                                                            </div>                                                                                                                                                                                                                                    
									</div>									
								</div>
                                                                
                                                                <!--============================================-->
                                                                
                                                                
                                                                
                                                                
                                                                <div class="form-group">
									<label for="focusedinput" class="col-sm-2 control-label">Is Active?</label>
									<div class="col-sm-8">
                                                                                                                                                                                                                                    
                                                                            <div class="radio block"><label>
                                                                            <?php                                                                                                                                                       
                                                                            
                                                                                $data = array(
                                                                                          "name"           => "txt_active",   
                                                                                          "value"          => 1,
                                                                                          "checked"        => "checked",
                                                                                          "type"           => "radio"                                                                                          
                                                                                        );        
                                                                            
                                                                            echo form_input($data);
                                                                            ?>
                                                                                    Yes
                                                                            </label></div>
                                                                            
                                                                            
                                                                        <div class="radio block"><label>
                                                                            <?php                                                                                                                                                                                                                                   
                                                                                $data = array(
                                                                                          "name"         => "txt_active",   
                                                                                          "value"        => 0,                                                                                          
                                                                                          "type"         => "radio"                                                                                          
                                                                                        );                                                                                    
                                                                            echo form_input($data);
                                                                            ?>
                                                                            No
                                                                        </label>
                                                                        <?php echo form_error('txt_active','<p class="has-error2">', '</p>'); ?>
                                                                        </div>
									</div>									
								</div>
                                                                
                                                                
                                                                
							</form>
						</div>
																								
					</div>
				</div>
				<div class="panel-footer">
					<div class="row">
						<div class="col-sm-8 col-sm-offset-2">
                                                    <button class="btn-raised btn-primary btn" form="editprof">Submit</button>
							<button class="btn-default btn">Cancel</button>
						</div>
					</div>
				</div>
			</div>
</div>
        </div>
    </div>
<!--=========================================-->


                            </div> <!-- .container-fluid -->
                        </div> <!-- #page-content -->
                    </div>
                    <footer role="contentinfo">
    <div class="clearfix">
        <ul class="list-unstyled list-inline pull-left">
            <li><h6 style="margin: 0;">&copy; 2016 Dental</h6></li>
        </ul>
    </div>
</footer>

                </div>
            </div>
        </div>

        
        </div>

    
    
    
    <!-- Load site level scripts -->    
    <? include "includes/footer.php";?>    
    <!-- End loading site level scripts -->
    
    <!-- Load page level scripts-->
    
<!-- Charts -->
<script src="<?=base_url()?>assets/plugins/charts-flot/jquery.flot.min.js"></script>                 <!-- Flot Main File -->
<script src="<?=base_url()?>assets/plugins/charts-flot/jquery.flot.pie.min.js"></script>             <!-- Flot Pie Chart Plugin -->
<script src="<?=base_url()?>assets/plugins/charts-flot/jquery.flot.stack.min.js"></script>           <!-- Flot Stacked Charts Plugin -->
<script src="<?=base_url()?>assets/plugins/charts-flot/jquery.flot.resize.min.js"></script>          <!-- Flot Responsive -->
<script src="<?=base_url()?>assets/plugins/charts-flot/jquery.flot.tooltip.min.js"></script>         <!-- Flot Tooltips -->
<script src="<?=base_url()?>assets/plugins/charts-flot/jquery.flot.spline.js"></script>              <!-- Flot Curved Lines -->
<script src="<?=base_url()?>assets/plugins/easypiechart/jquery.easypiechart.min.js"></script>        <!-- EasyPieChart-->
<script src="<?=base_url()?>assets/plugins/curvedLines-master/curvedLines.js"></script>              <!-- marvinsplines -->

<script src="<?=base_url()?>assets/plugins/form-daterangepicker/moment.min.js"></script>             <!-- Moment.js for Date Range Picker -->

                 <!-- Date Range Picker -->
<script src="<?=base_url()?>assets/plugins/bootstrap-datepicker/bootstrap-datepicker.js"></script>               <!-- Datepicker -->
<!-- <script src="assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script> --> <!-- DateTime Picker -->

<!-- <script src="assets/plugins/jvectormap/jquery-jvectormap-2.0.2.min.js"></script>   -->    <!-- jVectorMap -->
<!-- <script src="assets/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>  --> <!--World Map-->
<script src="<?=base_url()?>assets/plugins/chartist/dist/chartist.min.js"></script> <!-- chartist -->
<script src="<?=base_url()?>assets/demo/demo-index.js"></script>                                     <!-- Initialize scripts for this page-->


<script>
    function view_field()
    {
        id = $("#type").val();
        if(id == 0)
        {
            $("#field_cont").hide();
        }
        else
        {
            $("#field_cont").show();
        }
    }
</script>

    <!-- End loading page level scripts-->
    </body>
</html>