<?php


////////////////////// CORE FUNCTION | MODULE FUNCTION (c) i2d Technologies //////////////////////////////////
if (!function_exists('nospace')) {
function nospace($str) { 

    //$str=" space67 9 0";

$str=str_replace(' ', '', $str);

$str=preg_replace('!\s+!', ' ', $str);

	//$str = str_replace(' ', '', $str);
	//$str = trim(preg_replace('/\s+/',' ', $str));
	//$str = str_replace(' ','-',$str);
	$str2 = str_replace("`","",$str);
	$str3 = str_replace("!","",$str2);
	$str3 = str_replace("(","",$str3);
	$str3 = str_replace(")","",$str3);
	$str4 = str_replace("%","-Percent",$str3);
	$str5 = str_replace("#","-No-",$str4);


return $str5;

} 
}
/////////////////////////// function ends /////////////////////////////////
////////////////////// CORE FUNCTION | MODULE FUNCTION (c) i2d Technologies //////////////////////////////////
if (!function_exists('check_domain')) {
function check_domain($dot_com) { 

$dot_com=nospace($dot_com);

$size=strlen($dot_com);

$com=$dot_com.".com";
$net=$dot_com.".net";
$org=$dot_com.".org";
$biz=$dot_com.".biz";

  if ( checkdnsrr($com, 'ANY') ) {
  $com_check=="0";
 }
  if ( checkdnsrr($net, 'ANY') ) {
  $net_check=="0";
 }
 if ( checkdnsrr($org, 'ANY') ) {
  $org_check=="0";
 }
 if ( checkdnsrr($biz, 'ANY') ) {
  $biz_check=="0";
 }
 
///////////////////////////////////////////////////////////// 

if($com_check==0){
if($size<6){
$message="Congratulations! ".$com." is avaialable for registration. Please tell your client that ".$com ." is a 5 letter GOLDEN DOMAIN and it can be purchased any time from anywhere , it is best for SEO and Google Ranking and easy to remember brand domain.";	
}
else
{	
$message="Congratulations! ".$com." is avaialable for registration. This domain name is marked HOT and many companies are interested in this brand as per server data.";	
}
}


return $message;

 
///////////////////////////////////////////////////////////// 
 
 

} 
}
/////////////////////////// function ends /////////////////////////////////
/////////////////////////// function ends /////////////////////////////////
/////////////////////////// function ends /////////////////////////////////
/////////////////////////// function ends /////////////////////////////////
/////////////////////////// function ends /////////////////////////////////
/////////////////////////// function ends /////////////////////////////////
/////////////////////////// function ends /////////////////////////////////
/////////////////////////// function ends /////////////////////////////////
/////////////////////////// function ends /////////////////////////////////
////////////////////// FUNCTION | MODULE FUNCTION (c) i2d Technologies //////////////////////////////////

if (!function_exists('client_list')) {
	function client_list(){
   ?>
   <!-- PAGE FUNCTION STARTS (c) i2d Technologies Website Engine -->
   <span style="color:green;">
   
   Honda Center Pvt Ltd.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pizza Square <br />
THE SIGN Advertising Pvt. Ltd.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Maryam Memorial Hospital Pvt. Ltd.<br />Rawalpindi Chamber of Commerce&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Renewable Technologies Pvt. Ltd.<br / >Deepwell Corporation Pvt Ltd.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cotec International Pvt Ltd.<br />
National Enterprises Pvt. Ltd.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clarion Tech Pvt. Ltd.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Askari Automobiles Pvt. Ltd.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Maryam Pharmacy Pvt. Ltd.<br />
etc.<br />
</span>
 <!-- PAGE FUNCTION ENDS (c) i2d Technologies Website Engine -->   
<?php   
}
}
//////////////////////////// HTML FUNCTION ENDS (c) i2d Technologies ///////////////////////////////////////

////////////////////// FUNCTION | MODULE FUNCTION (c) i2d Technologies //////////////////////////////////

