Current File : /home/inlingua/public_html/sensoriumpsychologists.com/diagnostics/admin/add_treatment_1.php
<?php require_once("../franchise_between/admin_constants.php");?>
<?php require_once("../franchise_between/check_admin.php");?>
<?php require_once("../franchise_between/user_details_msg_setup.php");?>
<?php require_once("../franchise_back/connection.php");?>
<?php require_once("../franchise_back/database_admin.php");?>
<?php require_once("../franchise_back/validate_admin.php");?>
<?php require_once("../franchise_between/admin.php");?>
<?php
if(!isset($_GET['code']) || ($_GET['code']=="") || !isset($_GET['std']) || ($_GET['std']=="") || !isset($_GET['month']) || ($_GET['month']==""))
{
	header('location:index.php');
	exit(EXIT_ERROR);
}
if(isset($_POST['submit_type_1']))// ac paragraph type 1
{
	extract($_POST);
	$fetch_obj=new admin;
	$response=$fetch_obj->add_treatment_type_1($_GET['code'],$_GET['std'],$_GET['month'],$week,$day,$paragraph_1,$one_word_title_1,$blanks_title_1,$true_false_title_1,$question_1_1,$question_1_2,$question_1_3);
	if($response=="ok")
	{
		$msg_print="Succssfully added...!!!";
		$temp_filename=urlencode("treatment_week_day.php?code=".$_GET['code']."&std=".$_GET['std']."&month=".$_GET['month']);
	}
	else
	{
		$msg_print=$response;
		$temp_filename=urlencode("add_treatment_1.php?code=".$_GET['code']."&std=".$_GET['std']."&month=".$_GET['month']);
	}
	header("location:redirect_msg.php?q=".$temp_filename."&msg=".$msg_print);
	exit(EXIT_ERROR);
}
if(isset($_POST['submit_type_2']))// ad type 1
{
	extract($_POST);
	$fetch_obj=new admin;
	$response=$fetch_obj->add_treatment_type_2($_GET['code'],$_GET['std'],$_GET['month'],$week,$day,$question_heading,$sound,$words,$sentences,$blanks,$true_false);
	if($response=="ok")
	{
		$msg_print="Succssfully added...!!!";
		$temp_filename=urlencode("treatment_week_day.php?code=".$_GET['code']."&std=".$_GET['std']."&month=".$_GET['month']);
	}
	else
	{
		$msg_print=$response;
		$temp_filename=urlencode("add_treatment_1.php?code=".$_GET['code']."&std=".$_GET['std']."&month=".$_GET['month']);
	}
	header("location:redirect_msg.php?q=".$temp_filename."&msg=".$msg_print);
	exit(EXIT_ERROR);
}
if(isset($_POST['submit_type_3']))// vddl,vddm,vddn,vdds,vddw type 1
{
	extract($_POST);
	$fetch_obj=new admin;
	$response=$fetch_obj->add_treatment_type_3($_GET['code'],$_GET['std'],$_GET['month'],$week,$day,$title,$question_1,$question_2,$question_3,$question_4,$question_5,$question_6,$question_7,$question_8,$question_9,$question_10,$question_11,$question_12,$question_13,$question_14,$question_15);
	if($response=="ok")
	{
		$msg_print="Succssfully added...!!!";
		$temp_filename=urlencode("treatment_week_day.php?code=".$_GET['code']."&std=".$_GET['std']."&month=".$_GET['month']);
	}
	else
	{
		$msg_print=$response;
		$temp_filename=urlencode("add_treatment_1.php?code=".$_GET['code']."&std=".$_GET['std']."&month=".$_GET['month']);
	}
	header("location:redirect_msg.php?q=".$temp_filename."&msg=".$msg_print);
	exit(EXIT_ERROR);
}
if(isset($_POST['submit_type_4']))// vdll,vdlm,vdln,vdls,vdlw type 1
{
	extract($_POST);
	$fetch_obj=new admin;
	$response=$fetch_obj->add_treatment_type_4($_GET['code'],$_GET['std'],$_GET['month'],$week,$day,$title,$answer_1,$answer_2,$answer_3,$answer_4,$answer_5,$answer_6,$answer_7,$answer_8,$answer_9,$answer_10,$answer_11,$answer_12,$answer_13,$answer_14,$answer_15,$question_1,$question_2,$question_3,$question_4,$question_5,$question_6,$question_7,$question_8,$question_9,$question_10,$question_11,$question_12,$question_13,$question_14,$question_15);
	if($response=="ok")
	{
		$msg_print="Succssfully added...!!!";
		$temp_filename=urlencode("treatment_week_day.php?code=".$_GET['code']."&std=".$_GET['std']."&month=".$_GET['month']);
	}
	else
	{
		$msg_print=$response;
		$temp_filename=urlencode("add_treatment_1.php?code=".$_GET['code']."&std=".$_GET['std']."&month=".$_GET['month']);
	}
	header("location:redirect_msg.php?q=".$temp_filename."&msg=".$msg_print);
	exit(EXIT_ERROR);
}
if(isset($_POST['submit_type_5']))// vdr type 1
{
	extract($_POST);
	$fetch_obj=new admin;
	$response=$fetch_obj->add_treatment_type_5($_GET['code'],$_GET['std'],$_GET['month'],$week,$day,$title);
	if($response=="ok")
	{
		$msg_print="Succssfully added...!!!";
		$temp_filename=urlencode("treatment_week_day.php?code=".$_GET['code']."&std=".$_GET['std']."&month=".$_GET['month']);
	}
	else
	{
		$msg_print=$response;
		$temp_filename=urlencode("add_treatment_1.php?code=".$_GET['code']."&std=".$_GET['std']."&month=".$_GET['month']);
	}
	header("location:redirect_msg.php?q=".$temp_filename."&msg=".$msg_print);
	exit(EXIT_ERROR);
}
?>
<!DOCTYPE html>
<html>
  <head>
    <?php require("common/head_links.php");?>
    
  </head>
  <body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">

      <?php require("common/header.php");?>
      
      <?php require("common/left_side_bar.php");?>

      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Add Treatment for<br>
            Code - <?php echo($_GET['code']);?><br>
            Std - <?php echo($_GET['std']);?><br>
            Month - <?php echo($_GET['month']);?>
          </h1>
        </section>
        
        <!-- Main content -->
        <section class="content">
        	<div class="row" style="margin-top:20px;">
            
            <?php
			if($_GET['code']=="ac")
			{
				include("designs/ac_1.php");
			}
			else if($_GET['code']=="AD")
			{
				include("designs/ad_1.php");
			}
			else if(($_GET['code']=="vddl")||($_GET['code']=="vddm")||($_GET['code']=="vddn")||($_GET['code']=="vdds")||($_GET['code']=="vddw"))
			{
				include("designs/vddl_1.php");
			}
			else if(($_GET['code']=="vdll")||($_GET['code']=="vdlm")||($_GET['code']=="vdln")||($_GET['code']=="vdls")||($_GET['code']=="vdlw"))
			{
				include("designs/vdll_1.php");
			}
			else if($_GET['code']=="VDR")
			{
				include("designs/vdr_1.php");
			}
			?>
        
        <!-- /.col --> 
      </div>
        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->
      <?php require("common/footer.php");?>

      

    </div><!-- ./wrapper -->
<?php require("common/footer_links.php");?>
  </body>
</html>