Current File : /home/inlingua/public_html/sensoriumpsychologists.com/backup/diagnostics/admin/index.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
/*$new_conn = new mysqli($GLOBALS['host_db'], $GLOBALS['user_db'], $GLOBALS['pass_db'], $GLOBALS['name_db']);
if ($new_conn->connect_error) 
{
	die("Connection failed: " . $new_conn->connect_error);
}
$new_conn->query("START TRANSACTION");
$res=$new_conn->query("SELECT table_id FROM shristi_treatments_main_questions WHERE treatment_code IN (6,7,8,10,11,12,13,14)");
while($detail=$res->fetch_assoc())
{
	$res_2=$new_conn->query("SELECT question,type FROM shristi_treatments_sub_questions WHERE sub_treatment_codes ='{$detail['table_id']}' AND type='13'");
	while($detail_2=$res_2->fetch_assoc())
	{
		if(strpos($detail_2['question'], 'Rewrite') !== false)
		{
			$tmp_array=explode("<br /><br />",$detail_2['question']);
			$new_code=strtoupper("VDSW".$tmp_array[1]);
			
			$new_code=$new_conn->real_escape_string($new_code);
			
			$prep="INSERT INTO shristi_treatments(name,for_std,for_month,description,code,for_week,for_day) VALUES('treatment','1','1','$new_code','$new_code','1','1')";
			if(!$new_conn->query($prep))
			{
				$new_conn->rollback();
				$new_conn->close();
				echo($prep);
				exit();
			}
			
			$generated_id=$new_conn->insert_id;
			$new_conn->query("UPDATE shristi_treatments_main_questions SET treatment_code='$generated_id' WHERE table_id='{$detail['table_id']}'");
		}
	}
}
$new_conn->query("DELETE FROM shristi_treatments WHERE code LIKE ('%VDSW%') AND table_id BETWEEN '23' AND '542'");
$new_conn->commit();
$new_conn->close();
exit("done");*/