if (!function_exists('make_call')) {
	function make_call($id,$redirect){

$contact=db_ref(main_table,id_col,$id,person);		
$company=db_ref(main_table,id_col,$id,title);		
$cell=db_ref(main_table,id_col,$id,cell);		
$domain=db_ref(main_table,id_col,$id,domain);		
$response_type=db_ref(main_table,id_col,$id,response_type);		
		
   ?>
   <!-- PAGE FUNCTION STARTS (c) i2d Technologies Website Engine -->
   
   
   <script type="text/javascript">
var interval = setInterval(function() {
    var timer = $('time').html();
    timer = timer.split(':');
    var minutes = parseInt(timer[0], 10);
    var seconds = parseInt(timer[1], 10);
    seconds -= 1;
    if (minutes < 0) return clearInterval(interval);
    if (minutes < 10 && minutes.length != 2) minutes = '0' + minutes;
    if (seconds < 0 && minutes != 0) {
        minutes -= 1;
        seconds = 59;
    }
    else if (seconds < 10 && length.seconds != 2) seconds = '0' + seconds;
    $('time').html(minutes + ':' + seconds);
    
    if (minutes == 0 && seconds == 0)
        clearInterval(interval);
}, 1000);
</script>

   
   
   <div id="page-right-content" style="padding-top:40px !IMPORTANT;">

                    <div class="container">
                        <div class="row">
							<div class="col-sm-12">
								<div id="start">
									<div class="row">
				
	
							

	
	
	
	
								<div class="tab-content">
                                <div class="tab-pane active" id="home-b1">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <!-- Personal-Information -->
                                            <div class="panel panel-default panel-fill">
                                                <div class="panel-heading">
                                                    <h3 class="panel-title"><?php echo "Calling For : ".$domain." - ".$id; ?></h3>
                                                    
										        </div>
										        
															<h1 align="right"><b>Call Time : <time>3:30</time></b></h1>
                                        
                                                <div class="panel-body">
												
												<div class="m-b-20">
												
												<h2 style="color:red;"><?php echo "Cell : ".$cell; ?></h2>
												<br />
												
									<h4 style="line-height: 35px;">
Aslam Alaikum Sir,<br />

<span style="color:red;"><?php echo $contact; ?></span> Sahib baat karr rahey hain?<br /> 

main i2d Technologies sy baat kar raha hun. <br />

Sir Hum internet par website registration services provide kartay hein. Internet py apkay business brand ko register krtay hein, <br />

Sir kya ap k pas <span style="color:red;"><?php echo $domain; ?></span> ke hawaly sy 5 minute hon gay? <br /><br />

Sir apni company bananay kay baad, doosra aham step <span style="color:blue;">apki company kaa zaati .com khareedna hota hai,</span><br />

<span style="color:red;">kiya aap naay apnay business kaa dot com purchase kar Liya hai?</span><br />

Sir, hum guzishta 10 saal say web consulting ka kaam kar rehay hein <br />

Aur Pindi islamabad kay baray baray brands hummari services say mutmaiyan hain<br />

ham ne bohat se famous companies k sath kam kiya ha jaisay ki<br /> 

<?php client_list(); ?>

<span style="color:red;">Sir aj kal sab he apna business online kar raha hain ap be online karien jis sa easily log aap ke business ko reach karein or ap ko ap k business ma profit ho.</span><br />

<span style="color:green;">Sir agar aap interested hain to main aap ko humaray packages k bare main btata ho?</span><br />

Sir humare 2 different packages hain.<br /> 

<span style="color:red;">aik hai 'i2d Pro Host 3 Year Discount Plan'</span> <br />

 jis main hum aap ko<br /> 

- aap ka apna .com domain name yani <span style="color:red;"><?php echo $domain; ?></span> <span style="color:blue;">3 saal kay liyeh provide kartay hein.</span><br /> 
- iskay saath pro hosting 1GB space dete hain , jis mein aap apni website store kar saktay hein.
- unlimited email forwarders / aur branded email accounts provide kartey hein jaisay 
<span style="color:red;">+ info@<?php echo $domain; ?><br />
+ ceo@<?php echo $domain; ?><br />
+ orders@<?php echo $domain; ?><br />
+ director@<?php echo $domain; ?>    etc. etc.<br /></span>
+ Email Software provide kartey hain.<br />
<span style="color:green;">+ 24 Ghantay ki online support daitey hain.</span><br />
<span style="color:green;">+ Website ya database bananay ke liyeh , Account ka mehfooz passward or PIN code daitay hain.</span><br />
<span style="color:red;">- Yeh package 40% special discount par offer ho raha hai.<br />
- iskee asal keemat 9,700 Salana x 3 Saal banti hai , jo kay kum az kum 31,000 rupay bantay hain<br />
 laiken iss offer se aap 3 saal ke flat registration 20,000 plus tax main avail kar saktay hein.<br /><br /></span> 

<span style="color:blue;">Sir doosra package hai 'i2d Pro Host 1 Year Regular Plan' <br /></span>

 jis main hum aap ko<br /> 

- aap ka apna .com domain name yani <span style="color:red;"><?php echo $domain; ?></span> 1 saal kay liyeh provide kartay hein.<br /> 
- iskay saath pro hosting 1GB space dete hain , jis mein aap apni website store kar saktay hein.
- unlimited email forwarders / aur branded email accounts provide kartey hein jaisay 
<span style="color:green;">+ info@<?php echo $domain; ?><br />
+ ceo@<?php echo $domain; ?><br />
+ orders@<?php echo $domain; ?><br />
+ director@<?php echo $domain; ?>    etc. etc.</span><br />
+ Email Software provide kartey hain.<br />
+ 24 Ghantay ki online support daitey hain.<br />
<span style="color:green;">+ Website ya database bananay ke liyeh , Account ka mehfooz passward or PIN code daitay hain.<br /></span>
<span style="color:red;">- Yeh package 12 maan ka hai aur iskee har saal payment karwani parti hai<br /></span>


Sir agar aap interested hain to main ap ko details bajhta hu isi number par ap kindly vo open kar k check kar lain.<br />
</h4>
			
																		
												
												
												</div>
	
 
                                                    
                                                </div>
                                            </div>
                                            <!-- Personal-Information -->

                                            <!-- Social -->
                                            
                                            <!-- Social -->
                                        </div>



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

	

								</div>
								</div>
								
								<p>&nbsp;</p>
								
								
								<?php 
								
$db_settings3=array(
'table'=>sub_table,
'id'=>$response_type,
'type'=>'0',
'to_find'=>sub_table_title);


$drop3=db_fetch($db_settings3);


?>
<?php
//if(isset($edit) && $edit!="0"){
	
	
$editing1=array(
'editing'=>'1',
'selected_id'=>$response_type,
'selected_text'=>$drop3);
?>
<form role="form" enctype="multipart/form-data" method="post">
<?php
//}								
								dynamicdrop_adv("Response","0",$editing1,"response_type",sub_table,sub_table_title,id_col,"0",id_col);
								
								
								
								?>


	<p>&nbsp;</p>
<p>&nbsp;</p>



<p>&nbsp;</p>	
<p>&nbsp;</p>	
<p>&nbsp;</p>	
								<div class="text-center">
	  <button type="reset" class="btn btn-lg btn-danger waves-effect m-l-5"
													onclick="history.go(-1);">
                                                        Cancel<label><i class="fa fa-tick"></i></label>
                                                    </button>
	  <button type="submit" name="add_itembtn" id="subbtn" 
													class="btn btn-lg btn-primary waves-effect waves-light">
                                                        Update Item<label><i class="fa fa-tick"></i></label>
                                                    </button>
	         <input type="hidden" name="add_item" value="add_item">
   </div>
   
   <p>&nbsp;</p>
								
								
</form>								
								</div>
								</div>
								</div>
							
 <!-- PAGE FUNCTION ENDS (c) i2d Technologies Website Engine -->   
<?php   

if(isset($_POST['add_item'])){

$fields=array(
response_type=>$_POST['response_type_dropname']
);

$res=db_ref(sub_table,id_col,$_POST['response_type_dropname'],sub_table_title);

$editdata=db_editdata(main_table,id_col,$fields,$id,"lead_entry");


$response="Call Response - ".$res;

if($editdata){
add_updatev2($response,$id,$_SESSION['user'],"lead_update","0");

app_redirect_adv($redirect);

}

}

}
}
//////////////////////////// HTML FUNCTION ENDS (c) i2d Technologies ///////////////////////////////////////



















?>