/*$new_conn = new mysqli($GLOBALS['host_db'], $GLOBALS['user_db'], $GLOBALS['pass_db'], $GLOBALS['name_db']);
if ($new_conn->connect_error) 
{
	die("Connection failed: " . $new_conn->connect_error);
}
$new_conn->query("START TRANSACTION");
$res=$new_conn->query("SELECT * FROM shristi_treatments WHERE code IN ('AD','VMC') AND for_std='1'");
while($detail=$res->fetch_assoc())
{
	$detail['name']=$new_conn->real_escape_string($detail['name']);
	$detail['description']=$new_conn->real_escape_string($detail['description']);
	$detail['created_browser']=$new_conn->real_escape_string($detail['created_browser']);
	
	$prep="INSERT INTO shristi_treatments(name,treatment_type,duration,for_std,for_month,validity,from_day,to_day,description,code,for_week,for_day,status,created_date,created_by,created_browser,created_ip,updated_code) VALUES ('{$detail['name']}','{$detail['treatment_type']}','{$detail['duration']}','2','{$detail['for_month']}','{$detail['validity']}','{$detail['from_day']}','{$detail['to_day']}','{$detail['description']}','{$detail['code']}','{$detail['for_week']}','{$detail['for_day']}','{$detail['status']}','{$detail['created_date']}','{$detail['created_by']}','{$detail['created_browser']}','{$detail['created_ip']}','{$detail['updated_code']}')";
	if(!$new_conn->query($prep))
	{
		$new_conn->rollback();
		$new_conn->close();
		echo("Error : 1".$prep);
		exit();
	}
	$generated_id=$new_conn->insert_id;
	
	$res_2=$new_conn->query("SELECT * FROM shristi_treatments_main_questions WHERE treatment_code='{$detail['table_id']}'");
	while($detail_2=$res_2->fetch_assoc())
	{
		$detail_2['name']=$new_conn->real_escape_string($detail_2['name']);
		$detail_2['question_paragraph']=$new_conn->real_escape_string($detail_2['question_paragraph']);
		$detail_2['created_browser']=$new_conn->real_escape_string($detail_2['created_browser']);
		
		$prep="INSERT INTO shristi_treatments_main_questions(treatment_code,name,question_paragraph,created_date,created_by,created_browser,created_ip,new_record) VALUES('$generated_id','{$detail_2['name']}','{$detail_2['question_paragraph']}','{$detail_2['created_date']}','{$detail_2['created_by']}','{$detail_2['created_browser']}','{$detail_2['created_ip']}','{$detail_2['new_record']}')";
		if(!$new_conn->query($prep))
		{
			$new_conn->rollback();
			$new_conn->close();
			echo("Error : 2".$prep);
			exit();
		}
		$generated_id_2=$new_conn->insert_id;
		
		$res_3=$new_conn->query("SELECT * FROM shristi_treatments_sub_questions WHERE sub_treatment_codes='{$detail_2['table_id']}'");
		while($detail_3=$res_3->fetch_assoc())
		{
			$detail_3['name']=$new_conn->real_escape_string($detail_3['name']);
			$detail_3['question']=$new_conn->real_escape_string($detail_3['question']);
			$detail_3['audio_file_link']=$new_conn->real_escape_string($detail_3['audio_file_link']);
			$detail_3['options']=$new_conn->real_escape_string($detail_3['options']);
			$detail_3['answer']=$new_conn->real_escape_string($detail_3['answer']);
			$detail_3['type']=$new_conn->real_escape_string($detail_3['type']);
			$detail_3['created_browser']=$new_conn->real_escape_string($detail_3['created_browser']);
			
			$prep="INSERT INTO shristi_treatments_sub_questions(code,code_sub_1,code_sub_2,sub_treatment_codes,name,question,audio_file_link,options,ans_key,answer,wrong_keys,no_of_blanks,type,created_by,created_ip,created_date) VALUES ('{$detail_3['code']}','{$detail_3['code_sub_1']}','{$detail_3['code_sub_2']}','$generated_id_2','{$detail_3['name']}','{$detail_3['question']}','{$detail_3['audio_file_link']}','{$detail_3['options']}','{$detail_3['ans_key']}','{$detail_3['answer']}','{$detail_3['wrong_keys']}','{$detail_3['no_of_blanks']}','{$detail_3['type']}','{$detail_3['created_by']}','{$detail_3['created_ip']}','{$detail_3['created_date']}')";
			if(!$new_conn->query($prep))
			{
				$new_conn->rollback();
				$new_conn->close();
				echo("Error : 3".$prep);
				exit();
			}
		}
	}
}

$new_conn->commit();
$new_conn->close();
exit("done");*/
?>
<!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>
            Dashboard
          </h1>
        </section>

        <!-- Main content -->
        <section class="content">
          <!-- Info boxes -->          
          <!--<div class="row">
          	<div class="col-md-4 col-sm-6 col-xs-12">
                <div class="my_welcome_box">
                    <h4 style="margin-left:20px;padding-top:15px;font-weight:bold;">Greetings!</h4>
                    <div style="margin-left:20px;font-size:1.1em;"><strong>UID :</strong> rohitsansanwal<br>
                    <strong>Name :</strong> Rohit Sansanwal<br>
                    <strong>Tag :</strong> Franchise
                    </div>
                    <div style="font-weight:bold;text-align:right;padding-right:20px;padding-bottom:10px;">(DBO Panel)</div>
                </div>
            </div>
            <div class="col-md-4 col-sm-6 col-xs-12" style="margin-top:30px;">
              <div class="info-box">
                <span class="info-box-icon bg-maroon-gradient"><i class="fa fa-edge"></i></span>
                <div class="info-box-content">
                  <span class="info-box-text text-maroon"><strong>E-Wallet Balance</strong></span>
                  <span class="info-box-number"><i class="fa fa-inr"></i>1000/-</span>
                </div>
              </div>
            </div>
            <div class="clearfix visible-sm"></div>
            <div class="col-md-4 col-sm-6 col-xs-12" style="margin-top:30px;">
              <div class="info-box">
                <span class="info-box-icon bg-purple-gradient"><strong>D</strong></span>
                <div class="info-box-content">
                  <span class="info-box-text text-purple"><strong>D-Wallet Balance</strong></span>
                  <span class="info-box-number"><i class="fa fa-inr"></i>1000/-</span>
                </div>
              </div>
            </div>
          </div>-->
          
          <!-- /.row -->


          <!-- Main row -->
          <!-- /.col -->
        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->
      <?php require("common/footer.php");?>

      

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



  </body>
</html>